/* ==========================================================================
   JafuShop — default theme
   Palette: paddy green (primary), shapla red (accent), turmeric (highlight)
   Motif: the kantha running stitch, used for section titles and the order receipt
   ========================================================================== */
:root {
  --primary: #0b6e4f;
  --accent: #d6283a;
  --highlight: #f2b134;
  --ink: #1b2a24;
  --muted: #5d6b64;
  --paper: #f6f7f3;
  --surface: #ffffff;
  --line: #e2e6df;
  --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --radius: 10px;
  --radius-sm: 6px;
  --font-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 11, 110, 79;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.has-mobile-nav { padding-bottom: 64px; }
@media (min-width: 992px) { body.has-mobile-nav { padding-bottom: 0; } }

h1, h2, h3, h4, h5, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, #fff); outline-offset: 2px; }

/* ---------- Bootstrap overrides ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: .55rem 1.1rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); --bs-btn-active-bg: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: #cfd6cc; padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 18%, transparent); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.page-link { color: var(--primary); }
.active > .page-link, .page-link.active { background: var(--primary); border-color: var(--primary); }
.alert { border-radius: var(--radius-sm); }

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--primary);
  color: #fff;
  font-size: .9rem;
  text-align: center;
  padding: .4rem 1rem;
  position: relative;
}
.notice-bar::after { /* kantha stitch edge */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 8px, transparent 8px 14px);
}

/* ---------- Top bar & header ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--primary); }
.lang-switch a { padding: .1rem .5rem; border-radius: 4px; font-weight: 600; }
.lang-switch a.active { background: var(--primary-soft); color: var(--primary); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.site-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); line-height: 1; white-space: nowrap; }
.site-logo img { max-height: 48px; width: auto; }
.site-logo:hover { color: var(--ink); }
.site-logo .logo-dot { color: var(--primary); }

.header-search { position: relative; flex: 1; max-width: 640px; }
.header-search .form-control { padding-right: 3.2rem; border-width: 2px; border-color: var(--primary); height: 46px; }
.header-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 4px; background: var(--primary); color: #fff; }

.header-icon { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: .9rem; line-height: 1.1; position: relative; padding: .25rem .4rem; }
.header-icon i { font-size: 1.35rem; color: var(--primary); }
.header-icon small { display: block; color: var(--muted); font-size: .75rem; }
.header-icon:hover { color: var(--primary); }
.header-icon > .position-relative { margin-right: .45rem; }
.cart-count {
  position: absolute; top: -9px; right: -11px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.main-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.main-nav .nav-link { color: var(--ink); font-weight: 600; padding: .75rem .8rem; white-space: nowrap; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--primary); }
.cat-toggle { background: var(--primary); color: #fff !important; border-radius: 0; padding-left: 1rem !important; padding-right: 1.2rem !important; }
.main-nav .dropdown-menu { border-radius: 0 0 var(--radius-sm) var(--radius-sm); border-color: var(--line); min-width: 240px; padding: .4rem 0; }
.main-nav .dropdown-item { padding: .45rem 1rem; }
.main-nav .dropdown-item:active { background: var(--primary); }
.nav-scroll { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); padding-right: 40px; }
.nav-scroll::-webkit-scrollbar { display: none; }

/* ---------- Section headings with kantha stitch ---------- */
.section { padding: 2rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { font-size: 1.6rem; margin: 0; padding-bottom: .55rem; position: relative; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 15px);
}
.section-link { font-weight: 600; white-space: nowrap; }

