/* ================================================================
   WIWI STORE — Fashion E-commerce Stylesheet
   8-point spacing system · Soft palette · Accent CTA
   ================================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* — Palette — */
    --accent: #c2185b;
    --accent-dark: #a01148;
    --accent-light: #f8d7e3;
    --accent-glow: rgba(194, 24, 91, 0.25);
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --neutral-900: #1c1c1c;
    --neutral-800: #333333;
    --neutral-600: #5a5a5a;
    --neutral-400: #9e9e9e;
    --neutral-200: #e0e0e0;
    --neutral-100: #f2f2f2;
    --neutral-50: #fafafa;
    --white: #ffffff;
    --success: #2e7d32;
    --warning: #ef6c00;
    --danger: #d32f2f;

    /* — Spacing (8pt grid) — */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;
    --sp-9: 48px;
    --sp-10: 56px;
    --sp-11: 64px;
    --sp-12: 80px;
    --sp-13: 96px;

    /* — Typography — */
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-xs: 0.6875rem;   /* 11px */
    --fs-sm: 0.8125rem;   /* 13px */
    --fs-base: 0.9375rem; /* 15px */
    --fs-md: 1rem;        /* 16px */
    --fs-lg: 1.125rem;    /* 18px */
    --fs-xl: 1.5rem;      /* 24px */
    --fs-2xl: 2rem;       /* 32px */
    --fs-3xl: 2.5rem;     /* 40px */
    --fs-display: 3.25rem;/* 52px */

    /* — Radii — */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* — Shadows — */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    color: var(--neutral-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

/* Screen-reader only */
.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;
}

/* ================================================================
   NAVBAR — Logo left · Nav center · Icons right
   ================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.navbar__brand {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
    flex-shrink: 0;
}
.navbar__brand em {
    font-style: normal;
    color: var(--accent);
}

/* Center nav */
.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}
.navbar__link {
    position: relative;
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--neutral-600);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.navbar__link:hover,
.navbar__link:focus-visible,
.navbar__link.active {
    color: var(--accent);
    background: var(--accent-light);
}
.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%; right: 50%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: left var(--transition), right var(--transition);
}
.navbar__link:hover::after,
.navbar__link.active::after {
    left: var(--sp-4);
    right: var(--sp-4);
}
.navbar__link--flash {
    color: var(--danger);
    font-weight: 700;
}
.navbar__link--flash:hover,
.navbar__link--flash.active {
    background: #fce4ec;
    color: var(--danger);
}

/* Dropdown */
.navbar__dropdown {
    position: relative;
}
.navbar__dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--sp-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 100;
}
.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navbar__dropdown-menu a {
    display: block;
    padding: var(--sp-2) var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--neutral-600);
    transition: background var(--transition), color var(--transition);
}
.navbar__dropdown-menu a:hover {
    background: var(--neutral-100);
    color: var(--accent);
}

/* Right icons */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}
.navbar__icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--neutral-800);
    transition: background var(--transition), color var(--transition);
}
.navbar__icon-btn:hover,
.navbar__icon-btn:focus-visible {
    background: var(--neutral-100);
    color: var(--accent);
}
.navbar__icon-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}
.navbar__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}
.navbar__hamburger span {
    display: block;
    height: 2px;
    background: var(--neutral-800);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO CAROUSEL — Two-column · Arrows · Dots · Autoplay
   ================================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--neutral-50);
}
.hero__track {
    display: flex;
    will-change: transform;
    transition: transform 0.65s var(--ease);
}
.hero__slide {
    min-width: 100%;
    display: flex;
    align-items: stretch;
}
.hero__slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sp-11);
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--sp-13) var(--sp-6);
}

/* Left: image */
.hero__visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--neutral-100);
}
.hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}
.hero__slide.active .hero__visual img {
    transform: scale(1.05);
}

/* Right: text */
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-6);
}
.hero__subtitle {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
}
.hero__title {
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    letter-spacing: -1px;
}
.hero__desc {
    font-size: var(--fs-md);
    color: var(--neutral-600);
    line-height: 1.75;
    max-width: 440px;
}

/* Arrows */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hero__arrow:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.hero__arrow:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 2px;
}
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: var(--sp-6); }
.hero__arrow--next { right: var(--sp-6); }

/* Dots */
.hero__dots {
    position: absolute;
    bottom: var(--sp-7);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--sp-2);
    z-index: 10;
}
.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--neutral-400);
    cursor: pointer;
    transition: width var(--transition), background var(--transition);
    padding: 0;
}
.hero__dot:hover { background: var(--neutral-600); }
.hero__dot.active {
    width: 32px;
    background: var(--accent);
}
.hero__dot:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 2px;
}

