/* ============================================
   LUXE HAVEN — Design System
   Premium E-Commerce CSS Foundation
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Colors */
    --bg-primary: #FDFCFB;
    --bg-secondary: #F8F7F4;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-muted: #9CA3AF;
    --accent-gold: #C9A050;
    --accent-gold-hover: #B08B42;
    --accent-gold-light: rgba(201, 160, 80, 0.1);
    --charcoal: #333333;
    --border-light: #E5E5E5;
    --border-dark: #3F3F46;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

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

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Shadow Scale */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-gold: 0 4px 14px rgba(201, 160, 80, 0.25);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-standard: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- DARK MODE TOKENS --- */
.dark {
    --bg-primary: #0A0A0A;
    --bg-secondary: #18181B;
    --text-primary: #F5F5F5;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --charcoal: #E0E0E0;
    --border-light: #27272A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.6);
}

/* --- BASE STYLES --- */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.price-font {
    font-family: 'JetBrains Mono', monospace;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

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

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, #e8e8e8 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.dark .skeleton {
    background: linear-gradient(90deg, #27272A 25%, #3F3F46 50%, #27272A 75%);
    background-size: 200% 100%;
}

/* Pulse for badges */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 160, 80, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201, 160, 80, 0); }
}

/* Heart animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-active {
    animation: heartBeat 0.6s ease-in-out;
    fill: #EF4444 !important;
    stroke: #EF4444 !important;
}

/* Checkmark animation */
@keyframes checkDraw {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

/* --- BUTTON SYSTEM --- */
.btn-luxury {
    position: relative;
    overflow: hidden;
    transition: var(--transition-standard);
    z-index: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-luxury:hover::before {
    left: 100%;
}

.btn-luxury:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-luxury:active {
    transform: scale(0.98);
}

/* Button Variants */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-standard);
    min-height: 44px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition-standard);
    min-height: 44px;
}

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

.btn-gold {
    background: var(--accent-gold);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-standard);
    min-height: 44px;
}

.btn-gold:hover {
    background: var(--accent-gold-hover);
    box-shadow: var(--shadow-gold);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition-standard);
    min-height: 44px;
}

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

/* --- FORM INPUTS --- */
.input-luxe {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    font-family: 'Inter', sans-serif;
    transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
    min-height: 44px;
    color: var(--text-primary);
}

.dark .input-luxe {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

.input-luxe:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-light);
}

.input-luxe.input-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

.input-error-msg {
    color: var(--error);
    font-size: var(--text-xs);
    margin-top: var(--space-xs);
    display: none;
}

.input-error-msg.visible {
    display: block;
    animation: fadeInDown var(--duration-fast) var(--ease-out);
}

/* --- PRODUCT CARDS --- */
.product-card {
    transition: var(--transition-standard);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card .image-zoom {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .image-zoom {
    transform: scale(1.08);
}

/* Quick Add Overlay */
.product-card .quick-add-overlay {
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--duration-base) var(--ease-out);
}

.product-card:hover .quick-add-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- BADGES --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.badge-sale { background: var(--accent-gold); color: white; }
.badge-new { background: var(--text-primary); color: var(--bg-primary); }
.badge-bestseller { background: #7C3AED; color: white; }
.badge-limited { background: #DC2626; color: white; }
.badge-eco { background: #059669; color: white; }

/* --- TABS --- */
.tab-container {
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-container::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color var(--duration-base) var(--ease-out);
    min-height: 44px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform var(--duration-base) var(--ease-out);
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

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

.tab-content {
    display: none;
    animation: fadeIn var(--duration-base) var(--ease-out);
}

.tab-content.active {
    display: block;
}

/* --- ACCORDION --- */
.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.dark .accordion-item {
    border-color: var(--border-dark);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--duration-base) var(--ease-out);
    min-height: 44px;
    font-family: 'Inter', sans-serif;
}

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

.accordion-trigger .accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-base) var(--ease-out);
    flex-shrink: 0;
    margin-left: 1rem;
}

.accordion-item.open .accordion-trigger .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out), padding var(--duration-slow) var(--ease-out);
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.accordion-content p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* --- MODAL SYSTEM --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-base) var(--ease-out), visibility var(--duration-base) var(--ease-out);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(10px);
    transition: transform var(--duration-base) var(--ease-spring);
    max-height: 90vh;
    overflow-y: auto;
}

.dark .modal-content {
    background: #1C1C1E;
    border: 1px solid var(--border-dark);
}

