/**
 * ═══════════════════════════════════════════════════════════
 * LojaOnline — MAIN STYLESHEET
 * Phase 1: Foundation & Core E-Commerce Engine
 * 
 * Aesthetic: Tech-forward dark theme with electric accents
 * Typography: Outfit (display + body)
 * ═══════════════════════════════════════════════════════════
 */

/* ─── CSS RESET & VARIABLES ──────────────────────── */

:root {
    /* Colors */
    --bg-primary:       #0a0b0f;
    --bg-secondary:     #111218;
    --bg-tertiary:      #181a23;
    --bg-card:          #13141b;
    --bg-elevated:      #1c1e28;
    --bg-hover:         #1f2130;
    --bg-input:         #15161e;

    --text-primary:     #eaedf3;
    --text-secondary:   #9ca3b4;
    --text-muted:       #5f6578;
    --text-inverse:     #0a0b0f;

    --accent:           #3b82f6;
    --accent-hover:     #2563eb;
    --accent-light:     #60a5fa;
    --accent-glow:      rgba(59, 130, 246, 0.15);

    --green:            #22c55e;
    --green-bg:         rgba(34, 197, 94, 0.1);
    --red:              #ef4444;
    --red-bg:           rgba(239, 68, 68, 0.1);
    --orange:           #f59e0b;
    --orange-bg:        rgba(245, 158, 11, 0.1);
    --purple:           #a855f7;

    --border:           #1e2030;
    --border-light:     #282a3a;
    --border-hover:     #363850;

    --shadow-sm:        0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:        0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg:        0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow:      0 0 20px rgba(59,130,246,0.15);

    /* Typography */
    --font-primary:     'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    /* Sizing */
    --header-h:         64px;
    --nav-h:            auto;
    --top-bar-h:        36px;
    --total-header-h:   148px;
    --container-w:      1340px;
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-xl:        24px;

    /* Transitions */
    --ease:             cubic-bezier(0.4, 0, 0.2, 1);
    --duration:         0.2s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

button { 
    cursor: pointer; font-family: inherit; border: none; background: none; 
    color: inherit; font-size: inherit;
}

input, select, textarea {
    font-family: inherit; font-size: inherit; color: var(--text-primary);
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.6rem 1rem; outline: none; transition: border-color var(--duration) var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

ul, ol { list-style: none; }

.container {
    width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 1.25rem;
}
/* ─── IMAGE LOGO ────────────────────────────────────── */
.header__logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ─── TOP BAR ────────────────────────────────────── */

.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: var(--top-bar-h);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.top-bar__inner {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}

.top-bar__left { display: flex; align-items: center; gap: 1.25rem; }

.top-bar__text, .top-bar__link {
    display: flex; align-items: center; gap: 0.35rem; color: var(--text-secondary);
}
.top-bar__link:hover { color: var(--accent-light); }

.top-bar__promo { color: var(--green); font-weight: 500; }

@media (max-width: 768px) {
    .top-bar { display: none; }
    :root { --top-bar-h: 0px; }
}


/* ─── HEADER ─────────────────────────────────────── */

.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-lg); }

.header__inner {
    display: flex; align-items: center; gap: 1.5rem;
    height: var(--header-h); 
}

.header__logo { flex-shrink: 0; }
.logo-text {
    font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-accent { color: var(--accent); }
.footer__logo {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--text-primary); display: block; margin-bottom: 0.75rem;
}

/* Search */
.header__search { flex: 1; max-width: 580px; position: relative; }

.search-form {
    display: flex; position: relative;
}
.search-form__input {
    width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 0.6rem 3rem 0.6rem 1.2rem;
    font-size: 0.9rem; color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}
.search-form__input:focus {
    border-color: var(--accent); background: var(--bg-elevated);
    box-shadow: var(--shadow-glow);
}
.search-form__input::placeholder { color: var(--text-muted); }

.search-form__btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--accent); color: #fff; border-radius: 50%;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    transition: background var(--duration) var(--ease);
}
.search-form__btn:hover { background: var(--accent-hover); }

/* Header icons */
.header__actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

.header__icon-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
    padding: 0.4rem 0.65rem; border-radius: var(--radius-sm);
    color: var(--text-secondary); transition: all var(--duration) var(--ease);
    position: relative;
}
.header__icon-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.header__icon-label { font-size: 0.65rem; font-weight: 500; }

.header__cart { position: relative; }
.header__cart-badge {
    position: absolute; top: 0; right: 0.2rem;
    background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-primary);
}

@media (max-width: 768px) {
    .header__icon-label { display: none; }
    .header__search { max-width: none; order: 10; position: absolute; bottom: -56px; left: 0; right: 0; padding: 0.5rem 1rem; background: var(--bg-primary); border-bottom: 1px solid var(--border); display: none; }
    .header__search.active { display: block; }
    .header__inner { flex-wrap: wrap; }
}

/* ─── HEADER MENU TOGGLE (hamburger in header row) ── */

.header__menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    margin-right: 0.25rem;
}
.header__menu-toggle:hover {
    background: var(--bg-hover); color: var(--accent-light);
}

/* ─── SIDEBAR OVERLAY ────────────────────────────── */

.sidebar-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.sidebar-overlay.active {
    opacity: 1; visibility: visible;
}

/* ─── SIDEBAR MENU ───────────────────────────────── */

.sidebar-menu {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 340px; max-width: 85vw;
    z-index: 9999;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-light);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.sidebar-menu.open {
    transform: translateX(0);
}

/* Sidebar header */
.sidebar-menu__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    flex-shrink: 0;
}
.sidebar-menu__title {
    font-size: 1rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.sidebar-menu__close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    color: #fff; cursor: pointer;
    transition: background 0.2s;
}
.sidebar-menu__close:hover { background: rgba(255,255,255,0.15); }

/* Sidebar search */
.sidebar-menu__search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-menu__search-input {
    width: 100%; padding: 0.55rem 0.85rem;
    font-size: 0.85rem; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary);
}
.sidebar-menu__search-input:focus { border-color: var(--accent); }

/* Sidebar list */
.sidebar-menu__list {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}
.sidebar-menu__list::-webkit-scrollbar { width: 4px; }
.sidebar-menu__list::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu__list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }

.sidebar-menu__item {
    border-bottom: 1px solid var(--border);
}
.sidebar-menu__item:last-child { border-bottom: none; }

.sidebar-menu__link-row {
    display: flex; align-items: center;
}

.sidebar-menu__link {
    display: flex; align-items: center; gap: 0.6rem;
    flex: 1; padding: 0.7rem 1.25rem;
    font-size: 0.88rem; font-weight: 500;
    color: var(--text-primary);
    transition: all 0.15s var(--ease);
}
.sidebar-menu__link:hover {
    background: var(--bg-hover); color: var(--accent-light);
}

.sidebar-menu__icon {
    font-size: 1.1rem; line-height: 1; width: 22px; text-align: center; flex-shrink: 0;
}

.sidebar-menu__badge {
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    background: var(--accent); color: #fff;
    padding: 0.1rem 0.4rem; border-radius: 3px;
    letter-spacing: 0.03em; margin-left: auto;
}

.sidebar-menu__link--accent {
    color: var(--accent-light); font-weight: 600;
}
.sidebar-menu__item--highlight {
    background: var(--accent-glow);
}

/* Expand button */
.sidebar-menu__expand {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    color: var(--text-muted); cursor: pointer;
    transition: all 0.2s var(--ease);
    border-left: 1px solid var(--border);
}
.sidebar-menu__expand:hover {
    color: var(--accent-light); background: var(--bg-hover);
}
.sidebar-menu__expand svg {
    transition: transform 0.25s var(--ease);
}
.sidebar-menu__item.expanded > .sidebar-menu__link-row > .sidebar-menu__expand svg,
.sidebar-menu__subitem.expanded > .sidebar-menu__link-row > .sidebar-menu__expand svg {
    transform: rotate(90deg);
}

/* Submenu (level 2) */
.sidebar-menu__submenu {
    display: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.sidebar-menu__item.expanded > .sidebar-menu__submenu {
    display: block;
}

.sidebar-menu__submenu-viewall a {
    display: block; padding: 0.55rem 1.25rem 0.55rem 3rem;
    font-size: 0.8rem; font-weight: 600;
    color: var(--accent-light);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.sidebar-menu__submenu-viewall a:hover { background: var(--bg-hover); }

.sidebar-menu__subitem {
    border-bottom: 1px solid var(--border);
}
.sidebar-menu__subitem:last-child { border-bottom: none; }

.sidebar-menu__sublink {
    display: block; flex: 1;
    padding: 0.55rem 1.25rem 0.55rem 3rem;
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s var(--ease);
}
.sidebar-menu__sublink:hover { color: var(--accent-light); background: var(--bg-hover); }

.sidebar-menu__expand--sub {
    width: 38px; height: 38px;
}

/* Sub-submenu (level 3) */
.sidebar-menu__subsubmenu {
    display: none;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}
.sidebar-menu__subitem.expanded > .sidebar-menu__subsubmenu {
    display: block;
}
.sidebar-menu__subsublink {
    display: block;
    padding: 0.45rem 1.25rem 0.45rem 4rem;
    font-size: 0.78rem; color: var(--text-muted);
    transition: all 0.15s var(--ease);
}
.sidebar-menu__subsublink:hover { color: var(--accent-light); background: var(--bg-hover); }

/* Body lock when sidebar is open */
body.sidebar-open { overflow: hidden; }

@media (max-width: 768px) {
    .header__icon-label { display: none; }
    .header__search { max-width: none; order: 10; position: absolute; bottom: -56px; left: 0; right: 0; padding: 0.5rem 1rem; background: var(--bg-primary); border-bottom: 1px solid var(--border); display: none; }
    .header__search.active { display: block; }
    .header__inner { flex-wrap: wrap; }
}

/* Body lock when menu open */
body.menu-open { overflow: hidden; }


/* ─── HEADER SPACER ──────────────────────────────── */

.header-spacer { height: 0; }


/* ─── BREADCRUMBS ────────────────────────────────── */

.breadcrumbs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
}
.breadcrumbs__list {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem;
    font-size: 0.78rem;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 0.3rem; }
.breadcrumbs__item:not(:last-child)::after {
    content: '›'; color: var(--text-muted); margin-left: 0.15rem;
}
.breadcrumbs__item a { color: var(--text-secondary); }
.breadcrumbs__item a:hover { color: var(--accent-light); }
.breadcrumbs__current { color: var(--text-primary); font-weight: 500; }


/* ─── MAIN ───────────────────────────────────────── */

.main { min-height: 60vh; }


/* ─── HERO BANNER ────────────────────────────────── */

.hero {
    position: relative; overflow: hidden;
    min-height: 420px;
}

.hero__track { position: relative; }

.hero__slide {
    display: none; position: relative; min-height: 420px;
}
.hero__slide--active { display: block; }

.hero__slide-bg {
    position: absolute; inset: 0; z-index: 0;
}

/* Dark overlay for text readability on real banner images */
.hero__slide-overlay {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, rgba(10,11,15,0.92) 0%, rgba(10,11,15,0.7) 45%, rgba(10,11,15,0.3) 100%);
}

