/* =====================================================================
   styles.css — MediBridge B2B Pharma Marketplace
   Shared design system used by products.html & product-details.html
   ---------------------------------------------------------------------
   Aesthetic: clinical-premium. Trustworthy medical teal/emerald +
   deep slate ink on warm off-white. Crisp cards, soft elevation.
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body).
   ===================================================================== */

/* ----------  DESIGN TOKENS  ---------- */
:root {
    /* Brand */
    --teal-900: #0F4C81;
    --teal-800: #3FA9F5;
    /* --teal-700: #0e6b5b; */
    --teal-600: #0f4c81;
    /* --teal-500: #16a085; */
    --teal-100: #d6efe9;
    --teal-50: #eef8f5;

    /* Ink / neutrals */
    --ink-900: #0d1b22;
    --ink-700: #2b3c44;
    --ink-500: #586a72;
    --ink-400: #7f9098;
    --line: #e3eae8;
    --surface: #ffffff;
    --bg: #f3f7f5;
    --bg-2: #eaf2ef;

    /* Accents */
    --amber: #d98324;
    --amber-bg: #fbeed7;
    --green: #1f9d57;
    --green-bg: #e2f5ea;
    --red: #d64545;
    --red-bg: #fbe6e6;
    --gold: #f0a500;

    /* Effects */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-1: 0 1px 2px rgba(13, 27, 34, .05), 0 1px 3px rgba(13, 27, 34, .06);
    --shadow-2: 0 6px 16px rgba(13, 27, 34, .08);
    --shadow-3: 0 18px 40px -12px rgba(6, 48, 42, .28);
    --ring: 0 0 0 4px rgba(22, 160, 133, .18);

    --maxw: 1280px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* ---- Header / Topbar tokens ---- */
    --topbar-bg: #0F4C81;
    --topbar-bg-gradient: linear-gradient(135deg, #0F4C81 0%, #073B7A 100%);
    --topbar-text: rgba(255, 255, 255, 0.95);
    --topbar-text-muted: rgba(255, 255, 255, 0.75);
    --topbar-divider: rgba(255, 255, 255, 0.15);
    /* Matches the home page "Become a distributor" CTA (green pill). */
    --cta-bg: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --cta-bg-hover: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --cta-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    --cta-shadow-hover: 0 6px 20px rgba(16, 185, 129, 0.5);
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    --color-primary: #0F4C81;
    --color-secondary: #3FA9F5;
    --color-text: #0d1b22;
    --color-text-soft: #586a72;
    --color-text-muted: #7f9098;
    --color-bg: #ffffff;
    --color-bg-light: #f3f7f5;
    --color-border: #e3eae8;
    --color-border-strong: #c5d5d0;
    --color-sidebar-dark: #073B7A;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --surface-glass-scrolled: rgba(255, 255, 255, 0.97);
    --header-height: 70px;
    --container-max: 1280px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --radius-md: 10px;
    --radius-pill: 999px;
    --transition-base: 250ms ease;
    --transition-fast: 150ms ease;
    --transition-slow: 350ms ease;
    --dur: 250ms;
    --shadow-md: 0 4px 16px rgba(13, 27, 34, 0.1);
    --shadow-glow: 0 4px 16px rgba(63, 169, 245, 0.25);
}

/* ----------  RESET  ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(1200px 600px at 100% -5%, var(--bg-2), transparent 60%),
        var(--bg);
    line-height: 1.55;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* ----------  LAYOUT HELPERS  ---------- */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

.section-title {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
    font-weight: 700;
    color: var(--ink-900);
}

.muted {
    color: var(--ink-500);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .02em;
}


/* =============================================================
   TOP BAR
   ============================================================= */
.topbar {
    width: 100%;
    min-height: 44px;
    background: var(--topbar-bg-gradient);
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    font-family: var(--font-body);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 100;
}

.topbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    flex-wrap: nowrap;
}

.topbar__contact {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

.topbar__item { display: inline-flex; align-items: center; flex-shrink: 0; }

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--topbar-text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 4px 2px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.topbar__link:hover { color: #ffffff; }

.topbar__link:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 4px; }

.topbar__divider {
    width: 1px;
    height: 18px;
    flex-shrink: 0;
    background: var(--topbar-divider);
}

.topbar__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.topbar__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--cta-bg);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-pill);
    box-shadow: var(--cta-shadow), inset 0 1px 0 rgba(255,255,255,.25);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.topbar__cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}

.topbar__cta:hover {
    background: var(--cta-bg-hover);
    transform: translateY(-1px);
    box-shadow: var(--cta-shadow-hover), inset 0 1px 0 rgba(255,255,255,.35);
}

.topbar__cta:hover::before { left: 120%; }
.topbar__cta:active { transform: translateY(0); }
.topbar__cta:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

.topbar__social {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.topbar__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.22);
    color: var(--topbar-text);
    font-size: 12px;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
                transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.topbar__social-link:hover {
    background: rgba(255,255,255,.95);
    border-color: rgba(255,255,255,.95);
    color: var(--topbar-bg);
    transform: translateY(-2px);
}

