/* ============================================
   GiftCorner - Design System
   Clean White Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Colors – Clean White Theme */
    --color-primary: #E85D4A;
    --color-primary-dark: #D14A38;
    --color-primary-light: #F0897C;
    --color-secondary: #1B2A4A;
    --color-accent: #E85D4A;

    --color-success: #2ECC71;
    --color-warning: #F39C12;
    --color-error: #E74C3C;
    --color-info: #3498DB;

    --color-bg: #FFFFFF;
    --color-bg-secondary: #F8F9FA;
    --color-bg-card: #FFFFFF;
    --color-bg-input: #FFFFFF;

    --color-text: #333333;
    --color-text-muted: #777777;
    --color-text-heading: #1B2A4A;

    --color-border: #E5E7EB;
    --color-border-focus: var(--color-primary);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-hero: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(232, 93, 74, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max: 1340px;
    --navbar-height: 90px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

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

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Main --- */
.main {
    flex: 1;
    padding-top: var(--navbar-height);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background var(--transition-base);
}

.navbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.navbar__brand {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.navbar__logo-img {
    height: 60px;
    width: auto;
}

.navbar__social {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar__social-link {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    display: flex;
}

.navbar__social-link:hover {
    color: var(--color-text-heading);
}


.navbar__menu {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
}

.navbar__link {
    padding: var(--space-sm) var(--space-md);
    font-family: 'Alegreya Sans SC', sans-serif;
    color: var(--color-text-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar__link:hover {
    color: var(--color-secondary);
    background: rgba(0, 0, 0, 0.04);
}

.navbar__link--logout {
    color: var(--color-accent);
}

.navbar__link--logout:hover {
    color: var(--color-error);
}

/* Mobile toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    grid-column: 3;
    justify-self: end;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    background: rgba(232, 93, 74, 0.05);
}

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

.btn--lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-size-base);
}

.btn--block {
    width: 100%;
}

/* ============================================
   Banner Slider
   ============================================ */
.banner-slider {
    position: relative;
    max-width: 1200px;
    margin: var(--space-xl) auto;
    overflow: hidden;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.banner-slider__track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.banner-slider__slide {
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
}

.banner-slider__link {
    display: block;
    line-height: 0;
}

.banner-slider__img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-slider__html {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arrows */
.banner-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-heading);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider__arrow:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.08);
}

.banner-slider__arrow--prev { left: 20px; }
.banner-slider__arrow--next { right: 20px; }

/* Dots */
.banner-slider__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.banner-slider__dot--active,
.banner-slider__dot:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .banner-slider__arrow--prev { left: 10px; }
    .banner-slider__arrow--next { right: 10px; }


}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: var(--space-4xl) 0;
    text-align: center;
    background: var(--color-bg-secondary);
}

.hero--light {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
}

.hero__title {
    font-size: var(--font-size-hero);
    font-weight: 800;
    color: var(--color-text-heading);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Gift Categories Grid (Homepage)
   ============================================ */
.gift-categories {
    padding: var(--space-3xl) 0 var(--space-4xl);
}

.gift-categories__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: var(--space-2xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gift-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    justify-items: center;
}

.gift-card {
    display: block;
    width: 100%;
    max-width: 633px;
    min-width: 0;
    aspect-ratio: 633 / 517;
    height: auto;
    border: 3px solid #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
    text-decoration: none;
    transition: all var(--transition-base);
}

.gift-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gift-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.gift-card__label {
    padding: var(--space-sm) 0;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-size: 50px;
    font-weight: 800;
    color: var(--color-text-heading);
    letter-spacing: 0.03em;
    text-align: right;
}

.gift-card__img {
    width: 85%;
    flex: 1;
    min-height: 0;
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    transition: transform 0.4s ease;
    transform: matrix(1, 0, 0, 1, 0, 0);
}

.gift-card:hover .gift-card__img {
    transform: matrix(1.08, 0, 0, 1.08, 0, 0);
}

/* Per-card image size adjustments */
.gift-card:nth-child(3) .gift-card__img {
    width: 70%;
}

.gift-card:nth-child(4) .gift-card__img {
    width: 95%;
}

@media (max-width: 600px) {
    .gift-categories__grid {
        grid-template-columns: 1fr;
    }
    .gift-card__label {
        font-size: var(--font-size-xl);
    }
}

/* ============================================
   Featured Products Section
   ============================================ */
.featured-products {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--color-bg-secondary);
}

/* ============================================
   Inspiration Section
   ============================================ */
.inspiration-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 40%, var(--color-bg) 100%);
    text-align: center;
}

