/* ============================================================
   Gadgets Markaz — Storefront styles
   Mobile-first, high-contrast. Most customers are on phones.
   RTL (Urdu) is handled via [dir="rtl"] rules and logical spacing.
   ============================================================ */

:root {
  --color-primary: #0d6efd;
  --color-primary-dark: #0a58ca;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f6f8;
  --color-border: #d9dee3;
  --color-success: #157347;
  --color-danger: #b02a37;
  --color-warning-bg: #fff3cd;
  --color-warning-text: #664d03;
  --color-dark: #101828;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg-soft);
  line-height: 1.55;
  font-size: 16px;
}

/* Urdu text renders better slightly larger with more line height */
[dir="rtl"] body,
html[dir="rtl"] {
  font-family: "Segoe UI", "Noto Nastaliq Urdu", Tahoma, sans-serif;
}
[dir="rtl"] { line-height: 1.9; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}
.container.narrow { max-width: 900px; }
.container.form-narrow { max-width: 460px; }
.container.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #e8ecf0;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--color-primary); color: #ffffff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:disabled { background: #9db8d9; cursor: not-allowed; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-block { display: block; width: 100%; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-link {
  background: none; border: none; padding: 0;
  color: var(--color-primary); text-decoration: underline;
  cursor: pointer; font-size: 15px;
}
.btn-link.danger { color: var(--color-danger); }

/* ---------- Announcement bar (dark strip above the header) ---------- */
.announcement-bar {
  background: var(--color-dark);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  padding: 8px 0;
}

/* ---------- Header: white row with logo / menu / search / actions ---------- */
.site-header {
  background: #ffffff;
  color: var(--color-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 72px; width: auto; display: block; }
.main-nav { display: flex; gap: 20px; align-items: center; }
.main-nav a {
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.main-nav a.active, .main-nav a:hover { color: var(--color-primary); }

/* ---------- Category dropdown ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dropdown-toggle.active,
.nav-dropdown-toggle:hover { color: var(--color-primary); }
.nav-caret {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  min-width: 210px;
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  /* Extra top padding acts as the hover bridge — mouse stays inside the element */
  padding-top: 14px;
  margin-top: -6px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
/* triangle pointer */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-border);
}
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: #fff5f0; color: var(--color-primary); }
.nav-cat-icon { font-size: 16px; line-height: 1; }
.nav-cat-count {
  margin-left: auto;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
}
.nav-dropdown-divider { border-top: 1px solid var(--color-border); margin: 4px 0; }


/* Search: rounded pill in the middle, grows to fill the row */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
  max-width: 480px;
}
.search-form input {
  flex: 1;
  width: 100%;
  padding: 11px 46px 11px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  background: #ffffff;
  color: var(--color-text);
}
[dir="rtl"] .search-form input { padding: 11px 18px 11px 46px; }
.search-form input:focus { outline: none; border-color: var(--color-primary); }
.search-form button {
  position: absolute;
  inset-inline-end: 6px;
  border: none;
  background: none;
  font-size: 17px;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--color-text-muted);
}

.header-actions { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.lang-toggle {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 14px;
}
.header-link {
  color: #333333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.header-link:hover { color: var(--color-primary); }
.header-icon { font-size: 17px; }

/* Cart: icon with a count bubble on its corner */
.cart-link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  padding: 4px;
}
.cart-icon { font-size: 24px; }
.cart-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -7px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Mobile hamburger button ---------- */
.mob-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
}
.mob-menu-btn:hover { background: #f5f5f5; }
.mob-menu-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* ---------- Mobile drawer overlay ---------- */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
}
.mob-overlay.open { display: block; }