.hero__slide-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 420px; padding: 3rem 0;
}

.hero__content { max-width: 560px; }

.hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 2rem; max-width: 480px;
}

.hero__visual {
    position: relative; width: 300px; height: 300px; flex-shrink: 0;
}
.hero__glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%; filter: blur(40px);
    animation: heroGlow 4s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { opacity: 0.5; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1.1); }
}

/* Hero controls */
.hero__controls {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 1rem; z-index: 10;
}

.hero__arrow {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration);
}
.hero__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero__dots { display: flex; gap: 0.5rem; }
.hero__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted); transition: all 0.3s;
}
.hero__dot--active { background: var(--accent); width: 24px; border-radius: 4px; }

@media (max-width: 768px) {
    .hero { min-height: 320px; }
    .hero__slide, .hero__slide-inner { min-height: 320px; }
    .hero__visual { display: none; }
    .hero__title { font-size: 1.6rem; }
}


/* ─── QUICK CATEGORY FILTERS ─────────────────────── */

.quick-cats { padding: 1.75rem 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); overflow: visible; }

.quick-cats__grid {
    display: flex; gap: 0.75rem; overflow-x: auto; overflow-y: visible;
    scrollbar-width: none; padding: 8px 4px;
    -webkit-overflow-scrolling: touch;
}
.quick-cats__grid::-webkit-scrollbar { display: none; }

.quick-cats__item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.1rem; border-radius: var(--radius-xl);
    background: var(--bg-tertiary); border: 1px solid var(--border);
    white-space: nowrap; font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}
.quick-cats__item:hover {
    background: var(--accent-glow); border-color: var(--accent);
    color: var(--accent-light); transform: translateY(-1px);
}

.quick-cats__icon { font-size: 1.1rem; }


/* ─── SECTIONS ───────────────────────────────────── */

.section { padding: 3rem 0; }
.section--dark { background: var(--bg-secondary); }

.section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem;
}

.section__title {
    font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em;
}

.section__link {
    font-size: 0.85rem; font-weight: 600; color: var(--accent-light);
    transition: color var(--duration);
}
.section__link:hover { color: var(--accent); }


/* ─── PRODUCT GRID ───────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}


/* ─── PRODUCT CARD ───────────────────────────────── */

.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    position: relative;
    transition: all 0.3s var(--ease);
    display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Badges */
.product-card__badges {
    position: absolute; top: 0.6rem; left: 0.6rem; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.product-card__badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 0.2rem 0.5rem; border-radius: 4px; letter-spacing: 0.03em;
}
.product-card__badge--discount { background: var(--red); color: #fff; }
.product-card__badge--new { background: var(--accent); color: #fff; }
.product-card__badge--own { background: var(--purple); color: #fff; }
.product-card__badge--preorder { background: var(--orange); color: var(--text-inverse); }

/* Wishlist */
.product-card__wishlist {
    position: absolute; top: 0.6rem; right: 0.6rem; z-index: 5;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--duration);
    opacity: 0;
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { background: var(--red); color: #fff; }

/* Image */
.product-card__image {
    aspect-ratio: 4/3; background: var(--bg-tertiary);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-card__img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__image-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.product-card__image-sku {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
}

/* Info */
.product-card__info {
    padding: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1;
}

.product-card__brand {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    color: var(--accent-light); letter-spacing: 0.05em;
}

.product-card__title {
    font-size: 0.82rem; font-weight: 500; line-height: 1.4;
}
.product-card__title a { color: var(--text-primary); }
.product-card__title a:hover { color: var(--accent-light); }

/* Stock badge */
.product-card__stock {
    font-size: 0.72rem; font-weight: 500;
}
.badge-success { color: var(--green); }
.badge-danger  { color: var(--red); }
.badge-warning { color: var(--orange); }
.badge-info    { color: var(--accent-light); }

/* Prices */
.product-card__price-row { margin-top: auto; padding-top: 0.5rem; }

.product-card__prices { display: flex; align-items: baseline; gap: 0.5rem; }

.product-card__price-original {
    font-size: 0.82rem; color: var(--text-muted);
    text-decoration: line-through;
}

.product-card__price-current {
    font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
}

.product-card__installment {
    font-size: 0.68rem; color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Actions */
.product-card__actions { margin-top: 0.65rem; }

@media (max-width: 600px) {
    .product-card__info { padding: 0.65rem; }
    .product-card__title { font-size: 0.72rem; }
    .product-card__price-current { font-size: 1rem; }
    .product-card__installment { display: none; }
}


/* ─── BUTTONS ────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem 1.25rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; text-align: center;
    transition: all var(--duration) var(--ease);
    border: 1px solid transparent; cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn--outline {
    background: transparent; color: var(--accent-light); border-color: var(--accent);
}
.btn--outline:hover { background: var(--accent-glow); color: var(--accent); }

.btn--hero {
    background: var(--accent); color: #fff; border-color: var(--accent);
    padding: 0.75rem 2rem; font-size: 0.95rem; border-radius: var(--radius-md);
}
.btn--hero:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.btn--preorder {
    background: var(--orange-bg); color: var(--orange); border-color: var(--orange);
    width: 100%;
}
.btn--preorder:hover { background: var(--orange); color: var(--text-inverse); }

.btn--notify {
    background: var(--bg-tertiary); color: var(--text-secondary); border-color: var(--border);
    width: 100%;
}
.btn--notify:hover { border-color: var(--accent); color: var(--accent-light); }

.btn--add-cart {
    width: 100%;
}


/* ─── CATEGORY TILES ─────────────────────────────── */

.category-tiles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.category-tile {
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    padding: 1.5rem 1rem; border-radius: var(--radius-md);
    background: var(--bg-card); border: 1px solid var(--border);
    text-align: center; transition: all 0.3s var(--ease);
    position: relative;
}
.category-tile:hover {
    border-color: var(--accent); background: var(--accent-glow);
    transform: translateY(-4px); box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.category-tile__icon { font-size: 2rem; }
.category-tile__name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.category-tile__badge {
    position: absolute; top: 0.5rem; right: 0.5rem;
    font-size: 0.6rem; font-weight: 700; background: var(--green);
    color: #fff; padding: 0.1rem 0.35rem; border-radius: 3px;
}


/* ─── PROMO BANNER ───────────────────────────────── */

.promo-banner { padding: 2rem 0; }

.promo-banner__inner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 3rem;
    position: relative; overflow: hidden;
}

.promo-banner__content { max-width: 500px; position: relative; z-index: 1; }
.promo-banner__tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--purple); background: rgba(168, 85, 247, 0.1);
    padding: 0.25rem 0.75rem; border-radius: 3px; margin-bottom: 1rem;
}
.promo-banner__title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.promo-banner__text { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.promo-banner__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.promo-banner__visual {
    position: relative; width: 200px; height: 200px; flex-shrink: 0;
}
.promo-banner__glow {
    position: absolute; inset: -50%; border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
    filter: blur(30px); animation: heroGlow 3s ease-in-out infinite alternate;
}
.promo-banner__icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 5rem;
}

@media (max-width: 768px) {
    .promo-banner__inner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .promo-banner__visual { display: none; }
    .promo-banner__ctas { justify-content: center; }
}


/* ─── TRUST SIGNALS ──────────────────────────────── */

.trust {
    padding: 3rem 0; background: var(--bg-secondary);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.trust__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}

.trust__item { text-align: center; }
.trust__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: var(--accent-glow); color: var(--accent-light);
    margin-bottom: 0.75rem;
}
.trust__item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.trust__item p { font-size: 0.8rem; color: var(--text-secondary); }

@media (max-width: 768px) {
    .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 480px) {
    .trust__grid { grid-template-columns: 1fr; }
}


/* ─── FOOTER ─────────────────────────────────────── */

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }

/* Newsletter */
.footer__newsletter {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1a1c2e 100%);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.footer__newsletter-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.footer__newsletter-text h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer__newsletter-text p { font-size: 0.85rem; color: var(--text-secondary); }

.footer__newsletter-form {
    display: flex; gap: 0.5rem; flex-shrink: 0;
}
.footer__newsletter-form input {
    width: 280px; border-radius: var(--radius-xl);
    padding: 0.65rem 1.2rem;
}
.footer__newsletter-form button {
    background: var(--accent); color: #fff; padding: 0.65rem 1.5rem;
    border-radius: var(--radius-xl); font-weight: 600; font-size: 0.85rem;
    transition: background var(--duration);
}
.footer__newsletter-form button:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
    .footer__newsletter-inner { flex-direction: column; text-align: center; }
    .footer__newsletter-form { width: 100%; }
    .footer__newsletter-form input { flex: 1; width: auto; }
}

/* Footer main grid */
.footer__main { padding: 3rem 0 2rem; }
.footer__grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer__about { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.footer__social { display: flex; gap: 0.5rem; }
.footer__social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-hover); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration);
}
.footer__social-link:hover { background: var(--accent); color: #fff; }

.footer__heading {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
    font-size: 0.82rem; color: var(--text-secondary);
    transition: color var(--duration);
}
.footer__links a:hover { color: var(--accent-light); }

.footer__contact li {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.75rem;
}

.footer__whatsapp {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #25D366; color: #fff; padding: 0.5rem 1rem;
    border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600;
    margin-top: 0.5rem; transition: opacity var(--duration);
}
.footer__whatsapp:hover { opacity: 0.9; color: #fff; }

@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* Payment icons */
.footer__payments {
    border-top: 1px solid var(--border); padding: 1.25rem 0;
}
.footer__payments-inner {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    flex-wrap: wrap;
}
.footer__payments-label { font-size: 0.78rem; color: var(--text-muted); }
.footer__payments-icons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.payment-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-hover); border: 1px solid var(--border);
    border-radius: 4px; padding: 0.3rem 0.7rem;
    font-size: 0.68rem; font-weight: 700; color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Bottom bar */
.footer__bottom {
    border-top: 1px solid var(--border); padding: 1.25rem 0;
}
.footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
    font-size: 0.75rem; color: var(--text-muted);
}
.footer__legal { font-size: 0.7rem; }
.footer__bottom-links { display: flex; gap: 1rem; }
.footer__bottom-links a { color: var(--text-muted); font-size: 0.75rem; }
.footer__bottom-links a:hover { color: var(--accent-light); }


