/* ============================================================================
   ELECTRONICS THEME — style.css
   public/web/css/style.css
   All design tokens come from theme-vars.css (generated by ThemeSetting::writeCssFile)
   ============================================================================ */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: var(--font-body-size, 15px);
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-body-weight, 400);
    font-size: var(--font-body-size, 15px);
    color: var(--color-text-body);
    background-color: var(--color-bg-body);
    line-height: var(--font-body-line-height, 1.6);
    letter-spacing: var(--font-body-letter-space, 0em);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--color-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-primary-hover); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight, 700);
    color: var(--font-heading-color, var(--color-text-heading));
    line-height: var(--font-heading-line-height, 1.2);
    letter-spacing: var(--font-heading-letter-space, -0.02em);
    text-transform: var(--font-heading-transform, none);
}
h1 { font-size: var(--font-h1-size, 36px); }
h2 { font-size: var(--font-h2-size, 28px); }
h3 { font-size: var(--font-h3-size, 22px); }
h4 { font-size: var(--font-h4-size, 18px); }

/* ── Container ────────────────────────────────────────────────────────────── */
.site-container {
    width: 100%;
    max-width: var(--container-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border: 2px solid var(--btn-primary-border);
    border-radius: var(--btn-radius);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.btn-primary-theme:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-bg);
    color: var(--btn-primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-primary-theme:active { transform: translateY(0); }
.btn-primary-theme:disabled,
.btn-primary-theme.disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--btn-secondary-bg, transparent);
    color: var(--btn-secondary-color, var(--color-primary));
    border: 2px solid var(--btn-secondary-border, var(--color-primary));
    border-radius: var(--btn-radius);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .18s, color .18s, transform .12s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-secondary-theme:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-icon-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--btn-radius);
    border: 2px solid var(--color-border);
    background: var(--color-bg-surface);
    color: var(--color-text-body);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    flex-shrink: 0;
}
.btn-icon-theme:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ── Announcement bar ─────────────────────────────────────────────────────── */
.announcement-bar {
    background: var(--header-announcement-bg, var(--color-primary));
    color: var(--header-announcement-color, #fff);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1010;
    overflow: hidden;
}
.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 48px;
    min-height: 38px;
    position: relative;
}
.announcement-text { flex: 1; text-align: center; }
.announcement-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: .7;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity .15s, background .15s;
}
.announcement-close:hover { opacity: 1; background: rgba(255,255,255,.15); }
.announcement-bar.hidden { display: none; }

/* ── Site header ──────────────────────────────────────────────────────────── */
.site-header {
    background: var(--color-bg-header);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: relative;
    z-index: 1000;
    transition: box-shadow .25s;
}
.site-header.is-sticky {
    position: sticky;
    top: 0;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header-container {
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height, 70px);
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: var(--header-logo-height, 40px);
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-inverse);
    letter-spacing: -.04em;
    white-space: nowrap;
}

/* Nav */
.header-nav { flex: 1; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-family: var(--font-nav);
    font-size: var(--font-nav-size, 14px);
    font-weight: var(--font-nav-weight, 500);
    color: var(--header-nav-color, var(--font-nav-color, #FFFFFF));
    text-transform: var(--font-nav-transform, none);
    border-radius: 6px;
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--header-nav-hover, var(--font-nav-color-hover, var(--color-secondary)));
    background: rgba(255,255,255,.07);
}
.nav-link--sale { color: #ff4d4d !important; font-weight: 700; }
.nav-link--sale:hover { color: #ff1a1a !important; }

/* Dropdown chevron */
.nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform .2s;
    flex-shrink: 0;
}
.nav-item.has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Mega / dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-surface);
    border-radius: var(--card-radius, 10px);
    box-shadow: 0 8px 40px rgba(0,0,0,.16);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s, transform .18s;
    transform: translateX(-50%) translateY(6px);
    z-index: 200;
}
.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner { display: flex; gap: 16px; }
.nav-dropdown-col { min-width: 180px; }
.nav-dropdown-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-muted);
    padding: 8px 12px 6px;
}
.nav-dropdown-link {
    display: block;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-body);
    border-radius: 6px;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.nav-dropdown-link:hover {
    background: var(--color-bg-body);
    color: var(--color-primary);
}

