/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --primary:         #FFC13B;
  --primary-dark:    #e6a800;
  --primary-light:   #fff3cc;
  --secondary:       #1E3D59;
  --secondary-dark:  #162d44;
  --secondary-muted: rgba(30,61,89,.07);
  --surface:         #fafafa;
  --text:            #1a1a1a;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}
a { text-decoration: none; }

/* ── Bootstrap overrides ────────────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--primary);
  border-color:     var(--primary);
  color:            var(--secondary);
  font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color:     var(--primary-dark);
  color:            var(--secondary);
}
.btn-outline-primary {
  border-color: var(--primary);
  color:        var(--secondary);
  font-weight:  700;
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color:     var(--primary);
  color:            var(--secondary);
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -.5px;
  color: var(--primary) !important;
}
.navbar-brand span { color: var(--secondary); }
.nav-link {
  color: #444 !important;
  font-weight: 600;
  font-size: .88rem;
  padding: .45rem .75rem !important;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.nav-link:hover { color: var(--secondary) !important; background: var(--secondary-muted); }
.nav-link.active { color: var(--secondary) !important; font-weight: 800; }

/* ── Category dropdown ───────────────────────────────────────────────────────── */
.cat-dropdown {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(30,61,89,.13);
  padding: .5rem;
  min-width: 200px;
}
.cat-dropdown .dropdown-item {
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: #444;
  padding: .45rem .85rem;
  transition: background .15s, color .15s;
}
.cat-dropdown .dropdown-item:hover {
  background: var(--secondary-muted);
  color: var(--secondary);
}
.cat-dropdown .dropdown-divider { opacity: .1; }
.nav-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  color: #444;
  transition: background .18s, color .18s;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0;
}
.nav-icon-btn:hover { background: var(--secondary-muted); color: var(--secondary); }
.nav-icon-btn:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
/* hide Bootstrap caret on user button */
.user-nav-btn::after { display: none !important; }
.user-dropdown {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(30,61,89,.14);
  padding: .4rem;
  min-width: 200px !important;
}
.user-dropdown .dropdown-item {
  border-radius: 7px;
  font-size: .86rem;
  font-weight: 600;
  color: #444;
  padding: .45rem .85rem;
  transition: background .14s, color .14s;
}
.user-dropdown .dropdown-item:hover { background: var(--secondary-muted); color: var(--secondary); }
.user-dropdown .dropdown-item.text-danger:hover { background: rgba(239,68,68,.08); color: #dc2626; }
.user-dropdown .dropdown-divider { opacity: .1; margin: .25rem 0; }
.cart-badge {
  position: absolute;
  top: -4px; right: -5px;
  background: var(--primary);
  color: var(--secondary);
  font-size: .6rem; font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ── Hero Grid ──────────────────────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 520px;
  gap: 4px;
  border-radius: 16px;
  overflow: hidden;
}
.hero-main {
  position: relative;
  overflow: hidden;
}
.hero-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .4s ease, transform .45s;
}
.hero-main:hover img { transform: scale(1.04); }
.hero-main-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  background: linear-gradient(
    0deg,
    rgba(30,61,89,.87) 0%,
    rgba(30,61,89,.25) 55%,
    transparent 100%
  );
}
.hero-main-caption h2 {
  font-size: 2rem; font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.hero-main-caption p {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}
.hero-side-item {
  position: relative;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
}
.hero-side-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .4s ease, transform .45s;
  display: block;
}
.hero-side-item:hover img { transform: scale(1.06); }
.hero-side-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  background: linear-gradient(0deg, rgba(30,61,89,.87) 0%, rgba(30,61,89,.25) 55%, transparent 100%);
}
.hero-side-caption h2 {
  font-size: 1.15rem; font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .4rem;
}
.hero-side-caption p {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  margin-bottom: .75rem;
}