/* ---------- Mobile drawer panel ---------- */
.mob-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}
.mob-drawer.open { transform: translateX(0); }
.mob-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.mob-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #777;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.mob-drawer-close:hover { background: #f5f5f5; color: #333; }
.mob-drawer-search {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 8px;
}
.mob-drawer-search input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  color: var(--color-text);
}
.mob-drawer-search input:focus { border-color: var(--color-primary); }
.mob-drawer-search button {
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 16px;
}
.mob-drawer-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mob-drawer-nav > a {
  padding: 14px 20px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-drawer-nav > a:hover,
.mob-drawer-nav > a.active { background: #f0f4ff; color: var(--color-primary); }
.mob-drawer-cats { background: #fafafa; }
.mob-cat-link {
  padding: 11px 20px 11px 32px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.mob-cat-link:hover { color: var(--color-primary); background: #f0f4ff; }

/* ---------- Mobile search strip (below header) ---------- */
.mob-search-strip {
  display: none;
  background: #fff;
  padding: 10px 16px 12px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: visible;
  position: relative;
  z-index: 1000;
}
.mob-search-form {
  display: flex;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  overflow: visible;
  position: relative;
}
.mob-search-form input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  color: var(--color-text);
  background: #fff;
}
.mob-search-form button {
  background: var(--color-primary);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  line-height: 1;
}

/* Phones + tablets (≤1023px): hamburger header, centered logo, search strip */
@media (max-width: 1023px) {
  .mob-menu-btn { display: flex; flex-shrink: 0; }
  .logo { flex: 1; display: flex; justify-content: center; }
  .header-actions { margin-inline-start: 0; }
  .main-nav { display: none !important; }
  .search-form { display: none !important; }
  .header-link { display: none !important; }
  .lang-toggle { display: none !important; }
  .header-inner { flex-wrap: nowrap; gap: 8px; }
  .logo-img { height: 56px; }
  .mob-search-strip { display: block; }
}

/* Mobile header redesign (≤767px): logo left + search inline, no separate strip */
@media (max-width: 767px) {
  /* Logo: left-aligned, fixed width, don't grow */
  .logo { flex: 0 0 auto; justify-content: flex-start; }
  .logo-img { height: 44px; }

  /* Search bar: show inline in header, takes all remaining space */
  .search-form { display: flex !important; flex: 1; min-width: 0; max-width: none; }
  .search-form input { padding: 9px 40px 9px 14px; font-size: 14px; }

  /* Cart is in mobile bottom nav — hide from header on mobile */
  .cart-link { display: none !important; }
  .header-actions { gap: 4px; }

  /* Hide the old separate search strip — search is now in the header row */
  .mob-search-strip { display: none !important; }

  /* Tighten up header padding */
  .site-header .header-inner { gap: 10px; padding: 0 12px; }
  .site-header { padding: 10px 0; }
}

/* ---------- Mobile category strip (below header, homepage) ---------- */
.mob-header-cats { display: none !important; }
@media (max-width: 767px) {
  .mob-header-cats {
    display: flex !important;
    overflow-x: auto;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 12px 12px;
    scrollbar-width: none;
  }
  .mob-header-cats::-webkit-scrollbar { display: none; }
  .mob-hcat-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 72px;
    text-decoration: none;
    color: var(--color-text);
    padding: 4px 4px;
  }
  .mob-hcat-item.mob-hcat-active .mob-hcat-icon-wrap { border-color: var(--color-primary); }
  .mob-hcat-item.mob-hcat-active .mob-hcat-label { color: var(--color-primary); }
  .mob-hcat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    overflow: hidden;
    transition: border-color 0.15s;
  }
  .mob-hcat-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
  }
  .mob-hcat-label {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: #374151;
    max-width: 68px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Phones only (≤760px): horizontal category scroll + smaller logo */
@media (max-width: 760px) {
  .logo-img { height: 48px; }
  .category-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card {
    flex: 0 0 auto;
    width: 76px;
    min-height: unset;
    padding: 12px 6px;
    scroll-snap-align: start;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .category-icon { font-size: 34px; }
  .category-name { font-size: 11px; font-weight: 600; text-align: center; }
  .category-count { display: none; }
}

/* ---------- Sale countdown bar ---------- */
.sale-countdown-bar {
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
}
.sale-countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
}
.sale-label-chip {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0,0,0,.25);
  padding: 3px 12px;
  border-radius: 20px;
}
.sale-ends-label {
  font-weight: 600;
  opacity: .9;
}
.sale-countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sale-timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
  background: rgba(0,0,0,.3);
  border-radius: 6px;
  padding: 3px 6px;
}
.sale-timer-val {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sale-timer-unit {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  opacity: .8;
  text-transform: uppercase;
}
.sale-timer-sep {
  font-size: 20px;
  font-weight: 900;
  opacity: .7;
  margin-bottom: 8px;
}
.sale-code-wrap {
  font-size: 14px;
  font-weight: 600;
}
.sale-code-chip {
  display: inline-block;
  background: #fff;
  color: #b91c1c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 3px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px dashed #fca5a5;
  transition: background .15s, color .15s;
}
.sale-code-chip:hover { background: #fef2f2; }
@media (max-width: 767px) {
  .sale-timer-val { font-size: 18px; }
  .sale-timer-block { min-width: 32px; padding: 2px 5px; }
  .sale-label-chip { font-size: 13px; }
}

/* ---------- Home page slider ---------- */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  /* Reserve height so the page doesn't jump while images load */
  min-height: 160px;
}
.slider .slide {
  display: none;
  position: relative;
}
.slider .slide.active { display: block; animation: slideFade 0.5s ease; }
@keyframes slideFade { from { opacity: 0.4; } to { opacity: 1; } }
.slider .slide img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 34px 18px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #ffffff;
  display: flex; flex-direction: column; gap: 2px;
}
.slide-caption strong { font-size: 22px; }
.slide-caption span { font-size: 15px; }
@media (max-width: 640px) {
  .slide-caption strong { font-size: 17px; }
  .slide-caption span { font-size: 13px; }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.7); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.slider-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
}
.slider-dot.active { background: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #101828 0%, #1d3a6e 100%);
  color: #ffffff;
  text-align: center;
  padding: 48px 0;
}
.hero h1 { margin: 0 0 10px; font-size: 28px; }
.hero p { margin: 0 0 22px; color: #c9d4e3; font-size: 17px; }

/* ---------- Feature cards (under the slider) ---------- */
.feature-cards-section {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 860px) { .feature-cards { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: #e7efff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.feature-card strong { font-size: 15px; display: block; }
.feature-card p { margin: 2px 0 0; font-size: 13px; color: var(--color-text-muted); }

/* ---------- Sections ---------- */
.section { padding: 28px 0; }
.section-title { font-size: 22px; margin: 0 0 16px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.section-link { font-weight: 600; text-decoration: none; }
.page-title { font-size: 24px; margin: 8px 0 16px; }
.sub-title { font-size: 18px; margin: 22px 0 10px; }
.empty-note { color: var(--color-text-muted); padding: 18px 0; }
.hint-note { color: var(--color-text-muted); font-size: 14px; }

/* ---------- Category grid ----------
   Single row that scrolls horizontally — cards never wrap to a second line.
   Scrollbar is hidden; the prev/next arrow buttons scroll it instead. */
.category-scroller { position: relative; }
.category-grid {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  transition: background 0.15s, border-color 0.15s;
}
.cat-arrow:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cat-arrow-prev { inset-inline-start: -14px; }
.cat-arrow-next { inset-inline-end: -14px; }
/* Phones swipe naturally — no arrows needed */
@media (max-width: 760px) {
  .cat-arrow { display: none; }
}
.category-card {
  flex: 0 0 auto;
  width: 170px;
  scroll-snap-align: start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.category-card:hover { border-color: var(--color-primary); }
.category-icon { font-size: 26px; }
.category-name { font-weight: 700; }
.category-count { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--color-primary); }
/* Quick view and compare on product CARDS — hidden on mobile, hover overlays on desktop */
.quick-view-btn { display: none; }
.product-card .compare-btn {
  display: none;
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  background: rgba(22,101,52,.85);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s;
  z-index: 2;
}
@media (min-width: 768px) {
  .quick-view-btn {
    display: block;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(13,110,253,.9);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .18s;
    z-index: 2;
  }
  .product-card:hover .quick-view-btn { opacity: 1; }
  .product-card .compare-btn { display: block; }
  .product-card:hover .compare-btn { opacity: 1; }
}
.compare-detail-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  color: var(--color-dark);
  transition: border-color .15s, background .15s;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.compare-detail-btn:hover { border-color: var(--color-primary); background: #e8f0fe; color: var(--color-primary); }
.compare-detail-btn.in-compare { background: #e8f0fe; border-color: var(--color-primary); color: var(--color-primary); }
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a2e;
  color: #fff;
  padding: 12px 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .3s;
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.compare-bar-item {
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare-bar-remove {
  background: none; border: none; color: #fff;
  cursor: pointer; font-size: 14px; padding: 0 2px;
}
.compare-go-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
}
.compare-clear-btn {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 6px;
  padding: 7px 14px; cursor: pointer; font-size: 13px;
}
.product-card-link {
  text-decoration: none;
  color: var(--color-text);
  display: flex; flex-direction: column; flex: 1;
}
/* The image is absolutely positioned so a tall photo can never stretch the
   square box — every card image renders exactly 1:1 regardless of source shape. */
.product-card-image { position: relative; aspect-ratio: 1; background: #f0f2f5; overflow: hidden; }
.product-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: #b6bec9; background: #f0f2f5;
  min-height: 80px;
}
.image-placeholder-lg { min-height: 320px; border-radius: var(--radius); font-size: 72px; }
.badge {
  position: absolute; top: 8px; inset-inline-start: 8px;
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.badge-out { background: var(--color-danger); color: #ffffff; }
.badge-sale { background: #ff8c00; color: #ffffff; }

/* Sale pricing: old price crossed out next to the sale price */
.price-old {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85em;
  margin-inline-end: 6px;
}
.price-sale { color: var(--color-danger); }

.product-card-body { padding: 10px 12px 14px; }
.product-card-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card-price { margin: 0; font-size: 17px; font-weight: 800; color: var(--color-dark); }

/* Mobile category description card (replaces scroller on category pages) */
.mob-cat-desc-card { display: none; }
@media (max-width: 767px) {
  .mob-cat-desc-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
  }
  .mob-cat-desc-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0 0 8px;
    line-height: 1.3;
  }
  .mob-cat-desc-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
    line-height: 1.5;
  }
  .mob-cat-desc-count {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    background: #eff6ff;
    border-radius: 20px;
    padding: 3px 10px;
  }
}

/* Hide homepage "Shop by Category" section on mobile — replaced by header strip */
@media (max-width: 767px) {
  .home-cat-section { display: none; }
}

/* ---------- Mobile category icon scroller (products/category pages) ---------- */
.mob-cat-scroller { display: none; }
@media (max-width: 859px) {
  .mob-cat-scroller {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 0 14px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .mob-cat-scroller::-webkit-scrollbar { display: none; }
  .mob-cat-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 74px;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 6px 8px;
    scroll-snap-align: start;
    transition: border-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: var(--shadow);
  }
  .mob-cat-item.mob-cat-active,
  .mob-cat-item:active {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .mob-cat-item-icon { font-size: 30px; line-height: 1; }
  .mob-cat-item-name { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2; }
  /* Hide text-pill list and sidebar title on mobile */
  .cat-list-desktop { display: none !important; }
  .sidebar-title-desktop { display: none; }
}

/* ---------- Listing layout ---------- */
.listing-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .listing-layout { grid-template-columns: 230px 1fr; } }

.listing-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.listing-title-row .page-title { margin: 0; }
.listing-result-count { font-size: 13px; color: var(--color-muted); margin: 2px 0 0; }
.sort-form { display: flex; align-items: center; gap: 6px; }
.sort-select { padding: 7px 10px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: 14px; background: var(--color-bg); color: var(--color-text); cursor: pointer; }

.sidebar-title { font-size: 17px; margin: 0 0 10px; }
.sidebar-filter-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.sidebar-filter-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.price-range-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.price-range-row .field-input { flex: 1; min-width: 0; }
.category-list { list-style: none; margin: 0; padding: 0; }
/* mobile: horizontal scroll chips */
@media (max-width: 859px) {
  .category-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .category-list li { flex-shrink: 0; }
}
.category-list a {
  display: block;
  padding: 8px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  white-space: nowrap;
}
.category-list a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--color-text-muted); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; } }

.gallery-main {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #ffffff;
  object-fit: contain;
  aspect-ratio: 1;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  width: 64px; height: 64px;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--color-primary); }

.product-title { font-size: 24px; margin: 0 0 8px; }
.product-price { font-size: 26px; font-weight: 800; margin: 0 0 8px; color: var(--color-dark); }
.stock-note { font-weight: 700; margin: 0 0 16px; }
.stock-note.in-stock { color: var(--color-success); }
.stock-note.out-of-stock { color: var(--color-danger); }

.product-description p { white-space: pre-line; color: #333333; margin: 0; }

/* Short description: quick pitch under the price */
.short-description {
  color: #333333;
  font-size: 15.5px;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: var(--color-bg-soft);
  border-inline-start: 4px solid var(--color-primary);
  border-radius: 6px;
}

/* Product video inside the gallery: fills the same square as the
   main photo; YouTube letterboxes the 16:9 video inside it. */
.gallery-main-wrap { position: relative; }
.gallery-video {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #000000;
}
.gallery-video[hidden] { display: none; }
.gallery-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Video thumbnail: photo thumb with a ▶ play overlay */
.video-thumb { position: relative; }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.video-thumb:hover .play-badge { background: rgba(0, 0, 0, 0.55); }

/* Professional description sections (description / features / specs) */
.product-details-sections { margin-top: 36px; display: grid; gap: 18px; }
.details-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.details-title {
  font-size: 18px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
}
.feature-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #d7f5e2;
  color: #0a5c36;
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.specs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs-table th, .specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: start;
}
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }
.specs-table th {
  width: 38%;
  color: var(--color-text-muted);
  font-weight: 600;
  background: var(--color-bg-soft);
}
.specs-table tr:nth-child(even) td { background: #fafbfc; }

/* Trust facts strip on product page (plain-text COD / delivery / returns) */
.trust-facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 12px 16px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  font-size: 14px;
}

/* Product page FAQ accordion (visible counterpart of FAQPage JSON-LD) */
.faq-block { margin-top: 18px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-inline-end: 28px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { margin: 0 0 14px; font-size: 14.5px; color: var(--color-text-muted); line-height: 1.6; }

/* ---------- Forms ---------- */
.field-label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: 15px; }
.field-input {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px; /* prevents iOS zoom */
  background: #ffffff;
  color: var(--color-text);
  font-family: inherit;
}
.field-input:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); }
.field-input.field-error { border-color: var(--color-danger); }
.error-text { color: var(--color-danger); font-size: 13px; margin: 4px 0 0; }
.qty-input { max-width: 110px; }