.topbar__social-link:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

/* Responsive topbar — single row at all widths ≥640px, stacked below */
@media (max-width: 1200px) {
    .topbar__container { padding: 0 16px; gap: 16px; }
    .topbar__contact { gap: 14px; }
    .topbar__link { font-size: 12.5px; }
}

@media (max-width: 1024px) {
    .topbar__container { gap: 12px; }
    .topbar__contact { gap: 10px; }
    .topbar__link { font-size: 12px; gap: 6px; }
}

@media (max-width: 860px) {
    .topbar__container { gap: 10px; }
    .topbar__contact { gap: 8px; }
    .topbar__link { font-size: 11.5px; gap: 5px; }
    .topbar__cta { padding: 7px 14px; font-size: 12.5px; }
    .topbar__social-link { width: 26px; height: 26px; }
    .topbar__social { gap: 4px; }
}

@media (max-width: 640px) {
    .topbar__container {
        padding: 8px 14px;
        height: auto;
        min-height: 44px;
        flex-direction: column;
        gap: 6px;
    }
    .topbar__contact {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        flex-shrink: unset;
        overflow: visible;
    }
    .topbar__actions { width: 100%; justify-content: space-between; gap: 10px; }
    .topbar__cta { padding: 7px 14px; font-size: 12px; }
    .topbar__social-link { width: 26px; height: 26px; }
    .topbar__link { font-size: 12px; }
    .topbar__divider { display: none; }
}

@media (max-width: 380px) {
    .topbar__social li:nth-child(n+4) { display: none; }
    .topbar__contact { gap: 8px; }
}

/* =============================================================
   STICKY HEADER
   ============================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface-glass);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.header.is-scrolled {
    background: var(--surface-glass-scrolled);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--color-border-strong);
}

.header-inner {
    color: #000;
    font-weight: 600;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    width: max-content;
    transition: transform var(--transition-fast);
}

.logo:hover { transform: translateY(-1px); }

.logo-mark {
    width: 50px; height: 50px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.logo-mark::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 50%);
    pointer-events: none;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
    color: var(--color-primary);
}

.logo-tag {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Desktop nav */
.nav-desktop { display: none; }

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    padding: 0; margin: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px var(--space-4);
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 6px;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-base);
}

.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: calc(100% - 32px); }
.nav-link.is-active { color: var(--color-primary); font-weight: 600; }
.nav-link.is-active::after { width: calc(100% - 32px); }

.nav-link--promo {
    background: linear-gradient(135deg, rgba(15,76,129,.06), rgba(63,169,245,.10));
    border: 1px solid rgba(63,169,245,.25);
    color: var(--color-primary);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    margin-left: var(--space-2);
}

.nav-link--promo::after { display: none; }

.nav-link--promo:hover {
    background: linear-gradient(135deg, rgba(15,76,129,.12), rgba(63,169,245,.18));
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.promo-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(63,169,245,.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(63,169,245,.2); }
    50%       { box-shadow: 0 0 0 6px rgba(63,169,245,.05); }
}

/* Action buttons */
.actions { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; }

.icon-btn {
    position: relative;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--color-text-soft);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn svg { width: 20px; height: 20px; transition: transform var(--transition-fast); }
.icon-btn:hover { color: var(--color-primary); }
.icon-btn:hover svg { transform: scale(1.08); }
.icon-btn:active { transform: scale(0.96); }

/* Header counter badges — override the stock-status .badge styles defined later.
   The stock-status badge is a large pill with a ::before dot; the header counter
   badge must be a small circle positioned at the top-right of its icon button. */
.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--color-primary, #0F4C81), var(--color-secondary, #00BCD4));
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--font-body, sans-serif);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(15, 76, 129, 0.35);
    border: 2px solid var(--color-bg, #fff);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* reset pill styles */
    gap: 0;
    letter-spacing: 0;
    pointer-events: none;
    line-height: 1;
}
.icon-btn .badge::before { display: none !important; }
.icon-btn .badge.empty { display: none; }
.icon-btn .badge.pulse { transform: scale(1.4); }

/* Cart / wishlist badge */
.hdr-badge {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--font-body);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(15,76,129,.35);
    border: 2px solid var(--color-bg);
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}

.hdr-badge.empty { display: none; }
.hdr-badge.pulse { transform: scale(1.4); }

/* Sign-in / Logout button */
.btn-signin {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 18px;
    margin-left: var(--space-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-sidebar-dark) 100%);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(15,76,129,.25);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,76,129,.35); }
.btn-signin:active { transform: translateY(0); }

@media (min-width: 1100px) { .btn-signin { display: inline-flex; } }

@media (min-width: 1024px) and (max-width: 1280px) {
    .nav-link { padding: 10px 10px; font-size: 14px; }
    .header-inner { gap: var(--space-3); }
}