/* ── Section eyebrow + title ────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  background: transparent;
  color: var(--secondary);
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .25rem 0;
  border-radius: 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: .4rem;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: -.3px;
  margin-bottom: 0;
}

/* ── Category Quick Navigation ──────────────────────────────────────────────── */
.cat-nav-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  display: block;
  text-decoration: none;
}
.cat-nav-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-nav-card:hover img { transform: scale(1.07); }
.cat-nav-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(30,61,89,.92) 0%, rgba(30,61,89,0) 100%);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 1.8rem .5rem .6rem;
  text-align: center;
}
.cat-no-img {
  background: var(--secondary);
  width: 100%; height: 100%;
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Product Card ───────────────────────────────────────────────────────────── */
.product-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 14px 36px rgba(30,61,89,.13);
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
}
.product-img-wrap.ar-portrait { aspect-ratio: 3 / 4; }
.product-img-wrap.ar-square   { aspect-ratio: 1 / 1; }
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
  display: block;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-img-actions {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.product-card:hover .product-img-actions {
  opacity: 1;
  transform: translateY(0);
}
.add-cart-btn,
.buy-now-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  text-decoration: none;
  transition: background .18s, color .18s, transform .15s;
}
.add-cart-btn {
  background: rgba(255,255,255,.93);
  color: var(--secondary);
}
.add-cart-btn:hover { background: #fff; color: var(--secondary); }
.buy-now-btn {
  background: var(--primary);
  color: var(--secondary);
}
.buy-now-btn:hover { background: var(--secondary); color: var(--primary); }
.add-cart-btn.cart-added {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.15);
}
.discount-chip {
  position: absolute;
  top: 9px; left: 9px;
  background: var(--primary);
  color: var(--secondary);
  font-weight: 800;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 2;
}
.product-body {
  padding: .85rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.product-name {
  font-weight: 700;
  font-size: .875rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.45em;
  margin-bottom: .5rem;
}
.product-price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary);
}
.product-more {
  display: inline-flex;
  align-items: center;
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  opacity: .6;
  transition: opacity .15s, color .15s;
}
.product-more:hover { opacity: 1; color: var(--primary); }
.product-old-price {
  font-size: .8rem;
  color: #aaa;
  text-decoration: line-through;
  margin-left: .4rem;
}

/* ── Promo Banner ───────────────────────────────────────────────────────────── */
.promo-banner {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}
.promo-banner > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.promo-overlay {
  position: relative;
  z-index: 1;
  min-height: 300px;
  background: linear-gradient(
    110deg,
    rgba(30,61,89,.92) 0%,
    rgba(30,61,89,.65) 55%,
    rgba(30,61,89,.12) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 5rem;
}
.promo-overlay h2 {
  font-size: 2.4rem; font-weight: 600; color: #fff;
  line-height: 1.15;
}
.promo-overlay p { color: rgba(255,255,255,.9); max-width: 440px; }

/* ── Testimonials ───────────────────────────────────────────────────────────── */
.testi-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testi-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.testi-slider::-webkit-scrollbar { display: none; }
.testi-slide {
  flex: 0 0 calc(33.333% - 0.84rem);
  min-width: 260px;
}
.testi-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--secondary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  padding: 0;
  transition: background .18s, transform .15s;
}
.testi-arrow:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.08);
}
@media (max-width: 768px) {
  .testi-slide { flex: 0 0 calc(85% - 0.5rem); min-width: 240px; }
  .testi-arrow { width: 36px; height: 36px; font-size: .85rem; }
}
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem;
  border: 1px solid rgba(0,0,0,.06);
  height: 100%;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: 0 8px 24px rgba(30,61,89,.09); }