.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Simulation Modal Specific */
.modal-simulation .modal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold-light), rgba(201,160,80,0.2));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.modal-simulation h3 {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-simulation .modal-subtitle {
    color: var(--accent-gold);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-simulation p {
    color: var(--text-secondary);
    text-align: center;
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-simulation .dev-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-standard);
    margin-bottom: 1rem;
}

.modal-simulation .dev-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.modal-simulation .modal-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-xs);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- TOAST SYSTEM --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: calc(100% - 2rem);
}

@media (max-width: 640px) {
    .toast-container {
        bottom: 1rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
        width: auto;
    }
}

.toast {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    font-size: var(--text-sm);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--info); }
.toast.warning { border-left: 4px solid var(--warning); }

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-action {
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    color: inherit;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--duration-fast);
    min-height: 32px;
}

.toast-action:hover {
    background: rgba(255,255,255,0.3);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold-hover); }

.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* --- GLASSMORPHISM --- */
.glass {
    background: rgba(253, 252, 251, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- TICKER --- */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

/* --- LOADER --- */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- PROGRESS BAR --- */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.dark .progress-bar {
    background: var(--border-dark);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-hover));
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

/* --- CHECKOUT STEPS --- */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: color var(--duration-base);
}

.step.active { color: var(--accent-gold); }
.step.completed { color: var(--success); }

.step-number {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: all var(--duration-base);
}

.step.active .step-number {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: white;
}

.step.completed .step-number {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 0.5rem;
    min-width: 20px;
}

.dark .step-line { background: var(--border-dark); }

.step-line.completed { background: var(--success); }

/* --- STAR RATING --- */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

.star.empty {
    color: var(--border-light);
}

/* --- TRACKING TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.dark .timeline::before {
    background: var(--border-dark);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    border: 2px solid var(--bg-primary);
}

.dark .timeline-dot {
    border-color: var(--bg-primary);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
}

.timeline-item.active .timeline-dot {
    background: var(--accent-gold);
    animation: pulse-gold 2s infinite;
}

/* --- LEGAL PAGES PROSE --- */
.legal-prose {
    max-width: 48rem;
    margin: 0 auto;
}

.legal-prose h2 {
    font-size: var(--text-xl);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-prose h3 {
    font-size: var(--text-lg);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.legal-prose p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

.legal-prose ul, .legal-prose ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: var(--text-sm);
    line-height: 1.8;
}

.legal-prose li {
    margin-bottom: 0.5rem;
}

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

.legal-prose a {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* --- COLOR SWATCHES --- */
.color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--duration-fast);
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-gold);
}

/* White swatch needs a visual border */
.color-swatch[data-color="#FFFFFF"],
.color-swatch[data-color="#F5F5F0"],
.color-swatch[data-color="#F5F0E8"],
.color-swatch[data-color="#F0F0F0"],
.color-swatch[data-color="#F2F0EB"] {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* --- STICKY ADD TO CART (MOBILE) --- */
.sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    z-index: 50;
    transform: translateY(100%);
    transition: transform var(--duration-base) var(--ease-out);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.dark .sticky-atc {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

.sticky-atc.visible {
    transform: translateY(0);
}

/* --- CUSTOM CHECKBOX/RADIO --- */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: var(--accent-gold);
}

/* --- RANGE SLIDER --- */
input[type="range"] {
    accent-color: var(--accent-gold);
}

/* --- IMAGE ZOOM --- */
.image-zoom-container {
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom-container img {
    transition: transform var(--duration-slow) var(--ease-out);
}

.image-zoom-container:hover img {
    transform: scale(1.5);
}

/* --- FILTER DRAWER (MOBILE) --- */
@media (max-width: 1023px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 360px;
        background: var(--bg-primary);
        z-index: 100;
        transform: translateX(-100%);
        transition: transform var(--duration-base) var(--ease-out);
        overflow-y: auto;
        padding: 1.5rem;
        box-shadow: var(--shadow-xl);
    }

    .dark .filter-sidebar {
        background: var(--bg-secondary);
    }

    .filter-sidebar.open {
        transform: translateX(0);
    }

    .filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-base);
    }

    .filter-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

/* --- FREE SHIPPING BAR --- */
.shipping-progress {
    background: var(--accent-gold-light);
    border-radius: var(--radius-full);
    padding: 0.75rem 1rem;
    text-align: center;
}

.shipping-progress .progress-bar {
    margin-top: 0.5rem;
}

/* --- PRINT STYLES --- */
@media print {
    header, footer, .toast-container, #cookie-banner, #back-to-top, .chat-widget {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .legal-prose { max-width: 100%; }
}