/* ─── BACK TO TOP ────────────────────────────────── */

.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }


/* ─── ADMIN PANEL STYLES (Basic) ─────────────────── */

.admin-container { padding: 2rem; max-width: 1200px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }

.admin-stats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.admin-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem;
}
.admin-stat-card__label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.admin-stat-card__value { font-size: 1.8rem; font-weight: 700; }
.admin-stat-card__sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }

.admin-table {
    width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.admin-table th {
    text-align: left; padding: 0.75rem; font-weight: 600;
    border-bottom: 2px solid var(--border); color: var(--text-secondary);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-table td {
    padding: 0.75rem; border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-hover); }

.admin-actions { display: flex; gap: 0.5rem; }
.admin-actions a, .admin-actions button {
    font-size: 0.78rem; padding: 0.3rem 0.6rem; border-radius: 4px;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    color: var(--text-secondary); transition: all var(--duration);
}
.admin-actions a:hover, .admin-actions button:hover {
    border-color: var(--accent); color: var(--accent-light);
}


/* ─── UTILITY CLASSES ────────────────────────────── */

.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}


/* ═══════════════════════════════════════════════════════
   PHASE 2 — PRODUCT DISCOVERY & BROWSING
   ═══════════════════════════════════════════════════════ */

/* ─── PRODUCT LISTING PAGE (PLP) ─────────────────── */

.plp { padding: 2rem 0 3rem; }

.plp__header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.plp__title { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.plp__title-icon { font-size: 1.3rem; }
.plp__description { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.3rem; max-width: 600px; }
.plp__count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* Subcategory chips */
.plp__subcats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.plp__subcat-chip {
    padding: 0.4rem 0.9rem; border-radius: var(--radius-xl);
    background: var(--bg-tertiary); border: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
    transition: all var(--duration) var(--ease); display: inline-flex; align-items: center; gap: 0.35rem;
}
.plp__subcat-chip:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }

/* Layout: sidebar + content */
.plp__layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }

@media (max-width: 900px) {
    .plp__layout { grid-template-columns: 1fr; }
    .plp__sidebar {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg-primary); z-index: 1100; overflow-y: auto; padding: 1.5rem;
    }
    .plp__sidebar.open { display: block; }
}

/* Content area */
.plp__content { min-width: 0; }

/* Sidebar */
.plp__sidebar-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem;
}
.plp__sidebar-header h3 { font-size: 1rem; font-weight: 700; }
.plp__clear-filters { font-size: 0.78rem; color: var(--accent-light); }

/* Filter groups */
.filter-group { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.filter-group__title {
    font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
    margin-bottom: 0.65rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.filter-group__list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 220px; overflow-y: auto; }

.filter-checkbox {
    display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem;
    color: var(--text-secondary); cursor: pointer; padding: 0.15rem 0;
}
.filter-checkbox input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.filter-checkbox__count { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }

/* Price range */
.filter-price-range { display: flex; align-items: center; gap: 0.35rem; }
.filter-price-input {
    width: 80px; padding: 0.4rem 0.5rem; font-size: 0.82rem; text-align: center;
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.filter-price-sep { color: var(--text-muted); }
.filter-price-btn {
    padding: 0.4rem 0.6rem; background: var(--accent); color: #fff;
    border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; border: none;
}
.filter-price-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Sort bar */
.plp__sortbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border);
}
.plp__sort-options { display: flex; align-items: center; gap: 0.5rem; }
.plp__sort-label { font-size: 0.82rem; color: var(--text-muted); }
.plp__sort-select {
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem; font-size: 0.82rem; color: var(--text-primary);
}

.plp__filter-toggle {
    display: none; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.9rem; background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--text-secondary); cursor: pointer;
}
@media (max-width: 900px) { .plp__filter-toggle { display: flex; } }

/* Active filter chips */
.plp__active-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.plp__filter-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.7rem; background: var(--accent-glow); border: 1px solid var(--accent);
    border-radius: var(--radius-xl); font-size: 0.75rem; color: var(--accent-light);
    transition: all var(--duration);
}
.plp__filter-chip:hover { background: var(--accent); color: #fff; }

/* Empty state */
.plp__empty {
    text-align: center; padding: 4rem 1rem;
}
.plp__empty h3 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.plp__empty p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.pagination__btn {
    padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 600;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-secondary);
    transition: all var(--duration);
}
.pagination__btn:hover { border-color: var(--accent); color: var(--accent-light); }

.pagination__pages { display: flex; align-items: center; gap: 0.25rem; }
.pagination__page {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
    border: 1px solid transparent; transition: all var(--duration);
}
.pagination__page:hover { border-color: var(--border-hover); background: var(--bg-hover); color: var(--text-primary); }
.pagination__page--active {
    background: var(--accent); color: #fff; font-weight: 700; border-color: var(--accent);
}
.pagination__dots { color: var(--text-muted); padding: 0 0.25rem; }


/* ─── PRODUCT DETAIL PAGE (PDP) ──────────────────── */

.pdp { padding: 2rem 0 3rem; }

.pdp__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; align-items: start; }

@media (max-width: 900px) {
    .pdp__layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Gallery */
.pdp__gallery { align-self: start; }

.pdp__main-image {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; position: relative;
    aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.pdp__main-img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; }
.pdp__no-image { display: flex; align-items: center; justify-content: center; }
.pdp__badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.3rem; }

.pdp__thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; max-width: 100%; padding-bottom: 0.25rem; }
.pdp__thumb {
    width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-sm);
    border: 2px solid var(--border); overflow: hidden; cursor: pointer;
    background: var(--bg-tertiary); transition: border-color var(--duration);
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pdp__thumb:hover, .pdp__thumb--active { border-color: var(--accent); }

.pdp__image-disclaimer { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; }

/* Product info */
.pdp__info { min-width: 0; }

.pdp__brand {
    display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent-light); margin-bottom: 0.4rem;
}

.pdp__title { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.75rem; }

.pdp__meta {
    display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 1.25rem; flex-wrap: wrap;
}
.pdp__meta a { color: var(--accent-light); }

/* Price block */
.pdp__price-block {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.25rem;
}
.pdp__price-original {
    font-size: 1rem; color: var(--text-muted); text-decoration: line-through;
    display: block; margin-bottom: 0.15rem;
}
.pdp__price-savings {
    display: inline-block; font-size: 0.78rem; font-weight: 600;
    color: var(--green); background: var(--green-bg);
    padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.4rem;
}
.pdp__price-current { font-size: 2rem; font-weight: 800; display: block; letter-spacing: -0.02em; }
.pdp__price-tax { font-size: 0.75rem; color: var(--text-muted); }

/* Klarna */
.pdp__klarna {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 1.25rem;
}
.pdp__klarna-label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.pdp__klarna-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pdp__klarna-option {
    font-size: 0.78rem; background: var(--bg-tertiary); border: 1px solid var(--border);
    padding: 0.35rem 0.65rem; border-radius: var(--radius-sm); color: var(--text-secondary);
}
.pdp__klarna-option strong { color: var(--text-primary); }

/* Stock & Delivery */
.pdp__stock-info { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pdp__stock-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.88rem; font-weight: 600;
}
.pdp__stock-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.badge-success .pdp__stock-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.badge-danger .pdp__stock-dot  { background: var(--red); }
.badge-warning .pdp__stock-dot { background: var(--orange); }
.badge-info .pdp__stock-dot    { background: var(--accent); }

.pdp__delivery {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; color: var(--text-secondary);
}

/* Warranty */
.pdp__warranty {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1.25rem;
}
.pdp__warranty-ext { color: var(--green); font-weight: 500; }

/* Actions */
.pdp__actions { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
.pdp__qty-row { display: flex; gap: 0.65rem; align-items: stretch; }
.pdp__qty {
    display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.pdp__qty-btn {
    width: 40px; background: var(--bg-tertiary); color: var(--text-primary);
    font-size: 1.1rem; font-weight: 600; cursor: pointer; border: none;
    transition: background var(--duration);
}
.pdp__qty-btn:hover { background: var(--bg-hover); }
.pdp__qty-input {
    width: 48px; text-align: center; border: none; border-left: 1px solid var(--border);
    border-right: 1px solid var(--border); background: var(--bg-input);
    font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
}
.pdp__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn--lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.pdp__qty-row .btn--lg { flex: 1; }

.pdp__wishlist-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
    background: transparent; cursor: pointer; transition: all var(--duration);
}
.pdp__wishlist-btn:hover { border-color: var(--red); color: var(--red); }
.pdp__wishlist-btn.active { border-color: var(--red); color: var(--red); background: var(--red-bg); }

/* Short desc */
.pdp__short-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1rem; }

