/* =============================================
   Ezznology UK — Main Stylesheet
   Design: Modern Tech / Dark Accent
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

/* ============ CSS VARIABLES ============ */
:root {
    --primary:      #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light:#3b82f6;
    --accent:       #06b6d4;
    --accent-dark:  #0891b2;
    --success:      #10b981;
    --warning:      #f59e0b;
    --danger:       #ef4444;
    --purple:       #8b5cf6;

    --bg:           #f8faff;
    --bg-2:         #eef2ff;
    --card:         #ffffff;
    --nav-bg:       #0f172a;
    --text:         #111827;
    --text-2:       #374151;
    --muted:        #6b7280;
    --border:       #e5e7eb;
    --border-2:     #d1d5db;

    --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
    --shadow:       0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
    --shadow-blue:  0 4px 20px rgba(37,99,235,.25);

    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    18px;
    --radius-xl:    24px;

    --ease:         .22s ease;
    --ease-spring:  .35s cubic-bezier(.34,1.56,.64,1);

    --font-head:    'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --nav-h:        70px;
}

/* Dark Mode */
body.dark {
    --bg:      #090e1a;
    --bg-2:    #111827;
    --card:    #131d2e;
    --nav-bg:  #060c18;
    --text:    #f1f5f9;
    --text-2:  #cbd5e1;
    --muted:   #94a3b8;
    --border:  #1e2d45;
    --border-2:#243550;
    --shadow:  0 4px 20px rgba(0,0,0,.40);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.60);
}

/* ============ BASE ============ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ============ LAYOUT ============ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.main-content { min-height: calc(100vh - var(--nav-h) - 60px); }

/* ============ TOP BAR ============ */
.topbar {
    background: var(--nav-bg);
    color: #94a3b8;
    font-size: 12.5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-msg { display: flex; align-items: center; gap: 8px; }
.topbar-msg span { color: var(--accent); }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar-links a { color: #94a3b8; transition: color var(--ease); font-size: 12px; }
.topbar-links a:hover { color: #fff; }
.topbar-links .divider { color: #2d3d55; }

/* ============ HEADER ============ */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
body.dark .site-header { box-shadow: 0 2px 20px rgba(0,0,0,.4); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--nav-h);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
}
.logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    font-family: var(--font-head);
    flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); }
.logo-text small { font-size: 11px; color: var(--muted); font-weight: 500; }

/* Search */
.search-form {
    flex: 1;
    max-width: 560px;
    display: flex;
    background: var(--bg-2);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text);
    outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background var(--ease);
    display: flex;
    align-items: center;
}
.search-form button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--text-2);
    transition: all var(--ease);
    position: relative;
    text-decoration: none;
}
.btn-icon:hover { background: var(--bg-2); border-color: var(--primary); color: var(--primary); }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.dark-toggle { font-size: 16px; }