.btn-logout { background: #ef4444; }
.btn-logout:hover { box-shadow: 0 8px 22px rgba(239,68,68,.35); }

/* Hamburger */
.hamburger {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hamburger:hover { background: rgba(63,169,245,.08); }

.hamburger-box { width: 22px; height: 16px; position: relative; }

.hamburger-line {
    position: absolute;
    left: 0; width: 100%; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast), top var(--transition-base);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 7px; width: 75%; }
.hamburger-line:nth-child(3) { top: 14px; }

.hamburger.is-active .hamburger-line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.is-active .hamburger-line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

@media (min-width: 1024px) { .hamburger { display: none; } }

/* Mobile responsive icon tweaks */
@media (max-width: 768px) {
    .logo-tag { display: none; }
    .icon-btn[data-action="wishlist"],
    .icon-btn[data-action="account"] { display: none; }
}

@media (max-width: 380px) {
    .logo-name { font-size: 17px; }
    .icon-btn { width: 38px; height: 38px; }
}

/* =============================================================
   MOBILE DRAWER
   ============================================================= */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(11,46,79,.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 99;
}

.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 88%);
    height: 100dvh;
    background: var(--color-bg);
    box-shadow: -16px 0 48px rgba(15,76,129,.12);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 110;
    display: flex;
    flex-direction: column;
}

.drawer.is-open { transform: translateX(0); }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.drawer-close {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--color-text-soft);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-close:hover { background: rgba(63,169,245,.08); color: var(--color-primary); }

.drawer-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--space-4);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-1);
    text-decoration: none;
}

.drawer-link svg { width: 16px; height: 16px; opacity: 0.5; }

.drawer-link:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    transform: translateX(4px);
}

.drawer-link--promo {
    background: linear-gradient(135deg, rgba(15,76,129,.06), rgba(63,169,245,.10));
    color: var(--color-primary);
    font-weight: 600;
    margin-top: var(--space-2);
}

.drawer-section-title {
    margin-top: 20px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.drawer-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 14px var(--space-5);
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sidebar-dark));
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 18px rgba(15,76,129,.25);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.drawer-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15,76,129,.35); }
.drawer-cta.drawer-logout { background: #ef4444; box-shadow: 0 6px 18px rgba(239,68,68,.25); }
.drawer-cta.drawer-logout:hover { background: #dc2626; box-shadow: 0 10px 26px rgba(239,68,68,.40); }

.drawer-meta {
    margin-top: var(--space-4);
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ----------  BUTTONS  ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 18px;
    border-radius: 12px;
    transition: .22s var(--ease);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--teal-600), var(--teal-800));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(10, 77, 66, .6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(10, 77, 66, .65);
}

.btn-ghost {
    background: var(--surface);
    color: var(--teal-700);
    border: 1px solid var(--teal-100);
}

.btn-ghost:hover {
    background: var(--teal-50);
    border-color: var(--teal-500);
}

.btn-dark {
    background: var(--ink-900);
    color: #fff;
}

.btn-dark:hover {
    background: var(--teal-800);
}

.btn-block {
    width: 100%;
}

.btn:active {
    transform: translateY(0) scale(.99);
}

/* ----------  STATUS BADGES  ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    letter-spacing: .01em;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.badge.in {
    background: var(--green-bg);
    color: var(--green);
}

.badge.in::before {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 157, 87, .18);
}

.badge.low {
    background: var(--amber-bg);
    color: var(--amber);
}

.badge.low::before {
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(217, 131, 36, .18);
}

.badge.out {
    background: var(--red-bg);
    color: var(--red);
}

.badge.out::before {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(214, 69, 69, .18);
}

/* ----------  RATING STARS  ---------- */
.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--gold);
}

.stars svg {
    width: 15px;
    height: 15px;
}

.stars .empty {
    color: #d8e0dd;
}

/* ----------  PRODUCT VISUAL (SVG illustration container)  ---------- */
.pv {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 30% 10%, #fbfdfc, var(--bg-2));
    display: grid;
    place-items: center;
}

.pv svg {
    width: 64%;
    height: 64%;
    filter: drop-shadow(0 12px 20px rgba(6, 48, 42, .18));
}

/* Real product image — fills the 4:3 tile cover-style so it always looks
   like a polished product photo. Falls back to the SVG illustration above
   when no image was uploaded for the product. */
.pv .card-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pv .cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .9);
    color: var(--teal-700);
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ======================================================================
   PRODUCTS LISTING PAGE
   ====================================================================== */
.page-head {
    padding: 34px 0 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--ink-400);
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--teal-700);
}

.breadcrumb .sep {
    color: #c2cecb;
}

.breadcrumb .current {
    color: var(--ink-700);
    font-weight: 600;
}

.page-head h1 {
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 800;
    margin-top: 12px;
}

.page-head p {
    color: var(--ink-500);
    max-width: 60ch;
    margin-top: 6px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    padding: 22px 0 80px;
    align-items: start;
}

/* Sticky filter sidebar — reset all style.css sidebar overrides */
.sidebar,
.sidebar.open,
.sidebar.is-open {
    position: sticky !important;
    top: 90px !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    z-index: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: unset !important;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.filter-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}

.filter-head .reset-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--teal-600);
}

.filter-head .reset-link:hover {
    text-decoration: underline;
}

.filter-scroll {
    max-height: calc(100vh - 230px);
    overflow-y: auto;
}