/* Free shipping */
.pdp__free-shipping {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; font-weight: 500; color: var(--green);
    background: var(--green-bg); border: 1px solid rgba(34,197,94,0.15);
    padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
}

/* Tabs */
.pdp__tabs { margin-bottom: 2rem; }
.pdp__tab-nav {
    display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem;
}
.pdp__tab-btn {
    padding: 0.75rem 1.25rem; font-size: 0.9rem; font-weight: 600;
    color: var(--text-muted); background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: all var(--duration);
}
.pdp__tab-btn:hover { color: var(--text-primary); }
.pdp__tab-btn--active { color: var(--accent-light); border-bottom-color: var(--accent); }

.pdp__tab-content { display: none; }
.pdp__tab-content--active { display: block; }

/* Specs table */
.pdp__specs-table { max-width: 800px; }
.pdp__spec-group { margin-bottom: 1.5rem; }
.pdp__spec-group-title {
    font-size: 0.88rem; font-weight: 700; color: var(--accent-light);
    margin-bottom: 0.65rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
}
.pdp__spec-row {
    display: flex; padding: 0.5rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.pdp__spec-row:last-child { border-bottom: none; }
.pdp__spec-label { width: 200px; flex-shrink: 0; color: var(--text-muted); font-weight: 500; }
.pdp__spec-value { color: var(--text-primary); }

@media (max-width: 600px) {
    .pdp__spec-row { flex-direction: column; gap: 0.15rem; }
    .pdp__spec-label { width: auto; }
}

.pdp__description { font-size: 0.9rem; line-height: 1.75; color: var(--text-secondary); max-width: 800px; }
.pdp__description h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.75rem; }
.pdp__description h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin: 1.25rem 0 0.5rem; }
.pdp__description h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 1rem 0 0.5rem; }
.pdp__description p { margin-bottom: 0.75rem; }
.pdp__description ul, .pdp__description ol { margin: 0.5rem 0 1rem 1.5rem; }
.pdp__description ul { list-style: disc; }
.pdp__description ol { list-style: decimal; }
.pdp__description li { margin-bottom: 0.3rem; }
.pdp__description table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; }
.pdp__description th, .pdp__description td { padding: 0.6rem 0.75rem; border: 1px solid var(--border); text-align: left; }
.pdp__description th { background: var(--bg-elevated); font-weight: 600; color: var(--text-primary); }
.pdp__description td { background: var(--bg-card); }
.pdp__description tr:hover td { background: var(--bg-hover); }
.pdp__description img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0.75rem 0; }
.pdp__description a { color: var(--accent-light); text-decoration: underline; }
.pdp__description a:hover { color: var(--accent); }
.pdp__description blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 1rem; margin: 1rem 0; background: var(--bg-elevated); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pdp__description pre, .pdp__description code { font-family: var(--font-mono); font-size: 0.82rem; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.pdp__description pre { padding: 1rem; overflow-x: auto; margin: 0.75rem 0; }
.pdp__description code { padding: 0.15rem 0.4rem; }
.pdp__description hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.pdp__short-desc table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.84rem; }
.pdp__short-desc th, .pdp__short-desc td { padding: 0.4rem 0.6rem; border: 1px solid var(--border); }
.pdp__short-desc th { background: var(--bg-elevated); font-weight: 600; }
.pdp__short-desc img { max-width: 100%; height: auto; }


/* ─── SEARCH SUGGESTIONS DROPDOWN ────────────────── */

.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1001;
    background: var(--bg-elevated); border: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto;
}

.search-suggestion {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
    transition: background var(--duration); cursor: pointer;
    text-decoration: none; color: inherit;
}
.search-suggestion:hover { background: var(--bg-hover); }
.search-suggestion:last-child { border-bottom: none; }

.search-suggestion__img {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--bg-tertiary); overflow: hidden; flex-shrink: 0;
}
.search-suggestion__img img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }

.search-suggestion__info { flex: 1; min-width: 0; }
.search-suggestion__name {
    font-size: 0.82rem; font-weight: 500; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-suggestion__brand { font-size: 0.7rem; color: var(--text-muted); }
.search-suggestion__price { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }

.search-suggestions__footer {
    padding: 0.6rem 1rem; text-align: center; border-top: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 600; color: var(--accent-light);
}
.search-suggestions__footer:hover { background: var(--bg-hover); }


/* ═══════════════════════════════════════════════════
   PHASE 3 — USER ACCOUNTS
   ═══════════════════════════════════════════════════ */

/* Header user name */
.header__user-name {
    font-size: 0.72rem; font-weight: 600; color: var(--accent-light);
    display: block; text-align: center; margin-top: 2px;
}

/* ─── Auth Box (Login/Register) ─────────────────── */
.account-auth { padding: 3rem 1rem; display: flex; justify-content: center; }
.account-auth__box {
    width: 100%; max-width: 480px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.account-auth__tabs {
    display: flex; border-bottom: 1px solid var(--border);
}
.account-auth__tab {
    flex: 1; text-align: center; padding: 0.9rem 1rem;
    font-weight: 600; font-size: 0.88rem;
    color: var(--text-secondary); text-decoration: none;
    transition: all 0.2s;
}
.account-auth__tab.active {
    color: var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
    background: var(--bg-tertiary);
}
.account-auth__tab:hover:not(.active) { background: var(--bg-hover); }

/* ─── Form Components ────────────────────────────── */
.account-form { padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block; margin-bottom: 0.35rem;
    font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
}
.form-label small { font-weight: 400; color: var(--text-muted); }
.form-input {
    width: 100%; padding: 0.65rem 0.85rem;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 0.88rem; font-family: inherit;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none; border-color: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input:disabled {
    opacity: 0.6; cursor: not-allowed; background: var(--bg-tertiary);
}
.form-input::placeholder { color: var(--text-muted); }
select.form-input { cursor: pointer; }
.form-hint { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-checkbox-label {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.84rem; color: var(--text-secondary); cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] { accent-color: var(--accent-light); margin-top: 2px; }
.form-checkbox-label a { color: var(--accent-light); }

.btn--full { width: 100%; }
.account-form__footer {
    text-align: center; margin-top: 1.25rem;
    font-size: 0.82rem; color: var(--text-muted);
}
.account-form__footer a { color: var(--accent-light); font-weight: 600; }

/* ─── Feedback alerts ─────────────────────────────── */
.account-alert {
    padding: 0.75rem 1rem; margin-bottom: 1rem;
    border-radius: var(--radius-sm); font-size: 0.84rem;
}
.account-alert p { margin: 0; }
.account-alert p + p { margin-top: 0.25rem; }
.account-alert--success {
    background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e;
}
.account-alert--error {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444;
}

/* ─── Account Layout (sidebar + content) ──────────── */
.account { padding: 2rem 0; }
.account__layout {
    display: grid; grid-template-columns: 260px 1fr; gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .account__layout { grid-template-columns: 1fr; }
}

/* Sidebar */
.account__sidebar {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.account__user-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.25rem; border-bottom: 1px solid var(--border);
}
.account__user-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-glow); color: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.account__user-name { display: block; font-size: 0.88rem; color: var(--text-primary); }
.account__user-email { display: block; font-size: 0.75rem; color: var(--text-muted); }

.account__nav { padding: 0.5rem 0; }
.account__nav-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1.25rem; font-size: 0.84rem;
    color: var(--text-secondary); text-decoration: none;
    transition: all 0.2s;
}
.account__nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.account__nav-item.active {
    color: var(--accent-light); background: var(--accent-glow);
    border-left: 3px solid var(--accent-light);
}
.account__nav-item svg { flex-shrink: 0; }
.account__nav-item--logout { color: var(--red); }
.account__nav-item--logout:hover { background: rgba(239,68,68,0.08); }

/* Content area */
.account__content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem;
    min-width: 0;
}
.account__content .account-form { padding: 0; }
.account__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.account__subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.account__meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 1.5rem; }

/* Dashboard cards */
.account__cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem; margin-top: 1.25rem;
}
.account__card {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem;
    text-decoration: none; color: inherit; transition: all 0.2s;
}
.account__card:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.account__card svg { color: var(--accent-light); margin-bottom: 0.6rem; }
.account__card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.25rem; }
.account__card p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ─── Address Grid ────────────────────────────────── */
.address-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.address-card {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1rem;
    font-size: 0.84rem; line-height: 1.6;
}
.address-card p { margin: 0; color: var(--text-secondary); }
.address-card__header {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.5rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.address-card__header strong { font-size: 0.9rem; }
.address-card__badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    background: var(--accent-glow); color: var(--accent-light);
    padding: 0.1rem 0.4rem; border-radius: 3px;
}
.address-card__actions {
    display: flex; gap: 1rem; margin-top: 0.75rem;
    padding-top: 0.5rem; border-top: 1px solid var(--border);
    font-size: 0.82rem;
}
.address-card__actions a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.link-btn { background: none; border: none; cursor: pointer; font-size: inherit; font-family: inherit; padding: 0; }
.link-btn--danger { color: var(--red); }
.link-btn--danger:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════
   PHASE 4 — SHOPPING CART & CHECKOUT
   ═══════════════════════════════════════════════════ */

/* ─── Cart Page Layout ───────────────────────────── */
.cart-page { padding: 2rem 0; }
.cart-page__title {
    font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem;
}
.cart-page__count { font-size: 0.88rem; font-weight: 400; color: var(--text-muted); }
.cart-page__layout {
    display: grid; grid-template-columns: 1fr 360px; gap: 2rem;
    align-items: flex-start;
}
.cart-page__items { min-width: 0; }
@media (max-width: 900px) {
    .cart-page__layout { grid-template-columns: 1fr; }
}