.add-to-cart-form { margin-top: 6px; }

/* Add to Cart + Buy Now side by side (stacked on very small phones) */
.buy-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 380px) { .buy-buttons { grid-template-columns: 1fr; } }
.btn-buy-now { background: #ff8c00; color: #ffffff; }
.btn-buy-now:hover { background: #e07b00; }
.btn-buy-now:disabled { background: #f3c98f; cursor: not-allowed; }

/* WhatsApp enquiry button — full width below the two buy buttons */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.btn-whatsapp:hover { background: #1ebe5b; color: #ffffff; transform: translateY(-1px); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; font-size: 15px; }
.alert-error { background: #f8d7da; color: #58151c; border: 1px solid #f1aeb5; }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning-text); border: 1px solid #ffe69c; }
.alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }

/* ---------- Cart ---------- */
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
}
@media (min-width: 640px) { .cart-item { grid-template-columns: 80px 1fr auto; } }
.cart-item-image img, .cart-item-image .image-placeholder {
  width: 80px; height: 80px; border-radius: 8px; object-fit: cover;
}
.cart-item-name { font-weight: 700; text-decoration: none; color: var(--color-text); }
.cart-item-variant { margin: 2px 0; color: var(--color-text-muted); font-size: 14px; }
.cart-item-price { margin: 2px 0 0; font-weight: 600; }
.cart-item-actions {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  grid-column: 1 / -1;
}
@media (min-width: 640px) { .cart-item-actions { grid-column: auto; align-items: flex-end; } }
.cart-qty-form { display: flex; align-items: center; }
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: 8px; overflow: hidden; width: fit-content;
}
.qty-btn {
  background: none; border: none;
  width: 34px; height: 36px;
  font-size: 18px; font-weight: 700;
  cursor: pointer; color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s;
}
.qty-btn:hover { background: var(--color-bg-soft); }
.qty-val {
  width: 42px; height: 36px; border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  text-align: center; font-size: 15px; font-weight: 600;
  background: #fff; -moz-appearance: textfield; outline: none;
}
.qty-val::-webkit-outer-spin-button,
.qty-val::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-line-total { margin: 4px 0 0; font-weight: 800; font-size: 17px; }

.cart-summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  font-size: 19px; margin: 0 0 14px;
}
.cart-summary .btn-link { display: inline-block; margin-top: 12px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; } }