/* ================================================================
   BUTTONS — Rounded · Subtle shadows
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-family: var(--font);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1;
}
.btn:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 2px;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary, .btn-primary {
    padding: var(--sp-4) var(--sp-7);
    font-size: var(--fs-base);
    border-radius: var(--radius-full);
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn--primary:hover, .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--secondary, .btn-secondary {
    padding: var(--sp-3) var(--sp-6);
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    background: var(--dark);
    color: var(--white);
}
.btn--secondary:hover, .btn-secondary:hover {
    background: var(--dark-soft);
    transform: translateY(-2px);
}

.btn--outline, .btn-outline {
    padding: var(--sp-3) var(--sp-6);
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn--outline:hover, .btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--ghost {
    padding: var(--sp-3) var(--sp-5);
    font-size: var(--fs-sm);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover {
    background: var(--white);
    color: var(--dark);
}

.btn--sm, .btn-sm { padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); }
.btn--lg, .btn-lg { padding: var(--sp-5) var(--sp-8); font-size: var(--fs-md); }
.btn--block, .btn-block { width: 100%; }
.btn--icon {
    width: 44px; height: 44px; padding: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--neutral-800);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}
.btn--icon:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

/* ================================================================
   CATEGORY SLIDER — Horizontal carousel · Active emphasis
   ================================================================ */
.categories-section {
    padding: var(--sp-12) 0;
    overflow: hidden;
}
.categories-section .section-title {
    text-align: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--neutral-400);
    margin-bottom: var(--sp-9);
}

.cat-slider {
    position: relative;
}
.cat-slider__viewport {
    overflow: hidden;
    margin: 0 calc(-1 * var(--sp-6));
    padding: var(--sp-8) var(--sp-6);
}
.cat-slider__track {
    display: flex;
    gap: var(--sp-6);
    transition: transform 0.5s var(--ease);
    will-change: transform;
    cursor: grab;
}
.cat-slider__track.dragging {
    cursor: grabbing;
    transition: none;
}

/* Category Card */
.cat-card {
    flex: 0 0 280px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: var(--shadow);
    opacity: 0.7;
    transform: scale(0.92);
}
.cat-card:hover,
.cat-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.cat-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.cat-card:hover .cat-card__image {
    transform: scale(1.06);
}
.cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: var(--sp-7);
    text-align: center;
}
.cat-card__title {
    color: var(--white);
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--sp-3);
}
.cat-card__cta {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
}
.cat-card:hover .cat-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Slider arrows */
.cat-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.cat-slider__arrow:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.cat-slider__arrow:focus-visible {
    outline: 3px solid var(--accent-glow);
}
.cat-slider__arrow svg { width: 20px; height: 20px; }
.cat-slider__arrow--prev { left: var(--sp-3); }
.cat-slider__arrow--next { right: var(--sp-3); }

/* ================================================================
   PRODUCT GRID — "New Collection"
   ================================================================ */
.products-section {
    padding: var(--sp-12) 0;
    background: var(--neutral-50);
}
.products-section--white { background: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: var(--sp-9);
}
.section-header__label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--neutral-400);
    margin-bottom: var(--sp-2);
}
.section-header__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--dark);
}
.section-header__line {
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: var(--sp-4) auto 0;
    border-radius: 2px;
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Image area */
.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--neutral-100);
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

/* Badge */
.product-card__badge {
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.badge {
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge--sale { background: var(--danger); color: var(--white); }
.badge--new { background: var(--success); color: var(--white); }
.badge--out { background: var(--neutral-800); color: var(--white); }

/* Hover actions */
.product-card__actions {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 2;
}
.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

/* Quick-add overlay */
.product-card__quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-3);
    background: rgba(194,24,91,0.92);
    color: var(--white);
    text-align: center;
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transform: translateY(100%);
    transition: transform var(--transition);
    border: none;
    width: 100%;
    font-family: var(--font);
}
.product-card:hover .product-card__quick-add {
    transform: translateY(0);
}

/* Card body */
.product-card__body {
    padding: var(--sp-4) var(--sp-4) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.product-card__category {
    font-size: var(--fs-xs);
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-card__name {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--neutral-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.product-card__name:hover { color: var(--accent); }

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--sp-2);
}
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
}
.price--current {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--accent);
}
.price--old {
    font-size: var(--fs-sm);
    color: var(--neutral-400);
    text-decoration: line-through;
}
.price--discount {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--danger);
    background: #fce4ec;
    padding: 2px var(--sp-2);
    border-radius: var(--radius-sm);
}

