/* =====================================================================
   Inteso – public site design system
   Built on Bootstrap 5.3. Mobile-first; breakpoints follow Bootstrap
   (sm 576 · md 768 · lg 992 · xl 1200 · xxl 1400).
   ===================================================================== */

:root {
    --brand: #d71920;
    --brand-600: #b8141a;
    --brand-700: #961015;
    --brand-50: #fdf1f1;
    --brand-100: #fbe0e1;
    --gold: #f2a900;
    --gold-50: #fff8e6;
    --ink: #111827;
    --ink-2: #374151;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --surface-2: #f7f7f5;
    --success: #15803d;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .08);
    --shadow: 0 6px 20px rgba(17, 24, 39, .08);
    --shadow-lg: 0 18px 40px rgba(17, 24, 39, .14);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --bs-primary: var(--brand);
    --bs-primary-rgb: 215, 25, 32;
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-700);
    --bs-body-font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-color: var(--ink-2);
    --bs-border-color: var(--line);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid rgba(215, 25, 32, .35); outline-offset: 2px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--surface-2); }
@media (min-width: 992px) { .section { padding: 88px 0; } }

.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .6rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin-bottom: .5rem; }
.section-desc { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .65rem 1.35rem; transition: all .2s var(--ease); }
.btn-sm { padding: .4rem .9rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); color: #fff; box-shadow: 0 8px 20px rgba(215, 25, 32, .28); }
.btn-brand:active { background: var(--brand-700) !important; border-color: var(--brand-700) !important; color: #fff !important; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #dc9900; border-color: #dc9900; color: var(--ink); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-light-brand { background: var(--brand-50); color: var(--brand); border: 0; }
.btn-light-brand:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::after {
    content: ""; width: 1em; height: 1em; margin-left: .5rem; display: inline-block; vertical-align: -.15em;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .8); font-size: .84rem; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar-list i { color: var(--gold); margin-right: .4rem; }
.topbar-social { display: flex; gap: .25rem; }
.topbar-social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.topbar-social a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
@media (min-width: 992px) { .brand img { height: 54px; } }

.main-nav { display: none; }
@media (min-width: 992px) {
    .main-nav { display: flex; gap: .25rem; list-style: none; margin: 0 0 0 1.5rem; padding: 0; }
}
.main-nav a {
    display: block; padding: .55rem .95rem; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .95rem; position: relative;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-50); }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px;
    transform: translateX(-50%); background: var(--brand); border-radius: 3px;
}