/* ── Mega Menu ────────────────────────────────────────────────────────────── */
/* ── Mega Menu ────────────────────────────────────────────────────────────── */
.nav-mega {
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 56px rgba(0,0,0,.14);
    width: min(960px, 92vw);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .2s, transform .2s;
    z-index: 300;
    border: 1px solid #f0f0f0;
    border-top: 2px solid var(--color-primary);
    overflow: hidden;
}
.nav-item.has-dropdown:hover .nav-mega {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Wrapper */
.nav-mega-inner {
    display: flex;
    align-items: stretch;
}

/* ── Left: text columns ──────────────────────────────────────────────────── */
.nav-mega-cols {
    flex: 1;
    display: flex;
    padding: 28px 24px 28px 28px;
    gap: 0;
    min-width: 0;
}
.nav-mega-col {
    flex: 1;
    min-width: 140px;
    padding-right: 16px;
}
.nav-mega-col-heading {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-text-heading);
    margin-bottom: 10px;
    padding: 0 8px 8px;
    border-bottom: 1.5px solid var(--color-border);
    text-decoration: none;
    transition: color .12s;
}
.nav-mega-col-heading:hover { color: var(--color-primary); }

.nav-mega-link {
    display: block;
    padding: 6px 8px;
    font-size: 13.5px;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    border-radius: 5px;
    transition: background .1s, color .1s;
    white-space: nowrap;
}
.nav-mega-link:hover {
    background: #f5f5f5;
    color: var(--color-primary);
}

/* ── Right: 2×2 image grid ───────────────────────────────────────────────── */
.nav-mega-img-panel {
    width: 310px;
    flex-shrink: 0;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.nav-mega-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 300px;
}
.nav-mega-img-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: box-shadow .18s;
}
.nav-mega-img-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.nav-mega-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.nav-mega-img-card:hover img { transform: scale(1.05); }
.nav-mega-img-card-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    letter-spacing: .02em;
}
/* Active / hovered card highlight */
.nav-mega-img-card.active .nav-mega-img-card-label,
.nav-mega-img-card:hover .nav-mega-img-card-label {
    background: var(--color-primary);
    color: #fff;
}
/* No-image placeholder */
.nav-mega-img-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f0f0f0;
    color: #bbb; font-size: 28px;
}


/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--header-icon-color, var(--color-text-inverse, #FFFFFF));
    cursor: pointer;
    position: relative;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.header-action-btn:hover {
    background: rgba(255,255,255,.1);
    color: var(--header-icon-hover, var(--header-icon-color, var(--color-text-inverse, #FFFFFF)));
}
.action-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-accent, #FF6B00);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
    border: 2px solid var(--color-bg-header);
}
.action-badge.d-none { display: none !important; }

/* Account dropdown */
.dropdown-trigger { position: relative; }
.header-account-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    background: var(--color-bg-surface);
    border-radius: var(--card-radius, 10px);
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    min-width: 180px;
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s;
    z-index: 200;
}
.dropdown-trigger:hover .header-account-dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}
.account-dd-item {
    display: block;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-body);
    border-radius: 6px;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.account-dd-item:hover { background: var(--color-bg-body); color: var(--color-primary); }
.account-dd-item--danger { color: var(--color-danger); }
.account-dd-item--danger:hover { background: #fff5f5; color: var(--color-danger); }
.account-dd-divider { height: 1px; background: var(--color-border); margin: 4px 8px; }

/* Cart badge */
.header-cart { position: relative; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 6px;
    transition: background .15s;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-inverse);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Search overlay ───────────────────────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .22s, visibility .22s;
}
.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.search-overlay-inner {
    width: 100%;
    max-width: 660px;
    padding: 0 20px;
    position: relative;
}
.search-form {
    display: flex;
    align-items: center;
    background: var(--color-bg-surface);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    gap: 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.search-icon { color: var(--color-text-muted); flex-shrink: 0; }
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text-body);
    background: transparent;
    padding: 10px 0;
}
.search-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.search-submit:hover { background: var(--color-primary-hover); }
.search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.search-close:hover { background: rgba(255,255,255,.25); }
.search-suggestions {
    background: var(--color-bg-surface);
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    display: none;
}
.search-suggestions.show { display: block; }
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text-body);
    cursor: pointer;
    transition: background .12s;
    text-decoration: none;
}
.search-suggestion-item:hover { background: var(--color-bg-body); }
.search-suggestion-img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #f0f0f0; flex-shrink: 0; }
.search-suggestion-name { font-weight: 500; }
.search-suggestion-price { font-size: 13px; color: var(--color-primary); font-weight: 600; margin-top: 2px; }