/* Add-to-cart icon button */
.product-card__cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.product-card__cart-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.product-card__cart-btn:focus-visible {
    outline: 3px solid var(--accent-glow);
}
.product-card__cart-btn svg { width: 18px; height: 18px; }

/* ================================================================
   FLASH SALE BANNER
   ================================================================ */
.flash-banner {
    background: linear-gradient(135deg, #d32f2f 0%, #ff6f00 100%);
    padding: var(--sp-11) 0;
    color: var(--white);
    text-align: center;
}
.flash-banner__title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    margin-bottom: var(--sp-2);
}
.flash-banner__desc {
    font-size: var(--fs-md);
    opacity: 0.9;
    margin-bottom: var(--sp-7);
}
.countdown {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-7);
}
.countdown__item {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius);
    min-width: 80px;
}
.countdown__number {
    font-size: var(--fs-2xl);
    font-weight: 800;
    line-height: 1;
}
.countdown__label {
    font-size: var(--fs-xs);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--sp-1);
}

/* ================================================================
   FEATURES BAR
   ================================================================ */
.features {
    padding: var(--sp-9) 0;
    background: var(--white);
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-7);
}
.feature {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}
.feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature__icon svg { width: 24px; height: 24px; color: var(--accent); }
.feature__title { font-size: var(--fs-sm); font-weight: 600; color: var(--neutral-800); }
.feature__desc { font-size: var(--fs-xs); color: var(--neutral-400); margin-top: 2px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: var(--sp-12) 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__heading {
    color: var(--white);
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: var(--sp-5);
    position: relative;
    padding-bottom: var(--sp-3);
}
.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.footer__about p {
    font-size: var(--fs-sm);
    line-height: 1.8;
    margin-bottom: var(--sp-5);
}
.footer__social {
    display: flex;
    gap: var(--sp-3);
}
.footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
}
.footer__social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}
.footer__links li { margin-bottom: var(--sp-3); }
.footer__links a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    transition: color var(--transition), padding-left var(--transition);
}
.footer__links a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
    font-size: var(--fs-sm);
}
.footer__contact svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}
.footer__bottom {
    padding: var(--sp-5) 0;
    text-align: center;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
}
.footer__bottom a { color: var(--accent); }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
    padding: var(--sp-4) 0;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}
.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--neutral-400);
}
.breadcrumb__list a { color: var(--neutral-600); }
.breadcrumb__list a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--neutral-200); }

/* ================================================================
   PRODUCT DETAIL PAGE (PDP)
   ================================================================ */
.pdp { padding: var(--sp-8) 0 var(--sp-12); }
.pdp__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-10);
    align-items: start;
}

/* Gallery */
.pdp__gallery { position: sticky; top: 90px; }
.pdp__main-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--neutral-100);
    aspect-ratio: 4/5;
    cursor: crosshair;
}
.pdp__main-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.pdp__main-image:hover img { transform: scale(1.06); }
.pdp__badge {
    position: absolute;
    top: var(--sp-4); left: var(--sp-4);
    z-index: 2;
}
.pdp__gallery-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 3;
    transition: all var(--transition);
    opacity: 0;
}
.pdp__main-image:hover .pdp__gallery-arrow { opacity: 1; }
.pdp__gallery-arrow:hover { background: var(--white); box-shadow: var(--shadow-md); }
.pdp__gallery-arrow--prev { left: var(--sp-4); }
.pdp__gallery-arrow--next { right: var(--sp-4); }
.pdp__gallery-arrow svg { width: 20px; height: 20px; }

/* Thumbnails */
.pdp__thumbs {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}
.pdp__thumb {
    width: 80px; height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    background: var(--neutral-100);
    padding: 0;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.active,
.pdp__thumb:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* Info card */
.pdp__card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--sp-5) var(--sp-6);
    box-shadow: var(--shadow);
    border: 1px solid var(--neutral-200);
}
.pdp__category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: var(--sp-2);
}
.pdp__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: var(--sp-2);
}
.pdp__rating {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}
.pdp__stars { display: flex; gap: 2px; }
.pdp__rating-text { font-size: var(--fs-sm); color: var(--neutral-400); }
.pdp__desc {
    font-size: var(--fs-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: var(--sp-5);
}

/* Price block */
.pdp__price-block {
    display: flex;
    align-items: baseline;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}
.pdp__price {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--accent);
}
.pdp__old-price {
    font-size: var(--fs-lg);
    color: var(--neutral-400);
    text-decoration: line-through;
}
.pdp__discount {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--white);
    background: var(--danger);
    padding: 2px var(--sp-2);
    border-radius: var(--radius-sm);
}

