/* ==========================================
   ZAHRATO - Premium Oriental Car Carpets
   Mobile-First Design System
   ========================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Dark Luxury Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #151515;

    --accent-gold: #c9a962;
    --accent-gold-light: #d4b978;
    --accent-gold-dark: #a88a4a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(201, 169, 98, 0.3);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 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;

    /* Sizing */
    --nav-height: 60px;
    --carousel-item-size: 140px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.25);
}

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

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

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

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

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

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

/* ==========================================
   TOP NAVIGATION
   ========================================== */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

.topnav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    transition: color var(--transition-base);
}

.topnav__logo:hover {
    color: var(--accent-gold-light);
}

/* Hamburger Menu Button */
.topnav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
}

.topnav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
    transform-origin: center;
}

.topnav__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.topnav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.topnav__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu - Fullscreen */
.topnav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0f0f0f 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    z-index: 999;
}

.topnav__menu.active {
    transform: translateY(0);
    opacity: 1;
}

.topnav__menu-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.topnav__menu-title {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.topnav__menu-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

.topnav__menu-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 280px;
    padding: 0 var(--space-xl);
}

.topnav__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.topnav__menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.topnav__menu-btn--primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border: none;
    color: var(--bg-primary);
}

.topnav__menu-btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--bg-primary);
}

.topnav__menu-btn svg {
    flex-shrink: 0;
}

.topnav__menu-footer {
    position: absolute;
    bottom: var(--space-3xl);
    text-align: center;
}

.topnav__menu-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.topnav__overlay {
    display: none;
}

/* Legacy link styles for other pages - hidden on mobile */
.topnav__link {
    display: none;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color var(--transition-base), padding-left var(--transition-base);
}

.topnav__link:hover {
    color: var(--accent-gold);
    padding-left: var(--space-sm);
}

/* ==========================================
   SECTIONS (Gallery & Reviews)
   ========================================== */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    padding: var(--space-3xl) 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.gallery__grid {
    display: none;
    /* Hidden by default */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.gallery__grid.active {
    display: grid;
    opacity: 1;
}

.gallery__item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background-color: var(--bg-secondary);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* Reviews Section */
.reviews-section {
    padding: var(--space-3xl) 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.reviews__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.review-card {
    background-color: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.review-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--bg-secondary));
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.review-card__info {
    flex: 1;
}

.review-card__name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
    /* Change from flex to block for natural wrapping */
    line-height: 1.3;
}

.verified-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews__footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.reviews__trust-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.reviews__stars-row {
    display: flex;
    gap: 4px;
}

.reviews__trust-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.reviews__footer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.reviews__back-top {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.reviews__back-top:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.review-card__date {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================
   BUTTONS (Restored)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 169, 98, 0.35);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--primary svg {
    transition: transform var(--transition-base);
}

.btn--primary:hover svg {
    transform: translateX(4px);
}

.btn--left {
    width: 100%;
    justify-content: space-between;
}

/* Review Image */
.review-card__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.review-card__image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--border-subtle);
}

.review-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card__image:hover img {
    transform: scale(1.1);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .topnav {
        padding: 0 var(--space-2xl);
    }

    .topnav__hamburger {
        display: none;
    }

    .topnav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        gap: var(--space-xl);
        transform: none;
        opacity: 1;
        border: none;
        box-shadow: none;
        justify-content: flex-end;
    }

    /* Hide fullscreen menu elements on desktop */
    .topnav__menu-header,
    .topnav__menu-footer,
    .topnav__menu-links,
    .topnav__overlay {
        display: none;
    }

    .topnav__link {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        padding: var(--space-sm) 0;
        border-bottom: none;
        position: relative;
    }

    .topnav__link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--accent-gold);
        transition: width var(--transition-base);
    }

    .topnav__link:hover {
        padding-left: 0;
    }

    .topnav__link:hover::after {
        width: 100%;
    }
}

/* ==========================================
   CONFIGURATOR SECTION
   ========================================== */

/* ==========================================
   CONFIGURATOR SECTION - SPLIT LAYOUT
   ========================================== */