.star-fill { color: var(--primary); font-size: .95rem; }
.avatar-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Subscribe ──────────────────────────────────────────────────────────────── */
.subscribe-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.07);
  padding: 3rem 3.5rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,.75);
}
footer .footer-brand {
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -.5px;
  color: var(--primary);
}
footer .footer-heading {
  color: #fff;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
footer a {
  color: rgba(255,255,255,.7);
  transition: color .18s;
  display: inline-block;
}
footer a:hover { color: var(--primary); }
footer hr { border-color: rgba(255,255,255,.12); }

/* ── Floating buttons ───────────────────────────────────────────────────────── */
.floating-btns {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 1050;
}
.fab-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  font-size: 1.15rem;
}
.fab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.fab-fb {
  background: #0084ff;
}
.fab-top {
  background: var(--primary);
  color: var(--secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .2s, box-shadow .2s;
}
.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Product Slider ─────────────────────────────────────────────────────────── */
.prod-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.prod-slider::-webkit-scrollbar { display: none; }
.prod-slide {
  flex: 0 0 calc(20% - 0.8rem);
  min-width: 155px;
}
.prod-arrow {
  width: 28px; height: 28px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  .prod-slide { flex: 0 0 calc(50% - 0.5rem); min-width: 140px; }
}

/* ── Misc ───────────────────────────────────────────────────────────────────── */
.section-divider { border: none; border-top: 2px solid rgba(30,61,89,.06); margin: 0; }

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-main { height: 280px; }
  .hero-side { flex-direction: row; }
  .hero-side-item { height: 160px; }
  .hero-main-caption h2 { font-size: 1.4rem; }
  .hero-main-caption p  { display: none; }
  .promo-overlay { padding: 2rem 1.5rem; min-height: 220px; }
  .promo-overlay h2 { font-size: 1.5rem; }
  .subscribe-box { padding: 1.75rem 1.25rem; }
}

