/* ==========================================================================
   Hardware365 storefront styles
   Mobile-first. Brand: logo blue #0080D0, navy, with a restrained brass accent.
   Sections: 1 tokens · 2 base · 3 buttons/forms · 4 header · 5 footer/bottom nav
             6 cards · 7 home · 8 listing · 9 product · 10 cart/checkout
             11 account · 12 content pages · 13 utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --blue: #0b7fd1;
    --blue-600: #0a70ba;
    --blue-700: #085b98;
    --blue-50: #eef6fd;
    --blue-100: #d8ebfa;
    --navy: #0b1d36;
    --navy-2: #13294a;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e3e8ef;
    --line-2: #cfd8e3;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --brass: #a8773a;
    --brass-50: #f8f1e6;
    --success: #15803d;
    --success-50: #ecfdf3;
    --danger: #dc2626;
    --danger-50: #fef2f2;
    --warning: #b45309;
    --warning-50: #fffbeb;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 24px 60px -20px rgba(11, 29, 54, .35);
    --container: 1280px;
    --header-h: 64px;
    --bottom-nav-h: 64px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    overflow-x: hidden;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(11, 127, 209, .45); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 24px; } }

.section { padding-block: 40px; }
@media (min-width: 992px) { .section { padding-block: 64px; } }
.section-sm { padding-block: 24px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 560px; }
.section-head .link-more { white-space: nowrap; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.muted { color: var(--muted); }
.price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .9em; }
.tag-off { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--success-50); color: var(--success); font-size: 12px; font-weight: 700; }
.gst-note { font-size: 12px; color: var(--muted); font-weight: 500; }

/* 3. Buttons & forms ------------------------------------------------------- */
.btn-h {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 15px; line-height: 1.2; border: 1px solid transparent;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
    text-align: center; white-space: nowrap; user-select: none;
}
.btn-h:active { transform: translateY(1px); }
.btn-h:disabled, .btn-h.is-disabled { opacity: .55; pointer-events: none; }
.btn-h i { font-size: 1.05em; }
.btn-primary-h { background: var(--blue); color: #fff; }
.btn-primary-h:hover { background: var(--blue-600); color: #fff; }
.btn-dark-h { background: var(--navy); color: #fff; }
.btn-dark-h:hover { background: var(--navy-2); color: #fff; }
.btn-outline-h { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline-h:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-h { background: transparent; color: var(--blue-600); padding-inline: 8px; }
.btn-ghost-h:hover { background: var(--blue-50); }
.btn-brass-h { background: var(--brass); color: #fff; }
.btn-brass-h:hover { background: #8f6430; color: #fff; }
.btn-light-h { background: #fff; color: var(--navy); }
.btn-light-h:hover { background: var(--blue-50); color: var(--navy); }
.btn-lg-h { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn-sm-h { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-wa { background: #1faa53; color: #fff; }
.btn-wa:hover { background: #178a43; color: #fff; }

.field { margin-bottom: 14px; }
.field label, .label-h { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--danger); }
.input-h, .select-h, .textarea-h {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: 15px;
    transition: border-color .15s, box-shadow .15s; appearance: none;
}
.select-h { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.textarea-h { min-height: 96px; resize: vertical; }
.input-h:focus, .select-h:focus, .textarea-h:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 127, 209, .12); }
.input-h.is-invalid, .select-h.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.check-h { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check-h input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }

.alert-h { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-h i { font-size: 18px; line-height: 1.2; }
.alert-h ul { margin: 0; padding-left: 18px; }
.alert-success-h { background: var(--success-50); border-color: #bbf7d0; color: #14532d; }
.alert-error-h { background: var(--danger-50); border-color: #fecaca; color: #7f1d1d; }
.alert-info-h { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.alert-warn-h { background: var(--warning-50); border-color: #fde68a; color: #78350f; }

/* Qty stepper */
.qty-h { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; overflow: hidden; height: 44px; }
.qty-h button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.qty-h button:hover { background: var(--blue-50); color: var(--blue); }
.qty-h .qty-val { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-h.sm { height: 36px; }
.qty-h.sm button { width: 34px; font-size: 16px; }
.qty-h.sm .qty-val { min-width: 30px; font-size: 14px; }

/* Add to cart control (button that turns into a stepper) */
.atc { display: flex; gap: 8px; align-items: stretch; }
.atc .atc-add { flex: 1; }
.atc .qty-h { display: none; flex: 1; justify-content: space-between; }
.atc.in-cart .atc-add { display: none; }
.atc.in-cart .qty-h { display: inline-flex; }
.atc .qty-h .qty-val { flex: 1; }
.atc.is-busy { opacity: .6; pointer-events: none; }

/* 4. Header ---------------------------------------------------------------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: 13px; display: none; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-points { display: flex; gap: 22px; }
.topbar-points span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-points i { color: #7cc4f5; }
.topbar-contact { display: flex; gap: 18px; }
@media (min-width: 992px) { .topbar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-main .wrap { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand-logo img { height: 36px; width: auto; }
@media (min-width: 992px) { .brand-logo img { height: 44px; } .header-main .wrap { gap: 28px; min-height: 76px; } }
.menu-toggle { width: 42px; height: 42px; border: 0; background: transparent; border-radius: var(--radius-xs); display: grid; place-items: center; font-size: 24px; color: var(--ink); margin-left: -8px; }
@media (min-width: 992px) { .menu-toggle { display: none; } }

.search-h { position: relative; flex: 1; }
.search-h form { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s, box-shadow .15s, background .15s; }
.search-h form:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 127, 209, .12); }
.search-h input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 6px 11px 18px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.search-h button { border: 0; background: var(--blue); color: #fff; width: 40px; height: 40px; margin: 3px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; cursor: pointer; }
.search-h button:hover { background: var(--blue-600); }
.header-main .search-h { display: none; }
@media (min-width: 992px) { .header-main .search-h { display: block; max-width: 640px; } }
.search-mobile { padding: 0 16px 10px; background: #fff; }
@media (min-width: 992px) { .search-mobile { display: none; } }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1040; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.search-suggest .sg-head { padding: 10px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--ink); font-size: 14px; }
.search-suggest a img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); flex-shrink: 0; }
.search-suggest a .sg-ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.search-suggest a small { display: block; color: var(--muted); font-size: 12px; }
.search-suggest a.active, .search-suggest a:hover { background: var(--blue-50); }
.search-suggest .sg-all { justify-content: center; font-weight: 600; color: var(--blue-600); border-top: 1px solid var(--line); }
.search-suggest .sg-empty { padding: 16px; color: var(--muted); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.h-action { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.h-action:hover { background: var(--bg); color: var(--ink); }
.h-action > i { font-size: 22px; }
.h-action .h-text { display: none; text-align: left; line-height: 1.2; }
.h-action .h-text small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.h-action .h-text strong { font-size: 14px; font-weight: 700; }
@media (min-width: 992px) { .h-action .h-text { display: block; } }
.cart-badge { position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brass); color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
.cart-badge.show { display: inline-flex; }

.nav-bar { display: none; border-top: 1px solid var(--line); background: #fff; }
@media (min-width: 992px) { .nav-bar { display: block; } }
.nav-bar .wrap { display: flex; align-items: stretch; gap: 4px; min-height: 50px; }
.nav-bar .nav-link-h { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--text); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.nav-bar .nav-link-h:hover, .nav-bar .nav-link-h.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-item-h { position: relative; display: flex; }
.nav-all { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; margin-right: 8px; background: var(--navy); color: #fff !important; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.nav-all:hover { background: var(--navy-2); }
.nav-bar .nav-right { margin-left: auto; display: flex; align-items: center; }
.nav-bar .nav-trade { color: var(--brass); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.nav-bar .nav-trade:hover { color: #8f6430; }
.mega { position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 1035; }
.nav-item-h:hover .mega, .nav-item-h:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.mega a:hover { background: var(--blue-50); color: var(--blue-700); }
.mega a small { color: var(--muted); font-weight: 500; }
.mega-all { width: 640px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; padding: 16px; }
.mega-all .mega-group h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 6px 12px 6px; }
.mega-all .mega-group h6 a { padding: 0; display: inline; color: var(--ink); font-weight: 700; }

/* Off-canvas menu (mobile) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11, 29, 54, .5); opacity: 0; visibility: hidden; transition: .2s; z-index: 1060; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(88vw, 380px); background: #fff; z-index: 1070; display: flex; flex-direction: column; transition: transform .25s ease; box-shadow: var(--shadow-lg); }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); width: min(94vw, 420px); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h5 { margin: 0; font-size: 17px; }
.drawer-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 18px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.m-user { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--blue-50); margin: 8px 12px 10px; border-radius: var(--radius-sm); }
.m-user i { font-size: 26px; color: var(--blue); }
.m-user small { display: block; color: var(--muted); }
.m-links a, .m-cat > button, .m-cat-sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 18px; color: var(--ink); font-weight: 600; font-size: 15px; background: none; border: 0; text-align: left; }
.m-links a i:first-child, .m-cat > button i:first-child { color: var(--blue); width: 22px; font-size: 18px; }
.m-links a span, .m-cat > button span { display: flex; align-items: center; gap: 12px; }
.m-section-title { padding: 14px 18px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-cat > button .bi-chevron-down { transition: transform .2s; color: var(--muted); }
.m-cat.open > button .bi-chevron-down { transform: rotate(180deg); }
.m-cat-sub { display: none; background: var(--bg); padding: 4px 0; }
.m-cat.open .m-cat-sub { display: block; }
.m-cat-sub a { padding: 10px 18px 10px 52px; font-weight: 500; font-size: 14px; }

/* Cart drawer */
.cd-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cd-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.cd-item .cd-name { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-item .cd-unit { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.cd-item .cd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-item .cd-na { color: var(--danger); font-size: 12px; font-weight: 600; }
.cd-empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.cd-empty i { font-size: 48px; color: var(--line-2); display: block; margin-bottom: 12px; }
.cd-totals .row-t { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.cd-totals .row-t.total { font-size: 17px; font-weight: 700; color: var(--ink); margin: 10px 0 14px; }
.cd-loading { padding: 40px; text-align: center; color: var(--muted); }

/* Toast */
.toast-h { position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 1090; opacity: 0; visibility: hidden; transition: .2s; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast-h.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-h.error { background: var(--danger); }
.toast-h a { color: #9fd3fa; font-weight: 700; margin-left: 4px; }
@media (min-width: 992px) { .toast-h { bottom: 24px; } }

/* 5. Footer & bottom nav ---------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: 14px; margin-top: 0; }
.footer-trust { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-trust .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-block: 24px; }
@media (min-width: 992px) { .footer-trust .wrap { grid-template-columns: repeat(4, 1fr); } }
.ft-item { display: flex; gap: 12px; align-items: flex-start; }
.ft-item i { font-size: 22px; color: #7cc4f5; }
.ft-item strong { display: block; color: #fff; font-size: 14px; }
.ft-item span { font-size: 13px; }
.footer-main .wrap { display: grid; gap: 28px; padding-block: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 992px) { .footer-main .wrap { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 48px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 992px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 340px; }
.site-footer h6 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links a { display: block; color: rgba(255, 255, 255, .72); padding: 5px 0; }
.footer-links a:hover { color: #fff; }
.footer-contact div { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: #7cc4f5; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 16px; }
.footer-bottom a { color: rgba(255, 255, 255, .72); margin-right: 16px; }
.footer-bottom a:hover { color: #fff; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); }
.bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bottom-nav-h); color: var(--muted); font-size: 11px; font-weight: 600; background: none; border: 0; }
.bottom-nav i { font-size: 21px; }
.bottom-nav .active { color: var(--blue); }
.bottom-nav .cart-badge { top: 8px; left: calc(50% + 4px); }
@media (min-width: 992px) { .bottom-nav { display: none; } }

.wa-float { position: fixed; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 1040; width: 52px; height: 52px; border-radius: 50%; background: #1faa53; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 24px -6px rgba(31, 170, 83, .6); }
.wa-float:hover { color: #fff; background: #178a43; }
@media (min-width: 992px) { .wa-float { bottom: 24px; right: 24px; } }

.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 1080; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; max-width: 720px; margin-inline: auto; }
.cookie-bar p { margin: 0; flex: 1 1 260px; color: var(--muted); }
.cookie-bar .actions { display: flex; gap: 8px; }
@media (min-width: 992px) { .cookie-bar { bottom: 20px; } }

/* 6. Product cards ----------------------------------------------------------- */
.grid-products { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.grid-products.cols-3 { }
@media (min-width: 1200px) { .grid-products.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.p-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.p-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: opacity .3s, transform .4s; }
.p-media img.alt { opacity: 0; }
@media (hover: hover) {
    .p-card:hover .p-media img.main { transform: scale(1.04); }
    .p-card:hover .p-media img.alt + img.main, .p-card:hover .p-media.has-alt img.main { opacity: 0; }
    .p-card:hover .p-media.has-alt img.alt { opacity: 1; }
}
.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.p-badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--success); color: #fff; }
.p-badge.brand { background: rgba(11, 29, 54, .85); }
.p-body { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 4px; }
@media (min-width: 768px) { .p-body { padding: 16px; } }
.p-cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin: 0; }
@media (min-width: 768px) { .p-title { font-size: 15px; } }
.p-title a { color: inherit; }
.p-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.p-swatches span { font-size: 11px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); }
.p-price { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.p-price .from { font-size: 12px; color: var(--muted); width: 100%; }
.p-price .price { font-size: 17px; }
@media (min-width: 768px) { .p-price .price { font-size: 19px; } }
.p-price .unit { font-size: 12px; color: var(--muted); }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; position: relative; z-index: 2; }
.p-foot .p-variants { font-size: 12px; color: var(--muted); }
.p-foot .btn-h { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.p-card.is-list { }

/* Category cards */
.grid-cats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.c-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.c-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.c-card .c-img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f8fafc, #eef3f8); display: grid; place-items: center; overflow: hidden; }
.c-card .c-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .4s; }
.c-card:hover .c-img img { transform: scale(1.05); }
.c-card .c-body { padding: 12px 14px 14px; }
.c-card h3 { font-size: 15px; margin: 0 0 2px; }
@media (min-width: 768px) { .c-card h3 { font-size: 17px; } }
.c-card .c-count { font-size: 13px; color: var(--muted); }
.c-card .c-subs { display: none; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (min-width: 768px) { .c-card .c-subs { display: flex; } }
.c-card .c-subs span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-weight: 600; }

/* Empty state */
.empty-h { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-h i { font-size: 44px; color: var(--line-2); display: block; margin-bottom: 12px; }
.empty-h h3 { font-size: 20px; }
.empty-h p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* Page header / breadcrumb */
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 18px; }
@media (min-width: 992px) { .page-head .wrap { padding-block: 28px; } }
.page-head h1 { font-size: clamp(22px, 3vw, 32px); margin: 6px 0 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs li:last-child { color: var(--ink); font-weight: 500; }

/* 7. Home -------------------------------------------------------------------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(11, 127, 209, .35), transparent 60%), linear-gradient(135deg, #0b1d36 0%, #0f2a4d 55%, #10325c 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 28px; padding-block: 32px 36px; }
@media (min-width: 992px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding-block: 64px; } }
.hero .eyebrow { color: #e3bd83; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #7cc4f5; }
.hero p.lead-h { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 540px; margin-bottom: 24px; }
@media (min-width: 992px) { .hero p.lead-h { font-size: 18px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.hero-points span { display: inline-flex; gap: 8px; align-items: center; }
.hero-points i { color: #7cc4f5; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) { .hero-tiles { gap: 14px; } }
.hero-tile { position: relative; display: block; background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12% 12% 26%; transition: transform .4s; }
.hero-tile:hover img { transform: scale(1.05); }
.hero-tile .ht-label { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
@media (min-width: 768px) { .hero-tile .ht-label { font-size: 14px; } }
.hero-tile .ht-label i { color: var(--blue); }
.hero-tile:hover { color: var(--ink); }

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; padding-block: 18px; }
@media (min-width: 992px) { .trust-strip .wrap { grid-template-columns: repeat(4, 1fr); padding-block: 22px; } }
.ts-item { display: flex; gap: 12px; align-items: center; }
.ts-item .ts-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 20px; }
.ts-item strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.25; }
.ts-item span { font-size: 12px; color: var(--muted); }

.finish-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.finish-row::-webkit-scrollbar { display: none; }
.finish-chip { scroll-snap-align: start; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14px; }
.finish-chip:hover { border-color: var(--blue); color: var(--blue); }
.finish-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); box-shadow: inset 0 2px 4px rgba(255, 255, 255, .5), inset 0 -3px 6px rgba(0, 0, 0, .15); background: #c9ccd1; }
.finish-chip small { color: var(--muted); font-weight: 500; }

.brand-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .brand-row { grid-template-columns: repeat(4, 1fr); } }
.brand-card { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px; min-height: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.brand-card:hover { border-color: var(--blue); color: var(--ink); box-shadow: var(--shadow-sm); }
.brand-card strong { font-size: 18px; letter-spacing: .04em; }
.brand-card span { font-size: 13px; color: var(--muted); }

.trade-band { background: linear-gradient(120deg, var(--brass-50), #fff 60%); border: 1px solid #ecdcc3; border-radius: calc(var(--radius) + 6px); overflow: hidden; display: grid; }
@media (min-width: 992px) { .trade-band { grid-template-columns: 1.2fr 1fr; } }
.trade-band .tb-copy { padding: 26px 22px; }
@media (min-width: 992px) { .trade-band .tb-copy { padding: 44px; } }
.trade-band h2 { font-size: clamp(22px, 2.8vw, 32px); }
.trade-band ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.trade-band li { display: flex; gap: 10px; align-items: flex-start; }
.trade-band li i { color: var(--brass); font-size: 18px; }
.trade-band .tb-stats { background: var(--navy); color: #fff; padding: 26px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: center; }
@media (min-width: 992px) { .trade-band .tb-stats { padding: 44px; } }
.tb-stat strong { display: block; font-size: 26px; color: #fff; letter-spacing: -.02em; }
.tb-stat span { font-size: 13px; color: rgba(255, 255, 255, .7); }

.steps { display: grid; gap: 12px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step .step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.help-band { background: var(--blue); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 992px) { .help-band { padding: 32px 40px; } }
.help-band h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 4px; }
.help-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.help-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 8. Listing ---------------------------------------------------------------- */
.listing { display: grid; gap: 20px; padding-block: 20px 40px; }
@media (min-width: 992px) { .listing { grid-template-columns: 264px 1fr; gap: 28px; padding-block: 28px 64px; } }
.filters { display: none; }
@media (min-width: 992px) { .filters { display: block; align-self: start; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; } }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.filter-box h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a, .filter-list label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.filter-list a:hover, .filter-list label:hover { background: var(--bg); }
.filter-list a.active { background: var(--blue-50); color: var(--blue-700); font-weight: 700; }
.filter-list small { color: var(--muted); font-size: 12px; }
.filter-list .sub { padding-left: 14px; }
.filter-list .sub a { font-size: 13px; }
.filter-list label span { display: flex; align-items: center; gap: 8px; }
.filter-list input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar .count strong { color: var(--ink); }
.toolbar .tools { display: flex; gap: 8px; align-items: center; }
.toolbar .select-h { min-height: 40px; width: auto; font-size: 14px; }
.btn-filter { display: inline-flex; }
@media (min-width: 992px) { .btn-filter { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.active-filters a:hover { border-color: var(--danger); color: var(--danger); }
.subcat-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.subcat-pills::-webkit-scrollbar { display: none; }
.subcat-pills a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; }
.subcat-pills a.active, .subcat-pills a:hover { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
.pager { margin-top: 28px; display: flex; justify-content: center; }
.pager .pagination { flex-wrap: wrap; gap: 6px; margin: 0; }
.pager .page-link { border-radius: 10px !important; border: 1px solid var(--line); color: var(--ink); min-width: 40px; height: 40px; display: grid; place-items: center; font-weight: 600; }
.pager .page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .page-item.disabled .page-link { color: var(--line-2); }

/* 9. Product page ------------------------------------------------------------ */
.pdp { display: grid; gap: 20px; padding-block: 16px 32px; }
@media (min-width: 992px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; padding-block: 28px 56px; align-items: start; } }
.gallery { display: grid; gap: 10px; }
@media (min-width: 992px) { .gallery { position: sticky; top: 150px; grid-template-columns: 76px 1fr; gap: 14px; } }
.gallery-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; overflow: hidden; }
@media (min-width: 992px) { .gallery-main { order: 2; } }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .gallery-thumbs { order: 1; flex-direction: column; max-height: 560px; overflow-y: auto; } }
.gallery-thumbs button { flex-shrink: 0; width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; cursor: pointer; }
@media (min-width: 992px) { .gallery-thumbs button { width: 76px; height: 76px; } }
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pd-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brass); text-transform: uppercase; letter-spacing: .08em; }
.pd-title { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 8px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pd-meta strong { color: var(--ink); font-weight: 600; }
.pd-price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pd-price .price { font-size: 30px; letter-spacing: -.02em; }
.pd-price .unit { color: var(--muted); font-size: 14px; }
.pd-price-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pd-trade-note { margin-top: 10px; font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--brass-50); color: #6b4a1f; display: flex; gap: 8px; align-items: center; }
.pd-trade-note a { color: #6b4a1f; font-weight: 700; text-decoration: underline; }

.opt-group { margin-bottom: 16px; }
.opt-group .opt-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.opt-group .opt-label span { font-weight: 500; color: var(--muted); }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; transition: .12s; }
.opt-btn:hover { border-color: var(--blue); }
.opt-btn.active { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue); }
.opt-btn.unavailable { color: var(--line-2); border-style: dashed; text-decoration: line-through; }
.pd-selected { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.pd-selected strong { color: var(--ink); }
.pd-buy { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; flex-wrap: wrap; }
.pd-buy .atc { flex: 1 1 240px; }
.pd-buy .atc .btn-h, .pd-buy .atc .qty-h { min-height: 52px; height: 52px; font-size: 16px; }
.pd-assure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 768px) { .pd-assure { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .pd-assure { grid-template-columns: repeat(2, 1fr); } }
.pd-assure div { display: flex; gap: 10px; align-items: center; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pd-assure i { color: var(--blue); font-size: 18px; }
.pd-help { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }

.pd-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.pd-section > h2 { font-size: 18px; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pd-section .pd-section-body { padding: 16px 18px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: #fafbfc; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.price-list { display: grid; }
.pl-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.pl-row:last-child { border-bottom: 0; }
.pl-row.selected { background: var(--blue-50); }
.pl-row img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pl-name { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.35; }
.pl-attrs { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pl-sku { font-size: 11px; color: var(--muted); }
.pl-buy { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pl-buy .atc { width: 150px; }
.pl-buy .atc .btn-h, .pl-buy .atc .qty-h { min-height: 38px; height: 38px; font-size: 14px; }
@media (min-width: 768px) {
    .pl-row { grid-template-columns: 56px 1fr auto 170px; gap: 16px; }
    .pl-buy { grid-column: auto / span 2; display: contents; }
    .pl-buy .atc { width: auto; }
}
.pl-price { text-align: left; white-space: nowrap; }
.pl-price .price { font-size: 16px; }
.pl-price small { display: block; color: var(--muted); font-size: 12px; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 1045; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 20px rgba(15, 23, 42, .08); transform: translateY(120%); transition: transform .2s; }
.sticky-buy.show { transform: none; }
.sticky-buy .sb-price { line-height: 1.2; }
.sticky-buy .sb-price .price { font-size: 18px; }
.sticky-buy .sb-price small { display: block; font-size: 12px; color: var(--muted); }
.sticky-buy .atc { flex: 1; }
@media (min-width: 992px) { .sticky-buy { display: none; } }

/* 10. Cart & checkout ------------------------------------------------------- */
.cart-layout { display: grid; gap: 20px; padding-block: 20px 40px; }
@media (min-width: 992px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-block: 28px 64px; align-items: start; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 17px; margin: 0; }
.panel-body { padding: 16px 18px; }

.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
@media (min-width: 768px) { .cart-line { grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; } }
.cart-line .cl-img { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
@media (min-width: 768px) { .cart-line .cl-img { width: 96px; height: 96px; } }
.cart-line .cl-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cl-brand { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.cl-name { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; display: block; }
.cl-name:hover { color: var(--blue); }
.cl-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cl-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 768px) { .cl-actions { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.cl-total { text-align: right; line-height: 1.25; }
.cl-total .price { font-size: 17px; }
.cl-remove { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; cursor: pointer; }
.cl-remove:hover { color: var(--danger); }
.cl-na { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 4px; }
.cart-line.is-busy { opacity: .5; pointer-events: none; }

.summary { position: sticky; top: 150px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; color: var(--text); }
.sum-row .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.sum-row.discount .v { color: var(--success); }
.sum-row.total { border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.sum-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sum-save { margin-top: 10px; background: var(--success-50); color: var(--success); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 8px; text-align: center; }
.mobile-checkout-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 1045; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 20px rgba(15, 23, 42, .08); }
.mobile-checkout-bar .price { font-size: 19px; }
.mobile-checkout-bar small { display: block; color: var(--muted); font-size: 12px; }
@media (min-width: 992px) { .mobile-checkout-bar { display: none; } }
.has-mobile-bar { padding-bottom: 80px; }
@media (min-width: 992px) { .has-mobile-bar { padding-bottom: 0; } }

.stepper { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--muted); overflow-x: auto; }
.stepper li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stepper li + li::before { content: ""; width: 24px; height: 2px; background: var(--line-2); }
@media (min-width: 768px) { .stepper li + li::before { width: 48px; } }
.stepper .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; }
.stepper li.done .n { background: var(--success); border-color: var(--success); color: #fff; }
.stepper li.current { color: var(--ink); }
.stepper li.current .n { border-color: var(--blue); background: var(--blue); color: #fff; }

.addr-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr-card { position: relative; display: block; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 14px 14px 46px; cursor: pointer; background: #fff; transition: .12s; font-size: 14px; }
.addr-card:hover { border-color: var(--blue); }
.addr-card input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--blue); }
.addr-card:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.addr-card strong { display: block; color: var(--ink); font-size: 15px; }
.addr-card .addr-tags { display: flex; gap: 6px; margin: 4px 0 6px; }
.addr-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.addr-tag.default { background: var(--success-50); color: var(--success); }
.addr-card .addr-text { color: var(--muted); line-height: 1.5; }

.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(6, 1fr); } .form-grid .c2 { grid-column: span 2; } .form-grid .c3 { grid-column: span 3; } .form-grid .c6 { grid-column: span 6; } }

.pay-options { display: grid; gap: 10px; }
.pay-opt { position: relative; display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 14px 14px 46px; cursor: pointer; background: #fff; transition: .12s; }
.pay-opt input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--blue); }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.pay-opt .po-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 20px; color: var(--navy); flex-shrink: 0; }
.pay-opt strong { display: block; color: var(--ink); }
.pay-opt span { font-size: 13px; color: var(--muted); }
.qr-box { display: none; margin-top: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 16px; background: #fff; }
.qr-box.show { display: block; }
.qr-box .qr-img { width: 200px; max-width: 100%; margin: 0 auto 10px; border-radius: 12px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.review-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-line:last-child { border-bottom: 0; }
.review-line img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-line .rl-name { font-weight: 600; color: var(--ink); line-height: 1.35; }
.review-line .rl-meta { font-size: 12px; color: var(--muted); }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input-h { min-height: 42px; text-transform: uppercase; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--success-50); color: var(--success); font-size: 13px; font-weight: 600; }
.coupon-applied button { border: 0; background: none; color: var(--danger); font-weight: 700; font-size: 13px; cursor: pointer; }

.success-hero { text-align: center; padding: 32px 16px 8px; }
.success-hero .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; font-size: 40px; margin: 0 auto 14px; }
.success-hero h1 { font-size: clamp(24px, 3vw, 32px); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .kv { grid-template-columns: repeat(4, 1fr); } }
.kv div { background: var(--bg); border-radius: 10px; padding: 12px; }
.kv small { display: block; color: var(--muted); font-size: 12px; }
.kv strong { color: var(--ink); font-size: 15px; word-break: break-word; }

/* 11. Account ---------------------------------------------------------------- */
.account { display: grid; gap: 20px; padding-block: 20px 40px; }
@media (min-width: 992px) { .account { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 28px 64px; align-items: start; } }
.acc-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 992px) { .acc-nav { position: sticky; top: 150px; } }
.acc-user { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--blue-50), #fff); }
.acc-user .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.acc-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-user strong { display: block; color: var(--ink); line-height: 1.2; }
.acc-user small { color: var(--muted); }
.acc-links { display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; gap: 4px; }
.acc-links::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .acc-links { flex-direction: column; padding: 8px; } }
.acc-links a { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.acc-links a i { font-size: 17px; color: var(--muted); }
.acc-links a:hover { background: var(--bg); }
.acc-links a.active { background: var(--blue-50); color: var(--blue-700); }
.acc-links a.active i { color: var(--blue); }
.acc-links a.logout { color: var(--danger); }
.acc-links a.logout i { color: var(--danger); }
.acc-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.acc-title h1 { font-size: 24px; margin: 0; }
.acc-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 992px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-card small { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; font-size: 24px; color: var(--ink); margin-top: 4px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.order-card .oc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-card .oc-head div small { display: block; color: var(--muted); }
.order-card .oc-head strong { color: var(--ink); }
.order-card .oc-body { padding: 14px 16px; }
.order-card .oc-items { display: flex; gap: 8px; flex-wrap: wrap; }
.order-card .oc-items img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.order-card .oc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-success { background: var(--success-50); color: var(--success); }
.pill-warning { background: var(--warning-50); color: var(--warning); }
.pill-danger { background: var(--danger-50); color: var(--danger); }
.pill-primary { background: var(--blue-50); color: var(--blue-700); }
.pill-secondary { background: var(--bg); color: var(--muted); }
.table-h { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-h th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.table-h td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 12. Content pages --------------------------------------------------------- */
.prose-h { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: 15px; line-height: 1.75; }
@media (min-width: 992px) { .prose-h { padding: 40px 48px; } }
.prose-h h2 { font-size: 20px; margin-top: 1.6em; }
.prose-h h3 { font-size: 17px; margin-top: 1.4em; }
.prose-h ul, .prose-h ol { padding-left: 20px; }
.prose-h li { margin-bottom: 6px; }
.prose-h > :first-child { margin-top: 0; }
.content-layout { display: grid; gap: 20px; padding-block: 20px 48px; }
@media (min-width: 992px) { .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-block: 32px 64px; align-items: start; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); }
.contact-card i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 19px; flex-shrink: 0; }
.contact-card strong { display: block; color: var(--ink); }
.contact-card span { font-size: 14px; color: var(--muted); word-break: break-word; }

/* 13. Utilities -------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px; }
.w-100 { width: 100%; }
.text-right { text-align: right; }
.hide-mobile { display: none !important; }
@media (min-width: 992px) { .hide-mobile { display: initial !important; } .hide-desktop { display: none !important; } }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f6f8fa 37%, #eef2f6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.visually-hidden-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phones: the whole card is a link, so the footer button is dropped to save room. */
@media (max-width: 767.98px) {
    .p-foot .btn-h { display: none; }
    .p-foot { margin-top: 6px; }
    .p-price .unit { width: auto; }
    .hero-cta .btn-h { flex: 1 1 auto; }
}
@media (min-width: 992px) { .pd-info-grid:has(> :nth-child(2)) { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.pd-buy .atc-add:disabled { background: var(--line-2); }
.toast-h { display: block; border-radius: 14px; line-height: 1.4; width: max-content; max-width: min(92vw, 440px); }
.toast-h i { margin-right: 6px; }

/* Compatibility for older pages not yet redesigned (addresses, business, team, invoices, policy pages). */
.acc-main .account-title, .acc-main h3.account-title { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.acc-main .account-subtitle { color: var(--muted); margin-bottom: 16px; }
.acc-main > form, .acc-main > .card, .acc-main > .row, .acc-main > div:not(.acc-title):not(.stat-grid):not(.order-card):not(.empty-h):not(.panel):not(.pd-trade-note):not(.section-head) { }
.form-control, .form-select { min-height: 44px; border-radius: var(--radius-sm); border-color: var(--line-2); font-size: 15px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 127, 209, .12); }
.form-label { font-weight: 600; font-size: 13px; color: var(--ink); }
.btn-theme, .bnt-shape { background: var(--blue); color: #fff; border: 0; border-radius: var(--radius-sm); font-weight: 700; min-height: 44px; padding: 10px 20px; }
.btn-theme:hover, .bnt-shape:hover { background: var(--blue-600); color: #fff; }
.btn-outline-theme { background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 700; min-height: 44px; }
.card { border-color: var(--line); border-radius: var(--radius); }
.table-responsive, .acc-main table { font-size: 14px; }
main .hero-section { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
main .hero-section h1 { font-size: clamp(24px, 3vw, 32px); }
main > section.space, main > section[class*="-page"], main > .container { padding-block: 28px; }
@media (max-width: 767.98px) { .acc-main table { display: block; overflow-x: auto; white-space: nowrap; } }

/* Header search (v2) ------------------------------------------------------ */
.search-h form { position: relative; padding-left: 44px; border-radius: 12px; background: #f1f5f9; border: 1.5px solid transparent; }
.search-h form:focus-within, .search-h.is-open form { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 127, 209, .12); }
.search-h .search-lead { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.search-h.is-loading .search-lead { animation: sg-pulse .8s ease-in-out infinite alternate; }
@keyframes sg-pulse { to { color: var(--blue); } }
.search-h input { padding: 12px 6px; font-size: 15px; }
.search-h input::-webkit-search-cancel-button { display: none; }
.search-h .search-clear { width: 32px; height: 32px; margin: 0; background: transparent; color: #94a3b8; border-radius: 50%; font-size: 16px; }
.search-h .search-clear:hover { color: var(--ink); background: transparent; }
.search-h .search-go { width: auto; height: 40px; margin: 4px; padding: 0 18px; border-radius: 9px; font-weight: 700; font-size: 14px; }
@media (max-width: 991.98px) {
    .search-h .search-go { width: 40px; padding: 0; font-size: 0; }
    .search-h .search-go::before { content: "\F52A"; font-family: "bootstrap-icons"; font-size: 16px; }
}
.search-suggest { top: calc(100% + 8px); border-radius: 14px; padding: 6px 0; max-height: min(72vh, 560px); box-shadow: 0 24px 60px -18px rgba(11, 29, 54, .35), 0 2px 6px rgba(15, 23, 42, .06); }
.search-suggest .sg-head { padding: 12px 16px 6px; }
.search-suggest mark { background: #fff3c4; color: inherit; padding: 0 1px; border-radius: 3px; }
.search-suggest .sg-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px 6px; }
.search-suggest .sg-cat { padding: 8px; border: 1px solid var(--line); border-radius: 10px; gap: 10px; }
.search-suggest .sg-cat img, .search-suggest .sg-cat .sg-ico { width: 38px; height: 38px; }
.search-suggest .sg-cat b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest .sg-cat > span:last-child { min-width: 0; }
.search-suggest .sg-cat.active, .search-suggest .sg-cat:hover { border-color: var(--blue); background: var(--blue-50); }
.search-suggest .sg-prod { padding: 8px 16px; }
.search-suggest .sg-prod img { width: 46px; height: 46px; background: #fff; }
.search-suggest .sg-txt { flex: 1; min-width: 0; }
.search-suggest .sg-txt small { text-transform: uppercase; letter-spacing: .05em; font-size: 11px; font-weight: 700; color: var(--brass); }
.search-suggest .sg-txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest .sg-price { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.search-suggest .sg-price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.search-suggest .sg-price s { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.search-suggest .sg-all { gap: 8px; margin-top: 4px; padding: 12px 16px; }
.search-suggest .sg-empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 24px 20px; }
.search-suggest .sg-empty i { font-size: 26px; color: var(--line-2); }
.search-suggest .sg-empty strong { color: var(--ink); }
.search-suggest .sg-loading { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 991.98px) {
    .search-mobile { position: relative; z-index: 1041; }
    .search-suggest { max-height: calc(100vh - 190px); }
}

/* Policy / legacy content pages (pages/*.blade.php) ----------------------- */
main > .hero-section { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0 !important; }
@media (min-width: 992px) { main > .hero-section { padding: 34px 0 !important; } }
main > .hero-section .container { max-width: var(--container); padding-inline: 16px; }
main > .hero-section .page-header h1, main > .hero-section h1 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 6px; color: var(--ink); }
main > .hero-section p, main > .hero-section .text-muted { color: var(--muted) !important; margin: 0; max-width: 760px; font-size: 15px; }
main > .hero-section .breadcrumb, main > .hero-section .breadcrumb-wrap { font-size: 13px; color: var(--muted); }
main > .hero-section::before { content: ""; display: block; }
main > .container.py-5 { max-width: 920px; padding-block: 24px 48px !important; }
@media (min-width: 992px) { main > .container.py-5 { padding-block: 36px 64px !important; } }
main > .container .card.rounded-4 { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
main > .container .card.rounded-4 .card-body { padding: 22px !important; font-size: 15px; line-height: 1.75; }
@media (min-width: 992px) { main > .container .card.rounded-4 .card-body { padding: 40px 48px !important; } }
main > .container .card.rounded-4 h5, main > .container .card.rounded-4 h4 { font-size: 18px; color: var(--ink); margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
main > .container .card.rounded-4 .text-muted { color: var(--text) !important; }
main > .container .card.rounded-4 ul { padding-left: 20px; }
main > .container .card.rounded-4 li { margin-bottom: 4px; }
main > .container .card.rounded-4 .mb-4 + .mb-4 { padding-top: 18px; border-top: 1px dashed var(--line); }
main > .container .card.rounded-4 a { font-weight: 600; }
main > .container.py-5 .text-center.mb-5 h1 { font-size: clamp(24px, 3.2vw, 34px); color: var(--ink); } main > .container.py-5 .text-center.mb-5 { margin-bottom: 24px !important; }

/* Cookie notice: small corner card so it never covers "Add to cart" or checkout buttons. */
.cookie-bar { left: 12px; right: 12px; max-width: 380px; margin: 0; padding: 12px 14px; gap: 10px; font-size: 12.5px; }
.cookie-bar p { flex-basis: 100%; }
.cookie-bar .actions { width: 100%; justify-content: flex-end; }
@media (min-width: 992px) { .cookie-bar { left: 20px; right: auto; bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Cart drawer (v2) --------------------------------------------------------- */
.cart-drawer { width: min(100vw, 440px); background: #f7f9fb; }
@media (max-width: 479.98px) { .cart-drawer { width: 100vw; } }
.cd-head { background: #fff; padding: 14px 16px; }
.cd-title { display: flex; align-items: center; gap: 12px; }
.cd-title-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 19px; }
.cd-title h5 { font-size: 17px; margin: 0; line-height: 1.2; }
.cd-title small { color: var(--muted); font-size: 12.5px; }
.cd-strip { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 8px 16px; background: var(--success-50); color: #166534; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid #d1fadf; }
.cd-strip i { margin-right: 4px; }
.cart-drawer .drawer-body { padding: 12px; }
.cd-list { display: grid; gap: 10px; }
.cd-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: opacity .15s, border-color .15s; position: relative; }
.cd-item:hover { border-color: var(--line-2); }
.cd-item.is-busy { opacity: .5; pointer-events: none; }
.cd-item.is-na { border-color: #fecaca; background: #fffafa; }
.cd-img { position: relative; display: block; width: 76px; height: 76px; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.cd-img img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cd-off { position: absolute; left: 4px; bottom: 4px; background: var(--success); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.cd-info { min-width: 0; display: flex; flex-direction: column; }
.cd-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cd-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brass); }
.cd-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.35; }
.cd-name:hover { color: var(--blue); }
.cd-remove { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; margin: -4px -4px 0 0; }
.cd-remove:hover { background: var(--danger-50); color: var(--danger); }
.cd-unit { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; }
.cd-na { color: var(--danger); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.cd-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-price { text-align: right; line-height: 1.2; }
.cd-price strong { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-price s { font-size: 12px; color: var(--muted); }
.cd-skeleton { display: grid; gap: 10px; }
.cd-skeleton .skeleton { height: 100px; border-radius: 14px; }
.cd-foot { background: #fff; box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .25); padding-top: 12px; }
.cd-save { display: flex; align-items: center; gap: 8px; justify-content: center; margin: -2px 0 10px; padding: 7px 10px; border-radius: 10px; background: var(--success-50); color: var(--success); font-size: 13px; font-weight: 600; }
.cd-totals .row-t { margin-bottom: 4px; font-size: 13.5px; }
.cd-totals .row-t.total { margin: 8px 0 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 17px; }
.cd-green { color: var(--success); font-weight: 600; }
.cd-checkout { justify-content: space-between !important; padding-inline: 20px !important; }
.cd-checkout-total { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cd-viewcart { display: block; text-align: center; margin-top: 10px; font-weight: 600; font-size: 14px; }
.cd-trust { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.cd-trust i { color: var(--blue); margin-right: 3px; }
.cd-empty { text-align: center; padding: 36px 16px 20px; }
.cd-empty-ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); color: var(--blue); font-size: 36px; }
.cd-empty h6 { font-size: 18px; margin-bottom: 6px; }
.cd-empty p { color: var(--muted); font-size: 14px; max-width: 280px; margin: 0 auto 18px; }
.cd-empty-cats { margin-top: 28px; text-align: left; }
.cd-empty-cats > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cd-empty-cats div { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-empty-cats a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.cd-empty-cats a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 767.98px) {
    .cd-foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
    .cd-totals .row-t:not(.total), .cd-trust { display: none; }
    .cd-totals .row-t.total { margin: 0 0 10px; padding-top: 0; border-top: 0; }
    .cd-save { margin: 0 0 8px; padding: 5px 10px; font-size: 12.5px; }
    .cd-viewcart { margin-top: 8px; font-size: 13.5px; }
}