/* ---------- Hero slider ---------- */
.hero { margin-top: 1rem; }
.hero .carousel { border-radius: var(--radius); overflow: hidden; background: var(--primary-soft); }
.hero-slide { position: relative; aspect-ratio: 1200 / 440; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 7%; max-width: 640px; color: #fff;
}
.hero-caption h2 { color: inherit; font-size: clamp(1.5rem, 4vw, 3.1rem); font-weight: 800; margin-bottom: .5rem; }
.hero-caption p { font-size: clamp(.95rem, 1.6vw, 1.2rem); margin-bottom: 1.1rem; opacity: .95; }
.hero-caption.dark { color: var(--ink); }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; }
.hero-caption { padding-left: max(7%, 72px); }
@media (max-width: 575.98px) {
  .hero { margin-top: .5rem; }
  .hero-slide { aspect-ratio: 4 / 3; }
  .hero-caption { padding: 0 1.25rem; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
  .feature { padding: .8rem .7rem; gap: .55rem; align-items: flex-start; }
  .feature i { font-size: 1.3rem; width: 1.5rem; margin-top: .2rem; }
  .feature b { font-size: .92rem; }
  .feature span { font-size: .8rem; line-height: 1.35; display: block; }
  .hero-caption .btn { padding: .4rem .9rem; font-size: .9rem; }
}

/* ---------- Feature strip ---------- */
.features { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature { display: flex; gap: .85rem; align-items: center; padding: 1.1rem 1.25rem; }
.feature i { font-size: 1.6rem; color: var(--primary); width: 2rem; text-align: center; }
.feature b { display: block; font-size: 1rem; }
.feature span { color: var(--muted); font-size: .875rem; }
@media (min-width: 992px) { .features .col-lg-3 + .col-lg-3 .feature { border-left: 1px solid var(--line); } }

/* ---------- Category tiles ---------- */
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1rem .5rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.cat-tile:hover { border-color: var(--primary); color: var(--primary); }
.cat-tile .cat-img { width: 76px; height: 76px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-tile .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .cat-img i { font-size: 1.8rem; color: var(--primary); }
.cat-tile b { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cat-tile small { color: var(--muted); }

/* ---------- Promo banners ---------- */
.promo { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--primary-soft); }
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo-text { position: absolute; left: 0; bottom: 0; padding: 1rem 1.25rem; color: #fff; }
.promo-text b { font-family: var(--font-display); font-size: 1.35rem; display: block; line-height: 1.2; }

/* ---------- Product card ---------- */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; transition: border-color .15s; }
.pcard:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.pcard-img { display: block; position: relative; aspect-ratio: 1 / 1; background: #f0f2ee; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.tag-off { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; padding: .15rem .5rem; border-radius: 4px; }
.tag-out { position: absolute; inset: auto 0 0 0; background: rgba(27,42,36,.78); color: #fff; text-align: center; font-size: .85rem; padding: .3rem; }
.wish-btn { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--muted); display: flex; align-items: center; justify-content: center; z-index: 2; }
.wish-btn:hover, .wish-btn.active { color: var(--accent); border-color: var(--accent); }
.pcard-body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pcard-title { color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-title:hover { color: var(--primary); }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price b { font-size: 1.12rem; color: var(--primary); font-weight: 700; }
.price s { color: var(--muted); font-size: .9rem; }
.pcard .btn { margin-top: auto; padding: .45rem .6rem; font-size: .92rem; }
@media (max-width: 575.98px) {
  .pcard-body { padding: .6rem .6rem .7rem; }
  .pcard-title { font-size: .92rem; }
  .price b { font-size: 1rem; }
  .pcard .btn { font-size: .85rem; padding: .4rem .4rem; }
}

/* ---------- Breadcrumb & page head ---------- */
.page-head { padding: 1.25rem 0 .5rem; }
.page-head h1 { font-size: 1.8rem; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: .35rem; }
.breadcrumb a { color: var(--muted); }

/* ---------- Shop ---------- */
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.filter-box h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.filter-cats a { display: flex; justify-content: space-between; padding: .3rem 0; color: var(--ink); }
.filter-cats a.active, .filter-cats a:hover { color: var(--primary); font-weight: 600; }
.filter-cats .sub { padding-left: 1rem; font-size: .93rem; }
.empty-state { background: var(--surface); border: 1px dashed #cfd6cc; border-radius: var(--radius); padding: 3rem 1rem; text-align: center; color: var(--muted); }
.empty-state i { font-size: 2.5rem; color: #b9c3bd; margin-bottom: .75rem; }

/* ---------- Product page ---------- */
.product-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: #f0f2ee; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 68px; height: 68px; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 0; overflow: hidden; background: #f0f2ee; }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5rem; }
.product-price b { font-size: 1.9rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.product-price s { color: var(--muted); font-size: 1.1rem; margin-left: .5rem; }
.save-badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: .1rem .55rem; border-radius: 4px; font-size: .9rem; margin-left: .5rem; }
.stock-in { color: var(--primary); font-weight: 600; }
.stock-out { color: var(--accent); font-weight: 600; }
.opt-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-group input { position: absolute; opacity: 0; pointer-events: none; }
.opt-group label { border: 1.5px solid #cfd6cc; border-radius: var(--radius-sm); padding: .35rem .9rem; cursor: pointer; font-weight: 600; min-width: 46px; text-align: center; background: var(--surface); }
.opt-group input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.opt-group input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--primary) 55%, #fff); }
.qty { display: inline-flex; border: 1.5px solid #cfd6cc; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty button { width: 40px; border: 0; background: transparent; font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.qty-sm button { width: 32px; }
.qty.qty-sm input { width: 42px; padding: .2rem 0; }
.buy-actions .btn { padding: .75rem 1rem; font-size: 1.02rem; }
.order-call { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--ink); }
.order-call i { font-size: 1.4rem; color: var(--primary); }
.order-call b { font-size: 1.15rem; color: var(--primary); }
.delivery-box { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.delivery-box > div { display: flex; justify-content: space-between; padding: .55rem .9rem; font-size: .93rem; }
.delivery-box > div + div { border-top: 1px solid var(--line); }
.product-tabs .nav-link { color: var(--muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; }
.product-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.rich-content { line-height: 1.75; overflow-wrap: anywhere; }
.rich-content img { height: auto; border-radius: var(--radius-sm); }
.rich-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rich-content td, .rich-content th { border: 1px solid var(--line); padding: .45rem .6rem; }
.stars { color: var(--highlight); letter-spacing: 1px; }
.stars .off { color: #d5dbd3; }
.review { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.6rem; color: #d5dbd3; cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--highlight); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 1030; background: var(--surface); border-top: 1px solid var(--line); padding: .5rem .75rem; display: flex; gap: .5rem; }
@media (min-width: 992px) { .sticky-buy { display: none; } }
body:not(.has-mobile-nav) .sticky-buy { bottom: 0; }

/* ---------- Cart ---------- */
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: flex; gap: 1rem; padding: 1rem; align-items: center; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line img { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; background: #f0f2ee; }
.cart-line .name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.cart-line .variant { font-size: .85rem; color: var(--muted); }
.remove-btn { border: 0; background: none; color: var(--muted); padding: .25rem .4rem; }
.remove-btn:hover { color: var(--accent); }

/* ---------- Receipt card (kantha-stitched order summary) ---------- */
.receipt {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  position: relative;
  border: 1px solid var(--line);
}
.receipt::before {
  content: ""; position: absolute; inset: 7px; border-radius: 6px; pointer-events: none;
  border: 2px dashed color-mix(in srgb, var(--primary) 55%, #fff);
}
.receipt h2 { font-size: 1.35rem; }
.receipt .row-line { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.receipt .total-line { border-top: 2px dashed var(--line); margin-top: .5rem; padding-top: .7rem; font-size: 1.2rem; font-weight: 700; }
.receipt .total-line span:last-child { color: var(--primary); font-family: var(--font-display); font-size: 1.45rem; }
.receipt .mini-item { display: flex; gap: .7rem; align-items: center; padding: .45rem 0; font-size: .93rem; }
.receipt .mini-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; }
.receipt .mini-item .qty-badge { background: var(--primary-soft); color: var(--primary); border-radius: 4px; padding: 0 .4rem; font-weight: 700; font-size: .8rem; }

/* ---------- Checkout ---------- */
.checkout-step { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.checkout-step span { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.choice { display: block; border: 1.5px solid #cfd6cc; border-radius: var(--radius-sm); padding: .8rem 1rem; cursor: pointer; background: var(--surface); margin-bottom: .6rem; }
.choice:hover { border-color: var(--primary); }
.choice input { margin-right: .5rem; accent-color: var(--primary); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); }
.choice .choice-meta { float: right; font-weight: 700; color: var(--primary); }
.pay-box { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: .9rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: .25rem; }
.pay-box .pay-number { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: .5px; }
.pm-badge { display: inline-block; font-weight: 700; font-size: .78rem; padding: .1rem .45rem; border-radius: 4px; color: #fff; margin-right: .35rem; }
.pm-bkash { background: #d12053; }
.pm-nagad { background: #ec1c24; }
.pm-rocket { background: #8c3494; }
.pm-cod { background: var(--primary); }

/* ---------- Order status timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: -6px; border-left: 2px dashed #cfd6cc; }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #cfd6cc; border: 3px solid var(--surface); box-shadow: 0 0 0 1px #cfd6cc; }
.timeline li.done::after { background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline li.cancelled::after { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline small { color: var(--muted); display: block; }
.steps { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0 1rem; }
.steps::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; border-top: 2px dashed #cfd6cc; }
.steps .s { position: relative; text-align: center; flex: 1; font-size: .85rem; color: var(--muted); }
.steps .s i { width: 32px; height: 32px; border-radius: 50%; background: #e4e8e2; color: #8a978f; display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; margin-bottom: .35rem; }
.steps .s.done { color: var(--ink); font-weight: 600; }
.steps .s.done i { background: var(--primary); color: #fff; }

/* ---------- Account ---------- */
.account-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-nav a { display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; color: var(--ink); border-left: 3px solid transparent; }
.account-nav a + a, .account-nav form { border-top: 1px solid var(--line); }
.account-nav a.active { border-left-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.account-nav i { width: 1.2rem; text-align: center; color: var(--primary); }
.account-nav button { display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; width: 100%; border: 0; background: none; color: var(--accent); text-align: left; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 1.5rem; font-family: var(--font-display); color: var(--primary); }
.stat span { color: var(--muted); font-size: .9rem; }
.auth-card { max-width: 460px; margin: 2rem auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.auth-card h1 { font-size: 1.7rem; }
.status-badge { font-weight: 600; }
.table > :not(caption) > * > * { padding: .7rem .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: #13221c; color: #c9d3cd; margin-top: 3rem; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer a { color: #c9d3cd; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links li { padding: .2rem 0; }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; }
.footer-logo img { max-height: 46px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; margin-right: .35rem; }
.social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .875rem; }
.pay-methods .pm-badge { font-size: .8rem; padding: .2rem .5rem; }

/* ---------- Floating & mobile ---------- */
.float-chat { position: fixed; right: 16px; bottom: 80px; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; }
.float-chat a { width: 52px; height: 52px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.float-chat .wa { background: #25d366; }
.float-chat .ms { background: #0084ff; }
@media (min-width: 992px) { .float-chat { bottom: 24px; } }
body.product-page .float-chat { bottom: 140px; }
@media (min-width: 992px) { body.product-page .float-chat { bottom: 24px; } }

.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: var(--surface); border-top: 1px solid var(--line); z-index: 1035; display: flex; }
.mobile-nav a, .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .75rem; color: var(--muted); gap: .15rem; border: 0; background: none; position: relative; }
.mobile-nav i { font-size: 1.25rem; }
.mobile-nav .active { color: var(--primary); }
.mobile-nav .cart-count { left: calc(50% + 4px); right: auto; top: 6px; }

.toast-zone { position: fixed; top: 16px; right: 16px; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 32px); }
.js-toast { background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: .6rem; align-items: center; animation: toastIn .2s ease; }
.js-toast.error { background: var(--accent); }
.js-toast a { color: var(--highlight); font-weight: 700; margin-left: .5rem; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.offcanvas-cats a { display: block; padding: .55rem 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.unlicensed-bar { background: #fff4d6; color: #6b4e00; text-align: center; font-size: .85rem; padding: .4rem; }

@media print {
  .site-header, .main-nav, .topbar, .notice-bar, .site-footer, .mobile-nav, .float-chat, .no-print { display: none !important; }
  body { background: #fff; }
}