/* ── Mobile drawer ────────────────────────────────────────────────────────── */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--color-bg-surface);
    z-index: 1600;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-header);
}
.mobile-drawer-title { font-size: 15px; font-weight: 700; color: var(--color-text-inverse); }
.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--color-text-inverse);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: .7;
}
.mobile-drawer-close:hover { opacity: 1; }
.mobile-nav-list { padding: 8px 0; }
.mobile-nav-link {
    display: block;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-body);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color .12s, background .12s;
}
.mobile-nav-link:hover { color: var(--color-primary); background: var(--color-bg-body); }
.mobile-nav-link--sale { color: #dc2626; }
.mobile-nav-sub { background: var(--color-bg-body); }
.mobile-nav-sub-link {
    display: block;
    padding: 10px 20px 10px 36px;
    font-size: 13.5px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color .12s;
}
.mobile-nav-sub-link:hover { color: var(--color-primary); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg, var(--color-bg-footer)); }

/* Newsletter strip */
.footer-newsletter-strip {
    background: var(--color-primary);
    padding: 40px 0;
}
.footer-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-newsletter-text h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.footer-newsletter-text p { font-size: 14px; color: rgba(255,255,255,.8); max-width: 360px; }
.footer-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-input {
    flex: 1;
    min-width: 240px;
    height: 48px;
    border: none;
    border-radius: var(--btn-radius, 8px);
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,.15);
    color: #fff;
    outline: none;
    backdrop-filter: blur(8px);
    transition: background .15s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-input:focus { background: rgba(255,255,255,.22); }