.filter-scroll::-webkit-scrollbar {
    width: 8px;
}

.filter-scroll::-webkit-scrollbar-thumb {
    background: #d3ddd9;
    border-radius: 8px;
}

.fgroup {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.fgroup:last-child {
    border-bottom: none;
}

.fgroup>.flabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-700);
    margin-bottom: 14px;
}

.search-box {
    position: relative;
}

.search-box svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--ink-400);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .9rem;
    background: var(--bg);
    transition: .2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: var(--ring);
}

.check {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 0;
    font-size: .9rem;
    color: var(--ink-700);
    cursor: pointer;
    user-select: none;
}

.check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check .box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.8px solid #cdd8d4;
    display: grid;
    place-items: center;
    flex: none;
    transition: .18s var(--ease);
}

.check .box svg {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: .18s var(--ease);
}

.check input:checked+.box {
    background: var(--teal-600);
    border-color: var(--teal-600);
}

.check input:checked+.box svg {
    opacity: 1;
    transform: scale(1);
}

.check:hover .box {
    border-color: var(--teal-500);
}

.check .tally {
    margin-left: auto;
    font-size: .76rem;
    color: var(--ink-400);
}

/* Price range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price-inputs .pinput {
    flex: 1;
}

.price-inputs label {
    font-size: .7rem;
    color: var(--ink-400);
    font-weight: 600;
}

.price-inputs input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .85rem;
    background: var(--bg);
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--teal-500);
    background: #fff;
    box-shadow: var(--ring);
}

.price-inputs .dash {
    color: var(--ink-400);
    margin-top: 16px;
}

.range-wrap {
    position: relative;
    height: 34px;
}

.range-track {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 5px;
    background: #dde6e3;
    border-radius: 5px;
}

.range-fill {
    position: absolute;
    top: 14px;
    height: 5px;
    background: var(--teal-500);
    border-radius: 5px;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 100%;
    top: 7px;
    height: 20px;
    background: none;
    pointer-events: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--teal-600);
    box-shadow: var(--shadow-2);
    cursor: grab;
}

input[type=range]::-moz-range-thumb {
    pointer-events: auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--teal-600);
    box-shadow: var(--shadow-2);
    cursor: grab;
}

.range-out {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--ink-500);
    font-weight: 600;
    margin-top: 6px;
}

/* star filter rows */
.rate-row .star-line {
    color: var(--gold);
    font-size: .95rem;
    letter-spacing: 1px;
}

.rate-row .star-line .dim {
    color: #d8e0dd;
}

.filter-actions {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--bg);
}

/* Results header */
.results-head {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.results-head .count-txt {
    font-size: .92rem;
    color: var(--ink-500);
}

.results-head .count-txt b {
    color: var(--ink-900);
}

.results-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-700);
}

.sort-select:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: var(--ring);
}

.filter-toggle {
    display: none !important;
}

.filter-backdrop {
    display: none !important;
}

/* active filter chips */
.active-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal-50);
    color: var(--teal-700);
    border: 1px solid var(--teal-100);
    padding: 5px 8px 5px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.chip button {
    color: var(--teal-700);
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.chip button:hover {
    background: var(--teal-100);
}

/* Product grid */
.product-grid {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 22px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    animation: cardIn .5s var(--ease) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
    border-color: var(--teal-100);
}

.card-media {
    padding: 14px 14px 0;
    cursor: pointer;
}

.card-media .pv {
    aspect-ratio: 5/4;
}

.card .wish {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    color: var(--ink-400);
    box-shadow: var(--shadow-1);
    transition: .2s var(--ease);
    z-index: 3;
}

.card .wish:hover {
    color: var(--red);
    transform: scale(1.08);
}

.card .wish.active {
    color: var(--red);
}

.card .wish.active svg {
    fill: var(--red);
}

.card .wish svg {
    width: 18px;
    height: 18px;
}

.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card .brandline {
    font-size: .76rem;
    font-weight: 700;
    color: var(--teal-600);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.card h3.pname {
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.25;
}

.card h3.pname:hover {
    color: var(--teal-700);
}

.card .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--ink-500);
    flex-wrap: wrap;
}

.card .meta-row .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c4d0cc;
}

.card .rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--ink-500);
}

.card .rating-row b {
    color: var(--ink-900);
}

.price-block {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 2px;
}

.price-block .retail {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--ink-900);
    font-family: "Bricolage Grotesque", sans-serif;
}

.price-block .mrp {
    font-size: .9rem;
    color: var(--ink-400);
    text-decoration: line-through;
}

.price-block .save {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-bg);
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: auto;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.card-actions .btn {
    padding: 11px 12px;
    font-size: .85rem;
}

.card-actions .btn-primary {
    flex: 1;
}

.card-actions .btn-ghost {
    flex: none;
}

/* Skeleton loaders */
.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 14px;
}