/* ── Product Detail ─────────────────────────────────────────────────────────── */
.pd-main-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
}
.pd-main-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.pd-main-wrap:hover img { transform: scale(1.08); }
.pd-zoom-hint {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.pd-main-wrap:hover .pd-zoom-hint { opacity: 1; }

.pd-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pd-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .15s;
  background: #f7f8fa;
}
.pd-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.pd-thumb:hover img { transform: scale(1.07); }
.pd-thumb.active,
.pd-thumb:hover { border-color: var(--primary); }

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.stock-badge.in  { background: rgba(34,197,94,.12);  color: #16a34a; }
.stock-badge.low { background: rgba(234,179,8,.12);  color: #a16207; }
.stock-badge.out { background: rgba(239,68,68,.12);  color: #dc2626; }

.qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
  width: 120px;
}
.qty-wrap button {
  width: 38px; height: 38px;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--secondary);
}
.qty-wrap button:hover { background: rgba(0,0,0,.05); }
.qty-wrap input {
  flex: 1;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  -moz-appearance: textfield;
  outline: none;
}
.qty-wrap input::-webkit-outer-spin-button,
.qty-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pd-cart-btn, .pd-buy-btn {
  padding: .7rem 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  font-size: .95rem;
}
.pd-cart-btn { background: var(--primary); border-color: var(--primary); color: var(--secondary); }
.pd-cart-btn:hover { background: #e6ae2e; border-color: #e6ae2e; color: var(--secondary); }
.pd-cart-btn.cart-added { background: #22c55e; border-color: #22c55e; color: #fff; }
.pd-buy-btn { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.pd-buy-btn:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }

.pd-desc { font-size: .9rem; line-height: 1.7; color: #444; }
.pd-desc img { max-width: 100%; height: auto; }

/* ── Search Overlay ─────────────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  top: 57px;
  left: 0; right: 0;
  z-index: 1040;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: .9rem 0;
  box-shadow: 0 8px 28px rgba(30,61,89,.1);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s ease, visibility 0s .22s;
}
.search-overlay.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s ease, visibility 0s 0s;
}
.search-form { width: 100%; }
.search-input-wrap {
  display: flex;
  align-items: center;
  background: #f4f6f9;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0 .5rem;
  gap: .4rem;
  transition: border-color .15s;
}
.search-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
}
.search-icon-inside {
  color: #888;
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0 .3rem;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  height: 48px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
}
.search-input::placeholder { color: #aaa; }
.search-submit-btn {
  padding: .38rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .18s;
}
.search-submit-btn:hover { background: var(--secondary-dark); }
.search-close-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #888;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.search-close-btn:hover { background: rgba(0,0,0,.07); color: var(--secondary); }

/* ── Cart Offcanvas Items ────────────────────────────────────────────────────── */
.cart-oc-item {
  display: flex;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.cart-oc-item:last-child { border-bottom: none; }
.cart-oc-img {
  width: 72px; height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: #f3f3f3;
  text-decoration: none;
}
.cart-oc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .22s;
}
.cart-oc-img:hover img { transform: scale(1.07); }
.cart-oc-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 1.5rem;
}
.cart-oc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cart-oc-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color .15s;
}
.cart-oc-name:hover { color: var(--secondary); }
.cart-oc-price {
  font-weight: 800;
  font-size: .9rem;
  color: var(--secondary);
}
.cart-oc-controls {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .1rem;
}
.cart-qty-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1.5px solid rgba(30,61,89,.18);
  background: #fff;
  color: var(--secondary);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.cart-qty-btn:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.cart-qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: .88rem;
  color: var(--text);
}
.cart-remove-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #bbb;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem;
  margin-left: auto;
  transition: color .15s, background .15s;
}
.cart-remove-btn:hover { color: #dc2626; background: rgba(220,38,38,.08); }

.rating-form-card {
  background: rgba(30,61,89,.04);
  border-radius: 12px;
  padding: 1.5rem;
}
.star-rate {
  display: inline-flex;
  gap: 4px;
  cursor: pointer;
}
.star-rate .sr {
  font-size: 1.8rem;
  color: #ddd;
  transition: color .12s;
  line-height: 1;
  user-select: none;
}
.star-rate .sr.hov { color: #FFC13B; }
.star-rate .sr.sel { color: #FFC13B; }

/* Lightbox nav arrows */
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(0,0,0,.7); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

@media (max-width: 576px) {
  .pd-thumb { width: 56px; height: 56px; }
  .pd-cart-btn, .pd-buy-btn { font-size: .85rem; padding: .6rem 1rem; }
}

/* ── Product card rating row ────────────────────────────────────────────────── */
.product-rating-row {
  display: flex; align-items: center; gap: 2px;
  margin: 3px 0 5px;
  font-size: .65rem;
  color: var(--primary);
}
.product-rating-row .bi-star { color: #ddd; }
.product-rating-val {
  font-size: .72rem; font-weight: 700;
  color: #888; margin-left: 3px;
}
.product-out-chip {
  position: absolute; top: 8px; right: 8px;
  background: #dc3545; color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  z-index: 2;
}

/* ── Auth pages (login / register) ─────────────────────────────────────────── */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(30,61,89,.11);
}
.auth-logo {
  font-size: 1.6rem; font-weight: 900;
  color: var(--secondary); text-align: center;
  margin-bottom: .25rem; letter-spacing: -.5px;
}
.auth-logo span { color: var(--primary); }
.auth-title {
  text-align: center; font-weight: 800;
  color: var(--secondary); margin-bottom: 1.6rem;
  font-size: 1rem;
}
.auth-label {
  font-size: .82rem; font-weight: 700;
  color: var(--secondary); margin-bottom: .3rem;
}
.auth-input {
  font-size: .9rem; font-weight: 600;
  border: 1.5px solid rgba(30,61,89,.15);
  border-radius: 8px;
}
.auth-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30,61,89,.08);
  outline: none;
}
.auth-icon {
  background: #f5f7fa;
  border: 1.5px solid rgba(30,61,89,.12);
  color: var(--secondary);
}
.auth-btn {
  background: var(--secondary); color: #fff;
  font-weight: 700; border-radius: 8px;
  padding: .7rem; border: none;
  transition: background .18s; width: 100%;
}
.auth-btn:hover { background: var(--secondary-dark); color: #fff; }
.auth-link {
  font-size: .85rem; font-weight: 600;
  color: var(--secondary);
}
.auth-link:hover { color: var(--primary-dark); }

/* ── User nav dropdown ──────────────────────────────────────────────────────── */
.user-nav-btn {
  border: none; background: none;
  color: inherit; padding: 0;
}
.user-nav-btn::after { display: none; }
.user-dropdown {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(30,61,89,.13);
  border: none; min-width: 180px;
}
.user-dropdown .dropdown-item {
  font-weight: 600; border-radius: 6px;
  margin: 1px 4px; font-size: .88rem;
}
.user-dropdown .dropdown-item:hover { background: var(--secondary-muted); }
.user-dropdown .dropdown-divider { margin: 4px 8px; }

/* ── Checkout page ──────────────────────────────────────────────────────────── */
.checkout-form-card,
.checkout-summary-card {
  background: #fff; border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(30,61,89,.07);
}
.checkout-section-title {
  font-weight: 800; font-size: .9rem;
  color: var(--secondary); margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid rgba(30,61,89,.07);
}
.checkout-item-img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 8px; background: #f0f0f0;
}
.checkout-item-name {
  font-size: .88rem; font-weight: 700; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.checkout-total-row {
  font-weight: 800; font-size: 1rem;
  color: var(--secondary); padding-top: .75rem;
  border-top: 2px solid rgba(30,61,89,.08);
}
.checkout-btn {
  background: var(--secondary); color: #fff;
  font-weight: 800; border: none;
  border-radius: 10px; padding: .8rem;
  transition: background .18s; width: 100%;
  font-size: 1rem;
}
.checkout-btn:hover { background: var(--secondary-dark); color: #fff; }
.checkout-success-icon {
  font-size: 4rem; color: #198754; margin-bottom: 1rem;
}
/* ── Detect location button ─────────────────────────────────────────────────── */
.detect-loc-btn {
  font-size: .75rem; font-weight: 700;
  padding: .28rem .75rem;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: rgba(255,193,59,.1);
  color: var(--secondary);
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}
.detect-loc-btn:hover:not(:disabled) {
  background: var(--primary); color: var(--secondary);
}
.detect-loc-btn:disabled { opacity: .65; cursor: not-allowed; }
.detect-loc-status {
  font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 6px;
  margin-bottom: .5rem;
}
.detect-loc-ok  { background: rgba(34,197,94,.1);  color: #15803d; }
.detect-loc-err { background: rgba(239,68,68,.09); color: #b91c1c; }

/* ── Contact page ───────────────────────────────────────────────────────────── */
.contact-hero {
  padding: 7rem 0 3.5rem;
  background: linear-gradient(135deg, rgba(30,61,89,.04) 0%, rgba(255,193,59,.07) 100%);
  border-bottom: 2px solid rgba(30,61,89,.05);
}
.contact-hero-label {
  display: inline-block;
  font-weight: 800; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--secondary); border-bottom: 2px solid var(--primary);
  padding-bottom: 2px; margin-bottom: .75rem;
}
.contact-hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900; color: var(--secondary);
  letter-spacing: -.5px; line-height: 1.1;
  margin-bottom: 0;
}
.contact-hero-title span { color: var(--primary); }
.contact-hero-sub {
  color: #666; font-size: .95rem; line-height: 1.7;
  max-width: 400px;
}

/* Contact info card */
.contact-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 18px rgba(30,61,89,.07);
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.contact-info-card:hover {
  box-shadow: 0 8px 28px rgba(30,61,89,.12);
  transform: translateY(-3px);
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,193,59,.15);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .85rem;
}
.contact-info-label {
  font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #999; margin-bottom: .3rem;
}
.contact-info-value {
  font-weight: 700; font-size: .9rem;
  color: var(--secondary); line-height: 1.5;
  text-decoration: none; display: block;
}
a.contact-info-value:hover { color: var(--primary); }

/* Section title */
.contact-section-title {
  font-weight: 900; font-size: 1.1rem;
  color: var(--secondary); margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid rgba(30,61,89,.07);
}

/* Branch search */
.contact-search-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30,61,89,.07);
}
.contact-search-wrap .input-group-text { border-radius: 0; }
.contact-search-wrap .form-control:focus { box-shadow: none; }