/* ─── Cart Item ──────────────────────────────────── */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto auto;
    gap: 1rem; align-items: center;
    padding: 1rem; margin-bottom: 0.75rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem;
    }
    .cart-item__price, .cart-item__qty, .cart-item__total { grid-column: 2; }
    .cart-item__remove { grid-column: 2; justify-self: end; }
}
.cart-item__image {
    width: 80px; height: 80px; background: var(--bg-tertiary);
    border-radius: var(--radius-sm); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; padding: 0.25rem; }
.cart-item__info { min-width: 0; }
.cart-item__name {
    font-size: 0.84rem; font-weight: 600; color: var(--text-primary);
    text-decoration: none; display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item__name:hover { color: var(--accent-light); }
.cart-item__brand { font-size: 0.72rem; color: var(--text-muted); display: block; }
.cart-item__sku { font-size: 0.7rem; color: var(--text-muted); }
.cart-item__stock { font-size: 0.7rem; display: block; margin-top: 0.15rem; }
.cart-item__stock--ok { color: var(--green); }
.cart-item__stock--pre { color: var(--accent-light); }

.cart-item__price { text-align: right; white-space: nowrap; }
.cart-item__price-original {
    font-size: 0.72rem; text-decoration: line-through; color: var(--text-muted); display: block;
}
.cart-item__price-current { font-size: 0.88rem; font-weight: 700; }

.cart-item__qty-form { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item__qty-btn {
    width: 32px; height: 32px; background: var(--bg-tertiary); border: none;
    color: var(--text-primary); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.cart-item__qty-btn:hover { background: var(--bg-hover); }
.cart-item__qty-input {
    width: 40px; height: 32px; text-align: center; border: none;
    background: transparent; color: var(--text-primary); font-size: 0.84rem;
    font-family: inherit; -moz-appearance: textfield;
}
.cart-item__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-item__total { font-size: 0.95rem; font-weight: 800; white-space: nowrap; }

.cart-item__remove-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); padding: 0.25rem; transition: color 0.2s;
}
.cart-item__remove-btn:hover { color: var(--red); }

.cart-page__actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}

/* ─── Cart Summary Sidebar ───────────────────────── */
.cart-summary {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    position: sticky; top: 100px;
}
.cart-summary__title { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }

.cart-summary__coupon { margin-bottom: 1rem; }
.cart-summary__coupon-form { display: flex; gap: 0.5rem; }
.cart-summary__coupon-applied {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--accent-glow); padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm); font-size: 0.82rem;
}

.cart-summary__rows { border-top: 1px solid var(--border); padding-top: 0.75rem; }
.cart-summary__row {
    display: flex; justify-content: space-between;
    font-size: 0.84rem; padding: 0.35rem 0; color: var(--text-secondary);
}
.cart-summary__row--discount { color: var(--green); }
.cart-summary__row--tax { font-size: 0.78rem; color: var(--text-muted); }
.cart-summary__shipping-hint {
    font-size: 0.75rem; color: var(--accent-light); padding: 0.25rem 0 0.35rem;
}

.cart-summary__total {
    display: flex; justify-content: space-between;
    font-size: 1.15rem; font-weight: 800; padding: 0.75rem 0;
    border-top: 2px solid var(--border); margin-top: 0.5rem;
}

.cart-summary__klarna {
    text-align: center; font-size: 0.78rem; color: var(--text-muted);
    padding: 0.25rem 0 0.75rem;
}

.cart-summary__trust {
    display: flex; gap: 1rem; justify-content: center;
    font-size: 0.72rem; color: var(--text-muted);
    padding-top: 0.75rem; margin-top: 0.75rem;
    border-top: 1px solid var(--border); flex-wrap: wrap;
}

/* ─── Checkout Layout ─────────────────────────────── */
.checkout { padding: 2rem 0; }
.checkout__layout {
    display: grid; grid-template-columns: 1fr 380px; gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .checkout__layout { grid-template-columns: 1fr; }
    .checkout__summary { order: -1; }
}
.checkout__form { min-width: 0; }
.checkout__section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem;
}
.checkout__section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.checkout__guest-notice {
    background: var(--accent-glow); border: 1px solid rgba(0,133,255,0.15);
    border-radius: var(--radius-sm); padding: 0.75rem 1rem;
    font-size: 0.84rem; margin-bottom: 1rem;
}
.checkout__guest-notice a { color: var(--accent-light); font-weight: 600; }

/* Payment options */
.checkout__payments { display: grid; gap: 0.5rem; }
.checkout__payment-option {
    display: flex; align-items: center; gap: 0.75rem; cursor: pointer;
}
.checkout__payment-option input[type="radio"] { accent-color: var(--accent-light); }
.checkout__payment-card {
    flex: 1; padding: 0.75rem 1rem;
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); transition: all 0.2s;
}
.checkout__payment-option input:checked + .checkout__payment-card {
    border-color: var(--accent-light); background: var(--accent-glow);
}
.checkout__payment-card strong { display: block; font-size: 0.88rem; }
.checkout__payment-card small { font-size: 0.75rem; color: var(--text-muted); }

/* Checkout summary items */
.checkout__items-preview { border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
.checkout__item-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.35rem 0; font-size: 0.82rem;
}
.checkout__item-img {
    width: 40px; height: 40px; background: var(--bg-tertiary);
    border-radius: 4px; overflow: hidden; position: relative; flex-shrink: 0;
}
.checkout__item-img img { width: 100%; height: 100%; object-fit: contain; }
.checkout__item-qty {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-light); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.checkout__item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout__item-price { font-weight: 700; white-space: nowrap; }
.checkout__summary { position: sticky; top: 100px; }
.checkout__back-link {
    display: block; text-align: center; margin-top: 0.75rem;
    font-size: 0.82rem; color: var(--text-muted);
}
.checkout__back-link:hover { color: var(--accent-light); }

/* ─── Order Cards (Account page) ─────────────────── */
.orders-list { display: grid; gap: 0.75rem; }
.order-card {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1rem;
}
.order-card__header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.order-status {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    padding: 0.15rem 0.5rem; border-radius: 3px;
}
.order-status--pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.order-status--processing { background: rgba(59,130,246,0.15); color: #3b82f6; }
.order-status--shipped { background: rgba(0,133,255,0.15); color: var(--accent-light); }
.order-status--delivered { background: rgba(34,197,94,0.15); color: var(--green); }
.order-status--cancelled { background: rgba(239,68,68,0.15); color: var(--red); }
.order-status--refunded { background: rgba(168,85,247,0.15); color: #a855f7; }
.order-card__items { font-size: 0.82rem; }
.order-card__item { display: block; padding: 0.15rem 0; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   PHASE 6 — REVIEWS & RATINGS
   ═══════════════════════════════════════════════════ */

/* Star colors */
:root { --star-color: #fbbf24; --star-muted: #374151; }

/* Stars component */
.stars { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.stars--sm svg { width: 14px; height: 14px; }

/* Product card rating */
.product-card__rating { display: flex; align-items: center; gap: 0.35rem; margin: 0.15rem 0; }
.product-card__rating-count { font-size: 0.72rem; color: var(--text-muted); }

/* PDP rating */
.pdp__rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.pdp__rating-link { font-size: 0.84rem; color: var(--accent-light); text-decoration: none; }
.pdp__rating-link:hover { text-decoration: underline; }

/* Reviews Summary */
.reviews-summary {
    display: grid; grid-template-columns: auto 1fr; gap: 2rem;
    padding: 1.25rem; background: var(--bg-tertiary);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}
@media (max-width: 480px) { .reviews-summary { grid-template-columns: 1fr; gap: 1rem; } }
.reviews-summary__score { text-align: center; min-width: 100px; }
.reviews-summary__avg { font-size: 2.5rem; font-weight: 900; display: block; line-height: 1; }
.reviews-summary__count { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 0.25rem; }

.reviews-summary__bars { display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; }
.reviews-summary__bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
.reviews-summary__bar-label { width: 28px; text-align: right; color: var(--text-muted); }
.reviews-summary__bar-track {
    flex: 1; height: 8px; background: var(--bg-primary);
    border-radius: 4px; overflow: hidden;
}
.reviews-summary__bar-fill { height: 100%; background: var(--star-color); border-radius: 4px; transition: width 0.3s; }
.reviews-summary__bar-count { width: 24px; font-size: 0.72rem; color: var(--text-muted); }

/* Review Form */
.review-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem;
}
.review-form__title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.review-form__stars { display: flex; gap: 0.25rem; cursor: pointer; }
.review-form__star-label { cursor: pointer; }
.review-star { transition: all 0.15s; }
.review-star:hover { transform: scale(1.15); }

/* Review List */
.review-list { display: grid; gap: 0.75rem; }
.review-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1rem;
}
.review-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.review-card__title { display: block; font-size: 0.92rem; margin-top: 0.15rem; }
.review-card__meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); align-items: center; }
.review-card__verified { color: var(--green); font-weight: 600; font-size: 0.7rem; }
.review-card__body { font-size: 0.88rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 0.5rem; }
.review-card__pros, .review-card__cons { font-size: 0.82rem; margin: 0.25rem 0; }
.review-card__reply {
    margin-top: 0.75rem; padding: 0.75rem;
    background: var(--bg-tertiary); border-left: 3px solid var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.82rem;
}
.review-card__reply strong { color: var(--accent-light); display: block; margin-bottom: 0.25rem; font-size: 0.78rem; }
.review-card__reply p { margin: 0; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   PHASE 7 — PC CONFIGURATOR
   ═══════════════════════════════════════════════════ */

.configurator { padding: 2rem 0; }
.configurator__header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.configurator__title { font-size: 1.5rem; font-weight: 900; }
.configurator__subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.25rem; }
.configurator__actions-top { display: flex; gap: 0.5rem; align-items: center; }
.configurator__load-form { display: flex; gap: 0.35rem; }

.configurator__layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 2rem;
    align-items: flex-start;
}
@media (max-width: 900px) { .configurator__layout { grid-template-columns: 1fr; } }