.sk {
    background: linear-gradient(100deg, #eef2f0 30%, #f7faf9 50%, #eef2f0 70%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.sk-media {
    aspect-ratio: 5/4;
    border-radius: 12px;
}

.sk-line {
    height: 12px;
    margin-top: 12px;
}

.sk-line.w60 {
    width: 60%;
}

.sk-line.w40 {
    width: 40%;
}

.sk-line.w80 {
    width: 80%;
}

.sk-btn {
    height: 40px;
    margin-top: 16px;
    border-radius: 11px;
}

/* Empty state */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 70px 20px;
    color: var(--ink-500);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    color: #c4d0cc;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--ink-900);
    margin-bottom: 6px;
}

/* ======================================================================
   PRODUCT DETAILS PAGE
   ====================================================================== */
.detail-wrap {
    padding: 24px 0 80px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    margin-top: 18px;
}

/* Gallery */
.gallery .main-img {
    background: radial-gradient(120% 120% at 30% 10%, #fbfdfc, var(--bg-2));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery .main-img svg {
    width: 62%;
    height: 62%;
    transition: transform .4s var(--ease);
    filter: drop-shadow(0 18px 28px rgba(6, 48, 42, .2));
}

.gallery .main-img:hover svg {
    transform: scale(1.12);
}

.gallery .zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(13, 27, 34, .7);
    color: #fff;
    font-size: .72rem;
    padding: 6px 11px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery .zoom-hint svg {
    width: 14px;
    height: 14px;
}

.thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.thumb {
    width: 76px;
    height: 76px;
    border-radius: 13px;
    border: 2px solid var(--line);
    background: radial-gradient(120% 120% at 30% 10%, #fbfdfc, var(--bg-2));
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s var(--ease);
    flex: none;
}

.thumb svg {
    width: 58%;
    height: 58%;
}

.thumb:hover {
    border-color: var(--teal-300, var(--teal-100));
}

.thumb.active {
    border-color: var(--teal-600);
    box-shadow: var(--ring);
}

/* Hero info */
.hero-info .brandtag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--teal-700);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hero-info h1 {
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 800;
    margin: 14px 0 10px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--ink-500);
    font-size: .9rem;
}

.hero-meta .rev {
    color: var(--teal-700);
    font-weight: 600;
}

.hero-cat {
    color: var(--ink-500);
}

/* Pricing card */
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    margin-top: 22px;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.pcell {
    padding: 16px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pcell:nth-child(3n) {
    border-right: none;
}

.pcell .lab {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-400);
    font-weight: 700;
}

.pcell .val {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-top: 4px;
    font-family: "Bricolage Grotesque", sans-serif;
}

.pcell .val.big {
    font-size: 1.6rem;
    color: var(--teal-700);
}

.pcell .val.strike {
    text-decoration: line-through;
    color: var(--ink-400);
    font-weight: 600;
}

/* Purchase section (sticky) */
.purchase {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    padding: 20px;
}

.purchase .stock-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    width: max-content;
}

.qty button {
    width: 42px;
    height: 44px;
    font-size: 1.2rem;
    color: var(--teal-700);
    background: var(--bg);
    transition: .15s;
}

.qty button:hover {
    background: var(--teal-50);
}

.qty input {
    width: 64px;
    height: 44px;
    text-align: center;
    border: none;
    border-inline: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 700;
}

.qty input:focus {
    outline: none;
}

.purchase .qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.purchase .qty-row .moq-note {
    font-size: .8rem;
    color: var(--ink-500);
}

.purchase .cta-grid {
    display: grid;
    gap: 10px;
}

.purchase .cta-grid .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.purchase .mini-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.purchase .mini-actions .btn {
    flex: 1;
    font-size: .82rem;
    padding: 10px;
}

/* Detail sections */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    margin-top: 56px;
    align-items: start;
}

.sticky-rail {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-1);
}

.block>h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block>h2 .ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--teal-50);
    color: var(--teal-700);
    display: grid;
    place-items: center;
    flex: none;
}

.block>h2 .ic svg {
    width: 17px;
    height: 17px;
}

.block p {
    color: var(--ink-700);
}

.block h4 {
    font-size: .95rem;
    font-weight: 700;
    margin: 16px 0 6px;
    color: var(--ink-900);
}

.tick-list li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    color: var(--ink-700);
    font-size: .92rem;
}

.tick-list li svg {
    width: 18px;
    height: 18px;
    color: var(--teal-600);
    flex: none;
    margin-top: 2px;
}

.comp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 9px;
    font-weight: 600;
    color: var(--ink-900);
}

.comp-list li .num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--teal-600);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .8rem;
    flex: none;
}

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th {
    text-align: left;
    padding: 13px 4px;
    font-size: .85rem;
    color: var(--ink-500);
    font-weight: 600;
    width: 42%;
}

.spec-table td {
    padding: 13px 4px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-900);
}

/* Benefit cards */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.benefit {
    background: linear-gradient(150deg, var(--teal-50), #fff);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius);
    padding: 18px;
    transition: .25s var(--ease);
}

.benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.benefit .bic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--teal-600), var(--teal-800));
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.benefit .bic svg {
    width: 21px;
    height: 21px;
}

.benefit h4 {
    font-size: .98rem;
    margin: 0 0 4px;
}

.benefit p {
    font-size: .8rem;
    color: var(--ink-500);
}