/* Branch card */
.branch-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  border: 1.5px solid rgba(30,61,89,.07);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.branch-card:hover,
.branch-card.active {
  border-color: var(--primary);
  box-shadow: 0 6px 22px rgba(30,61,89,.1);
  transform: translateY(-2px);
}
.branch-name {
  font-weight: 800; font-size: .9rem;
  color: var(--secondary); margin: 0;
}
.branch-addr {
  font-size: .82rem; color: #666;
  line-height: 1.5; margin: .4rem 0 .6rem;
}
.branch-meta {
  font-size: .78rem; color: #888; font-weight: 600;
  text-decoration: none;
}
a.branch-tel:hover { color: var(--secondary); }
.branch-badge {
  font-size: .65rem; font-weight: 800;
  padding: 2px 9px; border-radius: 20px;
  letter-spacing: .04em; white-space: nowrap;
}
.branch-badge.open   { background: rgba(34,197,94,.13); color: #16a34a; }
.branch-badge.closed { background: rgba(239,68,68,.12); color: #dc2626; }

/* Map embed */
.contact-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  height: 460px;
  box-shadow: 0 4px 24px rgba(30,61,89,.1);
  background: #eee;
}
@media (max-width: 991px) {
  .contact-map-wrap { height: 300px; }
}

/* Contact form card */
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  box-shadow: 0 6px 28px rgba(30,61,89,.08);
}

