/* Global ZOMORROD Premium Styles */

:root {
    /* Default: Warm Ivory Light Theme */
    --color-bg: #faf9f8;
    --color-text: #1a1c1c;
    --color-surface: #faf9f8;
    --color-surface-dim: #dadad9;
    --color-surface-container: #eeeeed;
    --color-surface-container-low: #f4f3f2;
    --color-surface-container-lowest: #ffffff;
    --color-outline: #7f7667;
    --color-outline-variant: #d1c5b4;
    --color-primary: #775a19;
    --color-primary-container: #c5a059;
    --color-on-primary-container: #ffffff;
}

[data-theme="dark"] {
    /* Midnight Black Dark Theme */
    --color-bg: #0A0A0A;
    --color-text: #e5e2e1;
    --color-surface: #141313;
    --color-surface-dim: #1c1b1b;
    --color-surface-container: #201f1f;
    --color-surface-container-low: #1a1a1a;
    --color-surface-container-lowest: #0A0A0A;
    --color-outline: #8e9192;
    --color-outline-variant: #444748;
    --color-primary: #e9c349;
    --color-primary-container: #2b2a2a;
    --color-on-primary-container: #e9c349;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Base Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-outline-variant);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Utility Animations */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-shimmer:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.link-grow {
    position: relative;
}
.link-grow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.link-grow:hover::after {
    width: 100%;
}

/* Page Transition Overlay */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
}
#page-transition .loader-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    opacity: 0;
}

/* Cart Drawer */
#cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-surface);
    border-left: 1px solid var(--color-outline-variant);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
#cart-drawer.open {
    right: 0;
}
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
#cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Particle Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Ken Burns Hero Images */
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease, transform 10s linear;
}
.hero-img.active {
    opacity: 1;
    transform: scale(1.05);
}

.text-reveal {
    overflow: hidden;
}
.text-reveal-inner {
    display: inline-block;
}