/* side effects / storage chips */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 600;
}

.fx-chip.warn {
    background: var(--amber-bg);
    color: #9a5a13;
}

.fx-chip.store {
    background: var(--teal-50);
    color: var(--teal-800);
}

.fx-chip svg {
    width: 16px;
    height: 16px;
}

/* distributor + delivery info rows */
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .ric {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bg);
    color: var(--teal-700);
    display: grid;
    place-items: center;
    flex: none;
}

.info-row .ric svg {
    width: 18px;
    height: 18px;
}

.info-row .rl {
    font-size: .76rem;
    color: var(--ink-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.info-row .rv {
    font-weight: 700;
    color: var(--ink-900);
    font-size: .95rem;
}

/* Document cards */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: .22s var(--ease);
    text-align: left;
}

.doc-card:hover {
    background: #fff;
    border-color: var(--teal-100);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

.doc-card .dic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--red-bg);
    color: var(--red);
    display: grid;
    place-items: center;
    flex: none;
}

.doc-card .dic svg {
    width: 22px;
    height: 22px;
}

.doc-card .dt {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink-900);
}

.doc-card .ds {
    font-size: .76rem;
    color: var(--ink-400);
}

.doc-card .dl {
    margin-left: auto;
    color: var(--teal-600);
}

/* Reviews */
.rating-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.rating-big {
    text-align: center;
}

.rating-big .num {
    font-size: 3.4rem;
    font-weight: 800;
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: 1;
    color: var(--ink-900);
}

.rating-big .total {
    font-size: .85rem;
    color: var(--ink-500);
    margin-top: 8px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rbar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .82rem;
    color: var(--ink-500);
}

.rbar .star-n {
    width: 40px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: var(--ink-700);
}

.rbar .track {
    flex: 1;
    height: 8px;
    background: var(--bg-2);
    border-radius: 8px;
    overflow: hidden;
}

.rbar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-700));
    border-radius: 8px;
}

.rbar .pct {
    width: 36px;
    text-align: right;
}

.review-card {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.review-card:last-child {
    border-bottom: none;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-head .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--teal-500), var(--teal-800));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex: none;
}

.review-head .rn {
    font-weight: 700;
    color: var(--ink-900);
}

.review-head .rd {
    font-size: .78rem;
    color: var(--ink-400);
}

.review-card p {
    color: var(--ink-700);
    font-size: .92rem;
}

/* FAQ accordion */
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 11px;
    overflow: hidden;
    transition: .2s var(--ease);
}

.faq-item.open {
    border-color: var(--teal-100);
    box-shadow: var(--shadow-1);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    font-weight: 700;
    color: var(--ink-900);
    text-align: left;
    font-size: .96rem;
}

.faq-q .chev {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--bg);
    color: var(--teal-700);
    display: grid;
    place-items: center;
    flex: none;
    transition: .25s var(--ease);
}

.faq-item.open .faq-q .chev {
    background: var(--teal-600);
    color: #fff;
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
}

.faq-a p {
    padding: 0 18px 18px;
    color: var(--ink-600, var(--ink-700));
    font-size: .92rem;
}

/* Return policy cards */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.policy {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.policy .pic {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--teal-50);
    color: var(--teal-700);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.policy h4 {
    margin: 0 0 6px;
    font-size: .98rem;
}

.policy p {
    font-size: .85rem;
    color: var(--ink-500);
}

/* Similar products carousel/grid */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ----------  FOOTER  ---------- */
.footer {
    background: #ffffff;
    color: #0f4c81;
    padding: 48px 24px 0;
    margin-top: 48px;
    position: relative;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: #0f4c81;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(15,76,129,0.35);
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.back-to-top.show { display: flex; }
.back-to-top:hover {
    background: var(--teal-800);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15,76,129,0.4);
}

/* Footer Top grid */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
    align-items: flex-start;
}

/* Vertical dividers – hidden on small screens */
.divider-vertical {
    display: none;
    background: var(--color-border);
    width: 1px;
    min-height: 150px;
    opacity: 0.4;
}

/* Company info */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-logo .logo-text {
    font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f4c81;
    line-height: 1.25;
    display: block;
}
.company-description {
    color: #0f4c81;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
    opacity: 0.85;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #0f4c81;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.social-icon:hover {
    background: #0f4c81;
    color: #fff;
    border-color: #0f4c81;
    transform: translateY(-3px);
}

/* Section titles */
.footer-title {
    font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0f4c81;
    margin-bottom: 14px;
    padding-bottom: 8px;
    position: relative;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #0f4c81;
    border-radius: 1px;
}

