/* Smooth Scroll Setup */
html.lenis, html.lenis body { height: auto; width: 100%; overflow-x: hidden; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Page Layout - FIX: Removed overflow: hidden so content doesn't get clipped */
.dress-page-wrapper { padding: 100px 20px 60px; max-width: 1100px; margin: 0 auto; }
.page-header { text-align: center; margin-bottom: 80px; }
.page-header h1 { font-size: 3.5rem; color: var(--primary); margin-bottom: 15px; }

/* Dress Card - Premium Layout */
.dress-card {
    display: flex; gap: 50px; align-items: center; margin-bottom: 100px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px; padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04); border: 1px solid var(--border-color);
}

/* FIX: Forces alternating cards to align text and dots to the absolute right */
.dress-card:nth-child(even) { flex-direction: row-reverse; }
.dress-card:nth-child(even) .content-col { text-align: right; }
.dress-card:nth-child(even) .color-palette { justify-content: flex-end; }

/* Image Placeholder */
.img-col { flex: 1; border-radius: 16px; overflow: hidden; height: 500px; position: relative; background: #EADBC8; }
.img-placeholder-inner {
    width: 100%; height: 120%;
    background-color: #F7EFE5;
    background-position: 0 0, 20px 20px; background-size: 40px 40px;
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: -10%; left: 0;
    will-change: transform;
}
.placeholder-text { background: rgba(255,255,255,0.9); padding: 15px 25px; border-radius: 50px; font-family: 'Playfair Display', serif; color: var(--primary); font-weight: bold; font-size: 1.2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* Content Column */
.content-col { flex: 1; padding: 20px; }
.content-col h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; overflow: hidden; }
.title-mask { display: block; transform: translateY(100%); will-change: transform; }
.vibe-text { font-size: 1.2rem; font-weight: bold; color: var(--primary); margin-bottom: 15px; opacity: 0; }
.desc-text { color: #555; font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; opacity: 0; }

/* --- LUXURIOUS IMAGE ZOOM --- */
.premium-zoom { animation: slowBreath 15s ease-in-out infinite alternate; }
@keyframes slowBreath { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

/* --- DYNAMIC COLOR PALETTE & HOVER --- */
.color-palette { display: flex; gap: 15px; flex-wrap: wrap; }
.color-swatch { 
    width: 50px; height: 50px; border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    transform: scale(0); opacity: 0; 
    will-change: transform; cursor: pointer; transition: box-shadow 0.3s ease;
}
.color-swatch:hover::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%; border: 3px solid rgba(0,0,0,0.2);
    transform: scale(1.15); transition: 0.3s ease;
}

/* --- COPY TOAST NOTIFICATION --- */
.copy-toast {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: #1A1A1A; color: #FFF; padding: 12px 30px; border-radius: 50px;
    font-size: 0.95rem; font-family: 'Lato', sans-serif; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3); z-index: 10000; opacity: 0; pointer-events: none;
}

/* --- AMBIENT BACKGROUND DEPTH --- */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; will-change: transform; }
.orb-1 { width: 600px; height: 600px; background: var(--gold-accent); top: -10%; left: -10%; animation: floatOrb 20s ease-in-out infinite alternate; }
.orb-2 { width: 500px; height: 500px; background: #E8C372; bottom: -20%; right: -10%; animation: floatOrb 25s ease-in-out infinite alternate-reverse; }
.mouse-orb { width: 400px; height: 400px; background: rgba(205, 133, 63, 0.4); top: -200px; left: -200px; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.1); } }

/* ========================================= */
/* --- RESPONSIVE & MOBILE UI POLISH ---     */
/* ========================================= */

@media (max-width: 1024px) {
    .dress-card, .dress-card:nth-child(even) { flex-direction: column; padding: 30px; gap: 30px; }
    
    /* FIX: When stacked on tablet/mobile, text resets to the left so it looks natural */
    .dress-card:nth-child(even) .content-col { text-align: left; }
    .dress-card:nth-child(even) .color-palette { justify-content: flex-start; }
    
    .img-col { 
        width: 100%; 
        /* FIX: Strict heights force the mobile browser to display the image */
        height: 450px !important; 
        min-height: 450px !important;
        display: block !important;
    }
    .page-header h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .img-col { 
        height: 350px !important; 
        min-height: 350px !important; 
    }
    .page-header h1 { font-size: 2.5rem; }
    
    /* Soften background orbs */
    .ambient-orb { opacity: 0.15; }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
}

@media (max-width: 400px) {
    .header-main, .page-header h1 { 
        font-size: 2.2rem; /* Scales down slightly to prevent text clipping */
    }
}