/* Stock indicator */
.pdp__stock {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: var(--sp-4);
}
.pdp__stock-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.pdp__stock--in { color: var(--success); }
.pdp__stock--in .pdp__stock-dot { background: var(--success); box-shadow: 0 0 6px rgba(46,125,50,0.4); }
.pdp__stock--out { color: var(--danger); }
.pdp__stock--out .pdp__stock-dot { background: var(--danger); }

.pdp__divider {
    border: none;
    border-top: 1px solid var(--neutral-200);
    margin: var(--sp-3) 0;
}

/* Options */
.pdp__option { margin-bottom: var(--sp-3); }
.pdp__option-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: var(--sp-3);
    color: var(--neutral-800);
}
.pdp__sizes { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pdp__size-btn {
    padding: var(--sp-2) var(--sp-5);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.pdp__size-btn input { display: none; }
.pdp__size-btn:hover, .pdp__size-btn.selected {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.pdp__colors { display: flex; gap: var(--sp-3); }
.pdp__color-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    background: var(--swatch, #ccc);
}
.pdp__color-btn input { display: none; }
.pdp__color-btn:hover, .pdp__color-btn.selected {
    border-color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Quantity */
.pdp__qty { display: flex; align-items: center; gap: 0; }
.pdp__qty-btn {
    width: 44px; height: 44px;
    border: 2px solid var(--neutral-200);
    background: var(--white);
    font-size: var(--fs-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.pdp__qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.pdp__qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pdp__qty-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.pdp__qty-input {
    width: 56px; height: 44px;
    border: 2px solid var(--neutral-200);
    border-left: none; border-right: none;
    text-align: center;
    font-size: var(--fs-md);
    font-weight: 600;
    font-family: var(--font);
}
.pdp__qty-input:focus { outline: none; }

/* Form fields */
.pdp__form-title {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--sp-3);
}
.pdp__field { margin-bottom: var(--sp-3); }
.pdp__field label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: var(--sp-2);
    color: var(--neutral-800);
}
.pdp__field .required { color: var(--danger); }
.pdp__input {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}
.pdp__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.pdp__input--error { border-color: var(--danger); }
.pdp__select { cursor: pointer; appearance: auto; }
.pdp__error {
    display: block;
    font-size: var(--fs-xs);
    color: var(--danger);
    margin-top: var(--sp-1);
}

/* Order summary */
.pdp__order-summary {
    background: var(--neutral-50);
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
    margin: var(--sp-5) 0;
}
.pdp__summary-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-sm);
    padding: var(--sp-2) 0;
    color: var(--neutral-600);
}
.pdp__summary-total {
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--dark);
    border-top: 2px solid var(--neutral-200);
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
}

/* Actions */
.pdp__actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.pdp__buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
}
.pdp__cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
}

/* Trust badges */
.pdp__trust {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--neutral-200);
}
.pdp__trust-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--neutral-600);
}
.pdp__trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Success state */
.pdp__success {
    text-align: center;
    padding: var(--sp-7) 0;
}
.pdp__success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-5);
}
.pdp__success h3 {
    font-size: var(--fs-xl);
    color: var(--success);
    margin-bottom: var(--sp-2);
}
.pdp__success p { font-size: var(--fs-base); color: var(--neutral-600); }
.pdp__success-note { font-size: var(--fs-sm); color: var(--neutral-400); margin-top: var(--sp-2); }

/* Mobile sticky buy bar */
.pdp__sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    padding: var(--sp-3) var(--sp-5);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 900;
    align-items: center;
    justify-content: space-between;
}
.pdp__sticky-price {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--accent);
}