.newsletter-btn {
    height: 48px;
    padding: 0 28px;
    background: #fff;
    color: var(--color-primary);
    border: none;
    border-radius: var(--btn-radius, 8px);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: transform .12s, box-shadow .15s;
}
.newsletter-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* Footer main */
.footer-main { padding: 60px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-logo { height: 36px; object-fit: contain; margin-bottom: 16px; }
.footer-logo-text { font-size: 22px; font-weight: 800; color: var(--footer-heading-color, #fff); display: block; margin-bottom: 16px; }
.footer-about { font-size: 14px; color: var(--footer-text-color, #94A3B8); line-height: 1.65; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-link {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: var(--footer-text-color, #94A3B8);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.footer-social-link:hover { background: var(--color-primary); color: #fff; }
.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--footer-heading-color, #fff);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: 14px;
    color: var(--footer-link-color, #94A3B8);
    text-decoration: none;
    transition: color .15s, padding-left .15s;
    line-height: 1.4;
}
.footer-links a:hover { color: var(--footer-link-hover-color, #fff); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--footer-text-color, #94A3B8);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--color-primary); }
.footer-contact-item a { color: var(--footer-link-color, #94A3B8); text-decoration: none; }
.footer-contact-item a:hover { color: var(--footer-link-hover-color, #fff); }

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid var(--footer-border-color, #1E293B);
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-copyright { font-size: 13px; color: var(--footer-text-color, #94A3B8); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 13px; color: var(--footer-text-color, #94A3B8); text-decoration: none; transition: color .15s; }
.footer-legal-links a:hover { color: var(--footer-link-hover-color, #fff); }
.footer-payment-icons { display: flex; gap: 6px; align-items: center; }
.payment-icon {
    background: rgba(255,255,255,.1);
    color: var(--footer-text-color, #94A3B8);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: .03em;
}

/* ── Product card ─────────────────────────────────────────────────────────── */
.product-card {
    background: var(--color-card-bg, var(--color-bg-surface));
    border: 1px solid var(--color-card-border, var(--color-border));
    border-radius: var(--card-radius, 10px);
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--card-shadow, 0 4px 20px rgba(0,0,0,.1)); }
.product-card.hover-lift:hover { transform: translateY(-4px); }
.product-card.hover-zoom .product-card-img img { transition: transform .4s; }
.product-card.hover-zoom:hover .product-card-img img { transform: scale(1.06); }

.product-card-img {
    background:#fff;
    padding: 10px;
    position: relative;
    overflow: hidden;
    border-bottom:1px solid var(--color-bg-body);
}
.product-card-img.ratio-1-1  { aspect-ratio: 1 / 1; }
.product-card-img.ratio-4-3  { aspect-ratio: 4 / 3; }
.product-card-img.ratio-3-4  { aspect-ratio: 3 / 4; }
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #fff;
}

.product-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
}
.badge-sale {
    background: var(--color-accent, #FF6B00) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-new {
    background: var(--color-secondary, #00C2FF);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-out {
    background: var(--color-text-muted);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s, transform .2s;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-body);
    transition: background .15s, color .15s, border-color .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card-action-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.card-action-btn.active { background: #fff0f0; color: var(--color-danger); border-color: var(--color-danger); }

.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-brand { font-size: 11px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-name a { color: inherit; text-decoration: none; }
.product-card-name a:hover { color: var(--color-primary); }

.product-card-rating { display: flex; align-items: center; gap: 5px; }
.stars { display: flex; gap: 2px; }
.star { font-size: 12px; color: #FBBF24; }
.star.empty { color: var(--color-border); }
.rating-count { font-size: 12px; color: var(--color-text-muted); }

.product-card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-final  { font-size: 17px; font-weight: 700; color: var(--color-text-heading); }
.price-original { font-size: 13px; color: var(--color-text-muted); text-decoration: line-through; }
.price-discount { font-size: 12px; color: var(--color-accent, #FF6B00) !important; font-weight: 700; }

.product-card-footer { padding: 0 16px 14px; }
.card-add-btn {
    width: 100%;
    height: 40px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    border: 2px solid var(--btn-primary-border);
    border-radius: var(--btn-radius, 8px);
    font-size: 13px;
    font-weight: var(--btn-font-weight, 600);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, border-color .15s, transform .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}
.card-add-btn:hover { background: var(--btn-primary-hover-bg); border-color: var(--btn-primary-hover-bg); }
.card-add-btn:disabled { background: var(--color-border); border-color: var(--color-border); color: var(--color-text-muted); cursor: not-allowed; }

/* ── Product grid ─────────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 4), 1fr);
    gap: var(--grid-gap, 24px);
}

/* ── Section wrapper ──────────────────────────────────────────────────────── */
.site-section { padding: var(--section-padding-y, 60px) 0; }
.site-section-sm { padding: calc(var(--section-padding-y, 60px) * 0.6) 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.section-header-left { flex: 1; min-width: 0; }
.section-title { font-size: var(--font-h2-size, 28px); font-weight: 800; color: var(--color-text-heading); margin: 0; line-height: 1.2; }
.section-subtitle { font-size: 15px; color: var(--color-text-muted); margin-top: 6px; }

/* ── Eyebrow (BROWSE-style label above title) ─────────────────────────────── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}
.section-link { font-size: 14px; font-weight: 600; color: var(--color-primary); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--color-primary-hover); gap: 8px; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb-wrap {
    padding: 12px 0;
    font-size: 13px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}
.breadcrumb-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-item a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-current { color: var(--color-text-body); font-weight: 500; }

/* ── Skeleton loader ──────────────────────────────────────────────────────── */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg-body) 50%, var(--color-border) 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 6px;
}

/* ── Toast notification ───────────────────────────────────────────────────── */
#toastContainer {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-body);
    pointer-events: auto;
    transform: translateX(60px);
    opacity: 0;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .28s;
    max-width: 320px;
}
.toast-item.show { transform: translateX(0); opacity: 1; }
.toast-item.toast-success .toast-icon { color: var(--color-success); }
.toast-item.toast-error   .toast-icon { color: var(--color-danger); }
.toast-icon { font-size: 20px; flex-shrink: 0; }

/* ── Back to top ──────────────────────────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 28px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .2s, transform .2s, background .15s;
    z-index: 800;
    pointer-events: none;
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover { background: var(--color-primary-hover); }

/* ── Utility classes ──────────────────────────────────────────────────────── */
.text-primary   { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent    { color: var(--color-accent) !important; }
.text-muted     { color: var(--color-text-muted) !important; }
.text-danger    { color: var(--color-danger) !important; }
.text-success   { color: var(--color-success) !important; }
.bg-primary-light { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.d-flex { display: flex; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.fw-normal { font-weight: 400; } .fw-medium { font-weight: 500; } .fw-semibold { font-weight: 600; } .fw-bold { font-weight: 700; }
.w-100 { width: 100%; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 991px) {
    .header-nav { display: none; }
    .hamburger  { display: flex; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-newsletter-inner { flex-direction: column; gap: 20px; }
}
@media (max-width: 575px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid  { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .site-header .header-container { gap: 12px; }
    .header-action-btn { width: 36px; height: 36px; }
    h1 { font-size: calc(var(--font-h1-size, 36px) * 0.75); }
    h2 { font-size: calc(var(--font-h2-size, 28px) * 0.82); }
    .footer-legal-links { gap: 12px; flex-wrap: wrap; }
    .announcement-inner { padding: 8px 36px; font-size: 12px; }
}
@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}


/* ══ SECTION COLOR PRESETS ════════════════════════════════════ */
.site-section.preset-light { background-color: var(--preset-light-bg, #FFFFFF) !important; }
.site-section.preset-light h1,.site-section.preset-light h2,.site-section.preset-light h3,
.site-section.preset-light h4,.site-section.preset-light .section-title,
.site-section.preset-light .cb-ttl,.site-section.preset-light .br-ttl { color: var(--preset-light-text, #0A0F1E); }
.site-section.preset-light p,.site-section.preset-light span,.site-section.preset-light li { color: var(--preset-light-text, #0A0F1E); }
.site-section.preset-light .text-muted { color: var(--preset-light-muted, #6B7280) !important; }

.site-section.preset-dark { background-color: var(--preset-dark-bg, #0A0F1E) !important; }
.site-section.preset-dark h1,.site-section.preset-dark h2,.site-section.preset-dark h3,
.site-section.preset-dark h4,.site-section.preset-dark .section-title,
.site-section.preset-dark .cb-ttl,.site-section.preset-dark .br-ttl,
.site-section.preset-dark .cb-nm,.site-section.preset-dark .br-name { color: var(--preset-dark-text, #FFFFFF) !important; }
.site-section.preset-dark,.site-section.preset-dark p,.site-section.preset-dark span { color: var(--preset-dark-text, #FFFFFF); }
.site-section.preset-dark .text-muted { color: var(--preset-dark-muted, #A1A1AA) !important; }
.site-section.preset-dark .product-card { background:rgba(255,255,255,.07)!important; border-color:rgba(255,255,255,.12)!important; }
.site-section.preset-dark .product-card-name,.site-section.preset-dark .product-card-price { color:var(--preset-dark-text,#fff); }
.site-section.preset-dark .br-item,.site-section.preset-dark .cb-img-wrap { background:rgba(255,255,255,.06)!important; border-color:rgba(255,255,255,.15)!important; }

.site-section.preset-transparent { background: transparent !important; }

/* ── Cart page ────────────────────────────────────────────────────────────── */
.cart-layout > div:first-child {
    background: #FFFFFF;
    border-radius: var(--card-radius, 10px);
    border: 1px solid var(--color-border);
    padding: 20px 24px;
}
.cart-layout    { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-table     { width: 100%; border-collapse: collapse; }
.cart-table th  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); padding: 12px 0; border-bottom: 2px solid var(--color-border); text-align: left; }
.cart-table th:last-child { text-align: right; }
.cart-table td  { padding: 16px 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-table td:last-child { text-align: right; font-weight: 700; }
.cart-thumb     { width: 72px; height: 72px; border-radius: 8px; object-fit: contain; border: 1px solid var(--color-border); padding: 4px; background: #fff; }
.cart-thumb-ph  { width: 72px; height: 72px; border-radius: 8px; background: var(--color-bg-body); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-border); }
.cart-name      { font-size: 14px; font-weight: 600; color: var(--color-text-heading); text-decoration: none; display: block; margin-bottom: 4px; }
.cart-name:hover{ color: var(--color-primary); }
.cart-unit      { font-size: 12px; color: var(--color-text-muted); }
.cart-qty-wrap  { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: 8px; overflow: hidden; height: 36px; }
.cart-qty-btn   { width: 32px; height: 100%; border: none; background: none; cursor: pointer; font-size: 16px; transition: background .1s; }
.cart-qty-btn:hover { background: var(--color-bg-body); }
.cart-qty-input { width: 40px; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); text-align: center; font-size: 13px; font-weight: 700; background: var(--color-bg-surface); height: 100%; font-family: inherit; outline: none; }
.cart-remove    { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 12px; padding: 0; margin-left: 12px; font-family: inherit; transition: color .12s; }
.cart-remove:hover { color: var(--color-danger, #dc2626); }
.cart-continue  { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--color-primary); text-decoration: none; margin-top: 16px; }
.cart-continue:hover { text-decoration: underline; }
.cart-summary   { background: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--card-radius,10px); padding: 24px; position: sticky; top: calc(var(--header-height,70px) + 16px); }
.cs-row         { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.cs-row.total   { font-size: 18px; font-weight: 800; padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--color-border); }
.cs-total-val   { color: var(--color-primary); }
.cs-free        { color: var(--color-success, #10b981); font-weight: 600; font-size: 13px; }
.cs-promo       { display: flex; gap: 8px; margin: 16px 0; }
.cs-promo-input { flex: 1; height: 40px; border: 1.5px solid var(--color-border); border-radius: 7px; padding: 0 12px; font-size: 13px; font-family: inherit; background: var(--color-bg-surface); color: var(--color-text-body); outline: none; }
.cs-promo-btn   { height: 40px; padding: 0 16px; font-size: 13px; font-weight: 600; background: var(--color-bg-body); border: 1.5px solid var(--color-border); border-radius: 7px; cursor: pointer; font-family: inherit; transition: all .15s; }
.cs-promo-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cs-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; background: var(--color-primary); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s; margin-bottom: 12px; }
.cs-checkout-btn:hover { background: var(--color-primary-hover, var(--color-primary)); color: #fff; }
.cs-trust       { display: flex; flex-direction: column; gap: 6px; }
.cs-trust-item  { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 991px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }
