/* ===================================================================
   Nora AS -- Storefront Design System
   Palette derived from the Nora AS mark: cerulean blue + warm gold,
   deepened for a premium appliance-retailer feel against neutral
   white/charcoal ground. Display type: Space Grotesk. Body: Inter.
   Numerals (prices, SKUs, specs): IBM Plex Mono, for the technical
   precision an appliance retailer should telegraph.
   =================================================================== */

:root {
    --primary: #1868A0;
    --primary-dark: #124D7A;
    --primary-light: #EAF3FA;
    --accent: #D6A429;
    --accent-dark: #AD8320;
    --accent-light: #FBF2DD;
    --text: #15181C;
    --muted: #667085;
    --background: #FFFFFF;
    --surface: #F5F6F8;
    --surface-dark: #12151A;
    --border: #E3E6EB;
    --success: #1D9A5B;
    --danger: #D64545;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: 14.5px; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #1a1300; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: var(--surface-dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 10px; border-radius: 50%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface-dark); color: #cfd3d9; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #cfd3d9; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a { display: flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-main { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.header-search { flex: 1; position: relative; }
.header-search form { display: flex; }
.header-search input {
    flex: 1; padding: 12px 16px; border: 1.5px solid var(--border); border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 14.5px;
}
.header-search input:focus { outline: none; border-color: var(--primary); }
.header-search button {
    background: var(--primary); color: #fff; border: none; padding: 0 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.header-search button:hover { background: var(--primary-dark); }
.search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    z-index: 50; overflow: hidden; display: none;
}
.search-suggestions.active { display: block; }
.search-suggestions a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--surface); }
.search-suggestions a:hover { background: var(--surface); }
.search-suggestions img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; background: var(--surface); }
.search-suggestions .sname { font-size: 13.5px; font-weight: 500; }
.search-suggestions .sprice { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-left: auto; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-action {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px;
    border-radius: var(--radius-sm); position: relative; font-size: 11.5px; color: var(--text);
}
.header-action:hover { background: var(--surface); }
.header-action .badge-count {
    position: absolute; top: 2px; right: 6px; background: var(--accent); color: #1a1300;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.main-nav { background: var(--surface-dark); }
.main-nav .container { display: flex; align-items: center; }
.nav-cats-toggle {
    display: flex; align-items: center; gap: 8px; color: #fff; background: var(--primary);
    padding: 13px 20px; font-weight: 600; font-size: 13.5px; flex-shrink: 0; position: relative;
}
.nav-cats-toggle:hover { background: var(--primary-dark); }
.main-nav ul { display: flex; }
.main-nav > .container > ul > li { position: relative; }
.main-nav > .container > ul > li > a {
    display: block; padding: 13px 16px; color: #cfd3d9; font-size: 13.5px; font-weight: 500;
    border-bottom: 2px solid transparent;
}
.main-nav > .container > ul > li > a:hover { color: #fff; border-bottom-color: var(--accent); }

.mega-menu {
    position: absolute; top: 100%; left: 0; background: #fff; min-width: 260px;
    box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); z-index: 90;
    display: none; padding: 8px 0;
}
.nav-cats-toggle:hover .mega-menu, .mega-menu:hover { display: block; }
.mega-menu li a { display: block; padding: 10px 20px; color: var(--text); font-size: 13.5px; }
.mega-menu li a:hover { background: var(--surface); color: var(--primary); }

.mobile-header { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }

/* ---------- Hero ---------- */
.hero { background: var(--surface-dark); color: #fff; overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; min-height: 420px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(214,164,41,0.15);
    color: var(--accent); border: 1px solid rgba(214,164,41,0.4); padding: 6px 14px;
    border-radius: 100px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; color: #fff; margin-bottom: 18px; }
.hero p { font-size: 17px; color: #b8bec7; max-width: 480px; margin-bottom: 28px; }
.hero-visual {
    position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg);
    background: linear-gradient(155deg, var(--primary) 0%, #0d3a5c 100%);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-visual::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: var(--accent); opacity: 0.18; top: -60px; right: -60px;
}
.hero-visual img { max-width: 78%; max-height: 78%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 20px; }
.section-head h2 { font-size: 27px; }
.section-head p { color: var(--muted); margin: 4px 0 0; font-size: 14.5px; }
.section-link { font-weight: 600; font-size: 13.5px; color: var(--primary); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.section-link:hover { color: var(--primary-dark); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
    position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
    aspect-ratio: 4/3; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--border);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay {
    position: relative; z-index: 2; padding: 16px; background: linear-gradient(0deg, rgba(10,12,15,.82) 0%, rgba(10,12,15,0) 100%);
}
.cat-card-overlay h3 { color: #fff; font-size: 16px; margin-bottom: 2px; }
.cat-card-overlay span { color: #d8dbe0; font-size: 12px; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; position: relative; transition: box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover { box-shadow: var(--shadow); border-color: #d5dae1; }
.product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: opacity .2s ease; }
.product-media .img-alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-media .img-alt { opacity: 1; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .02em; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--primary); color: #fff; }
.badge-best { background: var(--accent); color: #1a1300; }
.badge-limited { background: var(--surface-dark); color: #fff; }
.badge-free-delivery { background: var(--success); color: #fff; }
.card-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; opacity: 0; transform: translateX(6px); transition: all .15s ease; }
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }
.icon-btn {
    width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-info { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.product-name { font-size: 13.5px; font-weight: 500; line-height: 1.35; min-height: 2.7em; }
.product-name:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 12px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.price-current { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--text); }
.price-old { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-discount { font-size: 11.5px; font-weight: 700; color: var(--danger); }
.stock-line { font-size: 11.5px; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; }
.stock-in .stock-dot { background: var(--success); } .stock-in { color: var(--success); }
.stock-low .stock-dot { background: var(--accent-dark); } .stock-low { color: var(--accent-dark); }
.stock-out .stock-dot { background: var(--danger); } .stock-out { color: var(--danger); }
.product-info .add-cart-btn { margin-top: 10px; }

/* ---------- Promo banner ---------- */
.promo-banner {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff;
    border-radius: var(--radius-lg); padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    position: relative; overflow: hidden;
}
.promo-banner::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: .15; right: -80px; bottom: -100px; }
.promo-banner h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.promo-banner p { color: #d8e4ee; margin: 0 0 20px; max-width: 460px; }

/* ---------- Brand strip ---------- */
.brand-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-chip {
    flex: 1; min-width: 140px; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; justify-content: center; height: 74px;
    filter: grayscale(1); opacity: .65; transition: all .15s ease;
}
.brand-chip:hover { filter: none; opacity: 1; border-color: var(--primary); }
.brand-chip img { max-height: 32px; max-width: 100%; }
.brand-chip span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
    width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-item h4 { font-size: 14.5px; margin-bottom: 2px; }
.trust-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--surface-dark); color: #fff; border-radius: var(--radius-lg); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.newsletter h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.newsletter p { color: #b8bec7; margin: 0; font-size: 13.5px; }
.newsletter form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter input { padding: 12px 16px; border-radius: var(--radius-sm); border: none; width: 260px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-dark); color: #b8bec7; padding: 56px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; }
.footer-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: #9298a3; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.payment-icons { display: flex; gap: 8px; }
.payment-icons span { border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 3px 8px; font-size: 11px; }

/* ---------- Filters / sidebar (catalog pages) ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.filter-group { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-group h4 { font-size: 13px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; }
.filter-option input { accent-color: var(--primary); }
.filter-price-row { display: flex; gap: 8px; align-items: center; }
.filter-price-row input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filter-chip { display: flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); padding: 5px 10px; border-radius: 100px; font-size: 12.5px; font-weight: 500; }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.result-count { font-size: 13.5px; color: var(--muted); }
.sort-select { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; background: #fff; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { padding: 8px 10px; background: #fff; border: none; }
.view-toggle button.active { background: var(--surface); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .icon { font-size: 40px; margin-bottom: 14px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Product detail page ---------- */
.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pdp-gallery-main { border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.pdp-gallery-main img { max-width: 82%; max-height: 82%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumb { width: 68px; height: 68px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; padding: 4px; background: #fff; }
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-brand { color: var(--primary); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.pdp-title { font-size: 27px; margin: 6px 0 10px; }
.pdp-meta-row { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.pdp-price-box { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.pdp-price-current { font-family: var(--font-mono); font-size: 32px; font-weight: 700; }
.pdp-price-old { font-family: var(--font-mono); font-size: 16px; color: var(--muted); text-decoration: line-through; margin-left: 10px; }
.pdp-savings { color: var(--danger); font-weight: 600; font-size: 13px; margin-top: 4px; }
.pdp-buy-row { display: flex; gap: 10px; margin-bottom: 14px; }
.qty-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-input button { width: 40px; height: 46px; border: none; background: #fff; font-size: 16px; }
.qty-input button:hover { background: var(--surface); }
.qty-input input { width: 44px; text-align: center; border: none; height: 46px; font-family: var(--font-mono); }
.pdp-trust-list { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; margin-top: 16px; }
.pdp-trust-list li, .pdp-trust-list div { display: flex; gap: 10px; align-items: center; }

.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 52px 0 24px; }
.tabs-nav button { padding: 13px 20px; background: none; border: none; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 12px 8px; font-size: 13.5px; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { font-weight: 500; font-family: var(--font-mono); }

.review-card { border-bottom: 1px solid var(--border); padding: 18px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-name { font-weight: 600; font-size: 13.5px; }
.review-date { color: var(--muted); font-size: 12px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 76px; height: 76px; object-fit: contain; background: var(--surface); border-radius: var(--radius-sm); padding: 6px; }
.cart-line-name { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.cart-line-sku { color: var(--muted); font-size: 11.5px; font-family: var(--font-mono); }
.cart-remove { color: var(--muted); font-size: 12px; }
.cart-remove:hover { color: var(--danger); }
.summary-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 700; }
.summary-row .val { font-family: var(--font-mono); }
.free-delivery-note { background: var(--accent-light); color: var(--accent-dark); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12.5px; margin-bottom: 14px; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-card h3 { font-size: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--primary); }
.payment-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-option input { accent-color: var(--primary); }

.auth-card { max-width: 420px; margin: 60px auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-size: 22px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.alert-success { background: #e8f7ee; color: #157a45; border: 1px solid #b8e6c9; }
.alert-error { background: #fbeaea; color: #b32424; border: 1px solid #f2c1c1; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #cfe3f2; }

/* ---------- Account dashboard ---------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.account-nav a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 4px; }
.account-nav a:hover, .account-nav a.active { background: var(--surface); color: var(--primary); font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }
.status-new, .status-pending { background: #fdf0d5; color: #925c14; }
.status-confirmed, .status-processing { background: var(--primary-light); color: var(--primary-dark); }
.status-shipped { background: #e6e9fb; color: #3f4bb3; }
.status-delivered, .status-paid, .status-active, .status-approved { background: #e8f7ee; color: #157a45; }
.status-cancelled, .status-failed, .status-disabled, .status-rejected { background: #fbeaea; color: #b32424; }

/* ---------- Compare page ---------- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px; border: 1px solid var(--border); font-size: 13px; text-align: left; vertical-align: top; }
.compare-table th { background: var(--surface); width: 160px; }
.compare-product img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 10px; }

/* ---------- Static/info pages ---------- */
.prose { max-width: 780px; line-height: 1.75; font-size: 15px; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p { margin-bottom: 16px; color: #333; }
.page-header { background: var(--surface); padding: 34px 0; margin-bottom: 40px; }
.page-header h1 { font-size: 28px; margin: 0; }

/* ---------- Mini cart dropdown ---------- */
.mini-cart-toast {
    position: fixed; top: 90px; right: 24px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 320px; z-index: 500;
    padding: 16px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s ease;
}
.mini-cart-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mini-cart-toast .mc-head { display: flex; align-items: center; gap: 8px; color: var(--success); font-weight: 600; font-size: 13.5px; margin-bottom: 12px; }
.mini-cart-toast .mc-product { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.mini-cart-toast .mc-product img { width: 48px; height: 48px; object-fit: contain; background: var(--surface); border-radius: 6px; }
.mini-cart-toast .mc-actions { display: flex; gap: 8px; }

/* ---------- Quick view modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,12,15,.6); z-index: 900; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 800px; width: 100%; max-height: 88vh; overflow: auto; position: relative; padding: 28px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 10px; }
.countdown div { background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 8px 12px; text-align: center; min-width: 54px; }
.countdown span { display: block; font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.countdown small { font-size: 10px; color: #b8bec7; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .pdp-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .topbar, .header-search, .main-nav { display: none; }
    .mobile-header { display: block; }
    .header-main { padding: 12px 0; }
    .hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
    .hero-visual { order: -1; aspect-ratio: 16/10; }
    .hero h1 { font-size: 30px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters-panel { position: static; display: none; }
    .filters-panel.open { display: block; }
    .cart-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .newsletter { flex-direction: column; align-items: flex-start; }
    .newsletter form { width: 100%; }
    .newsletter input { width: 100%; }
    .promo-banner { flex-direction: column; text-align: left; padding: 32px 24px; }
}

@media (max-width: 640px) {
    .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 36px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .compare-table { display: block; overflow-x: auto; }
}

/* ---------- Sticky mobile action bar ---------- */
.mobile-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--border); z-index: 200; padding: 8px 10px;
    box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
@media (max-width: 860px) {
    .mobile-bottom-bar.active { display: flex; gap: 10px; }
    body.has-mobile-bar { padding-bottom: 70px; }
}
.mobile-nav-drawer {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%; background: #fff; z-index: 999;
    transition: left .2s ease; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; display: none; }
.mobile-nav-drawer-backdrop.open { display: block; }
.mobile-nav-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.mobile-nav-drawer li a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--surface); font-size: 14px; }
