/* ============================================================
   LaptopsDirect Clone – Global Design System
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    /* Brand colours */
    --ld-blue: #003da5;
    --ld-blue-dark: #002d7a;
    --ld-blue-light: #e8f0fe;
    --ld-orange: #ff6900;
    --ld-orange-dark: #e05c00;
    --ld-red: #d32f2f;
    --ld-green: #2e7d32;
    --ld-yellow: #ffc107;

    /* Neutrals */
    --white: #ffffff;
    --grey-50: #f9f9f9;
    --grey-100: #f4f4f4;
    --grey-200: #e5e5e5;
    --grey-300: #d0d0d0;
    --grey-500: #888888;
    --grey-700: #444444;
    --grey-900: #1a1a1a;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --text-3xl: 36px;

    /* Radii */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .14);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, .18);

    /* Transitions */
    --t-fast: .15s ease;
    --t-base: .25s ease;
    --t-slow: .4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--grey-900);
    background: var(--grey-100);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
}

/* ── Utility ──────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 4px;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--ld-blue-dark);
    color: var(--white);
    font-size: var(--text-xs);
    padding: 6px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar a {
    color: inherit;
    opacity: .85;
    transition: opacity var(--t-fast);
}

.topbar a:hover {
    opacity: 1;
}

.topbar-badge {
    background: var(--ld-orange);
    color: var(--white);
    padding: 2px 7px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 10px;
    margin-right: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.site-logo {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--ld-blue);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.site-logo span {
    color: var(--ld-orange);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 640px;
    position: relative;
}

.search-form {
    display: flex;
    border: 2px solid var(--ld-blue);
    border-radius: var(--r-md);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: var(--text-base);
    background: var(--white);
}

.search-btn {
    background: var(--ld-blue);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background var(--t-fast);
}

.search-btn:hover {
    background: var(--ld-blue-dark);
}

.search-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 360px;
    overflow-y: auto;
}

.search-autocomplete.open {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--t-fast);
    border-bottom: 1px solid var(--grey-100);
}

.autocomplete-item:hover {
    background: var(--grey-50);
}

.autocomplete-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.autocomplete-item .ai-name {
    font-size: var(--text-sm);
    font-weight: 500;
}

.autocomplete-item .ai-price {
    font-size: var(--text-sm);
    color: var(--ld-blue);
    font-weight: 700;
    margin-left: auto;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--grey-700);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--r-md);
    transition: background var(--t-fast), color var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
}

.header-action-btn .icon {
    font-size: 22px;
    line-height: 1;
}

.header-action-btn:hover {
    background: var(--grey-100);
    color: var(--ld-blue);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--ld-orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   MEGA NAVIGATION
   ============================================================ */
.site-nav {
    background: var(--ld-blue);
    position: relative;
    z-index: 800;
}

.nav-inner {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--t-fast);
}

.nav-link:hover,
.nav-item:hover>.nav-link {
    background: var(--ld-blue-dark);
}

.nav-link .chevron {
    font-size: 10px;
    opacity: .7;
    transition: transform var(--t-fast);
}

.nav-item:hover>.nav-link .chevron {
    transform: rotate(180deg);
}

/* Mega Panel */
.mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-xl);
    z-index: 850;
    min-width: 700px;
    padding: 24px;
    gap: 24px;
    border-radius: 0 0 var(--r-md) var(--r-md);
}

.nav-item:hover .mega-panel {
    display: flex;
}

.mega-col {
    min-width: 160px;
}

.mega-col-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--grey-500);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--grey-200);
}

.mega-col ul li {
    margin-bottom: 6px;
}

.mega-col ul li a {
    font-size: var(--text-sm);
    color: var(--grey-700);
    transition: color var(--t-fast);
    display: block;
    padding: 2px 0;
}

.mega-col ul li a:hover {
    color: var(--ld-blue);
    text-decoration: underline;
}

.mega-promo {
    background: var(--ld-blue-light);
    border-radius: var(--r-md);
    padding: 16px;
    min-width: 200px;
}

.mega-promo-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ld-blue);
    margin-bottom: 4px;
}

.mega-promo-sub {
    font-size: var(--text-xs);
    color: var(--grey-700);
    margin-bottom: 12px;
}

.mega-promo-btn {
    display: inline-block;
    background: var(--ld-orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 700;
    transition: background var(--t-fast);
}

.mega-promo-btn:hover {
    background: var(--ld-orange-dark);
}

/* Mobile nav toggle */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--white);
    font-size: 24px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 950;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 95vw);
    height: 100%;
    background: var(--white);
    z-index: 960;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--t-base);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    background: var(--ld-blue);
    color: var(--white);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--grey-100);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-weight: 500;
    color: var(--grey-900);
    cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-md);
    border: 2px solid transparent;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--ld-orange);
    color: var(--white);
    border-color: var(--ld-orange);
}