.configurator {
    position: relative;
    width: 100%;
    /* Mobile: Allow content to flow */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
}

/* 
   VISUAL SECTION (Top 60% on mobile)
*/
.configurator__visuals {
    position: relative;
    width: 100%;
    height: 60vh;
    height: 60svh;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.configurator__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.configurator__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease-out;
    will-change: opacity;
}

.configurator__layer--base {
    z-index: 1;
}

.configurator__layer--composite {
    z-index: 2;
    opacity: 0;
}

.configurator__layer--composite.visible {
    opacity: 1;
}

/* DETAILS SECTION (Bottom section on mobile) */
.configurator__details {
    position: relative;
    z-index: 10;
    padding: var(--space-lg);
    background-color: var(--bg-primary);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.configurator__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: var(--space-sm);
}

.configurator__info-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.configurator__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.configurator__color-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-gold);
    transition: opacity var(--transition-base);
    line-height: 1.1;
}

/* Actions */
.configurator__actions {
    display: flex;
    justify-content: flex-start;
    /* Left aligned */
}

.btn--left {
    width: 100%;
    /* Full width on mobile looks better, or auto? User said "not center aligned". */
    justify-content: space-between;
    /* Text left, icon right */
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

/* SWIPE AREA - Interaction */
.configurator__swipe-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    overflow: hidden;
    cursor: grab;
    opacity: 0;
    /* Hidden when idle */
    transition: opacity 0.2s ease-out;

    /* Disable selection */
    user-select: none;
    -webkit-user-select: none;
}

.configurator__swipe-area.active {
    opacity: 1;
    cursor: grabbing;
}

.configurator__swipe-track {
    display: flex;
    height: 100%;
    width: 100%;
    will-change: transform;
}

.configurator__swipe-item {
    flex-shrink: 0;
    width: 100vw;
    /* Full width of viewport */
    height: 100%;
    position: relative;
}

.configurator__swipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    /* Disable dragging/selection */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Indicators - Positioned on the Visual Area */
/* Text Selector - Scrollable Names */
.configurator__text-selector {
    position: absolute;
    bottom: 0;
    /* Align to bottom to anchor gradient */
    left: 0;
    width: 100%;
    height: 120px;
    /* Taller area for smooth gradient fade */
    z-index: 20;
    display: flex;
    align-items: flex-end;
    /* Push text to bottom */
    padding-bottom: 30px;
    /* Position text correctly */
    overflow: hidden;
    /* Side fade mask + Gradient background for contrast */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    pointer-events: none;
}

.configurator__text-track {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    bottom: 30px;
    /* Match padding */
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.configurator__text-item {
    flex-shrink: 0;
    padding: 0 var(--space-xl);
    font-family: var(--font-display);
    font-size: 1.25rem;
    /* Back to original size */
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.5;
    transition: all 0.4s ease;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Sophisticated, subtle shadow */
    transform: scale(0.9);
}

.configurator__text-item.active {
    opacity: 1;
    color: var(--accent-gold);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.2);
    /* Soft glow, no heavy black outline */
}

/* Gradient Overlay for Text Readability */
.configurator__gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.4) 0%,
            rgba(10, 10, 10, 0.0) 40%,
            rgba(10, 10, 10, 0.4) 70%,
            rgba(10, 10, 10, 0.9) 100%);
    z-index: 4;
    pointer-events: none;
}

/* Content Layout (for overlay on desktop) */
.configurator__content {
    position: absolute;
    /* Overlay on top of the image container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl) var(--space-lg);
    pointer-events: none;
    /* Let swipes pass through to the image */
}

/* Re-enable pointer events for interactive elements */
.configurator__cta,
.configurator__header {
    pointer-events: auto;
}

.configurator__header {
    text-align: center;
    margin-bottom: auto;
    padding-top: var(--space-2xl);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.configurator__subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.configurator__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Cleaned up old styles */

/* ==========================================
   DETAILS & TRUST SECTION
   ========================================== */

.configurator__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-md);
    margin-bottom: 0;
}