.checkout-form, .checkout-summary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}
.payment-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.payment-option.selected { border-color: var(--color-success); background: #f2fbf6; }
.payment-option p { margin: 4px 0 0; color: var(--color-text-muted); font-size: 14px; }

/* Radio-card options (payment method / delivery partner) */
.payment-choice, .delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}
.payment-choice input, .delivery-option input {
  width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--color-primary);
}
.payment-choice:has(input:checked),
.delivery-option:has(input:checked) {
  border-color: var(--color-primary);
  background: #f0f6ff;
}

/* Bank details box (shown when Bank Transfer is selected) */
.bank-box {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--color-bg-soft);
}
.bank-box[hidden] { display: none; }
.bank-table { border-collapse: collapse; margin: 6px 0 4px; }
.bank-table th {
  text-align: start; padding: 4px 14px 4px 0;
  color: var(--color-text-muted); font-weight: 600; font-size: 14px;
}
.bank-table td { padding: 4px 0; font-weight: 700; font-size: 15px; }

/* Summary rows (subtotal / delivery) */
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 15px; margin: 6px 0;
  color: var(--color-text);
}
.summary-discount { color: var(--color-success); font-weight: 700; }

/* Coupon box */
.coupon-box {
  border-top: 1px dashed var(--color-border);
  margin: 14px 0;
  padding-top: 4px;
}
.coupon-row { display: flex; gap: 8px; }
.coupon-row .field-input { flex: 1; text-transform: uppercase; }
.coupon-applied { margin: 10px 0 4px; color: var(--color-success); font-weight: 600; }
.coupon-applied .btn-link { margin-inline-start: 8px; }