/* CTA section */
.contact-cta-section {
  background: linear-gradient(135deg, rgba(30,61,89,.05) 0%, rgba(255,193,59,.09) 100%);
  border-top: 2px solid rgba(30,61,89,.05);
}
.contact-cta-btn-primary {
  background: var(--secondary); color: #fff;
  font-weight: 700; border: none; border-radius: 10px;
  transition: background .18s;
}
.contact-cta-btn-primary:hover { background: var(--secondary-dark); color: #fff; }
.contact-cta-btn-outline {
  background: #fff; color: var(--secondary);
  font-weight: 700; border: 2px solid rgba(30,61,89,.18);
  border-radius: 10px; transition: border-color .18s, background .18s;
}
.contact-cta-btn-outline:hover {
  border-color: var(--secondary);
  background: rgba(30,61,89,.04);
  color: var(--secondary);
}

/* ── Policy / Info pages (faqs, terms, delivery, returns) ───────────────────── */
.page-hero {
  padding: 7rem 0 3rem;
  background: linear-gradient(135deg, rgba(30,61,89,.04) 0%, rgba(255,193,59,.07) 100%);
  border-bottom: 2px solid rgba(30,61,89,.05);
}
.page-hero-label {
  display: inline-block;
  font-weight: 800; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--secondary); border-bottom: 2px solid var(--primary);
  padding-bottom: 2px; margin-bottom: .75rem;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: var(--secondary);
  letter-spacing: -.5px; line-height: 1.1;
  margin-bottom: .5rem;
}
.page-hero-title span { color: var(--primary); }
.page-hero-sub { color: #666; font-size: .95rem; line-height: 1.7; max-width: 500px; }

/* Policy sidebar */
.policy-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(30,61,89,.07);
}
.policy-sidebar-title {
  font-weight: 800; font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: #999; margin-bottom: .75rem;
}
.policy-sidebar-link {
  display: flex; align-items: center;
  padding: .55rem .75rem;
  border-radius: 8px;
  font-size: .88rem; font-weight: 600;
  color: #555; text-decoration: none;
  transition: background .15s, color .15s;
}
.policy-sidebar-link:hover { background: var(--secondary-muted); color: var(--secondary); }
.policy-sidebar-link.active {
  background: var(--secondary-muted);
  color: var(--secondary); font-weight: 800;
}
.policy-cta {
  background: rgba(255,193,59,.1);
  border-radius: 10px;
  padding: 1rem;
}
.policy-cta-label {
  font-size: .75rem; font-weight: 700;
  color: #888; margin-bottom: .5rem;
}
.policy-cta-btn {
  display: flex; align-items: center;
  background: var(--secondary); color: #fff;
  font-weight: 700; font-size: .85rem;
  padding: .55rem .9rem; border-radius: 8px;
  text-decoration: none; margin-bottom: .6rem;
  transition: background .18s;
}
.policy-cta-btn:hover { background: var(--secondary-dark); color: #fff; }
.policy-cta-link {
  font-size: .8rem; font-weight: 700;
  color: var(--secondary); text-decoration: none;
}
.policy-cta-link:hover { color: var(--primary); }

/* Policy rich content */
.policy-content { font-size: .92rem; line-height: 1.85; color: #444; }
.policy-content h3 {
  font-weight: 800; font-size: 1rem;
  color: var(--secondary); margin-top: 2rem; margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1.5px solid rgba(30,61,89,.07);
}
.policy-content h3:first-child { margin-top: 0; }
.policy-content ul { padding-left: 1.3rem; }
.policy-content ul li { margin-bottom: .4rem; }
.policy-content a { color: var(--secondary); font-weight: 700; }
.policy-content a:hover { color: var(--primary); }

/* FAQ accordion */
.faq-accordion { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  border: 1.5px solid rgba(30,61,89,.08) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.faq-btn {
  font-weight: 700; font-size: .9rem;
  color: var(--secondary) !important;
  background: #fff !important;
  padding: 1rem 1.25rem;
  gap: .75rem;
  box-shadow: none !important;
}
.faq-btn:not(.collapsed) { background: var(--secondary-muted) !important; }
.faq-btn::after { filter: none; }
.faq-num {
  font-size: .72rem; font-weight: 900;
  color: var(--primary); min-width: 2rem;
  opacity: .8;
}
.faq-body {
  font-size: .88rem; line-height: 1.75;
  color: #555; padding: 1rem 1.25rem 1.25rem;
  background: #fff;
}

/* Delivery info cards */
.delivery-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 3px 14px rgba(30,61,89,.07);
  display: flex; align-items: center; gap: 1rem;
  height: 100%;
}
.delivery-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,193,59,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--secondary);
}
.delivery-info-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #999; margin-bottom: .2rem;
}
.delivery-info-val { font-weight: 800; color: var(--secondary); font-size: .92rem; }