/* Slots */
.configurator__slots { display: grid; gap: 0.5rem; }
.config-slot {
    display: grid; grid-template-columns: 32px 40px 1fr auto;
    gap: 0.75rem; align-items: center;
    padding: 0.85rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); transition: all 0.2s;
}
.config-slot--filled { border-color: var(--green); background: rgba(34, 197, 94, 0.06); }
.config-slot--filled .config-slot__step { background: var(--green); color: #fff; }
.config-slot--optional { opacity: 0.85; }
.config-slot--locked { opacity: 0.5; pointer-events: none; }
.config-slot--locked .config-slot__step { background: var(--bg-tertiary); color: var(--text-muted); }
.config-slot--next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow); }
.config-slot--next .config-slot__step { background: var(--accent); color: #fff; animation: pulseStep 2s infinite; }
.config-slot--browsing { border-color: var(--accent-light); background: var(--accent-glow); }
@keyframes pulseStep { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.config-slot__step {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800;
    background: var(--bg-tertiary); color: var(--text-secondary);
    flex-shrink: 0; transition: all 0.2s;
}
.config-slot__icon { font-size: 1.4rem; text-align: center; }
.config-slot__label { font-size: 0.82rem; font-weight: 700; display: block; }
.config-slot__product { font-size: 0.78rem; color: var(--text-secondary); display: block; margin-top: 0.1rem; }
.config-slot__price { font-size: 0.82rem; font-weight: 800; color: var(--accent-light); display: block; }
.config-slot__empty { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.config-slot__actions { display: flex; gap: 0.35rem; align-items: center; }
.config-slot__remove {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 0.9rem; padding: 0.15rem;
}
.config-slot__remove:hover { color: var(--red); }

/* Constraint tags in browser */
.config-browser__constraints {
    display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
    margin-top: 0.5rem;
}
.config-browser__constraint-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    background: var(--accent-glow); color: var(--accent-light);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.2rem 0.55rem; border-radius: 20px;
    white-space: nowrap;
}

/* Summary */
.configurator__summary {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    position: sticky; top: 100px;
}
.configurator__summary-title { font-size: 1rem; font-weight: 800; margin-bottom: 0.75rem; }
.configurator__summary-items { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.configurator__summary-item {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; padding: 0.25rem 0;
}
.configurator__summary-slot { font-size: 0.9rem; width: 22px; text-align: center; }
.configurator__summary-name { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.configurator__summary-price { font-weight: 700; white-space: nowrap; }

.configurator__wattage {
    background: var(--bg-tertiary); padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm); margin: 0.75rem 0;
    font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
}

.configurator__total {
    display: flex; justify-content: space-between;
    font-size: 1.15rem; font-weight: 800;
    padding: 0.75rem 0; border-top: 2px solid var(--border);
}

.configurator__trust {
    display: flex; flex-direction: column; gap: 0.35rem;
    font-size: 0.72rem; color: var(--text-muted);
    padding-top: 0.75rem; margin-top: 0.75rem;
    border-top: 1px solid var(--border); text-align: center;
}

/* Component Browser */
.config-browser {
    margin-top: 2rem; padding: 1.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.config-browser__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.config-browser__header h3 { font-size: 1.1rem; font-weight: 700; }
.config-browser__grid { display: grid; gap: 0.5rem; }

.config-product {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: 1rem; align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.config-product--selected { border-color: var(--accent-light); background: var(--accent-glow); }
.config-product:hover { border-color: var(--accent-light); }
.config-product__brand { font-size: 0.7rem; color: var(--text-muted); display: block; }
.config-product__name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); text-decoration: none; display: block; }
.config-product__name:hover { color: var(--accent-light); }
.config-product__desc { font-size: 0.72rem; color: var(--text-muted); display: block; margin-top: 0.1rem; }
.config-product__price-col { text-align: right; }
.config-product__original { font-size: 0.72rem; text-decoration: line-through; color: var(--text-muted); display: block; }
.config-product__price { font-size: 0.92rem; }

@media (max-width: 600px) {
    .config-product { grid-template-columns: 1fr; gap: 0.5rem; }
    .config-product__price-col { text-align: left; }
}

/* Saved builds */
.config-saved { margin-top: 2rem; }
.config-saved__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem;
}
.config-saved__card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 0.85rem;
    font-size: 0.82rem;
}
.config-saved__card strong { display: block; margin-bottom: 0.25rem; }
.config-saved__card span { display: block; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   PHASE 8 — IMAGE ZOOM & ENHANCEMENTS
   ═══════════════════════════════════════════════════ */
.pdp__main-image { position: relative; overflow: hidden; cursor: zoom-in; }
.pdp__zoom-result {
    display: none; position: absolute; top: 0; right: -420px;
    width: 400px; height: 400px; border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    background: var(--bg-card); z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.pdp__zoom-result img { position: absolute; max-width: none; }
@media (max-width: 1200px) { .pdp__zoom-result { display: none !important; } }

/* Enhanced thumbnails */
.pdp__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0; max-width: 100%; }
.pdp__thumb {
    width: 64px; height: 64px; flex-shrink: 0;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer; transition: border-color .2s;
    background: var(--bg-tertiary);
}
.pdp__thumb:hover, .pdp__thumb--active { border-color: var(--accent-light); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; padding: .15rem; }

/* ═══════════════════════════════════════════════════
   PHASE 9 — MINI-CART, RMA STATUS, IMAGE DISCLAIMER
   ═══════════════════════════════════════════════════ */

/* Mini-cart dropdown */
.header__cart-wrapper:hover .mini-cart { display: block; }
.mini-cart {
    display: none; position: absolute; top: 100%; right: 0;
    width: 320px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 1000;
    overflow: hidden;
}
.mini-cart__header { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .84rem; }
.mini-cart__items { max-height: 200px; overflow-y: auto; }
.mini-cart__item { display: flex; justify-content: space-between; padding: .5rem 1rem; font-size: .78rem; border-bottom: 1px solid var(--border); }
.mini-cart__name { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-cart__qty { white-space: nowrap; margin-left: .5rem; font-weight: 600; }
.mini-cart__total { display: flex; justify-content: space-between; padding: .75rem 1rem; border-top: 1px solid var(--border); font-size: .88rem; }
.mini-cart__actions { display: flex; gap: .5rem; padding: .75rem 1rem; }
@media (max-width: 768px) { .mini-cart { display: none !important; } }

/* RMA status badges */
.order-status--created { background: rgba(59,130,246,.1); color: #3b82f6; }
.order-status--validated { background: rgba(34,197,94,.1); color: #22c55e; }
.order-status--in_progress { background: rgba(249,115,22,.1); color: #f97316; }
.order-status--finalized { background: rgba(107,114,128,.1); color: #6b7280; }
.order-status--rejected { background: rgba(239,68,68,.1); color: #ef4444; }

/* Image disclaimer */
.pdp__image-disclaimer { font-size: .7rem; color: var(--text-muted); font-style: italic; text-align: center; margin-top: .5rem; }

/* ═══ Phase 9 — Support Ticket Status Badges ═══ */
.order-status--open { background: rgba(59,130,246,.15); color: #3b82f6; }
.order-status--waiting_customer { background: rgba(251,191,36,.15); color: #fbbf24; }
.order-status--resolved { background: rgba(34,197,94,.15); color: #22c55e; }
.order-status--closed { background: rgba(107,114,128,.15); color: #6b7280; }

/* Contact page responsive */
@media (max-width: 768px) {
    .section .container > div[style*="grid-template-columns: 1fr 320px"] {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ═══ Phase 10 — B2B Status Badges ═══ */
.order-status--new { background: rgba(59,130,246,.15); color: #3b82f6; }
.order-status--contacted { background: rgba(251,191,36,.15); color: #fbbf24; }
.order-status--quoted { background: rgba(139,92,246,.15); color: #8b5cf6; }
.order-status--negotiating { background: rgba(249,115,22,.15); color: #f97316; }
.order-status--won { background: rgba(34,197,94,.15); color: #22c55e; }
.order-status--lost { background: rgba(107,114,128,.15); color: #6b7280; }
.order-status--active { background: rgba(34,197,94,.15); color: #22c55e; }
.order-status--suspended { background: rgba(249,115,22,.15); color: #f97316; }

/* ═══ Phase 11 — Blog Status Badges ═══ */
.order-status--draft { background: rgba(107,114,128,.15); color: #6b7280; }
.order-status--published { background: rgba(34,197,94,.15); color: #22c55e; }
.order-status--archived { background: rgba(107,114,128,.1); color: #9ca3af; }

/* ═══ Phase 12 — Cookie Consent Banner ═══ */
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--bg-card); border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,.3); max-height: 90vh; overflow-y: auto; }
.cookie-consent__inner { max-width: 900px; margin: 0 auto; padding: 1.25rem 1.5rem; }
.cookie-consent__main { display: flex; gap: 1.5rem; align-items: center; }
.cookie-consent__text { flex: 1; }
.cookie-consent__actions { display: flex; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 768px) { .cookie-consent__main { flex-direction: column; align-items: stretch; } .cookie-consent__actions { justify-content: stretch; } .cookie-consent__actions .btn { flex: 1; text-align: center; } }
.cookie-consent__categories { display: flex; flex-direction: column; gap: .75rem; }
.cookie-cat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; }
.cookie-cat__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.cookie-cat__badge { font-size: .65rem; font-weight: 600; padding: .1rem .4rem; border-radius: 3px; margin-left: .5rem; }
.cookie-cat__badge--always { background: rgba(34,197,94,.15); color: #22c55e; }
.cookie-cat__desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.cookie-cat__details { margin-top: .5rem; }
.cookie-cat__details summary { font-size: .72rem; color: var(--accent-light); cursor: pointer; }
.cookie-table { width: 100%; font-size: .72rem; border-collapse: collapse; margin-top: .4rem; }
.cookie-table th, .cookie-table td { padding: .3rem .5rem; text-align: left; border-bottom: 1px solid var(--border); }
.cookie-table th { color: var(--text-muted); font-weight: 600; }
.cookie-table td { color: var(--text-secondary); }
/* Toggle switch */
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 22px; transition: .3s; }
.cookie-toggle__slider:before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s; }
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__slider:before { transform: translateX(18px); }
.cookie-toggle--disabled .cookie-toggle__slider { opacity: .5; cursor: not-allowed; }
/* Cookie settings floating button */
.cookie-settings-btn { position: fixed; bottom: 1rem; left: 1rem; z-index: 9998; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: transform .2s; }
.cookie-settings-btn:hover { transform: scale(1.1); }

/* ═══════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════ */
.lang-switcher { position: relative; display: inline-flex; align-items: center; margin-left: .75rem; }
.lang-switcher__btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: .25rem .5rem; cursor: pointer; color: inherit; font-size: .78rem; font-family: inherit; transition: border-color .2s, background .2s; }
.lang-switcher__btn:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.lang-switcher__flag { font-size: 1rem; line-height: 1; }
.lang-switcher__code { font-weight: 600; letter-spacing: .03em; }
.lang-switcher__arrow { transition: transform .2s; flex-shrink: 0; }
.lang-switcher.open .lang-switcher__arrow { transform: rotate(180deg); }
.lang-switcher__dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 9999; overflow: hidden; padding: .25rem 0; }
.lang-switcher.open .lang-switcher__dropdown { display: block; }
.lang-switcher__item { display: flex; align-items: center; gap: .5rem; padding: .55rem .85rem; text-decoration: none; color: var(--text-primary); font-size: .82rem; transition: background .15s; }
.lang-switcher__item:hover { background: var(--bg-surface); }
.lang-switcher__item--active { color: var(--accent); font-weight: 600; }
.lang-switcher__item-flag { font-size: 1.1rem; line-height: 1; }
.lang-switcher__item-name { flex: 1; }
.lang-switcher__item svg { flex-shrink: 0; color: var(--accent); }
/* Mobile: Make switcher more compact */
@media (max-width: 768px) {
    .lang-switcher__code { display: none; }
    .lang-switcher__btn { padding: .2rem .35rem; }
    .lang-switcher__dropdown { right: -10px; }
    .top-bar__promo { display: none; }
}

/* ═══════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}
.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-switcher__btn:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
}
.lang-switcher__flag {
    font-size: 1rem;
    line-height: 1;
}
.lang-switcher__code {
    letter-spacing: 0.03em;
}
.lang-switcher__arrow {
    transition: transform 0.2s;
    opacity: 0.6;
}
.lang-switcher.is-open .lang-switcher__arrow {
    transform: rotate(180deg);
}
.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    background: var(--bg-card, #1a1f2e);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    padding: 0.4rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.lang-switcher.is-open .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
    color: var(--text, #fff);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    transition: background 0.15s;
}
.lang-switcher__item:hover {
    background: rgba(255,255,255,0.07);
    text-decoration: none;
    color: var(--text, #fff);
}
.lang-switcher__item--active {
    font-weight: 600;
    color: var(--primary, #0085ff);
}
.lang-switcher__item--active:hover {
    color: var(--primary, #0085ff);
}
.lang-switcher__item-flag {
    font-size: 1.15rem;
    line-height: 1;
}
.lang-switcher__item-name {
    flex: 1;
}

/* Mobile: show flag-only in smaller screens */
@media (max-width: 768px) {
    .lang-switcher__code {
        display: none;
    }
    .lang-switcher__btn {
        padding: 0.3rem 0.4rem;
    }
    .lang-switcher__dropdown {
        right: -10px;
    }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE OVERHAUL
   Complete mobile-first fixes for all screen sizes
   ═══════════════════════════════════════════════════════════ */

/* ─── GLOBAL MOBILE FIXES ────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 1rem; }
    .section { padding: 2rem 0; }

    /* Ensure nothing overflows the viewport */
    body { overflow-x: hidden; }
    .main { overflow-x: hidden; }
}

/* ─── HEADER — MOBILE ────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }
    .header__inner {
        gap: 0.75rem;
        height: var(--header-h);
        padding: 0 0.75rem;
    }
    .header__logo-img {
        height: 36px;
    }
    /* Header action icons — larger touch targets */
    .header__actions {
        gap: 0.1rem;
    }
    .header__icon-btn {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    .header__icon-btn svg {
        width: 20px;
        height: 20px;
    }
    .header__cart-badge {
        top: 2px;
        right: 2px;
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
    }

    /* Search bar — always visible below header */
    .header__search {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        order: 10;
        width: 100%;
        display: block !important;
        padding: 0.5rem 0;
        background: none;
        border: none;
    }
    .header__inner {
        flex-wrap: wrap;
    }
    .search-form__input {
        font-size: 0.88rem;
        padding: 0.55rem 2.75rem 0.55rem 1rem;
    }
    .search-form__btn {
        width: 30px;
        height: 30px;
    }
    .search-form__btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ─── SIDEBAR — MOBILE TWEAKS ────────────────────── */
@media (max-width: 1024px) {
    .sidebar-menu { width: 300px; }
}

/* ─── HERO — MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        min-height: 260px;
    }
    .hero__slide,
    .hero__slide-inner {
        min-height: 260px;
    }
    .hero__slide-inner {
        padding: 2rem 0;
    }
    .hero__title {
        font-size: 1.35rem;
        margin-bottom: 0.65rem;
    }
    .hero__subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
        max-width: none;
        line-height: 1.5;
    }
    .hero__visual {
        display: none;
    }
    .btn--hero {
        padding: 0.65rem 1.5rem;
        font-size: 0.88rem;
    }
    .hero__controls {
        bottom: 0.75rem;
        gap: 0.5rem;
    }
    .hero__arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .hero { min-height: 220px; }
    .hero__slide, .hero__slide-inner { min-height: 220px; }
    .hero__title { font-size: 1.15rem; }
    .hero__subtitle { font-size: 0.82rem; }
}

/* ─── PRODUCT GRID — MOBILE ──────────────────────── */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ─── PRODUCT CARD — MOBILE ──────────────────────── */
@media (max-width: 768px) {
    .product-card:hover {
        transform: none; /* Disable hover lift on mobile — causes jank */
    }
    .product-card__badges {
        top: 0.4rem;
        left: 0.4rem;
    }
    .product-card__badge {
        font-size: 0.58rem;
        padding: 0.15rem 0.35rem;
    }
    .product-card__wishlist {
        opacity: 1; /* Always show on mobile — no hover */
        width: 28px;
        height: 28px;
        top: 0.4rem;
        right: 0.4rem;
    }
    .product-card__wishlist svg {
        width: 14px;
        height: 14px;
    }
    .product-card__image {
        aspect-ratio: 1/1;
    }
    .product-card__img {
        padding: 0.5rem;
    }
    .product-card__info {
        padding: 0.6rem;
        gap: 0.3rem;
    }
    .product-card__brand {
        font-size: 0.62rem;
    }
    .product-card__title {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-card__stock {
        font-size: 0.65rem;
    }
    .product-card__price-original {
        font-size: 0.72rem;
    }
    .product-card__price-current {
        font-size: 0.95rem;
    }
    .product-card__installment {
        display: none;
    }
    .product-card__rating {
        gap: 0.2rem;
    }
    .product-card__rating-count {
        font-size: 0.65rem;
    }
    .product-card__rating .stars--sm svg {
        width: 11px;
        height: 11px;
    }
    .product-card__actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }
    .product-card__actions .btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ─── SECTIONS & HEADINGS — MOBILE ───────────────── */
@media (max-width: 768px) {
    .section__header {
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .section__title {
        font-size: 1.15rem;
    }
    .section__link {
        font-size: 0.82rem;
    }
    .plp__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .plp__title {
        font-size: 1.2rem;
    }
}

/* ─── CATEGORY TILES — MOBILE ────────────────────── */
@media (max-width: 768px) {
    .category-tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
    .category-tile {
        padding: 1rem 0.5rem;
    }
    .category-tile__icon {
        font-size: 1.5rem;
    }
    .category-tile__name {
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .category-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── QUICK CATS — MOBILE ────────────────────────── */
@media (max-width: 768px) {
    .quick-cats {
        padding: 1rem 0;
    }
    .quick-cats__grid {
        gap: 0.5rem;
        padding: 4px 2px;
    }
    .quick-cats__item {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
}

/* ─── PLP FILTERS SIDEBAR — MOBILE ───────────────── */
@media (max-width: 900px) {
    .plp__sidebar {
        padding: 0;
    }
    .plp__sidebar.open {
        display: flex;
        flex-direction: column;
    }
    /* Sidebar close button area */
    .plp__sidebar.open::before {
        content: '';
        display: block;
        flex-shrink: 0;
        height: env(safe-area-inset-top, 0);
    }
    .plp__sidebar-header {
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        z-index: 10;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0;
    }
    .filter-group {
        padding: 0 1.25rem 1rem;
        margin-bottom: 1rem;
    }
    /* Apply filters button for mobile */
    .plp__filter-toggle {
        min-height: 40px;
        font-size: 0.85rem;
        font-weight: 600;
    }
    .plp__sortbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .plp__sort-options {
        flex-wrap: wrap;
    }
}

/* ─── PAGINATION — MOBILE ────────────────────────── */
@media (max-width: 600px) {
    .pagination {
        gap: 0.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination__btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
    }
    .pagination__page {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }
}

/* ─── PDP (PRODUCT DETAIL) — MOBILE ──────────────── */
@media (max-width: 900px) {
    .pdp {
        padding: 1rem 0 2rem;
    }
    .pdp__layout {
        gap: 1.25rem;
    }
    .pdp__main-image {
        max-height: 350px;
    }
    .pdp__thumbs {
        gap: 0.35rem;
    }
    .pdp__thumb {
        width: 52px;
        height: 52px;
    }
    .pdp__title {
        font-size: 1.15rem;
    }
    .pdp__meta {
        gap: 0.75rem;
        font-size: 0.75rem;
    }
    .pdp__price-current {
        font-size: 1.65rem;
    }
    .pdp__price-block {
        padding: 1rem;
    }
    .pdp__qty-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .pdp__qty-row .btn--lg {
        width: 100%;
    }
    .pdp__klarna-options {
        flex-direction: column;
    }

    /* Tabs — scrollable on mobile */
    .pdp__tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }
    .pdp__tab-nav::-webkit-scrollbar { display: none; }
    .pdp__tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }
    .pdp__spec-row {
        flex-direction: column;
        gap: 0.1rem;
    }
    .pdp__spec-label {
        width: auto;
        font-size: 0.78rem;
    }
    .pdp__spec-value {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .pdp__main-image {
        max-height: 280px;
        border-radius: var(--radius-sm);
    }
    .pdp__title {
        font-size: 1.05rem;
    }
}

/* ─── CART — MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
    .cart-page__title {
        font-size: 1.15rem;
    }
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "img info"
            "img price"
            "qty qty"
            "total remove";
        gap: 0.35rem;
        padding: 0.85rem;
    }
    .cart-item__image {
        grid-area: img;
        width: 60px;
        height: 60px;
    }
    .cart-item__info {
        grid-area: info;
    }
    .cart-item__name {
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem;
    }
    .cart-item__price {
        grid-area: price;
        text-align: left;
    }
    .cart-item__qty {
        grid-area: qty;
    }
    .cart-item__total {
        grid-area: total;
        font-size: 0.88rem;
    }
    .cart-item__remove {
        grid-area: remove;
        justify-self: end;
        align-self: center;
    }
    /* Cart summary on mobile */
    .cart-summary {
        position: static;
        border-radius: var(--radius-md);
        padding: 1.25rem;
    }
    .cart-page__actions {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ─── CHECKOUT — MOBILE ──────────────────────────── */
@media (max-width: 900px) {
    .checkout__section {
        padding: 1.25rem;
    }
    .checkout__section-title {
        font-size: 0.95rem;
    }
    .checkout__payment-card strong {
        font-size: 0.84rem;
    }
    .checkout__item-row {
        font-size: 0.78rem;
    }
}

/* ─── ACCOUNT — MOBILE ───────────────────────────── */
@media (max-width: 768px) {
    .account {
        padding: 1rem 0;
    }
    .account__sidebar {
        border-radius: var(--radius-md);
    }
    .account__nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.5rem 0;
        gap: 0;
    }
    .account__nav::-webkit-scrollbar { display: none; }
    .account__nav-item {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.65rem 0.85rem;
        font-size: 0.72rem;
        text-align: center;
        white-space: nowrap;
        flex-shrink: 0;
        border-left: none;
    }
    .account__nav-item.active {
        border-left: none;
        border-bottom: 2px solid var(--accent-light);
    }
    .account__nav-item svg {
        width: 18px;
        height: 18px;
    }
    .account__user-card {
        padding: 1rem;
    }
    .account__content {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }
    .account__title {
        font-size: 1.1rem;
    }
    .account__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .account__card {
        padding: 1rem;
    }
    .account__card h4 {
        font-size: 0.82rem;
    }
    .account__card p {
        font-size: 0.72rem;
    }
    .account__card svg {
        width: 22px;
        height: 22px;
    }
    .address-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Auth box */
    .account-auth {
        padding: 1.5rem 0.5rem;
    }
    .account-auth__box {
        border-radius: var(--radius-md);
    }
    .account-form {
        padding: 1.25rem;
    }
}

/* ─── B2B — MOBILE ───────────────────────────────── */
@media (max-width: 768px) {
    /* Override inline grid styles that don't work on mobile */
    .section .container > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ─── CONFIGURATOR — MOBILE ──────────────────────── */
@media (max-width: 900px) {
    .configurator__header {
        flex-direction: column;
    }
    .configurator__summary {
        position: static;
        border-radius: var(--radius-md);
    }
    .config-slot {
        grid-template-columns: 24px 28px 1fr auto;
        gap: 0.4rem;
        padding: 0.75rem;
    }
    .config-slot__step { width: 24px; height: 24px; font-size: 0.65rem; }
    .config-slot__icon {
        font-size: 1.1rem;
    }
    .config-slot__label {
        font-size: 0.78rem;
    }
}

/* ─── PROMO BANNER — MOBILE ──────────────────────── */
@media (max-width: 480px) {
    .promo-banner__inner {
        padding: 1.5rem 1rem;
    }
    .promo-banner__title {
        font-size: 1.25rem;
    }
    .promo-banner__text {
        font-size: 0.84rem;
    }
    .promo-banner__ctas .btn {
        width: 100%;
        text-align: center;
    }
}

/* ─── FOOTER — MOBILE ────────────────────────────── */
@media (max-width: 768px) {
    .footer__main {
        padding: 2rem 0 1.5rem;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    /* First column (logo + about) spans full width */
    .footer__grid > .footer__col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer__grid > .footer__col:first-child .footer__social {
        justify-content: center;
    }
    .footer__grid > .footer__col:first-child .header__logo-img {
        margin: 0 auto;
        height: 42px;
    }
    .footer__heading {
        font-size: 0.8rem;
        margin-bottom: 0.65rem;
    }
    .footer__links a {
        font-size: 0.78rem;
    }
    .footer__links li {
        margin-bottom: 0.4rem;
    }
    .footer__contact li {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }

    /* Newsletter */
    .footer__newsletter {
        padding: 1.75rem 0;
    }
    .footer__newsletter-text h3 {
        font-size: 1rem;
    }
    .footer__newsletter-form {
        flex-direction: column;
    }
    .footer__newsletter-form input {
        width: 100%;
    }

    /* Bottom bar */
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .footer__bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Payment icons */
    .footer__payments-inner {
        flex-direction: column;
        gap: 0.65rem;
    }
    .footer__payments-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── BREADCRUMBS — MOBILE ───────────────────────── */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.5rem 0;
    }
    .breadcrumbs__list {
        font-size: 0.72rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .breadcrumbs__list::-webkit-scrollbar { display: none; }
    .breadcrumbs__item {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ─── TRUST SIGNALS — MOBILE OVERRIDE ────────────── */
@media (max-width: 768px) {
    .trust {
        padding: 2rem 0;
    }
    .trust__icon {
        width: 44px;
        height: 44px;
    }
    .trust__icon svg {
        width: 20px;
        height: 20px;
    }
    .trust__item h4 {
        font-size: 0.82rem;
    }
    .trust__item p {
        font-size: 0.72rem;
    }
}

/* ─── BLOG — MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
    .section .container > div[style*="grid-template-columns: repeat(3"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .section .container > div[style*="grid-template-columns: repeat(2"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ─── SEARCH SUGGESTIONS — MOBILE ────────────────── */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 70vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        z-index: 1100;
    }
    .search-suggestion {
        padding: 0.75rem 1rem;
    }
    .search-suggestion__img {
        width: 44px;
        height: 44px;
    }
    .search-suggestion__name {
        font-size: 0.84rem;
    }
}

/* ─── REVIEWS — MOBILE ───────────────────────────── */
@media (max-width: 480px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .reviews-summary__score {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
        min-width: auto;
    }
    .reviews-summary__avg {
        font-size: 2rem;
    }
    .review-card {
        padding: 0.85rem;
    }
    .review-card__header {
        flex-direction: column;
        gap: 0.35rem;
    }
    .review-form {
        padding: 1rem;
    }
}

/* ─── COOKIE CONSENT — MOBILE ────────────────────── */
@media (max-width: 768px) {
    .cookie-consent__inner {
        padding: 1rem;
    }
    .cookie-consent__main {
        gap: 1rem;
    }
    .cookie-consent__text h3 {
        font-size: 0.92rem;
    }
    .cookie-consent__text p {
        font-size: 0.78rem;
    }
    .cookie-consent__actions .btn {
        font-size: 0.8rem;
        padding: 0.55rem 1rem;
    }
    .cookie-cat {
        padding: 0.85rem;
    }
}

/* ─── BUTTONS — MOBILE TOUCH TARGETS ─────────────── */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        padding: 0.55rem 1rem;
        font-size: 0.84rem;
    }
    .btn--full {
        padding: 0.7rem 1rem;
    }
    /* Smaller btn variants can override */
    .product-card__actions .btn {
        min-height: 38px;
    }
}

/* ─── ORDER CARDS — MOBILE ───────────────────────── */
@media (max-width: 600px) {
    .order-card {
        padding: 0.85rem;
    }
    .order-card__header {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ─── CONTACT SIDEBAR — MOBILE ───────────────────── */
@media (max-width: 768px) {
    /* Contact page uses account sidebar — make it horizontal */
    .account__layout .account__sidebar .account__nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ─── STORES PAGE — MOBILE ───────────────────────── */
@media (max-width: 768px) {
    /* Override inline grid columns for store cards */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(350px"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
}

/* ─── SAFE AREA INSETS (notch devices) ───────────── */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer__bottom {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }
    .cookie-consent {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .back-to-top {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
    .cookie-settings-btn {
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* ─── PRINT STYLES (basic) ───────────────────────── */
@media print {
    .header, .sidebar-menu, .sidebar-overlay, .top-bar, .footer, .back-to-top,
    .cookie-consent, .cookie-settings-btn,
    .header-spacer { display: none !important; }
    body { background: #fff; color: #000; }
    .main { padding: 0; }
}