/* Products dropdown (desktop: hover / keyboard focus) */
.main-nav .has-dropdown { position: relative; }
.main-nav .caret { font-size: .65rem; margin-left: .3rem; transition: transform .25s var(--ease); }
.main-nav .has-dropdown:hover .caret, .main-nav .has-dropdown:focus-within .caret { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute; left: 0; top: calc(100% + 10px); z-index: 1040; min-width: 280px;
    list-style: none; margin: 0; padding: .5rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.main-nav .has-dropdown:hover > .nav-dropdown,
.main-nav .has-dropdown:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.main-nav .nav-dropdown a {
    display: flex; align-items: center; padding: .65rem .9rem; border-radius: 10px;
    font-weight: 500; font-size: .95rem; color: var(--ink-2);
}
.main-nav .nav-dropdown a::after { display: none; }
.main-nav .nav-dropdown a:hover, .main-nav .nav-dropdown a.current { background: var(--brand-50); color: var(--brand); padding-left: 1.1rem; }
.main-nav .nav-dropdown .all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.main-nav .nav-dropdown .all a { font-weight: 600; color: var(--brand); justify-content: space-between; }

/* Products folder menu: top-level categories as folders, sub-categories fly out to the right */
.nav-folder { min-width: 260px; }
.nav-folder ul, .nav-folder li { list-style: none; }
.nav-folder .folder-list, .nav-folder .folder-sub { margin: 0; padding: 0; }
.nav-folder .folder { position: relative; }
.main-nav .nav-folder a { gap: .65rem; }
.main-nav .nav-folder a > span { flex: 1; min-width: 0; }
.main-nav .nav-folder .folder-head { font-weight: 600; color: var(--ink); }
.main-nav .nav-folder .folder-head.current { color: var(--brand); }
.nav-folder .folder-caret { font-size: .65rem; color: var(--muted); transition: transform .2s var(--ease); }
.main-nav .nav-folder .folder:hover > .folder-head, .main-nav .nav-folder .folder:focus-within > .folder-head { background: var(--brand-50); color: var(--brand); padding-left: .9rem; }
.nav-folder .folder:hover > .folder-head .folder-caret, .nav-folder .folder:focus-within > .folder-head .folder-caret { color: var(--brand); transform: translateX(2px); }
.nav-folder .folder-sub {
    position: absolute; left: calc(100% + .5rem); top: -.5rem; min-width: 250px; padding: .5rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateX(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-folder .folder-sub::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.6rem; width: .6rem; } /* hover bridge */
.nav-folder .folder:hover > .folder-sub, .nav-folder .folder:focus-within > .folder-sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .nav-folder .folder-sub a { font-size: .92rem; }
.nav-folder .folder-sub .sub-all { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.main-nav .nav-folder .folder-sub .sub-all a { font-weight: 600; color: var(--brand); font-size: .88rem; }

/* Products submenu (mobile offcanvas) */
.mobile-menu .sub-toggle { width: 48px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); }
.mobile-menu .sub-toggle i { transition: transform .25s var(--ease); }
.mobile-menu .sub-toggle:not(.collapsed) i { transform: rotate(180deg); color: var(--brand); }
.mobile-sub { list-style: none; margin: 0; padding: .35rem 0 .35rem 2rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mobile-sub a { display: block; padding: .6rem .5rem; color: var(--ink-2); font-size: .93rem; }
.mobile-sub a.current, .mobile-sub a:hover { color: var(--brand); font-weight: 600; }
.mobile-sub a.mobile-sub-head { font-weight: 600; color: var(--ink); }
.mobile-sub-2 { list-style: none; margin: 0 0 .25rem; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.mobile-sub-2 a { padding: .45rem .5rem; font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-search { display: none; position: relative; }
@media (min-width: 992px) { .header-search { display: block; } }
.header-search input {
    width: 220px; height: 42px; padding: 0 2.75rem 0 1.1rem;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface-2);
    font-size: .9rem; transition: all .2s var(--ease);
}
@media (min-width: 1200px) { .header-search input { width: 260px; } }
.header-search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(215, 25, 32, .1); }
.header-search button {
    position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
}
.header-call { display: none; align-items: center; gap: .6rem; color: var(--ink); line-height: 1.2; padding-left: .5rem; }
.header-call .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.header-call small { display: block; color: var(--muted); font-size: .72rem; }
.header-call strong { font-size: .95rem; }
@media (min-width: 1400px) { .header-call { display: flex; } }

.icon-btn {
    position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--ink); font-size: 1.15rem; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand); }
.cart-badge {
    position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.cart-badge.is-empty { display: none; }
.cart-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: inline-flex; }
@media (min-width: 992px) { .menu-toggle { display: none; } }

/* Mobile menu (offcanvas) */
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-menu .nav-link { padding: .85rem .25rem; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; }
.mobile-menu .nav-link i { width: 20px; color: var(--muted); }
.mobile-menu .nav-link.active, .mobile-menu .nav-link.active i { color: var(--brand); }
.mobile-search { position: relative; margin-bottom: 1rem; }
.mobile-search input { width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 3rem 0 1.1rem; background: var(--surface-2); }
.mobile-search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; }
.mobile-contact { background: var(--surface-2); border-radius: var(--radius); padding: 1rem; font-size: .9rem; }
.mobile-contact a { color: var(--ink); font-weight: 600; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 300px at 85% -50%, rgba(242, 169, 0, .22), transparent 60%),
                linear-gradient(120deg, #1a0d0e 0%, #3b0c0f 55%, var(--brand-700) 100%);
    color: #fff; padding: 36px 0 40px;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
    background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); margin: .4rem 0 0; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: .5rem 0 0; max-width: 720px; }
