/* ============================================================
   PurbeliDhaka — Main Stylesheet (Mobile-First)
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --maroon: #8b0000;
  --maroon-dark: #6b0000;
  --maroon-light: #f5e8e8;
  --orange: #d4810a;
  --cream: #f8f4ef;
  --cream-dark: #ede6dc;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --border-color: #e9e3dc;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s ease;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-dark);
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--maroon);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--maroon-dark);
}

/* --- Utility --- */
.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}
.text-maroon {
  color: var(--maroon) !important;
}
.bg-maroon {
  background-color: var(--maroon) !important;
}
.bg-cream {
  background-color: var(--cream) !important;
}

/* --- Buttons --- */
.btn-maroon {
  background-color: var(--maroon);
  color: #fff;
  border: 2px solid var(--maroon);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-maroon:hover,
.btn-maroon:focus {
  background-color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 0, 0, 0.3);
}
.btn-outline-maroon {
  color: var(--maroon);
  border: 2px solid var(--maroon);
  font-weight: 500;
  transition: var(--transition);
}
.btn-outline-maroon:hover,
.btn-outline-maroon:focus {
  background-color: var(--maroon);
  color: #fff;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--orange) 100%);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 7px 0;
  text-align: center;
}

/* ============================================================
   NAVBAR — Mobile-first
   ============================================================ */
.navbar {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff !important;
}
.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1;
}
.brand-tagline {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 1px;
}
.brand-logo {
  font-size: 1.6rem;
  color: var(--maroon);
}

/* Toggler area — show cart icon beside hamburger on mobile */
.mobile-cart-btn {
  position: relative;
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
}
.mobile-cart-btn .cart-badge {
  position: absolute;
  top: -4px;
  right: 2px;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--maroon) !important;
}

/* Nav links */
.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 9px 14px !important;
  border-radius: 7px;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active-link {
  color: var(--maroon) !important;
  background-color: var(--maroon-light);
}

/* Mobile collapse styles */
.navbar-collapse {
  padding-top: 8px;
}
@media (max-width: 991px) {
  .navbar-collapse {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
  }
  .navbar-nav .nav-link {
    padding: 10px 12px !important;
    border-radius: 8px;
  }
  /* Search in collapsed menu */
  .search-form {
    display: flex !important;
    margin: 8px 0;
  }
  .search-form .form-control {
    width: 100%;
  }
  /* Auth buttons full width on mobile */
  .navbar-auth-btns .btn {
    width: 100%;
    margin-bottom: 6px;
  }
  .navbar-right-actions {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 8px;
  }
}

.nav-icon-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-icon-link:hover {
  color: var(--maroon);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--maroon) !important;
}

.search-form .form-control {
  border-right: none;
  font-size: 13px;
}
.search-form .form-control:focus {
  box-shadow: none;
  border-color: var(--maroon);
}

/* ============================================================
   CATEGORY MEGA DROPDOWN — Attractive grid layout
   ============================================================ */

/* The dropdown panel itself */
.category-mega-menu {
  min-width: 340px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}

/* Colored header bar at the top of the dropdown */
.mega-menu-header {
  background: linear-gradient(135deg, var(--maroon) 0%, #c0390a 100%);
  color: #fff;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.dropdown-menu.category-mega-menu {
  min-width: 460px;
  max-width: 760px;
}

/* Body: two-column grid of category items */
.mega-menu-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  background: #fff;
}

/* Each individual category item */
.mega-menu-cat-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
}