.btn-primary:hover {
    background: var(--ld-orange-dark);
    border-color: var(--ld-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(.98);
}

.btn-secondary {
    background: var(--white);
    color: var(--ld-blue);
    border-color: var(--ld-blue);
}

.btn-secondary:hover {
    background: var(--ld-blue);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--grey-700);
    border-color: var(--grey-300);
}

.btn-ghost:hover {
    border-color: var(--ld-blue);
    color: var(--ld-blue);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-md);
    border-radius: var(--r-lg);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--text-xs);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--r-md);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge-orange {
    background: var(--ld-orange);
    color: var(--white);
}

.badge-blue {
    background: var(--ld-blue);
    color: var(--white);
}

.badge-red {
    background: var(--ld-red);
    color: var(--white);
}

.badge-green {
    background: var(--ld-green);
    color: var(--white);
}

.badge-yellow {
    background: var(--ld-yellow);
    color: var(--grey-900);
}

.badge-grey {
    background: var(--grey-200);
    color: var(--grey-700);
}

.badge-discount {
    background: var(--ld-red);
    color: var(--white);
    padding: 4px 10px;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--grey-300);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--grey-500);
    transition: all var(--t-fast);
}

.product-card-wishlist:hover {
    border-color: var(--ld-red);
    color: var(--ld-red);
}

.product-card-img {
    padding: 16px;
    background: var(--white);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--t-base);
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 12px 16px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-brand {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--ld-blue);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--grey-900);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card-title:hover {
    color: var(--ld-blue);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: var(--text-xs);
    color: var(--grey-700);
}

.star {
    color: var(--ld-yellow);
    font-size: 13px;
}

.star.half {
    opacity: .6;
}

.star.empty {
    color: var(--grey-300);
}

.product-card-pricing {
    margin-bottom: 8px;
}

.product-card-original {
    font-size: var(--text-xs);
    color: var(--grey-500);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-card-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--grey-900);
    line-height: 1.1;
}

.product-card-monthly {
    font-size: var(--text-xs);
    color: var(--grey-700);
    margin-top: 2px;
}

.product-card-delivery {
    font-size: var(--text-xs);
    color: var(--ld-green);
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--grey-100);
    margin-top: auto;
}

.product-card-footer .btn {
    font-size: var(--text-xs);
    padding: 8px 12px;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media(max-width:1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: var(--ld-blue-dark);
}

.hero-slides {
    display: flex;
    transition: transform var(--t-slow);
}

.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    min-height: 320px;
    padding: 40px 60px;
    position: relative;
    overflow: hidden;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #003da5 0%, #0052cc 50%, #1a6ce8 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3a3a3a 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #4a0e8f 0%, #6b1fcf 50%, #7c3aed 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--ld-orange);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 12px;
    border-radius: var(--r-full);
    margin-bottom: 14px;
}

.hero-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, .8);
    margin-bottom: 24px;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background var(--t-fast), width var(--t-fast);
    border: none;
}

.hero-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: var(--r-full);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    color: var(--white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background var(--t-fast);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.hero-prev {
    left: 16px;
}

.hero-next {
    right: 16px;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--grey-900);
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ld-orange);
    border-radius: var(--r-full);
}

.section-view-all {
    font-size: var(--text-sm);
    color: var(--ld-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--t-fast);
}