@media (min-width: 992px) { .page-hero { padding: 52px 0 56px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.crumbs li { color: rgba(255, 255, 255, .65); display: flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .6rem; opacity: .6; }
.crumbs a { color: rgba(255, 255, 255, .9); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--surface-2); }
.hero .carousel-inner { background: #0f172a; }
/* Fixed slide height so the page doesn't jump between banners of different sizes */
.hero .carousel-item {
    position: relative;
    overflow: hidden;
    height: clamp(190px, 36vw, 640px);
    background: #0f172a;
}
/* Blurred copy of the banner fills the side areas instead of flat dark bars */
.hero .carousel-item::before {
    content: "";
    position: absolute; inset: -40px;
    background: var(--hero-bg) center / cover no-repeat;
    filter: blur(32px) saturate(1.15) brightness(.72);
    transform: scale(1.08);
    z-index: 0;
}
.hero .carousel-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 70%, rgba(15, 23, 42, .35));
    pointer-events: none;
    z-index: 2;
}
.hero-slide-link { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}
.hero .carousel-indicators, .hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; }
.hero-tag {
    display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 999px;
    background: rgba(242, 169, 0, .16); border: 1px solid rgba(242, 169, 0, .5); color: var(--gold);
    font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .carousel-indicators { margin-bottom: .9rem; }
.hero .carousel-indicators [data-bs-target] {
    width: 26px; height: 4px; border-radius: 4px; border: 0;
    background: rgba(255, 255, 255, .65); opacity: .75;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: all .3s;
}
.hero .carousel-indicators .active { width: 42px; opacity: 1; background: var(--gold); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 64px; opacity: .88; transition: opacity .2s; }
.hero .carousel-control-prev:hover, .hero .carousel-control-next:hover { opacity: 1; }
.hero-nav-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(17, 24, 39, .55); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .25); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .95rem; transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero .carousel-control-prev:hover .hero-nav-btn,
.hero .carousel-control-next:hover .hero-nav-btn { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }

/* ---------- Trust / features strip ---------- */
.trust { position: relative; z-index: 3; margin-top: 20px; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: .5rem; }
.trust-item { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; height: 100%; }
.trust-item .ic {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
    background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.trust-item h3 { font-size: .98rem; margin: 0 0 .1rem; }
.trust-item p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.4; }
@media (min-width: 992px) { .trust-col + .trust-col .trust-item { border-left: 1px solid var(--line); } }
@media (max-width: 767.98px) {
    .hero-nav-btn { width: 34px; height: 34px; font-size: .82rem; }
    .hero .carousel-control-prev, .hero .carousel-control-next { width: 46px; }
    .hero .carousel-indicators { margin-bottom: .5rem; }
    .trust { margin-top: 14px; }
    .trust-item { flex-direction: column; text-align: center; gap: .5rem; padding: .9rem .5rem; }
    .trust-item .ic { width: 42px; height: 42px; font-size: 1.05rem; }
    .trust-item h3 { font-size: .86rem; }
    .trust-item p { font-size: .76rem; }
}