/* Old option/qty classes kept for cart page compatibility */
.qty-group { display: flex; align-items: center; gap: 0; }
.qty-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--neutral-200);
    background: var(--white);
    font-size: var(--fs-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.qty-input {
    width: 48px; height: 36px;
    border: 2px solid var(--neutral-200);
    border-left: none; border-right: none;
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: 600;
    font-family: var(--font);
}
.qty-input:focus { outline: none; }

/* ================================================================
   CART PAGE
   ================================================================ */
.cart-page { padding: var(--sp-9) 0; }
.cart-page__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--sp-7);
}
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-7); }
.cart-table th {
    background: var(--neutral-50);
    padding: var(--sp-4);
    text-align: left;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-bottom: 2px solid var(--neutral-200);
}
.cart-table td {
    padding: var(--sp-5) var(--sp-4);
    border-bottom: 1px solid var(--neutral-200);
    vertical-align: middle;
}
.cart-product { display: flex; align-items: center; gap: var(--sp-4); }
.cart-product img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-product__name { font-size: var(--fs-base); font-weight: 600; margin-bottom: 2px; }
.cart-product__meta { font-size: var(--fs-xs); color: var(--neutral-400); }
.cart-remove {
    background: none; border: none;
    color: var(--danger); cursor: pointer;
    font-size: var(--fs-xs); font-family: var(--font);
    padding: var(--sp-1);
}
.cart-remove:hover { text-decoration: underline; }

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: var(--neutral-50);
    padding: var(--sp-7);
    border-radius: var(--radius-lg);
}
.cart-summary__title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--neutral-200);
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--sp-3);
    font-size: var(--fs-base);
}
.cart-summary__total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--sp-4);
    border-top: 2px solid var(--neutral-200);
    margin-top: var(--sp-4);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--accent);
}

/* ================================================================
   CHECKOUT
   ================================================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--sp-8);
}
.form-group { margin-bottom: var(--sp-5); }
.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: var(--sp-2);
    color: var(--neutral-800);
}
.form-group .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
textarea.form-control { resize: vertical; min-height: 96px; }

.order-summary-card {
    background: var(--neutral-50);
    padding: var(--sp-7);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}
.order-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--neutral-200);
}
.order-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.order-item__info { flex: 1; }
.order-item__info h4 { font-size: var(--fs-sm); font-weight: 500; }
.order-item__info p { font-size: var(--fs-xs); color: var(--neutral-400); }
.order-item__price { font-weight: 600; color: var(--accent); font-size: var(--fs-sm); }

/* ================================================================
   PRODUCT LIST PAGE
   ================================================================ */
.list-header {
    padding: var(--sp-7) 0;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}
.list-header__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--dark);
}
.list-header__count {
    color: var(--neutral-400);
    font-size: var(--fs-base);
    margin-top: var(--sp-1);
}
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: var(--sp-7);
}
.sort-select {
    padding: var(--sp-2) var(--sp-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-family: var(--font);
    cursor: pointer;
    background: var(--white);
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-5);
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert--error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert--info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: var(--sp-12) var(--sp-5);
}
.empty-state svg { width: 80px; height: 80px; color: var(--neutral-200); margin-bottom: var(--sp-5); }
.empty-state h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); color: var(--neutral-800); }
.empty-state p { color: var(--neutral-400); margin-bottom: var(--sp-6); }

/* ================================================================
   SUCCESS PAGE
   ================================================================ */
.success-page { text-align: center; padding: var(--sp-13) var(--sp-5); }
.success-icon {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-6);
}
.success-icon svg { width: 48px; height: 48px; color: var(--success); }

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: var(--sp-5) 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.admin-sidebar .logo img { max-height: 36px; display: block; }
.admin-topbar {
    display: none;
    background: var(--dark);
    color: var(--white);
    padding: var(--sp-3) var(--sp-4);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}
.admin-topbar img { max-height: 30px; }
.admin-topbar__toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--sp-2);
}
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.admin-sidebar .logo {
    padding: 0 var(--sp-5) var(--sp-5);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--sp-5);
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-5);
    color: rgba(255,255,255,0.6);
    font-size: var(--fs-sm);
    transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}
.admin-nav a svg { width: 20px; height: 20px; }
.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: var(--sp-7);
    background: var(--neutral-50);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-7);
}
.admin-header h1 { font-size: var(--fs-xl); font-weight: 700; color: var(--dark); }
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    margin-bottom: var(--sp-7);
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-6);
    box-shadow: var(--shadow-xs);
}
.stat-card h3 {
    font-size: var(--fs-xs);
    color: var(--neutral-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--sp-2);
}
.stat-card .number { font-size: var(--fs-xl); font-weight: 700; color: var(--dark); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--neutral-50);
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--neutral-400);
    text-transform: uppercase;
}
.admin-table td {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--neutral-200);
    font-size: var(--fs-sm);
}
.admin-table tr:hover { background: var(--neutral-50); }
.status-badge {
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 600;
}
.status-pending { background: #fff3e0; color: #e65100; }
.status-confirmed { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #f3e5f5; color: #7b1fa2; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }

/* Admin login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
}
.login-card {
    background: var(--white);
    padding: var(--sp-8);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}
.login-card h2 { text-align: center; margin-bottom: var(--sp-7); color: var(--dark); }

/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */
.toast {
    position: fixed;
    top: var(--sp-5);
    right: var(--sp-5);
    padding: var(--sp-4) var(--sp-6);
    border-radius: var(--radius);
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.35s var(--ease);
}
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--neutral-100); }
::-webkit-scrollbar-thumb { background: var(--neutral-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-600); }