.mega-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}
.mega-cat-link:hover {
  background-color: var(--maroon-light);
  color: var(--maroon);
}
.mega-menu-cat-item:hover .mega-cat-link {
  background-color: var(--maroon-light);
}
.mega-menu-cat-item:hover .mega-cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-submenu {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border-top: 1px solid #eee;
  transition:
    max-height 0.18s ease,
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.mega-menu-cat-item:hover > .mega-submenu {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
}
.mega-submenu-link {
  display: block;
  padding: 10px 14px 10px 42px;
  color: #4f4f4f;
  text-decoration: none;
  font-size: 13px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.mega-submenu-link:hover {
  background: #faf8f6;
  color: #a81b0a;
}

.dropdown-menu.category-mega-menu .mega-menu-body {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 8px !important;
}
.dropdown-menu.category-mega-menu .mega-submenu {
  display: block !important;
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    max-height 0.18s ease,
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.dropdown-menu.category-mega-menu .mega-menu-cat-item:hover > .mega-submenu {
  max-height: 400px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.dropdown-menu.category-mega-menu .mega-submenu-link {
  padding-left: 42px !important;
}

/* Round icon circle — different color per nth child */
.mega-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
  background: var(--cream);
  color: var(--maroon);
  overflow: hidden;
}
.mega-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vary icon background color per item position */
.mega-menu-cat-item:nth-child(1) .mega-cat-icon {
  background: #fce8e8;
  color: #8b0000;
}
.mega-menu-cat-item:nth-child(2) .mega-cat-icon {
  background: #fff3e0;
  color: #d4810a;
}
.mega-menu-cat-item:nth-child(3) .mega-cat-icon {
  background: #e8f5e9;
  color: #2e7d32;
}
.mega-menu-cat-item:nth-child(4) .mega-cat-icon {
  background: #e3f2fd;
  color: #1565c0;
}
.mega-menu-cat-item:nth-child(5) .mega-cat-icon {
  background: #f3e5f5;
  color: #6a1b9a;
}
.mega-menu-cat-item:nth-child(6) .mega-cat-icon {
  background: #fce4ec;
  color: #c62828;
}
.mega-menu-cat-item:nth-child(7) .mega-cat-icon {
  background: #e0f7fa;
  color: #00695c;
}
.mega-menu-cat-item:nth-child(8) .mega-cat-icon {
  background: #fff8e1;
  color: #f57f17;
}

/* Category name + sub-count text block */
.mega-cat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
  min-width: 0; /* allow text truncation */
}
.mega-cat-text strong {
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.mega-cat-text small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Arrow icon — hidden by default, slides in on hover */
.mega-cat-arrow {
  font-size: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--maroon);
}

/* Footer: "View All Products" link */
.mega-menu-footer {
  border-top: 1px solid var(--border-color);
  padding: 10px 12px;
  background: var(--cream);
}
.mega-menu-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  padding: 7px;
  border-radius: 7px;
  transition: var(--transition);
}
.mega-menu-view-all:hover {
  background: var(--maroon-light);
  color: var(--maroon);
}

/* On mobile: collapse to single column */
@media (max-width: 991px) {
  .category-mega-menu {
    min-width: 100%;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid var(--border-color);
  }
  .mega-menu-body {
    grid-template-columns: 1fr; /* single column on mobile */
  }
  .mega-cat-arrow {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.pd-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #3d0000;
}
.pd-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-slide.active {
  opacity: 1;
  z-index: 2;
}
.pd-slide.prev {
  opacity: 0;
  z-index: 1;
}

.pd-slide-1 {
  background: linear-gradient(135deg, #3d0000 0%, #8b0000 45%, #c4690a 100%);
}
.pd-slide-2 {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 45%, #8b0000 100%);
}
.pd-slide-3 {
  background: linear-gradient(135deg, #2d1b00 0%, #7a4800 45%, #d4810a 100%);
}

.pd-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 50%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 45%
    );
  pointer-events: none;
}
.pd-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.pd-slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}
.pd-slide.active .pd-slide-content {
  animation: slideUp 0.7s ease both;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pd-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 4px 18px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.pd-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.4);
}
.pd-subtitle {
  font-size: 1rem;
  opacity: 0.88;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 24px;
}
.pd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #8b0000 !important;
  border: none;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s;
}
.pd-btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.pd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.65);
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}
.pd-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.pd-prev,
.pd-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  user-select: none;
}
.pd-prev {
  left: 16px;
}
.pd-next {
  right: 16px;
}
.pd-prev:hover,
.pd-next:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}
.pd-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 7px;
  align-items: center;
}
.pd-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.3s;
}
.pd-dot.active {
  width: 44px;
  background: #fff;
}

/* Hero responsive */
@media (max-width: 768px) {
  .pd-slider {
    height: 380px;
  }
  .pd-title {
    font-size: 1.9rem;
  }
  .pd-subtitle {
    font-size: 0.9rem;
  }
  .pd-prev,
  .pd-next {
    display: none;
  }
  .pd-btn-primary,
  .pd-btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .pd-slider {
    height: 300px;
  }
  .pd-title {
    font-size: 1.5rem;
  }
  .pd-subtitle {
    display: none;
  }
  .pd-badge {
    font-size: 10px;
    padding: 3px 12px;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-padding {
  padding: 48px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 32px 0;
  }
}

.section-badge {
  display: inline-block;
  background-color: var(--maroon-light);
  color: var(--maroon);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 6px;
}
@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   PRODUCT CARDS — Mobile-first
   ============================================================ */

/* The outer card wrapper */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
  height: 100%;
}

/* Slight lift on hover (desktop only — disabled on touch) */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
  }
  .product-card:hover .product-card-img-wrap img {
    transform: scale(1.04);
  }
}

/* Image container — 3:4 portrait ratio (like clothing photos) */
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--cream);
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

