html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ================= Mobile menu categories ================= */
.mobile-menu .category-slide {
  overflow-y: auto;
  padding-bottom: 2rem;
}

.mobile-menu .category-slide ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu .category-slide a {
  text-decoration: none;
}

.mobile-menu .mobile-category-item {
  border-radius: 18px;
  background-color: transparent;
}

.mobile-menu .mobile-category-toggle {
  cursor: pointer;
  width: 100%;
  border-radius: 18px;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.mobile-menu .mobile-category-toggle:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background-color: rgba(59, 130, 246, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mobile-menu .mobile-category-toggle.active {
  border-color: rgba(59, 130, 246, 0.55);
  background-color: rgba(59, 130, 246, 0.12);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.mobile-menu .mobile-category-toggle .category-arrow {
  transition: transform 0.3s ease-in-out;
}

.mobile-menu .mobile-category-toggle.active .category-arrow {
  transform: rotate(180deg);
}

.mobile-menu .mobile-subcategory-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.25rem;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.mobile-menu .mobile-subcategory-panel.active {
  opacity: 1;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.mobile-menu .mobile-subcategory-list {
  display: flex;
  flex-direction: column;
/*  gap: 0.65rem;*/
}

.mobile-menu .mobile-subcategory-link {
  display: block;
  font-size: 0.9rem;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(59, 130, 246, 0.06);
  color: #1f2937;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}

.mobile-menu .mobile-subcategory-link:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.dark .mobile-menu .mobile-category-toggle {
  border-color: #374151;
  background-color: #111827;
  color: #f3f4f6;
}

.dark .mobile-menu .mobile-category-toggle:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background-color: rgba(96, 165, 250, 0.16);
}

.dark .mobile-menu .mobile-category-toggle.active {
  border-color: rgba(96, 165, 250, 0.55);
  background-color: rgba(37, 99, 235, 0.22);
}

.dark .mobile-menu .mobile-subcategory-panel.active {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.dark .mobile-menu .mobile-subcategory-link {
  background: rgba(59, 130, 246, 0.18);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.2);
}

.dark .mobile-menu .mobile-subcategory-link:hover {
  background: rgba(96, 165, 250, 0.25);
  border-color: rgba(96, 165, 250, 0.6);
  color: #bfdbfe;
}

/* Installment modal styles */
#installment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#installment-modal.show {
  display: flex;
}

#installment-modal .modal-content {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#installment-modal.show .modal-content {
  transform: scale(1);
}

#installment-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

#installment-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
}

#installment-modal .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#installment-modal .modal-body {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

#installment-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#installment-modal .modal-button {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

#installment-modal .modal-button:hover {
  background-color: #2563eb;
}

/* Product gallery modal overrides */
.slider-modal {
  width: 90% !important;
  max-width: 800px;
  height: 80vh !important;
}

.slider-modal .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Checkout page custom styles */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.icon {
  width: 20px;
  height: 20px;
}

.truck-icon {
  margin-bottom: 4px;
}

.section-title {
  font-size: 18px;
}

.payment-options,
.shipping-options {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.payment-options {
  gap: 16px;
  margin-top: 20px;
}

.shipping-options {
  gap: 8px;
  margin-top: 16px;
}

.payment-option,
.shipping-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.wishlist-button {
  transition: all 0.2s ease-in-out;
}

.wishlist-button.wishlist-active {
  color: #ef4444;
  background-color: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.5);
}

.wishlist-button.wishlist-active svg {
  fill: currentColor;
}

.payment-option {
  gap: 12px;
  padding: 14px 12px;
  font-size: 16px;
}

.shipping-option {
  gap: 8px;
  padding: 12px;
  font-size: 16px;
}

.payment-option:focus-within,
.shipping-option:focus-within {
  box-shadow: 0 0 0 2px #3b82f6;
}

.payment-option input,
.shipping-option input {
  position: absolute;
  opacity: 0;
}

.payment-radio,
.shipping-radio {
  border: 1px solid #9ca3af;
  border-radius: 50%;
  transition: all 0.3s;
}

.payment-radio {
  width: 20px;
  height: 20px;
}

.shipping-radio {
  width: 16px;
  height: 16px;
}

.payment-option input:checked + .payment-radio,
.shipping-option input:checked + .shipping-radio {
  background: #60a5fa;
  border-color: #3b82f6;
}

.payment-icon {
  width: 24px;
  height: 24px;
}

.payment-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.payment-name {
  font-size: 18px;
  color: #1f2937;
}

.payment-desc {
  font-size: 14px;
  color: #6b7280;
}


@keyframes progressGrow {
    from {
        width: 0;
    }

    to {
        width: 80%;
    }
}

/* site.css */
.btn-brand {
    background-color: #1f93ff;
    color: #fff;
}

    .btn-brand:hover {
        background-color: #1b85ea;
    }