.inspiration-section__title {
    font-family: 'Alegreya Sans SC', sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

.inspiration-section__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.inspiration-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.inspiration-slider__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 8px 0 8px 4px;
}

/* Inspiration Card */
.inspiration-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.inspiration-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.inspiration-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.inspiration-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.inspiration-card__image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.inspiration-card__no-image {
    font-size: 3rem;
    opacity: 0.3;
}

.inspiration-card__body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    text-align: left;
}

.inspiration-card__brand {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.inspiration-card__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-heading);
    line-height: 1.35;
    margin: 0 0 var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inspiration-card__price {
    margin-bottom: var(--space-sm);
}

.inspiration-card__price-current {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-heading);
}

.inspiration-card__price-old {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-right: var(--space-xs);
}

.inspiration-card__cta {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.inspiration-card:hover .inspiration-card__cta {
    color: var(--color-primary-dark, #c0392b);
    text-decoration: underline;
}

/* Arrows */
.inspiration-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    font-size: 24px;
    line-height: 1;
    color: var(--color-text-heading);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inspiration-slider__arrow:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}

.inspiration-slider__arrow--prev { left: 12px; }
.inspiration-slider__arrow--next { right: 12px; }

.inspiration-section__cta {
    margin-top: var(--space-2xl);
}

.inspiration-section__cta .btn {
    padding: var(--space-md) var(--space-3xl);
    font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
    .inspiration-card {
        min-width: 240px;
        max-width: 240px;
    }
    .inspiration-card__image {
        height: 220px;
    }
    .inspiration-slider__arrow {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
    .inspiration-slider__arrow--prev { left: 2px; }
    .inspiration-slider__arrow--next { right: 2px; }
    .inspiration-section__title {
        font-size: var(--font-size-2xl);
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-4xl) 0;
}

.section__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.feature-card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.feature-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   Auth Section
   ============================================ */
.auth-section {
    padding: var(--space-4xl) 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height));
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-lg);
}

.auth-card__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

.auth-card__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.auth-card__footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ============================================
   Forms
   ============================================ */
.form__group {
    margin-bottom: var(--space-lg);
}

.form__label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form__input {
    width: 100%;
    padding: 12px var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form__input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 74, 0.2);
}

/* ============================================
   Alerts / Flash Messages
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-left: 4px solid transparent;
    animation: slideDown 0.3s ease;
    position: relative;
}

.alert--success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--color-success);
    border-left-color: var(--color-success);
}

.alert--error {
    background: rgba(225, 112, 85, 0.1);
    color: var(--color-error);
    border-left-color: var(--color-error);
}

.alert--info {
    background: rgba(116, 185, 255, 0.1);
    color: var(--color-info);
    border-left-color: var(--color-info);
}

.alert__list {
    margin: 0;
    padding-left: var(--space-md);
    list-style: disc;
}

.alert__list li {
    margin-bottom: var(--space-xs);
}

.alert__list li:last-child {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert--fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard {
    padding: var(--space-3xl) 0;
}

.dashboard__header {
    margin-bottom: var(--space-2xl);
}

.dashboard__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

.dashboard__welcome {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.dashboard__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.dashboard__card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.dashboard__card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.dashboard__card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.dashboard__card-desc {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.dashboard__info {
    list-style: none;
}

.dashboard__info li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.dashboard__info li:last-child {
    border-bottom: none;
}

.dashboard__info strong {
    color: var(--color-text);
}

/* ============================================
   Error Pages
   ============================================ */
