/* =========================================================
   Storefront styles
   Colors come from admin settings via --primary and --header
   ========================================================= */
:root {
  --primary: #F07B2A;
  --header: #123C3A;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, #fff);
  --primary-dark: color-mix(in srgb, var(--primary) 82%, #000);
  --bg: #F8F7F4;
  --card: #fff;
  --border: #ECEAE6;
  --text: #1E2430;
  --muted: #6B7280;
  --green: #16A34A;
  --lime: #C6F04D;
  --red: #E11D48;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(20, 20, 20, .06);
  --font: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.mobile-only { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: 14px; line-height: 1.2; transition: .18s; white-space: nowrap; background: #eee; color: var(--text); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--header); color: #fff; }
.btn-dark:hover { filter: brightness(1.2); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-call { background: #1E3A8A; color: #fff; }
.btn-whatsapp:hover, .btn-call:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-pill { border-radius: 30px; padding: 11px 30px; }
.btn-disabled { background: #F1F1F1; color: #999; cursor: not-allowed; }
.icon-btn { background: none; border: 0; padding: 6px; color: inherit; display: inline-flex; }
.icon-btn .icon { width: 24px; height: 24px; }
.round-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; border: 1px solid; }
.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.flash-wrap { padding-top: 8px; }

/* ---------- Header ---------- */
.announcement { background: var(--primary); color: #fff; text-align: center; font-size: 13px; padding: 7px 16px; font-weight: 500; }
.site-header { background: #fff; position: relative; z-index: 50; }
@media (min-width: 861px) {
  /* desktop: header always stays visible while scrolling */
  .site-header { position: sticky; top: 0; transition: box-shadow .2s; }
  .site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
}
.header-main { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { max-height: 46px; width: auto; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px 10px 10px 2px; background: var(--primary); color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--primary); font-size: 16px; letter-spacing: .3px; }
.logo.sm .logo-mark { width: 34px; height: 34px; font-size: 18px; }
.search-box { flex: 1; max-width: 400px; margin: 0 auto; position: relative; display: flex; background: #F3F3F1; border-radius: 8px; border: 1px solid transparent; transition: .2s; }
.search-box:focus-within { border-color: var(--primary); background: #fff; }
.search-box input { flex: 1; border: 0; background: none; padding: 10px 14px; outline: 0; min-width: 0; }
.search-box button { border: 0; background: none; padding: 0 12px; color: var(--text); }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); overflow: hidden; display: none; z-index: 60; }
.search-suggest.show { display: block; }
.search-suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.search-suggest a:hover { background: var(--primary-soft); }
.search-suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fafafa; }
.search-suggest b { color: var(--primary); margin-left: auto; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.ha-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text); background: none; border: 0; padding: 0; transition: color .2s; }
.ha-item:hover { color: var(--primary); }
.ha-item .icon { width: 22px; height: 22px; }
.ha-icon { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -7px; right: -9px; background: var(--primary); color: #fff; font-style: normal; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; }
.ha-more { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 12px); background: #fff; min-width: 190px; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 4px 0; display: none; z-index: 70; }
.dropdown.show { display: block; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.dropdown a:last-child { border: 0; }
.dropdown a:hover { color: var(--primary); background: #FAFAF8; }
.dropdown .icon { width: 18px; height: 18px; }
.wa { color: #25D366; display: inline-flex; }

.nav-bar { background: var(--header); }
.main-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 26px; }
.main-nav > li { position: relative; }
.main-nav > li > a { display: flex; align-items: center; gap: 3px; color: #fff; padding: 11px 0; font-size: 14px; font-weight: 500; opacity: .95; }
.main-nav > li > a:hover { color: var(--primary); }
.main-nav .icon { width: 15px; height: 15px; }
.sub-menu { list-style: none; position: absolute; top: 100%; left: -12px; min-width: 200px; background: #fff; padding: 6px 0; margin: 0; border-radius: 0 0 8px 8px; box-shadow: 0 12px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 8px 16px; font-size: 14px; }
.sub-menu a:hover { color: var(--primary); background: #FAFAF8; }

/* ---------- Side panels / overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 90; }
body.panel-open .overlay { opacity: 1; visibility: visible; }
body.panel-open { overflow: hidden; }
.side-panel { position: fixed; top: 0; bottom: 0; width: 360px; max-width: 92vw; background: #fff; z-index: 100; display: flex; flex-direction: column; transition: transform .3s ease; }
.side-panel.left { left: 0; transform: translateX(-105%); }
.side-panel.right { right: 0; transform: translateX(105%); }
.side-panel.open { transform: none; }
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sp-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.close-link { background: none; border: 0; display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.mobile-nav > a, .mobile-nav summary { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav summary { justify-content: space-between; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub { display: block; padding: 8px 0 8px 16px; font-size: 14px; color: var(--muted); }
.mn-title { margin-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }

/* ---------- Cart drawer ---------- */
.cart-drawer { width: 400px; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.06); margin-bottom: 10px; }
.cart-item img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: #fafafa; }
.ci-info { flex: 1; min-width: 0; }
.ci-info a { font-size: 14px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.mini-stepper { display: inline-flex; align-items: center; gap: 2px; background: #F3F3F1; border-radius: 6px; }
.mini-stepper button { border: 0; background: none; width: 24px; height: 24px; font-size: 15px; color: var(--text); }
.mini-stepper b { min-width: 20px; text-align: center; font-size: 13px; color: var(--text); }
.ci-remove { background: none; border: 0; color: var(--muted); padding: 4px; }
.ci-remove:hover { color: var(--red); }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cart-empty .icon { width: 50px; height: 50px; color: #ccc; }
.cart-suggest { background: #F7F7F5; padding: 14px 18px; }
.cs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cs-head h4 { margin: 0; font-size: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 3px; }
.cs-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-card { flex: 0 0 84%; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 8px; padding: 10px; }
.cs-card img { width: 56px; height: 56px; object-fit: contain; }
.cs-card a { font-size: 13px; font-weight: 600; display: block; }
.cs-card small { color: var(--muted); display: block; }
.cs-add { background: var(--primary); color: #fff; border: 0; border-radius: 12px; font-size: 11px; padding: 3px 10px; margin-top: 4px; display: inline-flex; gap: 3px; align-items: center; }
.cs-add .icon { width: 12px; height: 12px; }
.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }

/* ---------- Floating widgets ---------- */
.float-cart { position: fixed; right: 0; top: 46%; z-index: 40; border: 0; padding: 0; border-radius: 8px 0 0 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.15); background: #fff; width: 76px; }
.fc-top { background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 9px 4px 7px; font-size: 11px; gap: 3px; }
.fc-top .icon { width: 22px; height: 22px; }
.fc-total { display: block; color: var(--primary); font-weight: 700; font-size: 12.5px; padding: 6px 2px; }
.to-top { position: fixed; right: 20px; bottom: 92px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); opacity: 0; visibility: hidden; transition: .25s; z-index: 40; display: flex; align-items: center; justify-content: center; }
.to-top.show { opacity: 1; visibility: visible; }
.chat-fab { position: fixed; right: 20px; bottom: 26px; z-index: 41; }
.chat-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.chat-btn .icon { width: 26px; height: 26px; }
.chat-options { position: absolute; bottom: 62px; right: 0; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.chat-fab.open .chat-options { opacity: 1; visibility: visible; transform: none; }
.chat-options a { display: flex; align-items: center; gap: 8px; color: #fff; padding: 9px 16px; border-radius: 24px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.chat-options .wa { background: #25D366; } .chat-options .ms { background: #0084FF; } .chat-options .ph { background: var(--header); }
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--header); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 8px; animation: toastIn .25s ease; }
.toast.error { background: #B91C1C; }
.toast .icon { color: var(--lime); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: 2.05fr 1fr; gap: 16px; padding-top: 16px; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2.5 / 1; background: #eee; }
.hero-slider.full { grid-column: 1 / -1; aspect-ratio: 3.2 / 1; }
.hero.no-side { grid-template-columns: 1fr; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-side { border-radius: var(--radius); overflow: hidden; }
.hero-side img { width: 100%; height: 100%; object-fit: cover; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 4px; background: rgba(255,255,255,.55); color: var(--text); display: flex; align-items: center; justify-content: center; transition: .2s; opacity: 0; visibility: hidden; }
.hero-slider:hover .hero-nav, .hero-slider:focus-within .hero-nav { opacity: 1; visibility: visible; }
.hero-nav:hover { background: #fff; }
.hero-nav.prev { left: 0; } .hero-nav.next { right: 0; }
.hero-dots { position: absolute; bottom: 14px; left: 24px; z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); padding: 0; }
.hero-dots button.active { background: var(--primary); }
.hero-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 40px; background: linear-gradient(120deg, var(--primary), var(--header)); color: #fff; }

/* ---------- Sections ---------- */
.section { margin-top: 40px; }
.section-title { font-size: 26px; font-weight: 600; margin-bottom: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.section-head h2 { font-size: 20px; font-weight: 700; margin: 0; padding-bottom: 10px; position: relative; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 34px; height: 3px; background: var(--primary); border-radius: 2px; }
.view-all { color: var(--primary); font-size: 12px; font-weight: 600; text-transform: uppercase; display: flex; align-items: center; gap: 6px; padding-bottom: 10px; text-decoration: underline; text-underline-offset: 3px; }
.view-all .icon { width: 18px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; --gap: 16px; --per: 5; }
.car-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 6px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
.car-btn { position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: opacity .2s; }
.car-btn.prev { left: -14px; } .car-btn.next { right: -14px; }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn .icon { width: 18px; height: 18px; }
.carousel.no-scroll .car-btn { display: none; }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.car-dots button { width: 8px; height: 8px; border-radius: 5px; border: 1px solid var(--primary); background: none; padding: 0; transition: .2s; }
.car-dots button.active { background: var(--primary); width: 20px; }
.carousel.no-scroll .car-dots { display: none; }
.product-carousel .car-btn, .brand-carousel .car-btn, .testimonial-carousel .car-btn, .wide-carousel .car-btn { display: none; }
.cat-carousel { --per: 8; --gap: 14px; }
.cat-carousel .car-dots { display: none; }
.wide-carousel { --per: 2; --gap: 20px; }
.brand-carousel { --per: 4; }
.testimonial-carousel { --per: 3; --gap: 18px; }

/* Category cards */
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cat-thumb { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: .25s; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-emoji { font-size: 52px; line-height: 1; transition: transform .25s; }
.cat-card:hover .cat-thumb { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.cat-card:hover .cat-emoji, .cat-card:hover img { transform: scale(1.08); }
.cat-name { font-size: 15px; font-weight: 500; }
.cat-card:hover .cat-name { color: var(--primary); }

/* Product card */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 4px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.pc-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.badge { font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 3px; color: #fff; line-height: 1.3; }
.badge-tag { background: var(--primary); }
.badge-save { background: #22C55E; margin-left: auto; }
.wish-btn { position: absolute; top: 34px; right: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); color: var(--muted); display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.wish-btn .icon { width: 17px; height: 17px; }
.product-card:hover .wish-btn, .wish-btn.on { opacity: 1; }
.wish-btn.on, .wish-btn:hover { color: var(--red); }
.pc-img { display: block; aspect-ratio: 1; margin: 8px 8px 10px; overflow: hidden; border-radius: 4px; background: #F4F3F0; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 0 7px 7px; display: flex; flex-direction: column; flex: 1; }
.pc-name { font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-name:hover { color: var(--primary); }
.pc-price { margin: 6px 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price { color: var(--primary); font-weight: 700; font-size: 15px; }
.old-price { color: var(--muted); font-size: 13.5px; }
.pc-price.lg .price { font-size: 19px; }
.pc-price.lg .old-price { font-size: 17px; }
.cart-ctl .stepper { display: none; }
.cart-ctl.in-cart .add-btn { display: none; }
.cart-ctl.in-cart .stepper { display: flex; }
.stepper { height: 38px; border: 1px solid var(--primary); border-radius: 4px; overflow: hidden; }
.stepper button { width: 38px; border: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.stepper .qty { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.cart-ctl .add-btn { height: 38px; }

/* Wide card (top selling) */
.product-wide { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; background: #fff; border-radius: 6px; padding: 18px; min-height: 260px; }
.pw-ribbon { position: absolute; top: -1px; right: -1px; background: #E11D48; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 0 6px 0 6px; display: flex; gap: 4px; align-items: center; }
.pw-ribbon .icon { width: 12px; height: 12px; }
.pw-img { aspect-ratio: 1; display: block; overflow: hidden; border-radius: 6px; }
.pw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-wide:hover .pw-img img { transform: scale(1.04); }
.pw-name { font-size: 18px; font-weight: 500; display: block; }
.pw-name:hover { color: var(--primary); }
.pw-body .pc-price { margin: 8px 0; padding: 0; }
.pw-break { flex-basis: 100%; height: 0; }
.save-pill { display: inline-block; background: var(--lime); color: #1a2e05; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px; }
.pw-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.brand-card { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 4px; height: 76px; padding: 8px 20px; }
.brand-card img { max-height: 100%; object-fit: contain; }
.wide-banner { display: block; border-radius: 4px; overflow: hidden; }
.wide-banner img { width: 100%; }

/* Testimonials */
.testimonial { background: #fff; border: 1px solid #DCDCDC; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.testimonial p { margin: 0; font-size: 15px; color: #3A3F4A; flex: 1; }
.stars { display: inline-flex; gap: 2px; color: #F5B301; vertical-align: middle; }
.stars .icon { width: 16px; height: 16px; }
.stars .off { color: #D5D5D5; }
.t-author { display: flex; gap: 12px; align-items: center; }
.t-author small { display: block; color: var(--muted); font-size: 12px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; margin-top: 60px; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1fr; gap: 28px; }
.f-about p { color: #4B5563; font-size: 14px; margin: 14px 0; max-width: 300px; }
.site-footer h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; color: #4B5563; }
.site-footer li a:hover { color: var(--primary); }
.f-contact li { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.f-contact .icon { color: var(--muted); width: 17px; }
.socials { display: flex; gap: 10px; margin: 18px 0; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; transition: .2s; }
.socials a:hover { background: var(--primary); color: #fff; }
.socials .icon { width: 16px; height: 16px; }
.app-links > div { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.store-btn { background: #111; color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.1; }
.store-btn small { display: block; font-size: 9px; font-weight: 400; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: 14px; color: #4B5563; }
.footer-bottom p { margin: 0; }
.pay-with { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-with > span:first-child { font-weight: 600; font-size: 13px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; font-size: 12px; }
.pay-logo { width: 22px; height: 22px; border-radius: 5px; color: #fff; font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-logo.cod { background: #FEF3C7; color: #B45309; }
.pay-logo .icon { width: 15px; height: 15px; }
.mobile-bar { display: none; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: #fff; padding: 22px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.page-hero h1 { font-size: 26px; margin-bottom: 4px; }
.page-hero.center .breadcrumb { justify-content: center; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; padding: 10px 0; }
.page-hero .breadcrumb { padding: 0; }
.breadcrumb .icon { width: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb > span:last-child { color: var(--primary); }

/* ---------- Shop ---------- */
.shop-page { padding-top: 6px; }
.shop-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0 12px; }
.shop-title h1 { font-size: 27px; font-weight: 500; margin: 0; }
.shop-title .breadcrumb { padding: 0; }
.shop-title .breadcrumb > span:last-child { color: var(--text); }
.shop-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.filter-box { background: #fff; border-radius: 4px; box-shadow: var(--shadow); padding: 16px 16px 14px; margin-bottom: 10px; }
.filter-box summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; border-bottom: 1px solid var(--border); padding-bottom: 0; margin-bottom: 12px; }
.filter-box summary::-webkit-details-marker { display: none; }
.filter-box summary span { font-size: 14.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 6px 0 10px; border-bottom: 3px solid var(--primary); margin-bottom: -2px; }
.fb-toggle { position: relative; width: 14px; height: 14px; }
.fb-toggle::before, .fb-toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--text); transition: transform .2s; }
.fb-toggle::after { transform: rotate(90deg); }
.filter-box[open] .fb-toggle::after { transform: rotate(0); }
.fb-body { display: grid; gap: 4px; }
.fcheck { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #374151; padding: 3px 0; cursor: pointer; }
.fcheck input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; flex-shrink: 0; }
.fcheck:hover span { color: var(--primary); }
.price-slider { padding: 2px 4px 6px; }
.ps-values { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; }
.ps-values b { font-weight: 500; }
.ps-track { position: relative; height: 22px; }
.ps-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: #E5E7EB; }
.ps-track i { position: absolute; top: 9px; height: 4px; background: var(--primary); border-radius: 2px; left: 0; right: 0; }
.ps-track input { position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 0; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ps-track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); cursor: pointer; }
.ps-track input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.3); cursor: pointer; }
.ps-track input::-webkit-slider-runnable-track { background: none; }
.ps-track input::-moz-range-track { background: none; }
.clear-filters { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14px; font-weight: 600; padding: 6px 4px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; background: #fff; padding: 12px 12px 12px 14px; border-radius: 4px; box-shadow: var(--shadow); }
.sort-by { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.shop-toolbar select { padding: 9px 10px; border: 1px solid var(--border); border-radius: 3px; background: #fff; font-size: 13.5px; min-width: 140px; cursor: pointer; }
.shop-toolbar .per-page { color: var(--primary); min-width: 100px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 17px; color: var(--muted); }
.pagination a.active { background: #fff; color: var(--text); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.pagination a:hover:not(.active):not(.disabled) { color: var(--primary); }
.pagination .pg-arrow .icon { width: 16px; height: 16px; }
.pagination .disabled { opacity: .35; pointer-events: none; }
.pg-gap { color: var(--muted); }
.results-count { text-align: center; color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.main-nav > li.active > a { color: var(--primary); }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state > .icon { width: 56px; height: 56px; color: #C9C9C9; margin-bottom: 10px; }
.empty-state p { color: var(--muted); }
.empty-state.small { padding: 24px 10px; }

/* ---------- Product detail ---------- */
.pd-page > .breadcrumb { padding: 12px 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 24px; align-items: start; }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { position: relative; border: 1px solid var(--border); border-radius: 4px; padding: 3px; background: #fff; aspect-ratio: 1; }
.thumb.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.thumb-check { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; }
.thumb-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.thumb.active .thumb-check { display: flex; }
.main-image { position: relative; border: 1px solid var(--border); border-radius: 4px; aspect-ratio: 1; overflow: hidden; background: #fff; }
.main-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.main-image > img.active { opacity: 1; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #4B6CB7; z-index: 3; padding: 8px; opacity: .7; }
.g-nav:hover { opacity: 1; }
.g-nav.prev { left: 2px; } .g-nav.next { right: 2px; }
.pd-info h1 { font-size: 22px; font-weight: 500; margin: 4px 0 8px; }
.pd-price { font-size: 24px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-price del { font-size: 16px; color: var(--muted); font-weight: 400; }
.pd-qty { display: flex; align-items: center; gap: 30px; margin-bottom: 18px; font-size: 14px; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; padding: 4px; }
.qty-box button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #F1F1F1; display: flex; align-items: center; justify-content: center; transition: .2s; }
.qty-box button:hover { background: var(--primary); color: #fff; }
.qty-box button .icon { width: 14px; }
.qty-box input { width: 54px; border: 0; text-align: center; font-size: 16px; outline: 0; -moz-appearance: textfield; }
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-actions .btn { border-radius: 3px; font-size: 14px; padding: 12px 14px; }
.pd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.meta-chip { border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; font-size: 14px; }
.meta-chip a { color: var(--primary); }
.out-stock { color: var(--red); font-weight: 600; }
.pd-tabs { display: flex; gap: 10px; padding: 8px; margin-top: 28px; }
.pd-tabs button { border: 0; background: #F1F1F1; padding: 9px 20px; border-radius: 3px; font-size: 14px; color: #4B5563; }
.pd-tabs button.active, .pd-tabs button:hover { background: var(--primary); color: #fff; }
.pd-section { padding: 26px 24px; margin-top: 20px; scroll-margin-top: 140px; }
.tabs { margin-top: 24px; }
.tab-nav { display: flex; gap: 10px; padding: 8px; border-bottom: 1px solid var(--border); }
.tab-nav button { border: 0; background: #F1F1F1; padding: 9px 20px; border-radius: 3px; font-size: 14px; color: #4B5563; }
.tab-nav button.active { background: var(--primary); color: #fff; }
.tab-pane { display: none; padding: 24px 20px; }
.tab-pane.active { display: block; }
.underline { display: inline-block; font-size: 17px; padding-bottom: 8px; border-bottom: 3px solid var(--primary); margin-bottom: 18px; }
.underline.sm { font-size: 14.5px; padding-bottom: 10px; }
.rich-text { line-height: 1.85; color: #2F3542; }
.rich-text h2, .rich-text h3 { margin-top: 1.2em; }
.rich-text a { color: var(--primary); }
/* reviews */
.review-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.rs-top { display: flex; align-items: center; gap: 12px; }
.rs-top small { font-size: 12.5px; }
.big-rating { font-size: 52px; font-weight: 700; line-height: 1; }
.rs-rec { display: flex; align-items: center; gap: 18px; margin: 14px 0 18px; font-size: 13px; }
.rs-rec b { font-size: 22px; font-weight: 600; }
.dist-row { display: grid; grid-template-columns: auto 1fr 42px; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.stars.sm .icon { width: 13px; height: 13px; }
.bar { height: 6px; background: #EEE; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #9CA3AF; }
.review-form { margin-top: 16px; }
.review-form label { display: block; font-size: 14px; margin-bottom: 16px; }
.review-form input:not([type=file]), .review-form textarea, .review-form select { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 14px; }
.rv-upload { margin-bottom: 18px; }
.rv-up-label { display: block; font-size: 14px; margin: 0 0 10px 18px; }
.rv-drop { display: flex !important; flex-direction: column; align-items: center; gap: 10px; border: 2px dashed #3B82F6; border-radius: 6px; padding: 22px 16px; text-align: center; cursor: pointer; font-size: 14px; margin: 0 !important; transition: background .2s; }
.rv-drop.drag, .rv-drop:hover { background: #EFF6FF; }
.rv-drop input { display: none; }
.rv-drop b { font-weight: 600; }
.rv-cloud { width: 34px; height: 34px; border-radius: 50%; background: #3B82F6; color: #fff; display: flex; align-items: center; justify-content: center; }
.rv-cloud .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.rv-previews { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rv-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.rf-row { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.rf-row label { flex: 0 1 290px; margin: 0; font-size: 13px; }
.rf-row .btn { border-radius: 2px; padding: 11px 22px; margin-left: auto; }
.review-list { margin-top: 30px; border-top: 1px solid var(--border); }
.review-item { display: flex; gap: 16px; padding: 20px 0 8px 10px; }
.ri-body { flex: 1; min-width: 0; }
.ri-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ri-head strong { color: var(--primary); font-size: 16px; }
.ri-head small { font-size: 12.5px; }
.ri-body p { margin: 10px 0 0; }
.ri-imgs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ri-imgs img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

/* ---------- Forms (shared) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-stack input, .form-stack select, textarea { width: 100%; padding: 12px; border: 1px solid #D7D7D7; border-radius: 4px; background: #fff; outline: 0; transition: border .2s; }
.form-grid input:focus, .form-stack input:focus, textarea:focus, .form-stack select:focus { border-color: var(--primary); }
.form-stack { display: grid; gap: 14px; }
.form-stack label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.phone-input { display: flex; border: 1px solid #D7D7D7; border-radius: 4px; overflow: hidden; background: #fff; }
.phone-input span { background: #F1F1F1; padding: 0 10px; display: flex; align-items: center; font-size: 14px; border-right: 1px solid #D7D7D7; }
.phone-input input { border: 0 !important; }

/* Searchable select */
.select-search { position: relative; }
.ss-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #D7D7D7; border-radius: 4px; background: #fff; font-size: 15px; text-align: left; }
.ss-toggle .icon { width: 16px; color: var(--muted); }
.ss-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-radius: 6px; z-index: 30; display: none; }
.select-search.open .ss-panel { display: block; }
.ss-search { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding-right: 10px; }
.ss-search input { flex: 1; border: 0; padding: 11px; outline: 0; }
.ss-search .icon { color: var(--muted); width: 18px; }
.ss-panel ul { list-style: none; margin: 0; padding: 4px 0; max-height: 220px; overflow-y: auto; }
.ss-panel li { padding: 8px 12px; cursor: pointer; font-size: 14.5px; }
.ss-panel li:hover, .ss-panel li.hl { background: var(--primary); color: #fff; }

/* ---------- Checkout ---------- */
.login-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid #9CA3AF; border-radius: 4px; background: #fff; padding: 8px 14px; margin-bottom: 18px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.co-box { padding: 20px; margin-bottom: 18px; }
.bar-title { font-size: 16px; font-weight: 600; border-left: 3px solid var(--primary); padding-left: 8px; margin-bottom: 16px; }
.co-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.co-item:last-child { border: 0; }
.co-item img { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 6px; object-fit: contain; }
.co-item-info { flex: 1; font-size: 14px; }
.co-qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--muted); }
.co-qty strong { color: var(--text); }
.del-btn { background: #EF4444; color: #fff; border: 0; border-radius: 4px; padding: 5px; display: flex; }
.del-btn .icon { width: 15px; height: 15px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid #C9C9C9; border-radius: 4px; padding: 9px 12px; cursor: pointer; font-size: 14px; transition: .2s; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; }
.pay-option .tick .icon { width: 13px; }
.pay-option:has(input:checked) { border-color: var(--primary); background: #EEF2FF; }
.pay-option:has(input:checked) .tick { display: flex; }
.pay-info { margin-top: 14px; background: #FFF8F1; border: 1px dashed var(--primary); border-radius: 8px; padding: 14px; font-size: 14px; }
.pay-info p { margin: 0 0 8px; }
.pay-number b { font-size: 17px; letter-spacing: .5px; }
.pc-rating { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1; }
.pc-rating .stars { gap: 1px; }
.pc-rating .stars .icon { width: 13px; height: 13px; }
.pc-rating b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.product-wide .pc-rating { margin-top: 8px; }
.pd-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin: -2px 0 10px; }
.pd-rating b { color: var(--text); font-weight: 600; }
.pd-rating:hover span { color: var(--primary); text-decoration: underline; }
.copy-btn { border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 4px; font-size: 12px; padding: 2px 8px; margin-left: 6px; }
.pay-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: #F1D3BC; }
.proof-drop { position: relative; display: block; border: 1.5px dashed var(--primary); border-radius: 6px; background: #fff; padding: 12px 14px; cursor: pointer; transition: background .2s; }
.proof-drop:hover { background: var(--primary-soft); }
.proof-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.proof-empty, .proof-chosen { display: flex; align-items: center; gap: 12px; }
.proof-empty > .icon { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.proof-drop b { display: block; font-size: 14px; color: var(--text); word-break: break-all; }
.proof-drop small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.proof-chosen { display: none; }
.proof-drop.has-file .proof-empty { display: none; }
.proof-drop.has-file .proof-chosen { display: flex; }
.proof-drop.has-file { border-style: solid; border-color: var(--green); }
.proof-chosen img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex-shrink: 0; }
.proof-chosen small { color: var(--green); }
.proof-remove { margin-left: auto; border: 0; background: #FEE2E2; color: #B91C1C; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proof-remove .icon { width: 15px; height: 15px; }
.coupon-box summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 500; list-style: none; }
.coupon-box summary::-webkit-details-marker { display: none; }
.coupon-box[open] summary .icon { transform: rotate(180deg); }
.coupon-row { display: flex; margin-top: 14px; border: 1px solid #D7D7D7; border-radius: 4px; padding: 4px; }
.coupon-row input { flex: 1; border: 0; outline: 0; padding: 6px 8px; min-width: 0; }
[data-coupon-msg].ok { color: var(--green); } [data-coupon-msg].err { color: var(--red); }
.totals .t-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.totals .t-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 17px; }
.totals .discount { color: var(--green); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 16px; }
.agree input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.agree a { color: var(--primary); }
.place-order { font-size: 17px; padding: 15px; }

/* ---------- Success / tracking ---------- */
.success-card { text-align: center; padding: 40px 28px; margin-top: 30px; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #DCFCE7; color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success-icon .icon { width: 40px; height: 40px; stroke-width: 2.5; }
.order-no { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); padding: 10px 18px; border-radius: 8px; margin: 10px 0 22px; font-size: 16px; }
.receipt { text-align: left; border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; }
.r-row { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; font-size: 14px; }
.r-row span:last-child { text-align: right; }
.r-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.track-hero { background: #fff; padding: 34px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.track-head h1 { font-size: 28px; font-weight: 800; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.track-form { display: flex; gap: 8px; flex-wrap: wrap; }
.track-form input { padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; background: #FAFAF8; min-width: 200px; }
.track-card { padding: 24px; }
.track-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
.track-top h3 { margin: 0; }
.status-pill { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #F3F4F6; color: #374151; white-space: nowrap; }
.s-pending { background: #FEF3C7; color: #92400E; }
.s-confirmed { background: #DBEAFE; color: #1E40AF; }
.s-processing { background: #E0E7FF; color: #3730A3; }
.s-shipped { background: #CFFAFE; color: #155E75; }
.s-delivered { background: #DCFCE7; color: #166534; }
.s-cancelled { background: #FEE2E2; color: #991B1B; }
.steps { list-style: none; display: flex; padding: 0; margin: 0 0 30px; }
.steps li { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #E5E7EB; z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before { background: var(--primary); }
.steps .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #E5E7EB; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.steps .dot .icon { width: 16px; }
.steps li.done .dot { background: var(--primary); }
.steps li.done { color: var(--text); font-weight: 600; }
.steps li.current .dot { box-shadow: 0 0 0 5px var(--primary-soft); }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding-bottom: 16px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline p { margin: 2px 0; color: #4B5563; }

/* ---------- Auth ---------- */
.auth-wrap { padding: 40px 16px; }
.auth-card { max-width: 760px; margin: 0 auto; padding: 32px; }
.auth-card.small { max-width: 460px; }
.auth-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; }
.auth-head h1 { font-size: 24px; margin: 0; }
.auth-head p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-icon { width: 54px; height: 54px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.auth-icon .icon { width: 28px; height: 28px; }
.auth-panels { display: grid; grid-template-columns: 1fr 50px 1fr; }
.auth-panel { background: #F7F7F5; border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-card.small .auth-panel { background: none; padding: 0; }
.auth-panel h3 { font-size: 16px; margin: 0; }
.auth-or { display: flex; align-items: center; justify-content: center; position: relative; }
.auth-or::before { content: ""; position: absolute; top: 10%; bottom: 10%; width: 1px; background: var(--border); }
.auth-or span { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.icon-input { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E2E2E2; border-radius: 6px; padding: 0 12px; }
.icon-input:focus-within { border-color: var(--primary); }
.icon-input > .icon { color: var(--primary); width: 18px; }
.icon-input input { flex: 1; border: 0; outline: 0; padding: 12px 0; background: none; min-width: 0; }
.icon-input .eye { background: none; border: 0; color: var(--muted); padding: 0; display: flex; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.check { display: flex; gap: 6px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.check-list li { display: flex; gap: 8px; align-items: center; }
.check-list .icon { color: var(--green); }
.account-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.page-content { padding: 28px 32px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header-actions { gap: 16px; }
  .main-nav { gap: 2px 18px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .carousel { --per: 4; }
  .cat-carousel { --per: 6; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  /* mobile header: [menu] [logo centered] [cart] / search row below */
  .header-main { display: grid; grid-template-columns: 1fr auto 1fr; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .header-main > .icon-btn { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-main .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .logo-text { font-size: 14px; }
  .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; margin: 0; }
  .nav-bar { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .hero-side { display: none; }
  .hero-slider, .hero-slider.full { aspect-ratio: 2.3 / 1; }
  .section { margin-top: 30px; }
  .section-title { font-size: 21px; margin-bottom: 16px; }
  .carousel { --per: 2.3; --gap: 10px; }
  .cat-carousel { --per: 4.3; --gap: 10px; }
  /* mobile top selling: 2-column grid of vertical cards (first 4) */
  .wide-carousel .car-track { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; padding: 0; }
  .wide-carousel .car-track > :nth-child(n+5) { display: none; }
  .wide-carousel .car-dots { display: none; }
  .brand-carousel { --per: 2.5; }
  .testimonial-carousel { --per: 1.1; }
  .car-btn { display: none; }
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-emoji { font-size: 36px; }
  .cat-name { font-size: 13px; }
  .pc-name { font-size: 13.5px; }
  .pc-img { margin: 6px 6px 8px; }
  .btn { padding: 8px 10px; font-size: 13px; }
  .wish-btn { opacity: 1; }
  .product-wide { grid-template-columns: 1fr; align-items: stretch; padding: 12px; min-height: 0; gap: 10px; border-radius: 8px; }
  .pw-img { background: #F4F3F0; }
  .pw-body { display: flex; flex-direction: column; text-align: left; }
  .pw-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-wide .pc-price { flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 6px 0 10px; justify-content: flex-start; }
  .product-wide .pc-price.lg .price { font-size: 16px; }
  .product-wide .pc-price.lg .old-price { font-size: 13px; }
  .pw-break { display: none; }
  .product-wide .save-pill { font-size: 10.5px; padding: 2px 7px; margin: 0; }
  .pw-actions { margin-top: auto; }
  .pw-actions .btn { width: 100%; }
  .pw-actions [data-buy-now] { display: none; }
  .pw-ribbon { font-size: 10.5px; border-radius: 0 8px 0 8px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-sidebar.show-filters { display: block; }
  .shop-title h1 { font-size: 21px; }
  .shop-toolbar { flex-wrap: wrap; margin-bottom: 14px; }
  .sort-by { font-size: 13px; gap: 6px; }
  .shop-toolbar select { min-width: 0; }
  .shop-toolbar .per-page { display: none; }
  .product-detail { grid-template-columns: 1fr; padding: 14px; gap: 20px; }
  .gallery { grid-template-columns: 44px 1fr; gap: 8px; }
  .thumbs { gap: 8px; }
  .pd-info h1 { font-size: 18px; }
  .pd-price { font-size: 20px; margin-bottom: 18px; }
  .pd-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pd-actions .btn { font-size: 12px; padding: 11px 6px; gap: 5px; }
  .pd-tabs { display: none; }
  .pd-section { padding: 20px 16px; margin-top: 16px; }
  .related-carousel { --per: 2; }
  .related .section-head { flex-direction: column; align-items: flex-start; }
  .related .view-all { order: 2; padding: 6px 0 10px; }
  .review-item { padding-left: 0; }
  .review-layout { grid-template-columns: 1fr; gap: 24px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-panels { grid-template-columns: 1fr; gap: 16px; }
  .auth-or { height: 40px; }
  .auth-or::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .auth-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .float-cart { display: none; }
  .to-top { bottom: 140px; right: 14px; }
  .chat-fab { bottom: 76px; right: 14px; }
  .site-footer { padding-bottom: 70px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--primary); z-index: 45; box-shadow: 0 -2px 12px rgba(0,0,0,.12); padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); }
  .mobile-bar > * { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; background: none; border: 0; color: #fff; padding: 0; }
  .mobile-bar .cart-count { background: #fff; color: var(--primary); }
  .mobile-bar .icon { width: 22px; height: 22px; }
  .steps li span:last-child { font-size: 11px; }
  .page-hero h1 { font-size: 21px; }
  .page-content { padding: 20px; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }

  .pc-price { justify-content: flex-start; }

  .track-form input { min-width: 0; flex: 1 1 100%; }
  .track-form .btn { flex: 1; }

}
.oos-tag { display: inline-block; background: #FEE2E2; color: #B91C1C; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }
/* no flicker: carousel arrows/dots stay hidden until the script knows if they are needed */
.carousel:not(.is-ready) .car-btn, .carousel:not(.is-ready) .car-dots { visibility: hidden; }
.car-dots { min-height: 8px; }
.logo img { height: auto; }