.section-view-all:hover {
    gap: 8px;
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media(max-width:1100px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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

.category-tile {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--t-base);
    text-decoration: none;
    color: var(--grey-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-tile:hover {
    border-color: var(--ld-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-tile-icon {
    font-size: 36px;
    line-height: 1;
}

.category-tile-name {
    font-size: var(--text-sm);
    font-weight: 600;
}

.category-tile-count {
    font-size: var(--text-xs);
    color: var(--grey-500);
}

/* ============================================================
   PRODUCT CAROUSEL
   ============================================================ */
.carousel-wrapper {
    position: relative;
}

.carousel-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.carousel-scroll::-webkit-scrollbar {
    display: none;
}

.carousel-scroll .product-card {
    min-width: 240px;
    max-width: 240px;
    scroll-snap-align: start;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: all var(--t-fast);
}

.carousel-arrow:hover {
    background: var(--ld-blue);
    color: var(--white);
    border-color: var(--ld-blue);
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    background: var(--white);
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
    padding: 16px 0;
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
}

.trust-item .t-icon {
    font-size: 28px;
    color: var(--ld-blue);
}

.trust-item strong {
    display: block;
    font-weight: 700;
}

.trust-item span {
    color: var(--grey-700);
    font-size: var(--text-xs);
}

/* ============================================================
   BRANDS STRIP
   ============================================================ */
.brands-strip {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 24px;
}

.brands-strip-title {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 20px;
}

.brands-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 48px;
    padding: 8px;
    border: 1px solid var(--grey-200);
    border-radius: var(--r-sm);
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
}

.brand-logo-item:hover {
    border-color: var(--ld-blue);
    color: var(--ld-blue);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.listing-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

@media(max-width:900px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
}

.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 0;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    padding: 16px;
    font-weight: 700;
    font-size: var(--text-md);
    border-bottom: 1px solid var(--grey-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-clear {
    font-size: var(--text-xs);
    color: var(--ld-blue);
    cursor: pointer;
    font-weight: 500;
}

.filter-group {
    border-bottom: 1px solid var(--grey-100);
}

.filter-group-title {
    padding: 12px 16px;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.filter-group-title .fg-arrow {
    transition: transform var(--t-fast);
    font-size: 12px;
}

.filter-group.open .fg-arrow {
    transform: rotate(180deg);
}

.filter-group-body {
    padding: 0 16px 12px;
    display: none;
}

.filter-group.open .filter-group-body {
    display: block;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: var(--text-sm);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ld-blue);
    cursor: pointer;
}

.filter-count {
    color: var(--grey-500);
    font-size: var(--text-xs);
    margin-left: auto;
}

/* Price range */
.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.price-inputs input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-sm);
    font-size: var(--text-sm);
}

.price-inputs span {
    color: var(--grey-500);
    font-size: var(--text-xs);
}

/* Active filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.active-filter-chip {
    background: var(--ld-blue-light);
    color: var(--ld-blue);
    border: 1px solid var(--ld-blue);
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.active-filter-chip:hover {
    background: var(--ld-blue);
    color: white;
}

/* Sort & toolbar */
.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.listing-count {
    font-size: var(--text-sm);
    color: var(--grey-700);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-family: var(--font);
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--ld-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--grey-200);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    cursor: pointer;
    background: var(--white);
    transition: all var(--t-fast);
    font-family: var(--font);
}

.page-btn:hover {
    border-color: var(--ld-blue);
    color: var(--ld-blue);
}

.page-btn.active {
    background: var(--ld-blue);
    color: var(--white);
    border-color: var(--ld-blue);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
}

@media(max-width:900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

/* .product-gallery styles removed as they were empty */

.gallery-main {
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 24px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.gallery-main img {
    max-height: 320px;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--grey-200);
    border-radius: var(--r-sm);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--t-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--ld-blue);
}

.gallery-thumb img {
    max-height: 50px;
    object-fit: contain;
}

.product-info .pi-brand {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--ld-blue);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.product-info .pi-title {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.product-info .pi-sku {
    font-size: var(--text-xs);
    color: var(--grey-500);
    margin-bottom: 12px;
}

.product-info .pi-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: var(--text-sm);
}

.product-info .pi-rating a {
    color: var(--ld-blue);
    text-decoration: underline;
}

.pi-price-block {
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 20px;
    margin-bottom: 16px;
}

.pi-original {
    font-size: var(--text-sm);
    color: var(--grey-500);
    text-decoration: line-through;
}

.pi-price {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--grey-900);
}

.pi-vat {
    font-size: var(--text-xs);
    color: var(--grey-500);
}

.pi-saving {
    font-size: var(--text-sm);
    color: var(--ld-green);
    font-weight: 600;
    margin-top: 4px;
}

.pi-finance {
    background: var(--ld-blue-light);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: var(--text-xs);
    color: var(--ld-blue);
    margin-top: 10px;
}

.pi-delivery-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: var(--r-sm);
    padding: 12px;
    font-size: var(--text-sm);
    margin-bottom: 20px;
}

.pi-delivery-info .d-icon {
    font-size: 20px;
    color: var(--ld-green);
    flex-shrink: 0;
}

.pi-delivery-info strong {
    color: var(--ld-green);
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qty-control {
    display: flex;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-md);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--grey-100);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background var(--t-fast);
}

.qty-btn:hover {
    background: var(--grey-200);
}

.qty-input {
    width: 48px;
    border: none;
    text-align: center;
    font-size: var(--text-md);
    font-weight: 600;
    font-family: var(--font);
    outline: none;
}