/* Footer links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.link-item {
    color: #0f4c81;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: padding-left 200ms ease, opacity 200ms ease;
    opacity: 0.82;
}
.link-item::before {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 200ms ease, transform 200ms ease;
    font-size: 0.8rem;
}
.link-item:hover { padding-left: 6px; opacity: 1; }
.link-item:hover::before { opacity: 1; transform: translateX(0); }

/* Contact */
.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    transition: transform 200ms ease;
}
.contact-item:hover { transform: translateX(3px); }
.contact-item svg { color: #0f4c81; }
.contact-label {
    font-size: 0.78rem;
    color: #0f4c81;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    opacity: 0.65;
}
.contact-value {
    color: #0f4c81;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    opacity: 0.85;
    transition: opacity 200ms ease;
}
.contact-value:hover { opacity: 1; }

/* Horizontal divider */
.divider-horizontal {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 28px 0;
    opacity: 0.6;
}

/* Newsletter */
.newsletter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
}
.newsletter-title {
    font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f4c81;
    margin-bottom: 6px;
}
.newsletter-subtitle {
    color: #0f4c81;
    font-size: 0.9rem;
    opacity: 0.75;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-group {
    display: flex;
    gap: 8px;
}
.newsletter-input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(15, 76, 129, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #0d1b22;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.newsletter-input::placeholder { color: var(--color-text-muted); }
.newsletter-input:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15,76,129,0.12);
}
.newsletter-btn {
    padding: 0.7rem 1.1rem;
    background: #0f4c81;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.newsletter-btn:hover {
    background: var(--teal-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,76,129,0.3);
}
.newsletter-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.newsletter-message {
    font-size: 0.82rem;
    min-height: 18px;
}
.newsletter-message.success { color: #1f9d57; }
.newsletter-message.error   { color: #d64545; }

/* Footer bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding-bottom: 24px;
}
.copyright,
.footer-credit {
    font-size: 0.82rem;
    color: #0f4c81;
    opacity: 0.8;
}
.footer-credit { text-align: right; }
.footer-credit a {
    color: #0f4c81;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-credit a:hover { opacity: 0.7; }

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%       { transform: scale(1.18); }
    50%       { transform: scale(1); }
}

/* ----------  TOAST  ---------- */
.toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--ink-900);
    color: #fff;
    padding: 13px 18px;
    border-radius: 13px;
    box-shadow: var(--shadow-3);
    font-size: .9rem;
    font-weight: 600;
    transform: translateX(120%);
    animation: toastIn .35s var(--ease) forwards;
}

.toast .ti {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--teal-600);
    display: grid;
    place-items: center;
    flex: none;
}

.toast .ti svg {
    width: 15px;
    height: 15px;
}

@keyframes toastIn {
    to {
        transform: none;
    }
}

.toast.hide {
    animation: toastOut .3s var(--ease) forwards;
}

@keyframes toastOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ----------  LIGHTBOX (image zoom)  ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 48, 42, .85);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: none;
    place-items: center;
    padding: 30px;
}

.lightbox.open {
    display: grid;
}

.lightbox .lb-inner {
    background: radial-gradient(120% 120% at 30% 10%, #fbfdfc, #d9e8e3);
    border-radius: var(--radius-lg);
    width: min(560px, 90vw);
    aspect-ratio: 1/1;
    display: grid;
    place-items: center;
    position: relative;
}

.lightbox .lb-inner svg {
    width: 70%;
    height: 70%;
}

.lightbox .lb-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink-900);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-2);
}

/* ----------  RESPONSIVE  ---------- */
@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .sticky-rail {
        position: static;
        flex-direction: column;
    }

    .rating-summary {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 880px) {
    .shop-layout {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 680px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .sidebar.open,
    .sidebar.is-open {
        position: static !important;
        top: auto !important;
        width: 100% !important;
    }

    .filter-card {
        display: flex;
        flex-direction: column;
    }

    .filter-scroll {
        max-height: 340px;
    }

    .filter-backdrop {
        display: none;
    }

    .filter-toggle {
        display: none;
    }

    .nav {
        display: none;
    }
}

@media (max-width: 560px) {
    .container {
        padding-inline: 16px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pcell:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .pcell:nth-child(2n) {
        border-right: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
    .divider-vertical {
        display: none !important;
    }
    .newsletter-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-credit { text-align: center; }
    .input-group { flex-direction: column; }
    .newsletter-input, .newsletter-btn { width: 100%; }
    .back-to-top { width: 40px; height: 40px; bottom: 1rem; right: 1rem; }

    .topbar .container .hide-sm {
        display: none;
    }

    .purchase .cta-grid .two {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FLOATING CART / WISHLIST PANELS
   ============================================================ */

/* ── Slide Panel: overlay ── */
.fpanel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
    z-index: 190;
}
.fpanel-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ── Slide Panel: drawer ── */
.fpanel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100dvh;
    background: #fff;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 60px rgba(10, 20, 60, 0.20);
}
.fpanel.is-open { transform: translateX(0); }

/* ── Panel: header ── */
.fpanel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #EEF0F5;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
}
.fpanel-title {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-weight: 700;
    font-size: 17px;
    color: #0d1b2a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.fpanel-title svg { color: #0F4C81; flex-shrink: 0; }
.fpanel-count {
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 99px;
    font-family: var(--font-body, sans-serif);
    letter-spacing: 0.01em;
}
.fpanel-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #6B7280;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    background: none;
    border: 1.5px solid transparent;
    flex-shrink: 0;
}
.fpanel-close:hover { background: #F3F4F6; border-color: #E5E7EB; color: #111827; }

/* ── Panel: scrollable body ── */
.fpanel-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 16px;
}
.fpanel-body::-webkit-scrollbar { width: 3px; }
.fpanel-body::-webkit-scrollbar-track { background: transparent; }
.fpanel-body::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 4px; }

/* ── Panel: footer ── */
.fpanel-foot {
    padding: 16px 20px 18px;
    border-top: 1px solid #EEF0F5;
    background: #FAFBFD;
    flex-shrink: 0;
}

/* ── Empty state ── */
.fpanel-empty {
    padding: 52px 28px 36px;
    text-align: center;
}
.fpanel-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15,76,129,.1) 0%, rgba(0,188,212,.06) 100%);
    border: 1.5px dashed rgba(15,76,129,.25);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    color: #0F4C81;
}
.fpanel-empty-icon svg { width: 30px; height: 30px; }
.fpanel-empty-icon--heart {
    background: linear-gradient(135deg, rgba(244,63,94,.1) 0%, rgba(251,113,133,.06) 100%);
    border-color: rgba(244,63,94,.25);
    color: #F43F5E;
}
.fpanel-empty-big {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-weight: 700;
    font-size: 15.5px;
    color: #111827;
    margin: 0 0 6px;
}
.fpanel-empty-sub {
    font-size: 12.5px;
    color: #9CA3AF;
    max-width: 240px;
    margin: 0 auto 20px;
    line-height: 1.65;
}
.fpanel-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #1565C0 0%, #0F4C81 100%);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    transition: all .2s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 4px 14px rgba(15,76,129,.28);
    font-family: var(--font-body, sans-serif);
}
.fpanel-empty-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(15,76,129,.38); }