/* ---------- Category tiles ---------- */
.cat-tile {
    display: flex; align-items: center; gap: 1rem; height: 100%;
    padding: 1.1rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    color: var(--ink); transition: all .25s var(--ease);
}
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.cat-tile .ic { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; background: linear-gradient(135deg, var(--brand), #f04b3c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.cat-tile:nth-child(2n) .ic { background: linear-gradient(135deg, var(--gold), #ffcf4a); color: var(--ink); }
.cat-tile strong { display: block; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.cat-tile span span, .cat-tile > span:not(.ic) { font-size: .84rem; color: var(--muted); }
.cat-tile .arrow { margin-left: auto; color: var(--muted); transition: transform .25s var(--ease); }
.cat-tile:hover .arrow { transform: translateX(4px); color: var(--brand); }

/* ---------- About ---------- */
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.about-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.about-badge {
    position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: #fff; border-radius: var(--radius);
    padding: .75rem 1rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .75rem;
}
.about-content .prose { color: var(--ink-2); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; margin-top: .15rem;
}

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, #ef4136); color: #fff; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.stat { text-align: center; padding: 1.75rem 1rem; }
.stat .num { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; line-height: 1; color: #fff; }
.stat .num sup { font-size: .5em; color: var(--gold); top: -.9em; }
.stat .lbl { margin-top: .5rem; color: rgba(255, 255, 255, .85); font-size: .92rem; }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .18); } }

/* ---------- Featured (tabs) ---------- */
.pill-tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .25rem; margin-bottom: 1.75rem; border: 0; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs .nav-link {
    white-space: nowrap; border-radius: 999px !important; border: 1.5px solid var(--line) !important; background: #fff;
    color: var(--ink); font-weight: 600; padding: .55rem 1.2rem;
}
.pill-tabs .nav-link:hover { border-color: var(--brand) !important; color: var(--brand); }
.pill-tabs .nav-link.active { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.feature-panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.feature-panel .media { background: var(--surface-2); display: flex; align-items: center; justify-content: center; padding: 1.5rem; height: 100%; min-height: 280px; }
.feature-panel .media img { max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.feature-panel .body { padding: 1.5rem; }
@media (min-width: 992px) { .feature-panel .body { padding: 2.5rem; } }

/* ---------- Spec list (TechnicalInfor HTML: <li><strong>Label</strong><span>Value</span></li>) ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; font-size: .93rem; }
.spec-list li:nth-child(odd) { background: var(--surface-2); }
.spec-list li strong, .spec-list li b { color: var(--muted); font-weight: 500; }
.spec-list li span { color: var(--ink); font-weight: 600; text-align: right; }
.spec-list li:not(:has(strong, b, span)) { display: list-item; list-style: none; }

/* ---------- Product card ---------- */
.product-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card .thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .badge-cat {
    position: absolute; left: 10px; top: 10px; z-index: 1; font-size: .7rem; font-weight: 600;
    padding: .28rem .6rem; border-radius: 999px; background: rgba(17, 24, 39, .78); color: #fff; backdrop-filter: blur(4px);
    max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .badge-out { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: .7rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; background: var(--muted); color: #fff; }
.product-card .body { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); }
.product-card .title { font-size: .95rem; font-weight: 600; line-height: 1.4; margin: 0 0 .5rem; min-height: 2.8em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .title a { color: var(--ink); }
.product-card .title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.product-card .title a:hover { color: var(--brand); }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 800; color: var(--brand); font-size: 1.05rem; white-space: nowrap; }
.price.contact { color: var(--success); font-size: .95rem; }
.product-card .btn-cart { position: relative; z-index: 2; flex-shrink: 0; width: 40px; height: 40px; }
@media (max-width: 575.98px) {
    .product-card .body { padding: .75rem; }
    .product-card .title { font-size: .88rem; }
    .price { font-size: .92rem; }
    .product-card .btn-cart { width: 36px; height: 36px; font-size: .85rem; }
}

/* ---------- Blog card ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all .3s var(--ease); position: relative; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); }
.post-meta i { margin-right: .3rem; }
.post-card .cat { font-size: .74rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.08rem; line-height: 1.45; margin: .45rem 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--brand); }
.post-card.featured { }
@media (min-width: 992px) {
    .post-card.featured { flex-direction: row; }
    .post-card.featured .thumb { aspect-ratio: auto; flex: 0 0 55%; min-height: 340px; }
    .post-card.featured .body { padding: 2rem; justify-content: center; }
    .post-card.featured h3 { font-size: 1.6rem; -webkit-line-clamp: 3; }
    .post-card.featured p { -webkit-line-clamp: 3; font-size: 1rem; }
}

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.result-count { color: var(--muted); font-size: .92rem; margin: 0; }
.result-count strong { color: var(--ink); }
.form-select, .form-control { border-radius: 12px; border: 1.5px solid var(--line); padding: .6rem .9rem; font-size: .95rem; }
.form-select:focus, .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(215, 25, 32, .1); }
.form-select-sm { padding: .45rem 2.2rem .45rem .8rem; font-size: .9rem; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.form-label .req { color: var(--brand); }
.field-validation-error, .text-danger { font-size: .84rem; color: var(--brand) !important; }
.input-validation-error { border-color: var(--brand) !important; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.filter-card + .filter-card { margin-top: 1rem; }
.filter-card h3 { font-size: 1rem; margin-bottom: .9rem; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: 10px; color: var(--ink-2); font-size: .93rem; }
.filter-list a:hover { background: var(--surface-2); color: var(--brand); }
.filter-list a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.filter-list .count { font-size: .75rem; background: var(--surface-2); color: var(--muted); padding: .1rem .5rem; border-radius: 999px; }
.filter-list a.active .count { background: #fff; color: var(--brand); }
/* Category tree: parent row (link + caret toggle) and indented sub-categories */
.filter-list details > summary { display: flex; align-items: center; gap: .25rem; list-style: none; cursor: pointer; }
.filter-list details > summary::-webkit-details-marker { display: none; }
.filter-list details > summary > a { flex: 1; min-width: 0; }
.filter-list a.in-branch { color: var(--brand); font-weight: 600; }
.filter-list .sub-caret { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); font-size: .7rem; }
.filter-list .sub-caret:hover { background: var(--surface-2); color: var(--brand); }
.filter-list .sub-caret i { transition: transform .2s var(--ease); }
.filter-list details[open] .sub-caret i { transform: rotate(180deg); }
.filter-sub { list-style: none; margin: .15rem 0 .35rem .75rem; padding: 0 0 0 .5rem; border-left: 2px solid var(--line); display: grid; gap: .15rem; }
.filter-sub a { font-size: .88rem; padding: .45rem .7rem; }
.search-field { position: relative; }
.search-field .form-control { padding-right: 2.75rem; border-radius: 999px; }
.search-field button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; }

.chip-row { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .chip-row { flex-wrap: wrap; overflow: visible; } }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .88rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-remove { background: var(--brand-50); border-color: transparent; color: var(--brand); }
.chip-sm { padding: .3rem .8rem; font-size: .82rem; font-weight: 500; }
.chip-row-sub .chip.active { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.pager a, .pager span {
    min-width: 42px; height: 42px; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap span { border: 0; background: transparent; min-width: 24px; }
.pager .disabled span { opacity: .4; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 3.5rem 1.25rem; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state .ic { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.empty-state h2, .empty-state h3 { font-size: 1.25rem; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 1.25rem; }

/* ---------- Product detail ---------- */
.pd-top { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, .6rem + 1.6vw, 2rem); box-shadow: var(--shadow-sm); }
.pd-gallery { position: relative; background: radial-gradient(circle at 50% 45%, #fff 0%, var(--surface-2) 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.pd-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.pd-gallery:hover img { transform: scale(1.04); }
.pd-gallery .zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 24, 39, .75); color: #fff; font-size: .75rem; padding: .3rem .65rem; border-radius: 999px; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb { flex: 0 0 auto; width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumb:hover { border-color: var(--brand); }
.pd-thumb.active { border: 2px solid var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.pd-modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(17, 24, 39, .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.pd-modal-nav:hover { background: rgba(17, 24, 39, .8); }
.pd-modal-nav.prev { left: 12px; }
.pd-modal-nav.next { right: 12px; }
.pd-modal-count { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(17, 24, 39, .65); color: #fff; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px; }
.pd-info { display: flex; flex-direction: column; }
.pd-info h1 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem); line-height: 1.3; margin: .75rem 0 .75rem; }
.pd-cat { align-self: flex-start; display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: .3rem .75rem; border-radius: 999px; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .88rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.pd-meta-sep { width: 1px; height: 14px; background: var(--line); }
.pd-price-box { background: var(--surface-2); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: .9rem 1.25rem; margin: 1.25rem 0; }
.pd-price-box .price { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; }
.pd-price-box small { color: var(--muted); display: block; margin-top: .2rem; }
.pd-buy { display: grid; gap: .75rem; }
.pd-buy-row { display: flex; gap: .75rem; }
.pd-buy-row .btn-add { flex: 1 1 auto; }
.pd-buy-row.two { display: grid; grid-template-columns: 1fr 1fr; }
.pd-buy .btn, .pd-call { height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.pd-buy .qty { height: 50px; flex: 0 0 auto; }
.spec-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; background: #fff; }
.spec-box p { margin-bottom: .5rem; }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; }
.stock.in { color: var(--success); }
.stock.out { color: var(--muted); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.qty button:hover { background: var(--surface-2); color: var(--brand); }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty.qty-sm { height: 38px; }
.qty.qty-sm button { width: 34px; }
.qty.qty-sm input { width: 38px; font-size: .92rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.pd-actions .btn { height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
@media (max-width: 575.98px) { .pd-actions .btn { flex: 1 1 100%; } .pd-actions .qty { flex: 0 0 auto; } .pd-actions .btn-add { flex: 1 1 auto; } }
.assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.25rem; }
.assure div { display: flex; align-items: center; gap: .6rem; font-size: .86rem; line-height: 1.35; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: .65rem .8rem; }
.assure i { flex-shrink: 0; color: var(--brand); background: #fff; font-size: .9rem; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.support-card { background: linear-gradient(140deg, var(--ink), #2b1416); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; }
.support-card h3 { color: #fff; font-size: 1.05rem; }
.support-card p { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.support-card .hot { display: flex; align-items: center; gap: .75rem; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: .75rem 1rem; color: #fff; margin-top: .6rem; }
.support-card .hot:hover { background: rgba(255, 255, 255, .15); }
.support-card .hot i { color: var(--gold); }
.support-card .hot small { display: block; color: rgba(255, 255, 255, .65); font-size: .74rem; }
.detail-tabs { border-bottom: 1px solid var(--line); gap: .5rem; margin-bottom: 1.5rem; flex-wrap: nowrap; overflow-x: auto; }
.detail-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; padding: .85rem .25rem; margin-right: 1.5rem; border-radius: 0; white-space: nowrap; background: none; }
.detail-tabs .nav-link.active, .detail-tabs .nav-link:hover { color: var(--brand); border-bottom-color: var(--brand); background: none; }

/* Sticky mobile buy bar */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; box-shadow: 0 -6px 20px rgba(17, 24, 39, .1); padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; transform: translateY(110%); transition: transform .3s var(--ease); }
.buy-bar.show { transform: none; }
.buy-bar .price { font-size: 1.05rem; }
.buy-bar .btn { margin-left: auto; }
@media (min-width: 992px) { .buy-bar { display: none; } }

/* ---------- Rich content (CKEditor HTML) ---------- */
.prose { font-size: 1.02rem; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.75rem 0 .75rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin-bottom: 1rem; }
.prose .lead { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius); margin: .75rem 0; height: auto !important; max-width: 100% !important; }
.prose table { width: 100% !important; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.prose table td, .prose table th { border: 1px solid var(--line); padding: .55rem .75rem; }
.prose blockquote { border-left: 4px solid var(--brand); background: var(--surface-2); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.25rem 0; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--radius); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog detail ---------- */
.article { max-width: 780px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1.75rem; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: rgba(255, 255, 255, .8); font-size: .9rem; margin-top: .9rem; }
.article-meta i { color: var(--gold); margin-right: .35rem; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2rem; }
.share span { font-weight: 600; color: var(--ink); margin-right: .25rem; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); color: var(--ink-2); background: #fff; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.side-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.side-widget + .side-widget { margin-top: 1.25rem; }
.side-widget h3 { font-size: 1.02rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mini-post { display: flex; gap: .85rem; align-items: center; color: var(--ink); }
.mini-post + .mini-post { margin-top: .9rem; }
.mini-post img { width: 80px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--surface-2); }
.mini-post strong { font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.mini-post small { color: var(--muted); font-size: .78rem; }
.mini-post:hover strong { color: var(--brand); }
@media (min-width: 992px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Cart ---------- */
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cart-head, .cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 130px 140px 44px; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.cart-head { background: var(--surface-2); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cart-row { border-top: 1px solid var(--line); transition: opacity .3s, background .3s; }
.cart-row.removing { opacity: 0; }
.cart-prod { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.cart-prod img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); padding: 4px; background: #fff; flex-shrink: 0; }
.cart-prod a { color: var(--ink); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-prod a:hover { color: var(--brand); }
.cart-row .unit { color: var(--ink-2); }
.cart-row .line { font-weight: 700; color: var(--ink); text-align: right; }
.cart-head .r { text-align: right; }
.btn-remove { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); }
.btn-remove:hover { background: var(--brand-50); color: var(--brand); }
.cart-row .lbl { display: none; }
@media (max-width: 767.98px) {
    .cart-head { display: none; }
    .cart-row { grid-template-columns: 1fr auto; grid-template-areas: "prod remove" "unit unit" "qty line"; gap: .75rem; padding: 1rem; }
    .cart-prod { grid-area: prod; }
    .cart-row .unit { grid-area: unit; font-size: .88rem; color: var(--muted); }
    .cart-row .qtycell { grid-area: qty; }
    .cart-row .line { grid-area: line; }
    .cart-row .rm { grid-area: remove; align-self: start; }
    .cart-row .lbl { display: inline; }
    .cart-prod img { width: 64px; height: 64px; }
}
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.summary h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: .5rem; padding-top: 1rem; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.summary-row.total .price { font-size: 1.35rem; }
.note { font-size: .84rem; color: var(--muted); background: var(--gold-50); border-radius: 10px; padding: .65rem .8rem; display: flex; gap: .5rem; }
.note i { color: #b97f00; margin-top: .2rem; }
.co-item { display: flex; gap: .75rem; align-items: center; padding: .65rem 0; }
.co-item + .co-item { border-top: 1px solid var(--line); }
.co-item .im { position: relative; flex-shrink: 0; }
.co-item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 3px; }
.co-item .q { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.co-item .n { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.35; flex: 1; min-width: 0; }
.co-item .p { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.steps { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.steps .s { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.steps .s b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--ink-2); font-size: .78rem; }
.steps .s.on { color: var(--ink); }
.steps .s.on b { background: var(--brand); color: #fff; }
.steps .s.done b { background: var(--success); color: #fff; }
.steps .bar { flex: 0 0 28px; height: 2px; background: var(--line); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
@media (min-width: 992px) { .form-card { padding: 2rem; } }
.success-box { max-width: 640px; margin: 0 auto; text-align: center; }
.success-box .ic { width: 96px; height: 96px; border-radius: 50%; background: #e8f6ee; color: var(--success); font-size: 2.6rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; height: 100%; color: var(--ink-2); }
a.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink-2); }
.contact-card .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-card strong { display: block; color: var(--ink); margin-bottom: .1rem; }
.contact-card span { font-size: .92rem; overflow-wrap: anywhere; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 320px; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.cta-band { background: linear-gradient(120deg, #1a0d0e, #3b0c0f 50%, var(--brand-700)); color: #fff; border-radius: var(--radius-lg); padding: 2rem 1.5rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(242, 169, 0, .18); }
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
@media (min-width: 992px) { .cta-band { padding: 2.75rem 3rem; } }

/* ---------- Policy page ---------- */
.policy-nav { list-style: none; padding: 0; margin: 0; }
.policy-nav a { display: block; padding: .6rem .9rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .93rem; border-left: 3px solid transparent; }
.policy-nav a:hover { background: var(--surface-2); color: var(--brand); border-left-color: var(--brand); }
.policy-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.policy-section + .policy-section { margin-top: 1.25rem; }
.policy-section h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.policy-section h2 i { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #121212; color: rgba(255, 255, 255, .7); font-size: .93rem; margin-top: auto; }
.site-footer .top { padding: 56px 0 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .75rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--brand); }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-logo { background: #fff; border-radius: 12px; padding: .5rem .75rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 46px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75rem; color: var(--brand); transition: transform .2s; }
.footer-links a:hover::before { transform: translateX(3px); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact i { color: var(--gold); width: 18px; margin-top: .3rem; text-align: center; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-pay { background: #fff; border-radius: 10px; padding: .4rem; max-width: 220px; margin-top: .75rem; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.1rem 0; font-size: .84rem; }
.site-footer .bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 767.98px) { .site-footer .bottom .container { justify-content: center; text-align: center; } }

/* ---------- Floating actions ---------- */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); font-size: 1.2rem; border: 0; transition: transform .2s var(--ease), opacity .3s; }
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-call { background: var(--success); position: relative; }
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); z-index: -1; animation: ring 2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.fab-fb { background: #1877f2; }
.fab-top { background: var(--ink); opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
body.has-buy-bar .fab-stack { bottom: 88px; }
@media (min-width: 992px) { body.has-buy-bar .fab-stack { bottom: 16px; } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; left: 16px; z-index: 1090; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; pointer-events: none; }
.toast-x { pointer-events: auto; width: 100%; max-width: 380px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .9rem 1rem; display: flex; gap: .75rem; align-items: flex-start; border-left: 4px solid var(--success); animation: toastIn .35s var(--ease); }
.toast-x.error { border-left-color: var(--brand); }
.toast-x .ic { color: var(--success); font-size: 1.15rem; margin-top: .1rem; }
.toast-x.error .ic { color: var(--brand); }
.toast-x .msg { flex: 1; font-size: .92rem; color: var(--ink); }
.toast-x .msg a { font-weight: 700; display: inline-block; margin-top: .25rem; }
.toast-x .x { border: 0; background: none; color: var(--muted); padding: 0 .25rem; }
.toast-x.hide { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 80px 0; }
.error-page .code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Utilities ---------- */
.text-brand { color: var(--brand) !important; }
.text-ink { color: var(--ink) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.gap-section { row-gap: 1.5rem; }
@media print { .topbar, .site-header, .site-footer, .fab-stack, .buy-bar, .toast-wrap { display: none !important; } }

/* =====================================================================
   Account, login / register, orders (added with the order flow)
   ===================================================================== */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu .av, .acc-user .av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.um-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 1050; }
.um-panel a, .um-panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; border-radius: 10px; color: var(--ink-2); font-size: .92rem; background: none; border: 0; text-align: left; }
.um-panel a:hover, .um-panel button:hover { background: var(--brand-50); color: var(--brand); }
.um-panel i { width: 18px; text-align: center; color: var(--muted); }
.um-head { padding: .55rem .75rem .65rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; font-size: .88rem; color: var(--muted); }
.um-head strong { color: var(--ink); }

.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); }
.auth-card.wide { max-width: 680px; }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.75rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: .35rem .5rem; }
.pw-toggle:hover { color: var(--ink); }
.login-hint { display: flex; gap: .6rem; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: .75rem .9rem; font-size: .9rem; }
.login-hint i { margin-top: .2rem; color: var(--brand); }

.pay-option { cursor: pointer; align-items: center; transition: border-color .2s, background .2s; }
.pay-option .form-check-input { margin: 0; flex-shrink: 0; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

.acc-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; position: sticky; top: calc(var(--header-h) + 16px); }
.acc-user { display: flex; gap: .75rem; align-items: center; padding: .25rem .25rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.acc-user .av { width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; }
.acc-user strong { display: block; color: var(--ink); line-height: 1.3; }
.acc-user small { color: var(--muted); }
.acc-nav nav a, .acc-nav nav button { display: flex; gap: .65rem; align-items: center; width: 100%; padding: .65rem .75rem; border-radius: 10px; color: var(--ink-2); font-weight: 500; background: none; border: 0; text-align: left; }
.acc-nav nav a i, .acc-nav nav button i { width: 18px; text-align: center; color: var(--muted); }
.acc-nav nav a:hover, .acc-nav nav button:hover { background: var(--surface-2); color: var(--ink); }
.acc-nav nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.acc-nav nav a.active i { color: var(--brand); }
.acc-stat { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--muted); font-size: .88rem; height: 100%; }
.acc-stat .n { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
a.acc-stat:hover { border-color: var(--brand); }

.order-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-tabs a { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.order-tabs a span { color: var(--muted); font-weight: 500; margin-left: .2rem; }
.order-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.order-tabs a.active span { color: rgba(255, 255, 255, .7); }
.order-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; color: var(--ink-2); transition: border-color .2s, box-shadow .2s; }
.order-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink-2); }
.order-card .top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .9rem; flex-wrap: wrap; }
.order-card .top strong { color: var(--ink); }
.order-card .body { display: flex; gap: 1rem; align-items: center; padding: .9rem 1.1rem; }
.order-card img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.order-card .name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .price { font-weight: 800; color: var(--brand); white-space: nowrap; }
.min-w-0 { min-width: 0; }

.status-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.lg { font-size: .9rem; padding: .4rem .9rem; }
.status-pill.s-warning { background: #fffbeb; color: #b45309; }
.status-pill.s-info { background: #f0f9ff; color: #0369a1; }
.status-pill.s-success { background: #ecfdf5; color: #15803d; }
.status-pill.s-danger { background: #fef2f2; color: #dc2626; }
.status-pill.s-muted { background: #f3f4f6; color: #4b5563; }

.ov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.ov-head .code { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.ov-progress { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0 0 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem .5rem; }
.ov-progress li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; font-size: .85rem; color: var(--muted); }
.ov-progress li + li::before { content: ""; position: absolute; top: 21px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.ov-progress li.done + li::before, .ov-progress li.done + li.on::before { background: var(--success); }
.ov-progress .dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ov-progress li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.ov-progress li.on .dot { background: #fff; border-color: var(--brand); color: var(--brand); }
.ov-progress li.done strong, .ov-progress li.on strong { color: var(--ink); }
.ov-progress small { min-height: 1.1em; }
.ov-kv { display: flex; gap: .65rem; padding: .35rem 0; font-size: .93rem; color: var(--ink-2); }
.ov-kv i { width: 18px; text-align: center; color: var(--muted); margin-top: .2rem; }
.bank-box { background: var(--surface-2); border-radius: 12px; padding: .75rem .9rem; font-size: .9rem; }
.bank-box > div { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.bank-box span { color: var(--muted); }
.ov-timeline { list-style: none; padding: 0; margin: 0; }
.ov-timeline li { position: relative; padding: 0 0 1rem 1.5rem; border-left: 2px solid var(--line); margin-left: .4rem; }
.ov-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ov-timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.ov-timeline time { font-size: .8rem; color: var(--muted); }

@media (max-width: 575.98px) {
    .ov-progress { padding: 1rem .25rem; }
    .ov-progress li { font-size: .72rem; }
    .ov-progress .dot { width: 36px; height: 36px; }
    .ov-progress li + li::before { top: 17px; }
    .auth-card { padding: 1.5rem 1.1rem; }
}