/* Return steps */
.return-steps { display: flex; flex-direction: column; gap: 0; }
.return-step {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1.5px solid rgba(30,61,89,.06);
}
.return-step:last-child { border-bottom: none; }
.return-step-num {
  font-size: 1.7rem; font-weight: 900;
  color: var(--primary); opacity: .6;
  min-width: 2.5rem; line-height: 1;
  padding-top: .1rem;
}
.return-step-title { font-weight: 800; font-size: .92rem; color: var(--secondary); margin-bottom: .2rem; }
.return-step-desc { font-size: .85rem; color: #666; line-height: 1.6; }

/* 404 page */
.notfound-num {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 900; color: var(--secondary);
  letter-spacing: -.05em; opacity: .08;
  line-height: 1; margin-bottom: -.5rem;
}
.notfound-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900; color: var(--secondary);
  margin-bottom: .75rem;
}
.notfound-sub {
  color: #888; font-size: .95rem;
  max-width: 420px; margin: 0 auto 1rem;
}
.notfound-btn-primary {
  background: var(--secondary); color: #fff;
  font-weight: 700; border: none; border-radius: 10px;
  transition: background .18s;
}
.notfound-btn-primary:hover { background: var(--secondary-dark); color: #fff; }
.notfound-btn-outline {
  background: #fff; color: var(--secondary);
  font-weight: 700; border: 2px solid rgba(30,61,89,.18);
  border-radius: 10px; transition: border-color .18s;
}
.notfound-btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.notfound-pill {
  background: rgba(30,61,89,.07);
  color: var(--secondary);
  font-weight: 700; font-size: .8rem;
  padding: .4rem .9rem;
  transition: background .15s, color .15s;
}
.notfound-pill:hover { background: var(--secondary); color: #fff; }