/* Placeholder shown when product has no image */
.product-no-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Discount badge — top left corner of image */
.badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--maroon);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Best Seller badge — top right corner of image */
.badge-bestseller {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

/* Eye icon — quick view link, bottom right of image — always visible */
.product-quick-view {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  text-decoration: none;
}
.product-quick-view:hover {
  background: var(--maroon);
  color: #fff;
  transform: scale(1.1);
}

/* Card body — uses flexbox column so the button sticks to the bottom */
.card-body {
  padding: 10px 10px 12px;
}

/* Tiny category label above the product title */
.product-category-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product title — 2-line max, with ellipsis if longer */
.product-title {
  margin: 0;
}
.product-title-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.product-title-link:hover {
  color: var(--maroon);
}

/* Prices shown below the title */
.product-price {
  line-height: 1.3;
}
.price-current {
  font-weight: 700;
  color: var(--maroon);
  font-size: 14px;
}
.price-original {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Add to Cart button — always full width, at bottom of card */
.product-add-btn {
  font-size: 12px;
  padding: 7px 10px;
  font-weight: 600;
  border-radius: 7px;
  letter-spacing: 0.2px;
}

/* On very small screens, make text a tiny bit larger for touch */
@media (max-width: 480px) {
  .product-title-link {
    font-size: 12px;
  }
  .price-current {
    font-size: 13px;
  }
  .product-add-btn {
    font-size: 11px;
    padding: 8px 6px;
  }
  .product-quick-view {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  display: block;
  text-align: center;
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-3px);
}
.category-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--maroon-light);
  transition: var(--transition);
}
.category-icon img,
.category-icon i {
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
}
.category-card:hover .category-icon {
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px var(--maroon-light);
}
.category-scroll-row {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  gap: 0.85rem;
  padding: 0.75rem 0 0.75rem 0;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
}
.category-scroll-row::-webkit-scrollbar {
  display: none;
}
.category-card-col {
  flex: 0 0 180px;
  width: 180px;
  scroll-snap-align: start;
}
.category-name {
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 0;
}
.cat-icon-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .category-icon {
    width: 78px;
    height: 78px;
  }
  .category-name {
    font-size: 12px;
  }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

/* Main large product image */
#mainImg,
.main-product-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #f8f4ef;
}

/* Small thumbnail images below the main image */
.gallery-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--maroon);
}

/* Product name heading */
.product-detail-title {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Large price on detail page */
.price-big {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--maroon);
}
.price-original-big {
  font-size: 1rem;
}