.error-page {
    padding: var(--space-4xl) 0;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

.error-page__content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-page__code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.error-page__title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.error-page__desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-3xl);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal-link {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--color-primary);
}

.footer__credit a {
    color: var(--color-primary-light);
    font-weight: 500;
}

/* ============================================
   CMS Page Content
   ============================================ */
.page-content {
    padding: var(--space-3xl) 0;
    max-width: 800px;
}

.page-content h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-2xl);
}

.page-content__body h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-heading);
    margin: var(--space-2xl) 0 var(--space-md);
}

.page-content__body p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
    color: var(--color-text);
}

.page-content__body em {
    color: var(--color-text-muted);
    font-style: italic;
}

/* ============================================
   Search Toggle & Overlay
   ============================================ */
.navbar__search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-heading);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.navbar__search-toggle:hover {
    color: var(--color-primary);
}

.search-overlay {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay--active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-overlay__form {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
}

.search-overlay__input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-xl);
    color: var(--color-text);
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-overlay__input:focus {
    border-color: var(--color-primary);
}

.search-overlay__btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-overlay__btn:hover {
    background: var(--color-primary-dark);
}

.search-overlay__close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0 var(--space-sm);
    line-height: 1;
    transition: color var(--transition-fast);
}

.search-overlay__close:hover {
    color: var(--color-text);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-muted);
}

.breadcrumbs a:hover {
    color: var(--color-primary-light);
}

.breadcrumbs__sep {
    margin: 0 var(--space-sm);
    opacity: 0.5;
}

.breadcrumbs__current {
    color: var(--color-text);
}

/* ============================================
   Catalog Layout
   ============================================ */
.catalog {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.catalog__header {
    margin-bottom: var(--space-xl);
}

.catalog__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

.catalog__subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
}

.catalog__sort {
    margin-bottom: var(--space-xl);
}

.sort-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.catalog__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.catalog__empty {
    text-align: center;
    padding: var(--space-4xl) 0;
    color: var(--color-text-muted);
}

/* ============================================
   Filters Sidebar
   ============================================ */
.filters {
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-md));
}

.filters__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.filters__group {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.filters__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.filters__list,
.filters__sublist {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filters__sublist {
    padding-left: var(--space-md);
    margin-top: 2px;
}

/* ── Category Tree (Accordion) ── */
.cat-tree {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cat-tree__item {
    border-radius: var(--radius-sm);
}

.cat-tree__row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 26px;
}

.cat-tree__item--parent > .cat-tree__row {
    padding-left: 0;
}

.cat-tree__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.cat-tree__toggle:hover {
    color: var(--color-text);
    background: rgba(0,0,0,0.05);
}

.cat-tree__item--open > .cat-tree__row > .cat-tree__toggle {
    transform: rotate(90deg);
}

.cat-tree__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 5px 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.3;
}

.cat-tree__link:hover {
    color: var(--color-text);
    background: rgba(0,0,0,0.03);
}

.cat-tree__link--active {
    color: var(--color-primary-light);
    background: rgba(232, 93, 74, 0.1);
    font-weight: 600;
}

.cat-tree__count {
    font-size: 11px;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-left: 4px;
    flex-shrink: 0;
}

.cat-tree__children {
    list-style: none;
    padding: 0 0 0 26px;
    margin: 2px 0 4px;
    display: none;
    flex-direction: column;
    gap: 1px;
}

.cat-tree__item--open > .cat-tree__children {
    display: flex;
}

.filters__link {
    display: block;
    padding: 4px var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.filters__link:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.03);
}

.filters__link--active {
    color: var(--color-primary-light);
    background: rgba(232, 93, 74, 0.1);
}

.filters__price-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filters__sep {
    color: var(--color-text-muted);
}