/* ── Cart line item ── */
.fline {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #F3F4F6;
    align-items: start;
}
.fline:last-child { border-bottom: 0; }

.fline-thumb {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(15,76,129,.07) 0%, rgba(0,188,212,.05) 100%);
    border: 1px solid rgba(15,76,129,.12);
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.fline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fline-svg {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 4px;
}
.fline-svg svg { width: 100%; height: 100%; }

.fline-info { min-width: 0; }
.fline-name {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-weight: 700;
    font-size: 13px;
    color: #111827;
    margin: 0 0 2px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fline-comp {
    font-size: 11px;
    color: #9CA3AF;
    margin: 0 0 2px;
}
.fline-rate {
    font-size: 11px;
    color: #6B7280;
    margin: 0 0 7px;
}
.fline-rate--price {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F4C81;
    margin: 0;
}

.fline-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
}
.fline-total {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-weight: 800;
    font-size: 13.5px;
    color: #111827;
}
.fline-remove {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: #D1D5DB;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.fline-remove:hover { color: #EF4444; background: rgba(239,68,68,.08); }
.fline-remove svg { pointer-events: none; }

/* ── Qty stepper ── */
.fqty { display: flex; align-items: center; gap: 5px; }
.fqty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid rgba(15,76,129,.18);
    background: #fff;
    color: #0F4C81;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.fqty-btn:hover { background: rgba(15,76,129,.07); border-color: rgba(15,76,129,.38); }
.fqty-btn svg { pointer-events: none; }
.fqty-inp {
    width: 42px;
    height: 28px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #111827;
    font-family: var(--font-body, sans-serif);
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
}
.fqty-inp:focus { border-color: #0F4C81; }

/* ── Totals ── */
.ftotals { margin-bottom: 14px; }
.ftotals-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #6B7280;
    padding: 4px 0;
}
.ftotals-row.grand {
    font-size: 14.5px;
    color: #111827;
    font-weight: 800;
    border-top: 1.5px solid #E5E7EB;
    margin-top: 8px;
    padding-top: 10px;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
}

/* ── Checkout / Add-All button ── */
.fbtn-checkout {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1565C0 0%, #0F4C81 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    border-radius: 11px;
    cursor: pointer;
    border: none;
    margin-bottom: 8px;
    transition: all 0.2s cubic-bezier(.22,.61,.36,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15,76,129,.28);
    letter-spacing: .01em;
}
.fbtn-checkout:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(15,76,129,.38); }
.fbtn-checkout:active { transform: scale(0.98); }
.fbtn-checkout svg { pointer-events: none; }

.ffoot-note {
    font-size: 11px;
    color: #9CA3AF;
    text-align: center;
    line-height: 1.55;
}

/* ── Wishlist line item ── */
.fwish-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #F3F4F6;
}
.fwish-line:last-child { border-bottom: 0; }
.fwish-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
    padding-top: 2px;
}
.fwish-move {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #0F4C81;
    background: rgba(15,76,129,.08);
    border: none;
    border-radius: 7px;
    padding: 6px 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    font-family: var(--font-body, sans-serif);
}
.fwish-move:hover { background: rgba(15,76,129,.15); }
.fwish-move svg { pointer-events: none; }

@media (max-width: 480px) {
    .fpanel { width: 100vw; }
    .fline { grid-template-columns: 48px 1fr auto; }
    .fline-thumb { width: 48px; height: 48px; }
}