/* Trust badges row (truck, shield, return) */
.trust-badges {
  border-top: 1px solid var(--border-color);
}
.trust-item small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Add to Cart button on detail page — full width, large touch target */
.detail-add-btn {
  width: 100%; /* always full width */
  padding: 14px 20px; /* big touch target */
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

/* Mobile adjustments for detail page */
@media (max-width: 576px) {
  .product-detail-title {
    font-size: 1.25rem;
  }
  .price-big {
    font-size: 1.35rem;
  }
  .gallery-thumb {
    width: 52px;
    height: 52px;
  }
  .detail-add-btn {
    font-size: 15px;
    padding: 13px 16px;
  }
  #mainImg,
  .main-product-img {
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
  }
  /* Stack price and badge vertically on very small screens */
  .product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-summary {
  position: sticky;
  top: 100px;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: var(--transition);
}
.qty-btn:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

@media (max-width: 576px) {
  .cart-item-img {
    width: 56px;
    height: 56px;
  }
  .cart-summary {
    position: static;
  }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.payment-option {
  cursor: pointer;
}
.payment-option input[type="radio"] {
  display: none;
}
.payment-card {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  transition: var(--transition);
  min-width: 120px;
}
.payment-option input[type="radio"]:checked + .payment-card {
  border-color: var(--maroon);
  background-color: var(--maroon-light);
}
.payment-card:hover {
  border-color: var(--maroon);
}

@media (max-width: 480px) {
  .payment-card {
    padding: 10px 14px;
    min-width: 100px;
  }
  .payment-options {
    flex-wrap: wrap;
  }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-card {
  border-radius: 14px;
}

/* ============================================================
   SHOP / FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
  border-radius: 10px;
}

/* Mobile: collapsible filter */
.filter-toggle-btn {
  display: none;
  width: 100%;
  margin-bottom: 12px;
}
@media (max-width: 991px) {
  .filter-toggle-btn {
    display: block;
  }
  .filter-sidebar-body {
    display: none;
  }
  .filter-sidebar-body.show {
    display: block;
  }
}

/* ============================================================
   PROMO SECTIONS
   ============================================================ */
.promo-full-section {
  background: var(--cream);
  padding: 48px 0;
}
.promo-block-full {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-radius: 16px;
  border-left: 5px solid var(--maroon);
  border-right: 5px solid var(--orange);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-color);
}
.footer-top {
  background-color: #1a1a1a;
  color: #fff;
}
.footer-top,
.footer-top p,
.footer-top .footer-links li,
.footer-top .footer-links a,
.footer-top .footer-links i,
.footer-top .footer-links span,
.footer-top .footer-heading {
  color: #fff !important;
}
.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #fff;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 7px;
  font-size: 13px;
  color: #fff !important;
}
.footer-links a,
.footer-links a:link,
.footer-links a:visited {
  color: #fff !important;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover,
.footer-links a:focus {
  color: #fff !important;
  padding-left: 3px;
}
.footer-links i,
.footer-links span {
  color: #fff !important;
}
.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: var(--transition);
  font-size: 15px;
}
.social-link:hover {
  background: var(--maroon);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom {
  background-color: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}
.footer-bottom small {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-top .row > div {
    margin-bottom: 24px;
  }
  .footer-top .row > div:last-child {
    margin-bottom: 0;
  }
}

/* ============================================================
   DASHBOARD — Responsive
   ============================================================ */
.dash-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

@media (max-width: 991px) {
  /* Stack dashboard on tablet/mobile */
  .dash-sidebar-col {
    display: none !important;
  }
  .dash-main-col {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Dashboard table: horizontal scroll on mobile */
.table-responsive-mobile {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 576px) {
  .table td,
  .table th {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* KPI cards */
.kpi-card {
  border-radius: 12px;
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
}

@media (max-width: 576px) {
  .kpi-value {
    font-size: 1.3rem;
  }
  .kpi-icon {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control,
.form-select {
  border-color: var(--border-color);
  border-radius: 7px;
  font-size: 14px;
  padding: 9px 12px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

/* ============================================================
   ALERTS / MESSAGES
   ============================================================ */
.alert {
  border-radius: 8px;
  font-size: 14px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-link {
  color: var(--maroon);
  border-color: var(--border-color);
  font-size: 14px;
}
.page-item.active .page-link {
  background-color: var(--maroon);
  border-color: var(--maroon);
}
.page-link:hover {
  color: var(--maroon-dark);
  background-color: var(--maroon-light);
}

/* ============================================================
   MOBILE FLOATING CART BUTTON (phones)
   ============================================================ */
@media (max-width: 480px) {
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    z-index: 999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
  .mobile-bottom-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
    gap: 2px;
  }
  .mobile-bottom-bar a i {
    font-size: 1.3rem;
  }
  .mobile-bottom-bar a.active {
    color: var(--maroon);
  }
  /* Adjust body bottom padding so content isn't hidden */
  body {
    padding-bottom: 60px;
  }
}

/* ============================================================
   BADGE UTILITIES
   ============================================================ */
.badge {
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ============================================================
   TOAST / NOTIFICATION
   ============================================================ */
.toast-container {
  z-index: 1100;
}

/* ============================================================
   ABOUT PAGE — Testimonials & Values
   ============================================================ */

/* Stat cards below the about text */
.about-stat-card {
  background: var(--cream);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.about-stat-card:hover {
  border-color: var(--maroon);
  background: var(--maroon-light);
}

/* Values section: each value card */
.about-value-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--maroon);
}

/* Round icon for each value */
.about-value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--maroon-light);
  color: var(--maroon);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
}
.about-value-card:hover .about-value-icon {
  background: var(--maroon);
  color: #fff;
}

/* Testimonial cards */
.testimonial-card {
  border-radius: 14px;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

/* Five gold stars */
.testimonial-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

/* The review quote text */
.testimonial-text {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--maroon-light);
}

/* Circle avatar with the customer's first letter */
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--orange) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Bottom border accent on testimonial card */
.testimonial-card {
  border-bottom: 3px solid var(--maroon-light) !important;
}
.testimonial-card:hover {
  border-bottom-color: var(--maroon) !important;
}

/* Mobile: stack testimonials */
@media (max-width: 576px) {
  .testimonial-text {
    font-size: 13px;
  }
}

/* ============================================================
   CONTACT PAGE — Info icons, Map, Social
   ============================================================ */

/* Round colored icon for each contact info item */
.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--maroon-light);
  color: var(--maroon);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Social follow links on contact page */
.contact-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.contact-social-link:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
  transform: translateY(-2px);
}

/* Map section wrapper */
.contact-map-section {
  padding: 20px 0 0;
  background: var(--cream);
}

/* The iframe container — adds a top shadow to separate from content */
.contact-map-wrap {
  position: relative;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
.contact-map-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  filter: saturate(0.85) contrast(1.05); /* slightly desaturate for a softer look */
}

/* Small "Open in full map" link overlaid at the bottom right */
.contact-map-link {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--maroon);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
  z-index: 10;
}
.contact-map-link:hover {
  background: var(--maroon);
  color: #fff;
}

@media (max-width: 576px) {
  .contact-map-wrap iframe {
    height: 260px;
  }
}