.filters__currency {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.form__input--sm {
    padding: 8px 10px;
    font-size: var(--font-size-sm);
}

/* ============================================
   Product Grid & Card
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    opacity: 0.3;
}

.product-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 10px;
    background: var(--color-accent);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.product-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__brand {
    font-size: var(--font-size-xs);
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.product-card__desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.product-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-card__price-old {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-decoration: line-through;
    display: block;
}

.product-card__price-current {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-heading);
}

.product-card__stock {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.product-card__stock--in_stock { color: var(--color-success); }
.product-card__stock--out_of_stock { color: var(--color-error); }
.product-card__stock--on_order { color: var(--color-warning); }

/* ============================================
   Product Detail
   ============================================ */
.product-detail {
    padding: var(--space-xl) 0 var(--space-4xl);
}

.product-detail__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

/* Gallery */
.gallery__main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery__main--placeholder {
    flex-direction: column;
    gap: var(--space-md);
    font-size: 4rem;
    color: var(--color-text-muted);
    opacity: 0.3;
}

.gallery__thumbs {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    overflow-x: auto;
}

.gallery__thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-secondary);
    padding: 0;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.gallery__thumb:hover,
.gallery__thumb--active {
    border-color: var(--color-primary);
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-detail__brand {
    font-size: var(--font-size-sm);
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.product-detail__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin: var(--space-sm) 0 var(--space-md);
    line-height: 1.2;
}

.product-detail__short-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.product-detail__price-box {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.product-detail__price-old {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-detail__price {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-text-heading);
}

.product-detail__discount {
    padding: 4px 10px;
    background: rgba(253, 121, 168, 0.15);
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.product-detail__stock {
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-xl);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.product-detail__stock--in_stock {
    color: var(--color-success);
    background: rgba(0, 184, 148, 0.1);
}

.product-detail__stock--out_of_stock {
    color: var(--color-error);
    background: rgba(225, 112, 85, 0.1);
}

.product-detail__stock--on_order {
    color: var(--color-warning);
    background: rgba(253, 203, 110, 0.1);
}

.product-detail__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.product-detail__meta a {
    color: var(--color-primary-light);
}

/* ============================================
   Product Tabs
   ============================================ */
.product-tabs {
    margin-bottom: var(--space-3xl);
}

.product-tabs__nav {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.product-tabs__btn {
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.product-tabs__btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.product-tabs__btn:hover {
    color: var(--color-text);
}

.product-tabs__btn--active {
    color: var(--color-primary-light);
}

.product-tabs__btn--active::after {
    opacity: 1;
}

.product-tabs__content {
    display: none;
}

.product-tabs__content--active {
    display: block;
}

/* Description */
.product-description {
    color: var(--color-text);
    line-height: 1.8;
}

.product-description p {
    margin-bottom: var(--space-md);
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description h3,
.product-description h4 {
    color: var(--color-text-heading);
    margin: var(--space-xl) 0 var(--space-md);
}

.product-description ul,
.product-description ol {
    padding-left: var(--space-xl);
    list-style: disc;
    margin: var(--space-md) 0;
}

.product-description li {
    margin-bottom: var(--space-sm);
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: var(--space-md);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.specs-table th {
    color: var(--color-text-muted);
    font-weight: 500;
    width: 40%;
}

.specs-table td {
    color: var(--color-text);
}

.specs-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Documents */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.docs-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.docs-list a {
    font-weight: 500;
}

.docs-list__type {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* GPSR */
.gpsr-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.gpsr-info__section {
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.gpsr-info__section h4 {
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.gpsr-info__section p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.gpsr-info__section--warning {
    border-color: var(--color-warning);
    background: rgba(253, 203, 110, 0.05);
}

.gpsr-info__row {
    display: flex;
    gap: var(--space-xl);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

/* ============================================
   Subcategories
   ============================================ */
.subcategories {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.subcategories__item {
    padding: 6px var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.subcategories__item:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

/* ============================================
   Search Page
   ============================================ */
.search-page {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.search-form {
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.search-form__inner {
    display: flex;
    gap: var(--space-sm);
}

.search-form__input {
    flex: 1;
}

.search-page__info {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--color-text-muted);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.pagination__pages {
    display: flex;
    gap: 4px;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination__link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.pagination__link--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--color-text-muted);
}

/* ============================================
   Related Products
   ============================================ */
.related-products {
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.related-products .section__title {
    margin-bottom: var(--space-2xl);
}

/* ============================================
   Cart Badge (Navbar)
   ============================================ */
.navbar__cart {
    position: relative;
    font-size: var(--font-size-lg);
}

.navbar__cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.navbar__cart-badge:empty,
.navbar__cart-badge[data-count="0"] {
    display: none;
}

/* ============================================
   Product Card: Add to Cart Button
   ============================================ */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-card__link:hover {
    color: inherit;
}

.product-card__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-md) var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card__add-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.product-card__add-btn--added {
    background: var(--color-success);
}

.product-card__unavailable-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-md) var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
}

/* ============================================
   Product Detail: Add to Cart
   ============================================ */
.product-detail__cart-form {
    margin-bottom: var(--space-xl);
}

.product-detail__qty-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-selector__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-family: var(--font-family);
    background: var(--color-bg-secondary);
    border: none;
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.qty-selector__btn:hover {
    background: var(--color-bg-card);
}

.qty-selector__input {
    width: 56px;
    height: 44px;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-selector__input::-webkit-outer-spin-button,
.qty-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail__add-btn {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   Cart Page
   ============================================ */
.cart-page {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.cart-empty {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cart-empty__icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    opacity: 0.4;
}

.cart-empty h2 {
    font-size: var(--font-size-2xl);
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.cart-empty p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

/* Cart Table */
.cart-table {
    margin-bottom: var(--space-2xl);
}

.cart-table__header {
    display: grid;
    grid-template-columns: 2fr 1fr 140px 1fr 50px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 140px 1fr 50px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.cart-item--warning {
    border-left: 3px solid var(--color-warning);
}

.cart-item__product {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.cart-item__image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__no-image {
    font-size: 1.5rem;
    opacity: 0.3;
}

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item__name {
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: var(--font-size-sm);
}

.cart-item__name:hover {
    color: var(--color-primary-light);
}

.cart-item__brand {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.cart-item__stock-warn,
.cart-item__price-warn {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.cart-item__stock-warn {
    color: var(--color-warning);
}

.cart-item__price-warn {
    color: var(--color-info);
}

.cart-item__price {
    font-weight: 600;
    color: var(--color-text);
}

.cart-item__subtotal {
    font-weight: 700;
    color: var(--color-text-heading);
    font-size: var(--font-size-lg);
}

.cart-item__unavailable {
    color: var(--color-text-muted);
}

.cart-item__remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.cart-item__remove:hover {
    border-color: var(--color-error);
    color: var(--color-error);
    background: rgba(225, 112, 85, 0.1);
}

/* Cart Qty Form */
.cart-qty-form {
    display: flex;
    align-items: center;
}

.cart-qty__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.cart-qty__btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cart-qty__btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-qty__btn:hover {
    background: var(--color-bg-card);
    border-color: var(--color-primary);
}

.cart-qty__input {
    width: 48px;
    height: 32px;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-left: none;
    border-right: none;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart Summary */
.cart-summary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

.cart-summary__total {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-text-heading);
}

.cart-summary__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    z-index: 2000;
    animation: slideUp 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toast--success {
    border-color: var(--color-success);
}

.toast--error {
    border-color: var(--color-error);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Checkout Grid
   ============================================ */
.checkout-page {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

.checkout-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.checkout-section__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

/* Form elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(232, 93, 74, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Checkout checkbox */
.checkout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.checkout-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.checkout-checkbox a {
    color: var(--color-primary-light);
}

/* Checkout methods (delivery/payment radios) */
.checkout-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checkout-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkout-method:hover {
    border-color: var(--color-primary);
}

.checkout-method:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(232, 93, 74, 0.05);
}

.checkout-method input[type="radio"] {
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.checkout-method__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-method__name {
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: var(--font-size-sm);
}

.checkout-method__delay {
    font-size: var(--font-size-xs);
    color: var(--color-primary-light);
}

.checkout-method__desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.checkout-method__price {
    font-weight: 700;
    color: var(--color-text-heading);
    font-size: var(--font-size-sm);
    text-align: right;
    white-space: nowrap;
}

.checkout-method__free {
    display: block;
    font-weight: 400;
    color: var(--color-success);
    font-size: var(--font-size-xs);
}

/* Shipping loader */
.checkout-shipping-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-md);
}

.checkout-shipping-hint {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pickup point */
.checkout-pickup {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
}

.checkout-pickup__selected {
    display: flex;
    gap: var(--space-sm);
    align-items: baseline;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.checkout-pickup__label {
    color: var(--color-text-muted);
    white-space: nowrap;
}

.checkout-pickup__name {
    color: var(--color-text-body);
}

.checkout-pickup__name--selected {
    color: var(--color-primary-light);
    font-weight: 600;
}

.checkout-pickup .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Coupon */
.checkout-coupon {
    display: flex;
    gap: var(--space-sm);
}

.checkout-coupon .form-control {
    flex: 1;
    text-transform: uppercase;
}

.checkout-coupon__message {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    min-height: 20px;
}

.checkout-coupon__message--success {
    color: var(--color-success);
}

.checkout-coupon__message--error {
    color: var(--color-error);
}

/* Checkout Summary (right sidebar) */
.checkout-summary__box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: sticky;
    top: var(--space-xl);
}

.checkout-summary__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
}

.checkout-summary__items {
    margin-bottom: var(--space-md);
}

.checkout-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
}

.checkout-summary__item-info {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.checkout-summary__item-name {
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-summary__item-qty {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.checkout-summary__item-price {
    font-weight: 600;
    color: var(--color-text-heading);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.checkout-summary__divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-md) 0;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.checkout-summary__row--discount {
    color: var(--color-success);
}

.checkout-summary__row--total {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-text-heading);
    padding: var(--space-sm) 0;
}

.checkout-summary__submit {
    width: 100%;
    margin-top: var(--space-lg);
    font-size: var(--font-size-base);
    padding: var(--space-md) var(--space-xl);
}

.checkout-summary__legal {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    text-align: center;
    line-height: 1.5;
}

/* Alerts */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.alert--error {
    background: rgba(225, 112, 85, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert--info {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid var(--color-info);
    color: var(--color-info);
}

.alert ul {
    list-style: disc;
    padding-left: var(--space-lg);
}

/* Order Confirmed */
.order-confirmed {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-4xl) 0;
}

.order-confirmed__icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.order-confirmed h1 {
    font-size: var(--font-size-3xl);
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.order-confirmed__number {
    font-size: var(--font-size-lg);
    color: var(--color-primary-light);
    margin-bottom: var(--space-sm);
}

.order-confirmed__details {
    text-align: left;
    margin-top: var(--space-2xl);
}

.order-confirmed__section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.order-confirmed__section h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.order-confirmed__item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.order-confirmed__item--discount {
    color: var(--color-success);
}

.order-confirmed__item--total {
    font-weight: 800;
    font-size: var(--font-size-lg);
    color: var(--color-text-heading);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
}

.order-confirmed__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-2xl);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
    }

    .features__grid,
    .dashboard__grid {
        grid-template-columns: 1fr;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-xs);
    }

    .navbar__menu.is-active {
        display: flex;
    }

    .navbar__link {
        padding: var(--space-md);
        width: 100%;
    }

    .navbar__search-input {
        width: 100%;
    }

    .auth-card {
        padding: var(--space-xl);
    }

    .footer__inner {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .error-page__code {
        font-size: 5rem;
    }

    /* Catalog */
    .catalog__layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .product-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail__top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .product-detail__price {
        font-size: var(--font-size-3xl);
    }

    .product-tabs__nav {
        overflow-x: auto;
    }

    .product-tabs__btn {
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-table__header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--font-size-2xl);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn--lg {
        padding: var(--space-md) var(--space-lg);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Account Panel
   ============================================ */
.account-page {
    padding: var(--space-2xl) 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    position: sticky;
    top: calc(var(--space-xl) + 60px);
}

.account-sidebar__user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

.account-sidebar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-sidebar__name {
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: var(--font-size-sm);
}

.account-sidebar__email {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.account-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--color-text-body);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background 0.2s, color 0.2s;
}

.account-sidebar__link:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--color-primary-light);
}

.account-sidebar__link--active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--color-primary-light);
    font-weight: 600;
}

.account-sidebar__link--logout {
    margin-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
    color: var(--color-text-muted);
}

.account-sidebar__icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Content */
.account-content {
    min-width: 0;
}

.account-content__title {
    font-size: var(--font-size-xl);
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
}

.account-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.account-content__header .account-content__title {
    margin-bottom: 0;
}

/* Stats */
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.account-stat {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.account-stat__value {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 4px;
}

.account-stat__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section */
.account-section {
    margin-bottom: var(--space-xl);
}

.account-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.account-section h2 {
    font-size: var(--font-size-md);
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.account-section__header h2 {
    margin-bottom: 0;
}

/* Tables */
.account-table-wrap {
    overflow-x: auto;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
}

.account-table th,
.account-table td {
    padding: 12px 14px;
    text-align: left;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid var(--color-border);
}

.account-table th {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(139, 92, 246, 0.04);
}

.account-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.03);
}

.account-table tfoot td {
    font-size: var(--font-size-sm);
}

.account-table__total td {
    border-top: 2px solid var(--color-primary);
    font-size: var(--font-size-md);
}

.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge--pending { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.status-badge--processing { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.status-badge--shipped { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.status-badge--delivered,
.status-badge--completed { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.status-badge--cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-badge--refunded { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.status-badge--waiting { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

/* Order meta */
.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.order-meta__item {
    display: flex;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
}

.order-meta__label {
    color: var(--color-text-muted);
}

/* Order addresses */
.order-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.order-address {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.order-address h3 {
    font-size: var(--font-size-sm);
    color: var(--color-primary-light);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-address p {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--color-text-body);
}

/* Order actions */
.order-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--color-border);
}

.timeline__item {
    position: relative;
    padding-bottom: var(--space-md);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.timeline__note {
    width: 100%;
    font-size: var(--font-size-xs);
    color: var(--color-text-body);
}

.timeline__time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* Address cards */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.address-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: border-color 0.2s;
}

.address-card--default {
    border-color: var(--color-primary);
}

.address-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.address-card__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.address-card__body {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--color-text-body);
    margin-bottom: var(--space-md);
}

.address-card__actions {
    display: flex;
    gap: var(--space-sm);
}

/* Empty state */
.account-empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--color-text-muted);
}

.account-empty p {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-md);
}

/* Account form */
.account-form .account-section {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal__header h3 {
    font-size: var(--font-size-md);
    color: var(--color-text-heading);
}

.modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal__body {
    padding: var(--space-lg);
}

.modal__footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: var(--space-xl);
}

.pagination__link,
.pagination__current {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    text-decoration: none;
}

.pagination__link {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-body);
    transition: border-color 0.2s;
}

.pagination__link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.pagination__current {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Danger button */
.btn--danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.btn--xs {
    padding: 4px 10px;
    font-size: var(--font-size-xs);
}

.inline { display: inline; }

/* Responsive account */
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .order-addresses {
        grid-template-columns: 1fr;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .order-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ============================================
   Cart Drawer (Slide-out)
   ============================================ */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.cart-drawer__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-drawer__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.cart-drawer__close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.cart-drawer__close:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) var(--space-xl);
    overscroll-behavior: contain;
}

.cart-drawer__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-align: center;
    padding: var(--space-3xl) 0;
}

/* Drawer Item */
.cart-drawer-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    animation: drawerItemIn 0.25s ease;
}

@keyframes drawerItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.cart-drawer-item__image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-item__image-placeholder {
    font-size: 24px;
    color: var(--color-text-muted);
}

.cart-drawer-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-drawer-item__name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-heading);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.cart-drawer-item__name:hover {
    color: var(--color-primary);
}

.cart-drawer-item__meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.cart-drawer-item__price {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 4px;
}

.cart-drawer-item__qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.cart-drawer-item__qty-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.cart-drawer-item__qty-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cart-drawer-item__qty-val {
    min-width: 28px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-heading);
}

.cart-drawer-item__remove {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.cart-drawer-item__remove:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--color-error);
}

/* Drawer Footer */
.cart-drawer__footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    background: var(--color-bg-secondary);
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
    color: var(--color-text-heading);
}

.cart-drawer__total strong {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.cart-drawer__btn {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.cart-drawer__btn:last-child {
    margin-bottom: 0;
}

/* Highlight effect for freshly added item */
.cart-drawer-item--highlight {
    background: rgba(232, 93, 74, 0.06);
    border-radius: var(--radius-sm);
    margin: 0 calc(var(--space-md) * -1);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

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

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--space-lg) 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__title {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.cookie-banner__text p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-banner__btn {
    white-space: nowrap;
}

.cookie-banner__settings-link {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: underline;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.cookie-banner__settings-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* ============================================
   Cookie Settings Modal
   ============================================ */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 500px;
    max-width: 92vw;
    max-height: 85vh;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    z-index: 1301;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.cookie-modal__header h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.cookie-modal__close:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.cookie-modal__body {
    padding: var(--space-md) var(--space-xl);
    overflow-y: auto;
    flex: 1;
}

.cookie-option {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.cookie-option:hover {
    border-color: var(--color-primary-light);
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option__check {
    flex-shrink: 0;
    padding-top: 2px;
}

.cookie-option__check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.cookie-option__info strong {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 2px;
}

.cookie-option__info p {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-modal__footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   Alsendo Map Modal
   ============================================ */
.alsendo-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alsendo-map-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.alsendo-map-modal__content {
    position: relative;
    width: 95vw;
    height: 90vh;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.alsendo-map-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alsendo-map-modal__close:hover {
    background: var(--color-error);
    color: #fff;
    border-color: var(--color-error);
    transform: scale(1.1);
}

/* Pickup point details */
.checkout-pickup {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-alt, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.checkout-pickup__selected {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.checkout-pickup__label {
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.checkout-pickup__name {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: italic;
}

.checkout-pickup__name--selected {
    color: var(--color-primary);
    font-weight: 600;
    font-style: normal;
}

.checkout-pickup__details {
    padding: var(--space-xs) 0;
    margin-bottom: var(--space-sm);
}

.checkout-pickup__detail {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

#pickupPointBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-xs);
}

#pickupPointBtn svg {
    flex-shrink: 0;
}

/* Responsive */
html, body {
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .navbar__inner {
        grid-template-columns: auto 1fr auto;
    }
    .navbar__social {
        display: none;
    }
    .navbar__toggle {
        display: flex;
    }
    .navbar__menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: var(--space-xl) 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        visibility: hidden;
        transition: transform var(--transition-base), visibility var(--transition-base);
        z-index: 999;
    }
    .navbar__menu.is-active {
        transform: translateY(0);
        visibility: visible;
    }
    .navbar__toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar__toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .navbar__toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .alsendo-map-modal__content {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
}