.configurator__color-name {
    flex: 1;
    /* Allow taking available space */
    min-width: 200px;
    /* Ensure it doesn't get too squashed before wrapping */
    margin: 0;
    line-height: 1.1;
}

.configurator__price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    /* Prevent price from splitting */
    min-width: 120px;
    /* Ensure space for price */
    text-align: right;
}

/* ... existing trust styles ... */

/* Trust Zone */
/* Trust Zone */
.configurator__trust {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ratings */
/* Ratings */
.configurator__rating-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}

.configurator__rating-row:hover .configurator__rating-text {
    text-decoration: underline;
    color: var(--text-primary);
}

.configurator__stars {
    display: flex;
    gap: 2px;
}

.configurator__rating-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

/* Review Thumbnails */
.configurator__review-media {
    display: flex;
    gap: var(--space-sm);
}

.configurator__review-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
}

.configurator__review-thumb:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

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

.configurator__review-more {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

/* Trust Badges */
/* Trust Badges */
.configurator__badges {
    display: flex;
    flex-direction: column !important;
    gap: var(--space-sm) !important;
    flex-wrap: nowrap !important;
    width: 100%;
}

.configurator__badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.lightbox__content {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox__content {
    transform: scale(1);
}

.lightbox__content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__brand {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

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

.footer__column {
    text-align: center;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer__link {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    transition: color var(--transition-base);
}

.footer__link:hover {
    color: var(--accent-gold);
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.footer__bottom {
    text-align: center;
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.footer__made {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer Desktop */
@media (min-width: 768px) {
    .footer {
        padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
    }

    .footer__brand {
        /* Keep centered on desktop */
        text-align: center;
    }

    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__column {
        text-align: left;
    }

    .footer__social {
        justify-content: flex-start;
    }

    .footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer__copyright,
    .footer__made {
        margin-bottom: 0;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.configurator__content {
    animation: fadeIn 0.6s ease-out;
}

.configurator__header {
    animation: slideUp 0.6s ease-out 0.2s both;
}

.configurator__scroll-track {
    animation: slideUp 0.6s ease-out 0.4s both;
}

.configurator__cta {
    animation: slideUp 0.6s ease-out 0.5s both;
}

/* ==========================================
   DESKTOP ENHANCEMENTS
   ========================================== */

@media (min-width: 768px) {

    /* Restore fullscreen layout for desktop */
    /* Restore fullscreen layout for desktop */
    .configurator {
        height: 100vh;
        max-width: 600px;
        margin: 0 auto;
        position: relative;
        /* Ensure relative positioning for contained absolute elements */
    }

    .configurator__background {
        position: absolute;
        height: 100%;
    }

    .configurator__layer--base {
        position: absolute;
        height: 100%;
    }

    .configurator__content {
        padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl);
    }

    .configurator__title {
        font-size: 3.5rem;
    }

    .configurator__color-name {
        font-size: 2rem;
    }

    .configurator__swipe-item {
        width: 100%;
        /* Override 100vw from mobile styles */
    }
}

@media (min-width: 1024px) {
    .configurator__title {
        font-size: 4rem;
    }
}

/* ==========================================
   CART POPUP MODAL
   ========================================== */

.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-popup__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cart-popup__container {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    padding: var(--space-xl);
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.cart-popup.active .cart-popup__container {
    transform: translateY(0) scale(1);
}

.cart-popup__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-base);
    padding: var(--space-xs);
}

.cart-popup__close:hover {
    color: var(--text-primary);
}

.cart-popup__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.cart-popup__header svg {
    color: #2ecc71;
    flex-shrink: 0;
}

.cart-popup__header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

/* Cart Items */
.cart-popup__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cart-popup__item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.cart-popup__item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

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

.cart-popup__item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-popup__item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-popup__item-variant {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cart-popup__item-price {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: auto;
}

.cart-popup__item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-base);
    align-self: flex-start;
}

.cart-popup__item-remove:hover {
    color: #e74c3c;
}

/* Cart Summary */
.cart-popup__summary {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-lg);
}

.cart-popup__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.cart-popup__subtotal span:first-child {
    color: var(--text-secondary);
}

.cart-popup__subtotal span:last-child {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.cart-popup__shipping-note {
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Cart Actions */
.cart-popup__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.btn--secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn--secondary svg {
    transition: transform var(--transition-base);
}

.btn--secondary:hover svg {
    transform: translateX(-4px);
}

/* ==========================================
   CHECKOUT PAGE STYLES
   ========================================== */

.checkout {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: var(--nav-height);
}

.checkout__container {
    max-width: 540px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
}

/* Order Summary */
.checkout__order-summary {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.checkout__summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    transition: background var(--transition-base);
}

.checkout__summary-header:hover {
    background: var(--bg-tertiary);
}

.checkout__summary-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.checkout__summary-title svg {
    color: var(--accent-gold);
}

.checkout__summary-total {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-left: auto;
    margin-right: var(--space-md);
}

.checkout__summary-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.checkout__summary-toggle svg {
    transition: transform var(--transition-base);
}

.checkout__order-summary.expanded .checkout__summary-toggle svg {
    transform: rotate(180deg);
}

.checkout__summary-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout__order-summary.expanded .checkout__summary-content {
    max-height: 500px;
}

.checkout__summary-items {
    padding: 0 var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checkout__summary-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.checkout__summary-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.checkout__summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.checkout__summary-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.checkout__summary-item-variant {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.checkout__summary-item-price {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: right;
}

/* Form Sections */
.checkout__section {
    margin-bottom: var(--space-xl);
}

.checkout__section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.checkout__section-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.checkout__section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Form Inputs */
.checkout__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.checkout__form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.checkout__form-group--full {
    grid-column: 1 / -1;
}

.checkout__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout__label span {
    color: #e74c3c;
}

.checkout__input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

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

.checkout__input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.checkout__input--select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: calc(var(--space-md) * 2 + 16px);
}

/* Privacy Notice */
.checkout__privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(46, 204, 113, 0.08);
    border-radius: 10px;
    margin-top: var(--space-md);
}

.checkout__privacy-notice svg {
    color: #2ecc71;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkout__privacy-notice p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Checkbox */
.checkout__checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    margin: var(--space-lg) 0;
}

.checkout__checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.checkout__checkbox:checked {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.checkout__checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkout__checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Shipping Options */
.checkout__shipping-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checkout__shipping-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.checkout__shipping-option:hover {
    border-color: var(--accent-gold-dark);
}

.checkout__shipping-option.selected {
    border-color: var(--accent-gold);
    background: rgba(201, 169, 98, 0.05);
}

.checkout__shipping-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkout__shipping-option.selected .checkout__shipping-radio {
    border-color: var(--accent-gold);
}

.checkout__shipping-option.selected .checkout__shipping-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.checkout__shipping-details {
    flex: 1;
}

.checkout__shipping-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.checkout__shipping-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkout__shipping-price {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.checkout__shipping-price--free {
    color: #2ecc71;
}

/* Trust Badges */
.checkout__trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.checkout__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkout__trust-item svg {
    color: #2ecc71;
    flex-shrink: 0;
}

/* Pay Button */
.checkout__pay-section {
    margin-top: var(--space-xl);
}

.checkout__pay-btn {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1rem;
}

.checkout__payment-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    opacity: 0.7;
}

.checkout__payment-icons img {
    height: 24px;
    width: auto;
}

.checkout__terms {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    line-height: 1.5;
}

.checkout__terms a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.checkout__terms a:hover {
    color: var(--accent-gold);
}

/* Invoice Address Section */
.checkout__invoice-address {
    display: none;
    animation: slideDown 0.3s ease-out;
}

.checkout__invoice-address.visible {
    display: block;
}

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

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

/* Responsive */
@media (max-width: 480px) {
    .checkout__form-row {
        grid-template-columns: 1fr;
    }

    .cart-popup__actions {
        flex-direction: column;
    }
}