.pi-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pi-wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-md);
    background: var(--white);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--grey-700);
    transition: all var(--t-fast);
}

.pi-wishlist-btn:hover {
    border-color: var(--ld-red);
    color: var(--ld-red);
}

/* Specs table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.specs-table tr:nth-child(odd) td {
    background: var(--grey-50);
}

.specs-table tr:hover td {
    background: var(--ld-blue-light);
}

.specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--grey-100);
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--grey-700);
    width: 40%;
}

/* Reviews */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--grey-50);
    border-radius: var(--r-md);
    padding: 20px;
    margin-bottom: 16px;
}

.reviews-score {
    text-align: center;
}

.reviews-score .score-num {
    font-size: var(--text-3xl);
    font-weight: 800;
}

.reviews-score .score-total {
    font-size: var(--text-xs);
    color: var(--grey-500);
}

.review-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    font-size: var(--text-sm);
}

.review-date {
    font-size: var(--text-xs);
    color: var(--grey-500);
}

.review-body {
    font-size: var(--text-sm);
    color: var(--grey-700);
    line-height: 1.6;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

@media(max-width:900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cart-item-img {
    width: 90px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-50);
    border-radius: var(--r-sm);
}

.cart-item-img img {
    max-height: 72px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-title:hover {
    color: var(--ld-blue);
}

.cart-item-meta {
    font-size: var(--text-xs);
    color: var(--grey-500);
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-remove {
    font-size: var(--text-xs);
    color: var(--ld-red);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

.cart-item-price {
    font-size: var(--text-lg);
    font-weight: 800;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-original {
    font-size: var(--text-xs);
    color: var(--grey-500);
    text-decoration: line-through;
}

.cart-summary-panel {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.cart-summary-title {
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grey-100);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-bottom: 8px;
}

.cart-summary-row.total {
    font-weight: 800;
    font-size: var(--text-lg);
    padding-top: 12px;
    border-top: 2px solid var(--grey-200);
    margin-top: 8px;
}

.cart-discount-form {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.cart-discount-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: var(--text-sm);
}

.cart-empty-state {
    background: var(--white);
    border-radius: var(--r-md);
    padding: 64px 32px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty-state h2 {
    font-size: var(--text-xl);
    margin-bottom: 8px;
}

.cart-empty-state p {
    color: var(--grey-500);
    margin-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--grey-900);
    color: var(--white);
    margin-top: 48px;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media(max-width:900px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:560px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-col-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
    color: var(--grey-300);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .65);
    transition: color var(--t-fast);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-newsletter p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, .7);
    margin-bottom: 12px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: var(--text-sm);
    font-family: var(--font);
    outline: none;
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.footer-newsletter-input:focus {
    border-color: var(--ld-orange);
}

.footer-newsletter-btn {
    background: var(--ld-orange);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: var(--text-sm);
    transition: background var(--t-fast);
}

.footer-newsletter-btn:hover {
    background: var(--ld-orange-dark);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, .5);
}

.footer-payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-icon {
    background: rgba(255, 255, 255, .15);
    color: white;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-size: var(--text-xs);
    font-weight: 700;
}

/* ============================================================
   PAGE HERO (Category/Search)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--ld-blue) 0%, var(--ld-blue-dark) 100%);
    color: var(--white);
    padding: 28px 0;
}

.page-hero h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: 6px;
}

.page-hero p {
    font-size: var(--text-sm);
    opacity: .8;
}

.breadcrumb {
    display: flex;
    gap: 6px;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, .7);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: inherit;
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, .5);
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

@media(max-width:900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-panel {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 16px;
}

.checkout-panel h3 {
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grey-100);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--grey-700);
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--grey-300);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--ld-blue);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
    background: var(--grey-100);
    border-bottom: 1px solid var(--grey-200);
    padding: 24px 0;
}

.search-hero-form {
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================================
   NOTIFICATIONS / TOASTS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--grey-900);
    color: var(--white);
    padding: 14px 18px;
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideIn var(--t-base) forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--ld-green);
}

.toast.error {
    border-left: 4px solid var(--ld-red);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media(max-width:768px) {
    .hero-slide {
        padding: 24px;
        min-height: 240px;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .burger-btn {
        display: flex;
    }

    .nav-list {
        display: none;
    }

    /* Show burger and hide desktop nav */
    .site-nav .nav-inner {
        justify-content: space-between;
    }

    .nav-list.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ld-blue);
    }

    .section-title {
        font-size: var(--text-lg);
    }

    .product-detail {
        padding: 16px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .trust-bar .container {
        justify-content: flex-start;
    }
}