/* === 1. VARIABLES & RESET === */
:root {
    /* Dynamic Theme Variables (Overridden by JS) */
    --bg-dark: #050a06; 
    --bg-gradient: #1a3c24;
    --gold: #D4AF37;
    --gold-light: #F2D574;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* DISABLE DOUBLE-TAP ZOOM ON INTERACTIVE ELEMENTS */
a, button, input, textarea, select, .marquee-item, .product-card, .nav-arrow, .close-zoom-btn, .video-card {
    touch-action: manipulation; 
}

body {
    background: var(--bg-dark);
    /* Radial gradient background */
    background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient) 0%, var(--bg-dark) 70%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

.app-container {
    width: 100%;
    max-width: 500px; /* Link-in-Bio Standard Width */
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px; /* Space for footer */
}

.hidden { display: none !important; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; }

/* === 2. REUSABLE COMPONENTS === */

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.card-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.5), transparent);
}

.text-content { font-size: 15px; line-height: 1.6; color: #e0e0e0; font-weight: 300; }

/* Section Headers */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: 30px 5px 15px;
}
.section-header h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.scroll-hint { font-size: 12px; color: var(--gold); }


/* === 3. HEADER & PROFILE === */
.profile-header { text-align: center; margin: 20px 0 30px; }
.profile-img {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--gold); padding: 3px; background: rgba(0,0,0,0.3);
    margin: 0 auto 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.brand-name {
    font-family: var(--font-head); font-size: 32px; margin-bottom: 5px;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tagline { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* Social Icons */
.social-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.social-icon {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--gold); border-color: var(--gold); color: #000;
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Steps (How to Order) */
.step-item { display: flex; align-items: flex-start; margin-bottom: 15px; }
.step-num {
    min-width: 28px; height: 28px; border: 1px solid var(--gold); color: var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; margin-right: 15px; font-weight: 600;
}

/* Vendor Button */
.vendor-price { font-size: 32px; font-weight: 700; color: white; margin: 15px 0; }
.vendor-strike { font-size: 14px; font-weight: 400; color: #aaa; text-decoration: line-through; margin-left: 5px;}
.btn-gold {
    display: block; background: var(--gold); color: #000; padding: 16px 30px;
    border-radius: 50px; text-decoration: none; font-weight: 700; text-align: center;
    width: 100%; margin-top: 20px; box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.btn-gold:hover { transform: scale(1.02); }


/* === 4. CAROUSELS & SCROLLING (Unified) === */

/* The Scrollable Container */
.carousel-container, .marquee-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    
    /* Ensure touches are handled immediately, preventing zoom delays */
    touch-action: pan-x pan-y; 
}
.carousel-container::-webkit-scrollbar, 
.marquee-container::-webkit-scrollbar { display: none; }

/* The Inner Track (Used for JS Auto-Scroll) */
.marquee-track {
    display: flex;
    gap: 15px;
    width: max-content; /* Ensure it stretches */
}

/* -- 4A. COLLECTION ITEMS (Compact) -- */
.product-card {
    flex: 0 0 160px; 
    height: 250px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    background: rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

/* -- 4B. PROOF ITEMS (Tall & Readable) -- */
.marquee-item {
    flex: 0 0 240px; /* Wider */
    height: 420px;   /* Tall Portrait for Screenshots */
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    background: rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.product-card:active, .marquee-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.product-img, .marquee-item img, .marquee-item video {
    width: 100%; height: 100%; object-fit: cover;
}

/* Video Play Overlay */
.play-icon-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; background: rgba(0,0,0,0.6);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--gold); pointer-events: none;
}
.play-icon-overlay svg { fill: #fff; width: 20px; height: 20px; margin-left: 3px; }

/* Collection Name Overlay */
.product-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 15px 10px 10px; text-align: center;
}
.product-name { font-size: 12px; color: #fff; font-weight: 600; text-transform: uppercase; }

/* Loading Skeleton */
.skeleton-loader {
    flex: 0 0 160px; height: 250px; 
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%{opacity:0.5} 50%{opacity:1} 100%{opacity:0.5} }

/* === NEW: PROMO VIDEO CARDS === */
.video-card {
    padding: 0 !important; /* Remove padding to make video edge-to-edge */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Approximate height of 'How to Order' section to match size */
    height: 280px; 
}

.promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills the card without stretching */
    cursor: pointer;
}

.video-hint-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none; /* Let clicks pass through to video */
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}


/* === 5. MODALS === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
}

/* Collection Grid Modal */
.modal-content-card {
    background: var(--bg-dark); border: 1px solid var(--gold);
    padding: 25px; width: 95%; max-width: 500px; height: 90vh;
    overflow-y: auto; border-radius: 20px; position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.modal-header { margin-bottom: 20px; text-align: center; }
.modal-header h3 { font-family: var(--font-head); color: var(--gold); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Zoom Modal */
.modal-zoomed-img { 
    max-width: 95%; max-height: 80vh; 
    object-fit: contain; border-radius: 8px; 
    border: 2px solid var(--gold); background: #000;
}
.modal-zoomed-video {
    width: 100%; max-height: 80vh;
    border: 2px solid var(--gold); border-radius: 8px; background: #000;
}

/* Buttons */
.close-btn-fixed {
    position: fixed; top: 20px; right: 20px; z-index: 2005;
    background: rgba(0,0,0,0.6); color: #fff;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 1px solid var(--gold); backdrop-filter: blur(5px);
}

.close-zoom-btn { 
    position: absolute; top: 20px; right: 20px; z-index: 2010; 
    background: rgba(0,0,0,0.5); color: #fff;
    border-radius: 50%; padding: 10px; border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: var(--gold);
    border: 1px solid var(--gold); width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2010; transition: 0.2s;
}
.nav-arrow:hover { background: var(--gold); color: #000; }
.nav-prev { left: 15px; }
.nav-next { right: 15px; }

.footer { text-align: center; color: var(--text-muted); padding-top: 20px; font-size: 12px; border-top: 1px solid var(--glass-border); }

/* === 6. FLOATING WHATSAPP === */
.floating-wa {
    position: fixed; bottom: 30px; right: 25px;
    width: 60px; height: 60px; background-color: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 3000;
    transition: transform 0.3s ease; animation: wa-pulse 2s infinite;
}
.floating-wa:hover { transform: scale(1.1); }
.floating-wa svg { width: 35px; height: 35px; fill: #ffffff; }

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 480px) {
    .floating-wa { bottom: 20px; right: 20px; width: 55px; height: 55px; }
}