/* ================================================================
   RESPONSIVE — Tablet
   ================================================================ */
@media (max-width: 1024px) {
    :root {
        --fs-display: 2.5rem;
        --fs-3xl: 2rem;
    }
    .hero__slide-inner { gap: var(--sp-7); padding: var(--sp-11) var(--sp-6); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-card { flex: 0 0 240px; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .pdp__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
    .pdp__card { padding: var(--sp-6); }
    .pdp__title { font-size: var(--fs-xl); }
}

/* ================================================================
   RESPONSIVE — Mobile
   ================================================================ */
@media (max-width: 768px) {
    :root {
        --fs-display: 1.875rem;
        --fs-3xl: 1.5rem;
        --fs-2xl: 1.375rem;
    }

    /* Navbar mobile */
    .navbar__menu {
        position: fixed;
        top: 72px;
        left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--sp-5);
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    .navbar__menu.open { transform: translateX(0); }
    .navbar__link {
        width: 100%;
        padding: var(--sp-4);
        text-align: left;
        font-size: var(--fs-base);
        border-radius: var(--radius-sm);
    }
    .navbar__hamburger { display: flex; }
    .navbar__dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: var(--sp-5);
    }

    /* Hero */
    .hero__slide-inner {
        grid-template-columns: 1fr;
        padding: var(--sp-8) var(--sp-6);
        text-align: center;
    }
    .hero__visual { order: -1; max-height: 320px; aspect-ratio: 4/3; }
    .hero__content { align-items: center; }
    .hero__desc { max-width: 100%; }
    .hero__arrow { width: 40px; height: 40px; }
    .hero__arrow svg { width: 18px; height: 18px; }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-4);
    }
    .product-card__body { padding: var(--sp-3); }
    .product-card__name { font-size: var(--fs-sm); }
    .price--current { font-size: var(--fs-base); }

    /* Category slider */
    .cat-card { flex: 0 0 200px; }

    /* Product detail */
    .pdp__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .pdp__gallery { position: static; }
    .pdp__card { padding: var(--sp-5); border-radius: var(--radius-lg); }
    .pdp__title { font-size: var(--fs-xl); }
    .pdp__price { font-size: var(--fs-xl); }
    .pdp__sticky-bar { display: flex; }
    .pdp__thumbs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pdp__thumb { flex-shrink: 0; width: 64px; height: 80px; }

    /* Checkout */
    .checkout-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; }
    .features__grid { grid-template-columns: 1fr; }

    /* Cart */
    .cart-table { display: block; overflow-x: auto; }
    .cart-summary { max-width: 100%; }

    /* Admin */
    .admin-topbar { display: flex !important; }
    .admin-sidebar {
        transform: translateX(-100%) !important;
    }
    .admin-sidebar.open {
        transform: translateX(0) !important;
    }
    .admin-overlay.open {
        display: block !important;
    }
    .admin-content {
        margin-left: 0;
        padding: var(--sp-4);
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .admin-table { font-size: var(--fs-xs); }
    .admin-table th, .admin-table td { padding: var(--sp-2) var(--sp-3); }
    .admin-card { padding: var(--sp-4); }
}

@media (max-width: 480px) {
    .products-grid { gap: var(--sp-3); }
    .product-card__body { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
    .product-card__cart-btn { width: 34px; height: 34px; }
    .cat-card { flex: 0 0 170px; }
    .hero__arrow--prev { left: var(--sp-2); }
    .hero__arrow--next { right: var(--sp-2); }

    /* Admin mobile small */
    .admin-stats { grid-template-columns: 1fr; }
    .admin-content { padding: var(--sp-3); }
    .admin-header h1 { font-size: var(--fs-base); }
}

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: var(--sp-8) auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   PAGE-LEVEL UTILITIES
   ================================================================ */
.page-section { padding: var(--sp-9) 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-7 { margin-bottom: var(--sp-7); }