/* Nav */
.main-nav {
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.06);
}
.main-nav .container { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 0; width: 100%; flex-wrap: wrap; }
.main-nav ul li a {
    display: block;
    padding: 14px 18px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    transition: color var(--ease), background var(--ease);
    white-space: nowrap;
    position: relative;
}
.main-nav ul li a:hover,
.main-nav ul li a.active { color: #fff; }
.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}
.main-nav ul li a.nav-deals { color: #fbbf24 !important; font-weight: 600; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 22px; padding: 8px; }

/* ============ FLASH ============ */
.flash-message {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}
.flash-message .container { display: flex; align-items: center; gap: 10px; }
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.flash-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.flash-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
body.dark .flash-success { background: #064e3b; color: #6ee7b7; }
body.dark .flash-error   { background: #7f1d1d; color: #fca5a5; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2a4a 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(37,99,235,.25) 0%, transparent 70%),
                radial-gradient(ellipse 40% 60% at 20% 80%, rgba(6,182,212,.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { color: #94a3b8; font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .label { font-size: 12px; color: #64748b; margin-top: 4px; }
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}
.hero-product-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 300px;
    transition: transform .3s;
}
.hero-product-card:hover { transform: translateX(-6px); }
.hero-product-card .emoji { font-size: 36px; }
.hero-product-card .info .name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.hero-product-card .info .price { font-size: 15px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.hero-product-card .badge-new { font-size: 10px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 50px; margin-left: auto; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--ease-spring);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-2); color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ============ SECTIONS ============ */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .badge {
    display: inline-block;
    background: rgba(37,99,235,.1);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    border: 1px solid rgba(37,99,235,.2);
}
.section-title h2 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.section-title p { color: var(--muted); max-width: 540px; margin: 0 auto; font-size: 15px; }

/* ============ PRODUCT CARDS ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s var(--ease-spring);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-2);
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.badge-sale    { background: var(--danger); color: #fff; }
.badge-new     { background: var(--success); color: #fff; }
.badge-popular { background: var(--warning); color: #fff; }
.badge-top     { background: var(--purple); color: #fff; }

.product-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--ease);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.product-card-actions button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text);
    transition: all var(--ease);
    box-shadow: var(--shadow-sm);
}
.product-card-actions button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.stars .empty { color: #d1d5db; }
.rating-count { font-size: 11.5px; color: var(--muted); }

.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.price-current { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.price-original { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: 11px; font-weight: 700; color: var(--success); background: rgba(16,185,129,.1); padding: 2px 7px; border-radius: 50px; }

.product-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: none; box-shadow: var(--shadow-blue); }
.btn-add-cart.out-of-stock { background: var(--border-2); color: var(--muted); cursor: not-allowed; }

/* ============ CATEGORY GRID ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.category-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .3s var(--ease-spring);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.category-card:hover {
    border-color: var(--primary);
    background: rgba(37,99,235,.04);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--primary);
}
.cat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37,99,235,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background var(--ease);
}
.category-card:hover .cat-icon-wrap { background: rgba(37,99,235,.18); }
.cat-name { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ============ FEATURES STRIP ============ */
.features-strip {
    background: var(--nav-bg);
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    border-right: 1px solid rgba(255,255,255,.07);
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 26px; flex-shrink: 0; }
.feature-info .title { font-size: 13.5px; font-weight: 700; color: #e2e8f0; }
.feature-info .sub   { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ============ NEWSLETTER ============ */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    padding: 64px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 90% 50%, rgba(6,182,212,.2) 0%, transparent 70%);
}
.newsletter-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter-section h2 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-section p { color: rgba(255,255,255,.75); font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
    flex: 1;
    padding: 13px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 14.5px;
    outline: none;
    border: 1.5px solid rgba(255,255,255,.2);
    transition: border-color var(--ease);
    font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.6); }
.newsletter-form button {
    padding: 13px 28px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ease);
    white-space: nowrap;
    font-family: inherit;
}
.newsletter-form button:hover { background: var(--bg-2); transform: translateY(-2px); }

/* ============ BLOG CARDS ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.blog-card-image { aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.blog-category { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.blog-date { font-size: 12px; color: var(--muted); }
.blog-reading-time { font-size: 12px; color: var(--muted); }
.blog-card-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-card-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-footer { padding: 16px 20px 20px; }
.btn-read-more { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-read-more:hover { color: var(--primary-dark); gap: 10px; }

/* ============ SHOP PAGE ============ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.shop-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--nav-h) - 32px);
    overflow-y: auto;
}
.filter-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.filter-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.filter-option input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; }
.filter-option label { font-size: 13.5px; color: var(--text-2); cursor: pointer; flex: 1; }
.filter-option .count { font-size: 12px; color: var(--muted); background: var(--bg-2); padding: 2px 7px; border-radius: 50px; }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.shop-count { font-size: 14px; color: var(--muted); }
.shop-count strong { color: var(--text); font-weight: 700; }
.sort-select {
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

/* ============ PRODUCT PAGE ============ */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
.product-main-image {
    background: var(--bg-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.product-main-image img { max-height: 100%; object-fit: contain; }
.product-details { }
.product-details .brand { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.product-details h1 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 14px; line-height: 1.3; }
.product-details .rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.product-details .rating-row .stars { font-size: 16px; }
.product-price-section { margin: 20px 0; padding: 20px; background: var(--bg-2); border-radius: var(--radius); }
.product-price-section .current-price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--text); }
.product-price-section .original-price { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; margin-left: 10px; }
.product-price-section .save-badge { display: inline-block; background: var(--success); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-left: 10px; }

.qty-selector { display: flex; align-items: center; gap: 0; margin-bottom: 16px; }
.qty-selector button {
    width: 40px;
    height: 44px;
    border: 1.5px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: all var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-selector button:first-child { border-radius: 8px 0 0 8px; }
.qty-selector button:last-child  { border-radius: 0 8px 8px 0; }
.qty-selector button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-selector input { width: 60px; height: 44px; text-align: center; border: 1.5px solid var(--border); border-left: none; border-right: none; background: var(--card); color: var(--text); font-size: 16px; font-weight: 700; outline: none; font-family: inherit; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 160px; }

/* ============ CART & CHECKOUT ============ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--bg-2); padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product-info { display: flex; align-items: center; gap: 16px; }
.cart-product-info img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--bg-2); padding: 4px; border: 1px solid var(--border); }
.cart-product-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cart-product-sku  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-subtotal { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.cart-subtotal .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.cart-subtotal .row:last-child { border-bottom: none; padding-top: 14px; font-size: 16px; font-weight: 800; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 14.5px;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--muted); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============ RATING STARS INPUT ============ */
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 28px; cursor: pointer; color: #d1d5db; transition: color var(--ease); }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f59e0b; }

/* ============ REVIEWS ============ */
.reviews-summary { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px; background: var(--bg-2); border-radius: var(--radius-lg); margin-bottom: 28px; }
.review-big-score { text-align: center; }
.review-big-score .num { font-family: var(--font-head); font-size: 3.5rem; font-weight: 900; color: var(--text); line-height: 1; }
.review-big-score .stars { font-size: 18px; margin: 6px 0; }
.review-big-score .total { font-size: 12px; color: var(--muted); }
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rating-bar-row .label { font-size: 12.5px; color: var(--muted); width: 35px; flex-shrink: 0; text-align: right; }
.rating-bar-row .bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-bar-row .fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width .5s ease; }
.rating-bar-row .count { font-size: 12px; color: var(--muted); width: 25px; flex-shrink: 0; }

.review-card { padding: 24px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.reviewer-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.reviewer-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.review-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.review-text { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.verified-badge { font-size: 11px; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 4px; }

/* ============ BREADCRUMBS ============ */
.breadcrumbs { display: flex; align-items: center; gap: 8px; padding: 16px 0; flex-wrap: wrap; }
.breadcrumbs a { font-size: 13px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--border-2); font-size: 12px; }
.breadcrumbs .current { font-size: 13px; color: var(--text); font-weight: 600; }

/* ============ TABS ============ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--ease), border-color var(--ease);
    font-family: inherit;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============ AUTH PAGES ============ */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.auth-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 44px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-card .auth-logo { text-align: center; margin-bottom: 28px; }
.auth-card h1 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; text-align: center; color: var(--text); margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, var(--nav-bg), #1e2d45);
    padding: 48px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-header h1 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.page-header p  { color: #64748b; font-size: 15px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--nav-bg); color: #64748b; padding: 64px 0 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; color: #fff; }
.footer-brand .footer-logo .logo-mark { width: 32px; height: 32px; font-size: 14px; }
.footer-brand .footer-logo .name { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; color: #64748b; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 15px; color: #64748b; transition: all var(--ease); text-decoration: none; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h4 { font-size: 13.5px; font-weight: 700; color: #e2e8f0; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #64748b; transition: color var(--ease); text-decoration: none; }
.footer-col ul li a:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: #475569; }
.footer-bottom .payment-icons { display: flex; gap: 8px; }
.footer-bottom .payment-icons span { font-size: 11px; background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 4px; color: #94a3b8; }

/* ============ BADGES & LABELS ============ */
.stock-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 50px; }
.in-stock { background: rgba(16,185,129,.1); color: var(--success); }
.out-of-stock { background: rgba(239,68,68,.1); color: var(--danger); }
.low-stock { background: rgba(245,158,11,.1); color: var(--warning); }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; margin: 40px 0; }
.pagination ul { display: flex; gap: 8px; align-items: center; list-style: none; padding: 0; }
.page-btn { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: all var(--ease); cursor: pointer; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ MISC ============ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state .icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }
.prose { line-height: 1.8; color: var(--text-2); }
.prose h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 12px 0 16px 20px; list-style: disc; }
.prose ul li { margin-bottom: 8px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; max-height: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { align-items: center; }
    .hero p { margin-left: auto; }
    .newsletter-inner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }
    .container { padding: 0 16px; }
    .topbar { display: none; }
    .header-inner { gap: 10px; }
    .search-form { display: none; }
    .logo-text small { display: none; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul li a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .menu-toggle { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero { padding: 48px 0; }
    .section { padding: 44px 0; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .hero-stats { gap: 20px; }
    .auth-card { padding: 28px 20px; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ============ TOAST NOTIFICATIONS ============ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--nav-bg);
    color: #e2e8f0;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.1);
    animation: toastIn .3s var(--ease-spring) forwards;
    max-width: 340px;
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }
