/* ============================================================
   FACYDAY AWARD-WINNING SKINCARE THEME (WHITE SYSTEM)
   Professional Typography, Luxurious Spacing, Clean Contrast
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- Design Tokens ---- */
:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --color-teal-50: #fffdf5;
    --color-teal-100: #fef3c7;
    --color-teal-600: #d97706;
    --color-teal-700: #b45309;
    --color-teal-800: #92400e;
    --color-gold-500: #d97706;
    --color-gold-600: #b45309;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-500: #64748b;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.06), 0 8px 16px -4px rgba(15, 23, 42, 0.02);
    --shadow-xl: 0 32px 64px -16px rgba(15, 23, 42, 0.08), 0 16px 32px -8px rgba(15, 23, 42, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-heading);
}

body {
    background-color: #ffffff;
    color: var(--color-slate-800);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-slate-900);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.font-serif {
    font-family: var(--font-serif);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-slate-50);
}
::-webkit-scrollbar-thumb {
    background: var(--color-slate-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-500);
}

/* ---- Glassmorphism & UI Panels ---- */
.glass-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-100);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-slate-200);
}

/* ---- Hero Components ---- */
.hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 60%, #ffffff 100%);
    z-index: 1;
}

/* ---- Premium Buttons ---- */
.btn-primary {
    background-color: #e25822;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px 0 rgba(226, 88, 34, 0.25);
}

.btn-primary:hover {
    background-color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(226, 88, 34, 0.35);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-slate-900);
    border: 1px solid var(--color-slate-200);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    background-color: var(--color-slate-50);
    border-color: var(--color-slate-300);
}

/* ---- Bundle Cards ---- */
.bundle-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bundle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.bundle-card.popular {
    border: 2px solid var(--color-teal-600);
    background: linear-gradient(to bottom, var(--color-teal-50) 0%, #ffffff 100%);
}

.bundle-card.best {
    border: 2px solid var(--color-gold-500);
    background: linear-gradient(to bottom, #fffbeb 0%, #ffffff 100%);
}

/* ---- Cart Drawer System ---- */
.cart-drawer-container {
    background: #ffffff;
    border-left: 1px solid var(--color-slate-200);
}

.cart-overlay {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ---- FAQ Accordion ---- */
.faq-item {
    border: 1px solid var(--color-slate-200);
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-sm);
}

/* ---- Smooth Micro-Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================================
   C5 ANIMATED GRADIENT SYSTEM (High-Performance CSS @property)
   ============================================================ */
@property --c5-x1 { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
@property --c5-y1 { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
@property --c5-x2 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --c5-y2 { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
@property --c5-x3 { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
@property --c5-y3 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --c5-x4 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --c5-y4 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }
@property --c5-x5 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --c5-y5 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --c5-s1 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --c5-s2 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --c5-s3 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --c5-s4 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --c5-s5 { syntax: '<percentage>'; inherits: false; initial-value: 65%; }

.c5-animated-gradient {
  background-color: #b45309;
  background-image:
    radial-gradient(circle at var(--c5-x1) var(--c5-y1), #d97706 0px, transparent var(--c5-s1)),
    radial-gradient(circle at var(--c5-x2) var(--c5-y2), #f59e0b 0px, transparent var(--c5-s2)),
    radial-gradient(circle at var(--c5-x3) var(--c5-y3), #92400e 0px, transparent var(--c5-s3)),
    radial-gradient(circle at var(--c5-x4) var(--c5-y4), #fffbeb 0px, transparent var(--c5-s4)),
    radial-gradient(circle at var(--c5-x5) var(--c5-y5), #78350f 0px, transparent var(--c5-s5));
  animation:
    c5-blob1 5s ease-in-out infinite,
    c5-blob2 6s ease-in-out infinite,
    c5-blob3 5.5s ease-in-out infinite,
    c5-blob4 6.5s ease-in-out infinite,
    c5-blob5 4s ease-in-out infinite,
    c5-size1 3.5s ease-in-out infinite,
    c5-size2 4.2s ease-in-out infinite,
    c5-size3 3.8s ease-in-out infinite,
    c5-size4 4.6s ease-in-out infinite,
    c5-size5 3s ease-in-out infinite;
}

@keyframes c5-blob1 {
  0%,100% { --c5-x1: 5%;  --c5-y1: 5%;  }
  25%     { --c5-x1: 45%; --c5-y1: 20%; }
  50%     { --c5-x1: 30%; --c5-y1: 55%; }
  75%     { --c5-x1: 0%;  --c5-y1: 30%; }
}
@keyframes c5-blob2 {
  0%,100% { --c5-x2: 95%; --c5-y2: 5%;  }
  33%     { --c5-x2: 55%; --c5-y2: 35%; }
  66%     { --c5-x2: 80%; --c5-y2: 65%; }
}
@keyframes c5-blob3 {
  0%,100% { --c5-x3: 5%;  --c5-y3: 95%; }
  40%     { --c5-x3: 45%; --c5-y3: 65%; }
  70%     { --c5-x3: 25%; --c5-y3: 100%; }
}
@keyframes c5-blob4 {
  0%,100% { --c5-x4: 95%; --c5-y4: 95%; }
  30%     { --c5-x4: 60%; --c5-y4: 70%; }
  60%     { --c5-x4: 100%; --c5-y4: 50%; }
}
@keyframes c5-blob5 {
  0%,100% { --c5-x5: 50%; --c5-y5: 50%; }
  25%     { --c5-x5: 70%; --c5-y5: 30%; }
  50%     { --c5-x5: 40%; --c5-y5: 70%; }
  75%     { --c5-x5: 30%; --c5-y5: 40%; }
}

@keyframes c5-size1 { 0%,100% { --c5-s1: 45%; } 50% { --c5-s1: 80%; } }
@keyframes c5-size2 { 0%,100% { --c5-s2: 45%; } 50% { --c5-s2: 85%; } }
@keyframes c5-size3 { 0%,100% { --c5-s3: 45%; } 50% { --c5-s3: 78%; } }
@keyframes c5-size4 { 0%,100% { --c5-s4: 45%; } 50% { --c5-s4: 82%; } }
@keyframes c5-size5 { 0%,100% { --c5-s5: 50%; } 50% { --c5-s5: 85%; } }

@media (prefers-reduced-motion: reduce) {
  .c5-animated-gradient { animation: none; }
}

/* Premium Prominent Form Inputs Style */
.input-premium {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1 !important; /* Prominent slate border */
    border-radius: 12px;
    padding: 12px 16px;
    color: #0f172a;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-premium:hover {
    border-color: #94a3b8 !important; /* Darker slate on hover */
}

.input-premium:focus {
    border-color: #e25822 !important; /* Sunset orange focus border */
    box-shadow: 0 0 0 3px rgba(226, 88, 34, 0.2) !important; /* Soft sunset orange focus ring */
}

/* ---- Premium Scroll Reveal & Modern Parallax Effects ---- */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.reveal-visible, .reveal-fade-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale-up {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale-up.reveal-visible, .reveal-scale-up.is-inview {
    opacity: 1;
    transform: scale(1);
}

/* Stagger transition delay helpers for grid elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }


/* ============================================================
   PREMIUM PRODUCT IMAGE CARD & SHINE GLOW SYSTEM
   ============================================================ */
.premium-product-img-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px !important; /* Smooth rounded borders */
    background: #ffffff;
    border: 1px solid rgba(226, 88, 34, 0.08) !important;
    box-shadow: 0 10px 30px -5px rgba(226, 88, 34, 0.08), 
                0 4px 12px -2px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Glassmorphic border reflection */
.premium-product-img-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    pointer-events: none;
    z-index: 2;
}

/* Shine overlay effect */
.premium-product-img-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    z-index: 3;
}

.premium-product-img-card:hover::before {
    left: 150%;
}

.premium-product-img-card:hover {
    transform: translateY(-5px) scale(1.025);
    box-shadow: 0 22px 45px -8px rgba(226, 88, 34, 0.16),
                0 8px 24px -4px rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(226, 88, 34, 0.22) !important;
}

.premium-product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Crop white margins and fill container borderlessly */
    border-radius: 26px !important;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-product-img-card:hover .premium-product-img {
    transform: scale(1.07) rotate(1deg); /* Subtle modern scale & rotation dynamics */
}


/* ============================================================
   CINEMATIC PAGE LOADER & APERTURE REVEAL SYSTEM
   ============================================================ */
body.loading {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Base js hiding wrapper */
.js #scroll-container {
    opacity: 0;
    transform: scale(0.98);
}

/* Fallback CSS transitions: only applied if GSAP fails to load (indicated by .no-gsap class) */
.no-gsap #scroll-container {
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.no-gsap #scroll-container.page-revealed {
    opacity: 1;
    transform: scale(1);
}

.cinematic-loader-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: block; /* Align content container to block level */
    overflow: hidden;
    background: transparent;
}

/* Sunrise Flare: A dynamic, soft morning sun beam scaling and sweeping diagonally from top-right to bottom-left */
.sunrise-flare {
    position: absolute;
    top: -25%;
    right: -25%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 88, 34, 0.22) 0%, rgba(245, 158, 11, 0.08) 40%, rgba(254, 243, 199, 0.02) 70%, transparent 100%);
    filter: blur(55px);
    transform: translate(20%, -20%) scale(0.6);
    opacity: 0;
    z-index: 15;
    pointer-events: none;
}

/* CSS fallback state */
.no-gsap .sunrise-flare {
    transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 2.4s ease-in-out;
}
.no-gsap .sunrise-flare.flare-active {
    transform: translate(-30%, 30%) scale(2.4);
    opacity: 1;
}

/* Split sliding doors (Carbon clinical panels) */
.loader-door {
    position: absolute;
    top: 0;
    width: 50.5%; /* slight overlap to prevent visual line gap */
    height: 100%;
    background: #09090b; /* Matte Carbon Slate */
    z-index: 10;
}

/* CSS fallback state */
.no-gsap .loader-door {
    transition: transform 1.4s cubic-bezier(0.85, 0, 0.15, 1);
}

.door-left {
    left: 0;
    border-right: 1.5px solid rgba(226, 88, 34, 0.12);
}

.door-right {
    right: 0;
    border-left: 1.5px solid rgba(226, 88, 34, 0.12);
}

.loader-content {
    /* We don't animate loader-content with CSS transitions in GSAP mode */
}

.no-gsap .loader-content {
    transition: all 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Open states (CSS fallback triggers) */
.no-gsap .cinematic-loader-container.loader-active .door-left {
    transform: translateX(-100%);
}

.no-gsap .cinematic-loader-container.loader-active .door-right {
    transform: translateX(100%);
}

.no-gsap .cinematic-loader-container.loader-active .loader-content {
    opacity: 0;
    transform: scale(0.96) translateY(-15px);
    pointer-events: none;
}