/* Address book cards */
.address-card { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.address-card p { margin: 4px 0 0; }
.address-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }

/* Content pages */
.page-content p { margin: 0 0 14px; white-space: pre-line; }

/* Related products */
.related-section { margin-top: 40px; }

.summary-list { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.summary-price { white-space: nowrap; font-weight: 600; }
.summary-total {
  display: flex; justify-content: space-between;
  font-size: 19px; margin: 12px 0 16px;
}

/* ---------- Order success ---------- */
.success-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 20px;
  margin: 10px auto;
  max-width: 520px;
}
.success-icon { font-size: 52px; }
.order-number-box {
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 18px 0;
}
.order-number-box p { margin: 0 0 4px; }
.order-number { font-size: 24px; letter-spacing: 1px; }
.success-box .btn { margin-top: 18px; }

/* ---------- Auth & account ---------- */
.auth-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}
.auth-form .btn { margin-top: 18px; }
.auth-switch { text-align: center; margin-top: 16px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: start;
  vertical-align: middle;
}
.data-table thead th { background: var(--color-bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
.data-table tfoot td { font-size: 15px; }

/* ---------- Status pills ---------- */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-pending   { background: #fff3cd; color: #664d03; }
.status-confirmed { background: #cfe2ff; color: #084298; }
.status-shipped   { background: #e2d9f3; color: #432874; }
.status-delivered { background: #d1e7dd; color: #0a3622; }
.status-cancelled { background: #f8d7da; color: #58151c; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .page-current {
  padding: 7px 13px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
}
.page-current { background: var(--color-primary); border-color: var(--color-primary); color: #ffffff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #c3ccd9; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 34px 16px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr; } }
.footer-col h3 { color: #ffffff; font-size: 16px; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c3ccd9; text-decoration: none; }
.footer-col a:hover { color: #ffffff; }
.footer-address { font-size: 14px; }

/* Contact links: icon fixed on the left, text beside it. Wrapped text
   stays aligned under the text (not under the icon). */
.contact-list li { margin-bottom: 12px; }
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.footer-contact .fc-icon { flex-shrink: 0; }

/* Social brand icons: circular buttons that light up on hover */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #2a3648;
  color: #c3ccd9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-icon:hover { background: var(--color-primary); color: #ffffff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid #2a3648;
  padding: 14px 0;
  font-size: 13px;
  text-align: center;
}

/* ---------- Wishlist hearts ---------- */
.wishlist-heart {
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-danger);
  font-size: 20px;
  line-height: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wishlist-heart:hover { border-color: var(--color-danger); }
.wishlist-heart.active { background: #fdecee; border-color: var(--color-danger); }
.card-heart-form {
  position: absolute;
  top: 8px; inset-inline-end: 8px;
  z-index: 2;
  margin: 0;
}
.card-heart { width: 34px; height: 34px; font-size: 17px; box-shadow: var(--shadow); }
.product-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}

/* ---------- Reviews ---------- */
.stars { color: #f5a623; letter-spacing: 2px; white-space: nowrap; }
.rating-summary {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 10px;
}
.reviews-section { margin-top: 40px; }
.reviews-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .reviews-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.review-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.review-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.review-text { margin: 8px 0 4px; white-space: pre-line; }
.review-date { margin: 0; font-size: 12px; color: var(--color-text-muted); }

.review-form-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.review-form-box h3 { margin: 0 0 4px; font-size: 17px; }
.review-form-box .btn { margin-top: 14px; }

/* Star rating input: 5 radios, highlight on hover/selection.
   Rendered 5->1 in LTR and flexed row-reverse, so filling works with
   the ~ sibling selector in both LTR and RTL. */
.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
  font-size: 30px;
  color: #cfd6dd;
  cursor: pointer;
  padding: 0 2px;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5a623; }

/* ---------- Order tracking ---------- */
.track-result { margin-top: 26px; }
.track-steps {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.track-steps::before {
  content: '';
  position: absolute;
  top: 15px; left: 8%; right: 8%;
  height: 3px;
  background: var(--color-border);
  z-index: 0;
}
.track-steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  flex: 1;
  text-align: center;
}
.track-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #ffffff;
}
.track-steps li.done { color: var(--color-success); }
.track-steps li.done .track-dot { background: var(--color-success); border-color: var(--color-success); }
.track-steps li.current { color: var(--color-primary); }
.track-steps li.current .track-dot { background: var(--color-primary); border-color: var(--color-primary); }

.status-lg { font-size: 15px; padding: 5px 14px; }

/* ---------- Search autocomplete dropdown ---------- */
.search-suggest-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1100;
  overflow: hidden;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
}
.search-suggest-item:last-of-type { border-bottom: none; }
.search-suggest-item:hover { background: #f8f9ff; }
.search-suggest-img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #f3f4f6;
}
.search-suggest-img-placeholder {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: #f3f4f6; border-radius: 6px;
}
.search-suggest-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-suggest-name {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-suggest-price { font-size: 13px; color: var(--color-primary); font-weight: 700; }
.search-suggest-all {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  background: #f8f9ff;
  text-align: center;
}
.search-suggest-all:hover { background: #eff2ff; }


/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
}
.whatsapp-float:hover {
  background: #1ebe5b;
  animation: wa-wobble 0.6s ease-in-out;
}
/* Wobble: quick playful shake + slight jump when hovered */
@keyframes wa-wobble {
  0%   { transform: rotate(0deg) translateY(0); }
  15%  { transform: rotate(-14deg) translateY(-6px); }
  30%  { transform: rotate(12deg) translateY(-8px); }
  45%  { transform: rotate(-9deg) translateY(-6px); }
  60%  { transform: rotate(6deg) translateY(-3px); }
  75%  { transform: rotate(-3deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}
/* Gentle pulse ring every few seconds so phone users notice it too */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #25d366;
  animation: wa-pulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ---------- Product comparison table ---------- */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.compare-label-col { width: 130px; }
.compare-product-col { min-width: 160px; text-align: center; padding: 12px; }
.compare-product-name {
  font-size: 13px; font-weight: 600;
  margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.compare-table thead th { border-bottom: 2px solid var(--color-border); }
.compare-table tbody tr:nth-child(odd) { background: var(--color-bg-soft); }
.compare-table td, .compare-table th { padding: 10px 14px; vertical-align: top; border: 1px solid var(--color-border); }
.compare-label { font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }

/* ---------- Quick View modal ---------- */
.qv-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.qv-overlay[hidden] { display: none; }
.qv-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 760px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  animation: popup-in .25s ease;
}
.qv-close {
  position: absolute; top: 12px; right: 14px;
  border: none; background: none;
  font-size: 20px; cursor: pointer;
  color: var(--color-text-muted);
  z-index: 1;
}
.qv-body { padding: 28px 24px; }
.qv-spinner { text-align: center; padding: 40px; color: var(--color-text-muted); }
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 540px) { .qv-grid { grid-template-columns: 1fr; } }
.qv-img-wrap { border-radius: 10px; overflow: hidden; }
.qv-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.qv-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.qv-title a { color: inherit; }
.qv-add-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }

/* ---------- Welcome popup ---------- */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.welcome-overlay[hidden] { display: none; }
.welcome-popup {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  animation: popup-in .3s ease;
}
@keyframes popup-in {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.welcome-close {
  position: absolute;
  top: 12px; right: 14px;
  border: none; background: none;
  font-size: 18px; cursor: pointer;
  color: var(--color-text-muted);
}
.welcome-close:hover { color: var(--color-text); }
.welcome-emoji { font-size: 40px; margin: 0 0 8px; }
.welcome-heading { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.welcome-body { font-size: 14px; color: var(--color-text-muted); margin: 0 0 16px; }
.welcome-coupon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0fdf4;
  border: 2px dashed #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.welcome-coupon-label { font-size: 12px; color: var(--color-text-muted); }
.welcome-coupon-code {
  font-size: 20px; font-weight: 800;
  letter-spacing: .08em;
  color: #166534;
}
.welcome-copy-btn {
  border: none;
  background: #166534;
  color: #fff;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
.welcome-copy-btn:hover { background: #14532d; }
.welcome-shop-btn { width: 100%; text-align: center; }

/* ---------- Referral card ---------- */
.referral-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.referral-title { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.referral-desc { font-size: 13px; color: var(--color-text-muted); margin: 0 0 10px; }
.referral-link-row { display: flex; gap: 8px; }
.referral-link-input { flex: 1; font-size: 13px; }

/* ---------- Password eye toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap .field-input { padding-right: 42px; }
.pw-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #8a94a0; line-height: 1; display: flex; align-items: center;
}
.pw-eye:hover { color: var(--color-dark); }
.pw-eye svg { width: 18px; height: 18px; display: block; }
.pw-hint { font-size: 12px; font-weight: 400; color: #8a94a0; margin-left: 6px; }
.pw-strength { font-size: 12px; margin-top: 4px; min-height: 16px; }
.pw-strength.weak   { color: var(--color-danger); }
.pw-strength.fair   { color: #d97706; }
.pw-strength.strong { color: var(--color-success); }

/* ---------- Card cart icon button ---------- */
.card-cart-form { position: absolute; top: 50px; inset-inline-end: 8px; z-index: 2; margin: 0; }
.card-cart-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  padding: 0; flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.card-cart-btn:hover { border-color: var(--color-primary); background: #e8f0fe; }

/* ---------- Loyalty points card ---------- */
.loyalty-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.loyalty-icon { font-size: 32px; }
.loyalty-balance { font-size: 18px; margin: 0 0 3px; }
.loyalty-subtext { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* ---------- Free shipping progress bar (cart) ---------- */
.free-shipping-bar { margin: 0 0 18px; }
.fs-bar-text {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 6px;
}
.fs-bar-text strong { color: var(--color-text); }
.fs-bar-track {
  background: var(--color-bg-soft);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.fs-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width .5s ease;
}
.fs-bar-success {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  border-radius: 6px;
  padding: 7px 12px;
  text-align: center;
}

/* ---------- Error pages ---------- */
.error-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.error-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  padding: 40px 28px;
  max-width: 440px;
}
.error-code { font-size: 54px; margin: 0; font-weight: 800; color: var(--color-primary); }
.error-box .btn { margin-top: 16px; }

/* ---------- Social proof strip (homepage) ---------- */
.social-proof-strip {
  background: var(--color-primary);
  color: #ffffff;
  padding: 32px 0;
}
.sp-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.sp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 40px;
  border-right: 1px solid rgba(255,255,255,0.25);
  min-width: 140px;
}
.sp-stat:last-child { border-right: none; }
.sp-stat strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}
.sp-stat span {
  font-size: 13px;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .sp-stat { padding: 8px 16px; min-width: 80px; }
  .sp-stat strong { font-size: 18px; }
}

/* ---------- Product page trust signals ---------- */
.stock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sold-badge {
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
  background: rgba(231,76,60,0.08);
  padding: 3px 10px;
  border-radius: 20px;
}
.viewer-count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 6px 0 0;
}
.viewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  flex-shrink: 0;
  animation: viewer-pulse 2s infinite;
}
@keyframes viewer-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}
/* Sale countdown timer */
.sale-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 8px 0;
}
.countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: #664d03;
  white-space: nowrap;
}
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #664d03;
  color: #fff;
  border-radius: 5px;
  padding: 4px 8px;
  min-width: 38px;
  line-height: 1.1;
}
.countdown-unit span { font-size: 18px; font-weight: 700; }
.countdown-unit small { font-size: 10px; opacity: .8; }
.countdown-sep { font-weight: 700; color: #664d03; font-size: 18px; }
.countdown-expired { font-size: 13px; color: var(--color-text-muted); }

/* Quantity discounts */
.qty-discounts {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
}
.qty-discounts-title {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  margin: 0 0 8px;
}
.qty-discount-rows { display: flex; flex-direction: column; gap: 4px; }
.qty-discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.qty-discount-qty { color: var(--color-text-muted); min-width: 60px; }
.qty-discount-price { font-weight: 700; color: var(--color-text); }
.qty-discount-save {
  background: #166534;
  color: #fff;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
}
.qty-discount-row.tier-active {
  background: #bbf7d0;
  border-radius: 6px;
  padding: 3px 6px;
  font-weight: 700;
}
.qty-discount-row.tier-active .qty-discount-qty { color: #14532d; }
/* Quantity row: input + live subtotal side by side */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qty-row .qty-input {
  width: 90px;
  flex-shrink: 0;
}
.live-subtotal {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

/* Description language tabs */
.desc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}
.desc-tab {
  padding: 6px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.desc-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.desc-tab:hover { color: var(--color-primary); }

.delivery-estimate {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
}
.delivery-estimate strong { color: var(--color-text); }
.cod-guarantee {
  font-size: 13px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 6px 0 0;
  display: inline-block;
}

/* ---------- COD badge on product cards ---------- */
.card-cod-badge {
  font-size: 11px;
  color: #166534;
  margin: 4px 0 0;
  font-weight: 600;
}
.sold-badge {
  font-size: 11px;
  color: #b45309;
  margin: 3px 0 0;
  font-weight: 600;
}
.sold-badge-detail {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  vertical-align: middle;
}

/* ---------- Free-shipping header bar ---------- */
.fs-header-bar {
  background: #ecfdf5;
  border-bottom: 1px solid #bbf7d0;
  padding: 6px 0;
  font-size: 12px;
  text-align: center;
}
.fs-header-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fs-hbar-text { color: #065f46; }
.fs-hbar-done { color: #065f46; font-weight: 600; }
.fs-hbar-track {
  width: 140px;
  height: 6px;
  background: #d1fae5;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.fs-hbar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ---------- Contact Us page ---------- */
.page-subtitle { color: var(--color-text-muted); margin: -8px 0 24px; font-size: 15px; }
.field-group { display: flex; flex-direction: column; gap: 4px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 12px; color: var(--color-text-muted); margin: 0; }
.req { color: #dc2626; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 12px 16px; border-radius: 8px; }

/* Contact hero */
.contact-hero {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, #3b49d1 0%, #6c4dc4 50%, #9b59b6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 40, 120, 0.35);
}
.contact-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 20px;
}
.contact-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.contact-hero-content p {
  font-size: 1rem;
  opacity: .9;
  margin: 0;
}
@media (max-width: 600px) {
  .contact-hero { height: 200px; }
  .contact-hero-content h1 { font-size: 2rem; }
}

/* Contact page section */
.contact-page-section { padding: 48px 0 64px; background: #f4f5f7; }
.contact-alert { margin-bottom: 28px; }
.contact-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 820px) {
  .contact-page-layout { grid-template-columns: 1.1fr 1fr; gap: 40px; }
}

/* Form card */
.contact-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 4px;
}
.contact-card-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}
.cpf-group { margin-bottom: 16px; }
.cpf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .cpf-row-2 { grid-template-columns: 1fr; } }
.cpf-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-dark);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.cpf-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59,73,209,0.1); }
.cpf-input::placeholder { color: #9ca3af; }
.cpf-textarea { resize: vertical; min-height: 120px; }
.cpf-submit {
  width: 100%;
  background: #3b49d1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  margin-top: 4px;
}
.cpf-submit:hover { background: #2d3ab8; }

/* Info panel */
.contact-info-panel { }
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 500px) { .contact-cards-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.cic-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef0fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #3b49d1;
}
.cic-icon svg { width: 22px; height: 22px; }
.cic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 6px;
}
.cic-value-sub {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}
.cic-value {
  font-size: 13px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}
.cic-value a { color: #3b49d1; text-decoration: none; }
.cic-value a:hover { text-decoration: underline; }

/* Follow Us section */
.contact-social-section {
  margin-top: 0;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-social-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 4px;
}
.contact-social-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}
.contact-social-btns { display: flex; flex-direction: column; gap: 10px; }
.csb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity .15s, transform .1s;
}
.csb:hover { opacity: .88; transform: translateX(2px); }
.csb-facebook    { background: #1877f2; }
.csb-instagram   { background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.csb-tiktok      { background: #010101; }
.csb-youtube     { background: #ff0000; }
.csb-whatsapp    { background: #25d366; }
.csb-whatsapp-group { background: #128c7e; }
.csb-wa-channel     { background: #075e54; }

/* ---------- Home bottom promo banner ---------- */
.home-bottom-banner {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 40px 0 0;
}
.home-bottom-banner a {
  display: block;
  line-height: 0;
}
.home-bottom-banner img {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.hbb-caption {
  position: absolute;
  bottom: 28px;
  left: 40px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hbb-caption strong { display:block; font-size: 2rem; font-weight: 800; line-height: 1.2; }
.hbb-caption span   { font-size: 1.1rem; opacity: .9; }
.home-bottom-banner { position: relative; }

/* ---------- Sticky mobile product action bar ---------- */
.sticky-cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -3px 12px rgba(0,0,0,.10);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 4px;
  gap: 4px;
}
.sticky-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sticky-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  border-radius: 8px;
  transition: background .12s, color .12s;
  line-height: 1.2;
  min-width: 52px;
}
.sticky-nav-item svg { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.sticky-nav-item:hover,
.sticky-nav-item:active { background: var(--color-bg-soft); color: var(--color-primary); }
.sticky-nav-item.in-compare { color: var(--color-primary); }
.sticky-atc-btn {
  flex: 1;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
}
@media (min-width: 768px) {
  .sticky-cart-bar { display: none !important; }
}
@media (max-width: 767px) {
  .card-heart-form { display: none !important; }
  .product-card .compare-btn { display: none !important; }
  .card-cart-form { top: 8px; }
  /* On mobile, hide product name tags in compare bar (too small) — just show the button */
  .compare-bar-items { display: none; }
  .compare-go-btn { flex: 1; text-align: center; }
}

/* ---------- Newsletter strip ---------- */
.newsletter-strip {
  background: #1e293b;
  color: #ffffff;
  padding: 28px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.newsletter-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.newsletter-text strong {
  font-size: 18px;
  font-weight: 800;
}
.newsletter-text span {
  font-size: 13px;
  opacity: 0.75;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter-input {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  min-width: 240px;
  outline: none;
  color: var(--color-text);
}
.newsletter-msg {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
}
.newsletter-msg-success { background: #dcfce7; color: #166534; }
.newsletter-msg-info    { background: #dbeafe; color: #1e40af; }
.newsletter-msg-error   { background: #fee2e2; color: #991b1b; }
@media (max-width: 640px) {
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-input { min-width: 0; width: 100%; }
  .newsletter-form  { width: 100%; }
  .newsletter-form .btn { width: 100%; }
}

/* ---- Lightbox overlay ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  pointer-events: none;
  background: #fff;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 50%;
  z-index: 10000;
}

/* ============================================================
   MOBILE — comprehensive responsive fixes (≤ 759px)
   ============================================================ */

/* Filter toggle button (products page, mobile only) */
.mob-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 9px 14px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
}
.mob-filter-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

@media (max-width: 759px) {

  /* --- General spacing --- */
  .section { padding: 16px 0; }
  .section-title { font-size: 18px; margin-bottom: 12px; }
  .page-title { font-size: 20px; }
  .announcement-bar { font-size: 12px; padding: 5px 8px; }

  /* --- Listing page: collapsible filter --- */
  .mob-filter-toggle { display: flex; }
  .sidebar-filter-form { display: none; }
  .sidebar-filter-form.mob-open { display: block; }
  .price-range-row { flex-direction: column; }
  .price-range-row > span { display: none; }
  .listing-sidebar { overflow: hidden; }

  /* Listing title: sort stacks below heading */
  .listing-title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .listing-title-row .page-title { margin: 0; }
  .sort-form { width: 100%; }
  .sort-select { width: 100%; }

  /* --- Product cards: compact --- */
  .product-grid { gap: 8px; }
  .product-card-name { font-size: 13px; min-height: unset; }
  .product-card-price { font-size: 15px; }
  .product-card-body { padding: 8px 8px 10px; }

  /* --- Product detail --- */
  .gallery-thumb { width: 52px; height: 52px; }
  .breadcrumb { font-size: 12px; flex-wrap: wrap; line-height: 1.8; }

  /* --- Cart --- */
  .cart-item { gap: 8px; }
  .qty-input { width: 56px; }

  /* --- Pagination --- */
  .pagination { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .pagination a, .page-current { padding: 5px 9px; font-size: 13px; }

  /* --- Feature cards: tighter --- */
  .feature-cards { gap: 10px; }
  .feature-card { gap: 8px; padding: 10px; }
  .feature-icon { font-size: 18px; }
  .feature-card strong { font-size: 13px; }
  .feature-card p { font-size: 11px; }

  /* --- Footer: compact --- */
  .footer-grid { padding: 20px 12px; gap: 16px; }
  .footer-col h3 { font-size: 14px; }
  .footer-col li, .footer-col a { font-size: 13px; }

  /* --- Contact page --- */
  .contact-page-layout { gap: 16px; }
}

@media (min-width: 860px) {
  .mob-filter-toggle { display: none !important; }
  .sidebar-filter-form { display: block !important; }
}

/* ---- Back-in-stock notify form ---- */
.notify-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.notify-input {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
}
.notify-success {
  color: var(--color-success);
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION BAR (≤ 767px, hidden on desktop)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -3px 14px rgba(0,0,0,.10);
    z-index: 140;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
    padding: 6px 2px 4px;
  }
  .mbn-item.mbn-active { color: var(--color-primary); }
  .mbn-item svg { width: 23px; height: 23px; flex-shrink: 0; }
  .mbn-badge {
    position: absolute;
    top: 5px;
    left: calc(50% + 6px);
    background: var(--color-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 2px solid #fff;
  }
  /* Push page content above the nav bar */
  body { padding-bottom: 62px; }
  /* WhatsApp float: lift above mobile nav */
  .whatsapp-float { bottom: 72px !important; }
}
