/**
 * 靚QUIET Design System - CSS Variables
 * Warm, friendly, premium sleep brand
 */

:root {
  /* ============================
     COLOR PALETTE
     Based on brand's yellow theme + warm tones
     ============================ */
  
  /* Primary Colors - Warm Yellow/Gold */
  --color-primary: #F59E0B;
  --color-primary-light: #FCD34D;
  --color-primary-dark: #D97706;
  
  /* Secondary Colors - Soft Cream/Beige */
  --color-secondary: #FEF3C7;
  --color-secondary-dark: #FDE68A;
  
  /* Accent - Deep Charcoal (from logo) */
  --color-accent: #1F2937;
  --color-accent-light: #374151;
  
  /* Background Colors */
  --color-bg-primary: #FFFBEB;
  --color-bg-secondary: #FEF3C7;
  --color-bg-white: #FFFFFF;
  --color-bg-dark: #1F2937;
  
  /* Text Colors */
  --color-text-primary: #1F2937;
  --color-text-secondary: #4B5563;
  --color-text-muted: #6B7280;
  --color-text-light: #D1D5DB;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-primary: #1F2937;
  
  /* CTA Colors */
  --color-cta: #F59E0B;
  --color-cta-hover: #D97706;
  --color-cta-text: #1F2937;
  
  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  /* ============================
     TYPOGRAPHY
     ============================ */
  
  /* Font Families */
  --font-heading: ui-rounded, 'SF Pro Rounded', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  
  /* Font Sizes - Mobile First */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* ============================
     SPACING
     ============================ */
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  
  /* ============================
     LAYOUT
     ============================ */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* ============================
     BORDERS & RADIUS
     ============================ */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  --border-width: 1px;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-dark: rgba(0, 0, 0, 0.12);
  
  /* ============================
     SHADOWS (Soft UI Style)
     ============================ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  
  /* Soft UI elevated shadow */
  --shadow-soft: 
    8px 8px 16px rgba(0, 0, 0, 0.08),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  
  /* ============================
     TRANSITIONS
     ============================ */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  
  /* ============================
     Z-INDEX SCALE
     ============================ */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-tooltip: 60;
}

/* ============================
   DARK MODE (Optional)
   ============================ */
@media (prefers-color-scheme: dark) {
  :root {
    /* Keep light theme for this brand - dark mode not needed */
  }
}

/**
 * 靚QUIET Design System - Base Styles
 * CSS Reset + Base Typography
 */

/* Google Fonts are loaded via HTML link tags for better performance */

/* ============================
   CSS RESET
   ============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

/* ============================
   BASE TYPOGRAPHY
   ============================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-tight);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================
   LISTS
   ============================ */
ul,
ol {
    list-style: none;
}

/* ============================
   IMAGES
   ============================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================
   BUTTONS BASE
   ============================ */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================
   FORM ELEMENTS
   ============================ */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================
   SELECTION
   ============================ */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-text-primary);
}

/* ============================
   SCROLLBAR (Webkit)
   ============================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================
   RESPONSIVE FONT SIZES
   ============================ */
@media (min-width: 768px) {
    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-4xl);
    }

    h3 {
        font-size: var(--text-3xl);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--text-6xl);
    }
}
/**
 * 靚QUIET Design System - Components
 * Reusable UI Components
 */

/* ============================
   CONTAINER
   ============================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-cta-text);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-on-dark);
}

/* Large Button */
.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Small Button */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================
   CARDS
   ============================ */
.card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-content {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

/* Product Card Specific */
.product-card {
    cursor: pointer;
    border: 3px solid transparent;
}

.product-card:hover {
    border-color: var(--color-primary-light);
}

.product-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background-color: var(--color-primary);
    color: var(--color-cta-text);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.product-feature-tag {
    padding: var(--space-1) var(--space-2);
    background-color: var(--color-secondary);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 251, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: none;
    gap: var(--space-8);
}

.navbar-link {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.navbar-link:hover {
    color: var(--color-primary);
}

.navbar-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: var(--space-2);
    cursor: pointer;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-accent);
    transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background-color: var(--color-bg-primary);
    padding: var(--space-8);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    visibility: hidden;
    pointer-events: none;
    z-index: var(--z-fixed);
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-link {
    display: block;
    padding: var(--space-4) 0;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }

    .navbar-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* ============================
   SECTION LAYOUTS
   ============================ */
.section {
    padding: var(--space-16) 0;
}

.section-lg {
    padding: var(--space-20) 0;
}

.section-alt {
    background-color: var(--color-bg-secondary);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-text-on-dark);
}

.section-dark p {
    color: var(--color-text-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-subtitle {
    display: inline-block;
    padding: var(--space-1) var(--space-4);
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* ============================
   GRID LAYOUTS
   ============================ */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {

    .grid-2,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid {
        gap: var(--space-8);
    }
}

/* ============================
   FEATURE LIST
   ============================ */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.feature-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content h4 {
    margin-bottom: var(--space-2);
}

.feature-content p {
    margin-bottom: 0;
    font-size: var(--text-sm);
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-card {
    background-color: var(--color-bg-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.testimonial-name {
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Star Rating */
.stars {
    display: flex;
    gap: var(--space-1);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-4);
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    max-width: 300px;
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    color: var(--color-text-on-dark);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.footer-bottom p {
    color: inherit;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================
   SCROLL TO TOP
   ============================ */
.scroll-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-cta-text);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-4px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ============================
   ANALYTICS CONSENT
   ============================ */
.analytics-consent {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    left: var(--space-4);
    z-index: var(--z-modal);
    color: var(--color-text-primary);
}

.analytics-consent__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 920px;
    margin: 0 auto;
    padding: var(--space-4);
    background: var(--color-bg-white);
    border: 1px solid rgba(31, 41, 55, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.analytics-consent__copy strong {
    display: block;
    margin-bottom: var(--space-1);
}

.analytics-consent__copy p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.analytics-consent__actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .analytics-consent__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-5) var(--space-6);
    }
}

/* ============================
   UTILITIES
   ============================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

.text-muted {
    color: var(--color-text-muted);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:block {
        display: block;
    }

    .md\:flex {
        display: flex;
    }
}

/**
 * 靚QUIET Design System - Animations
 * Micro-interactions and transitions
 */

/* ============================
   KEYFRAME ANIMATIONS
   ============================ */

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

    to {
        opacity: 1;
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Float */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Soft */
@keyframes pulseSoft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Shimmer for loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================
   ANIMATION CLASSES
   ============================ */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ============================
   HOVER EFFECTS
   ============================ */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ============================
   LOADING STATES
   ============================ */
.skeleton {
    background: linear-gradient(90deg,
            var(--color-bg-secondary) 25%,
            var(--color-secondary) 50%,
            var(--color-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-4);
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* ============================
   PAGE TRANSITIONS
   ============================ */
.page-enter {
    opacity: 0;
}

.page-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-exit {
    opacity: 1;
}

.page-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Keep above-the-fold content visible immediately for faster first paint and LCP. */
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-image {
    opacity: 1;
}

/* ============================
   BUTTON RIPPLE EFFECT
   ============================ */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ============================
   STAGGER CHILDREN ANIMATION
   ============================ */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.revealed>*:nth-child(1) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.1s;
}

.stagger-children.revealed>*:nth-child(2) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

.stagger-children.revealed>*:nth-child(3) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
}

.stagger-children.revealed>*:nth-child(4) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.4s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .animate-fade-in,
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-scale-in,
    .animate-float,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-image,
    .stagger-children>* {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/**
 * 靚QUIET - Product Detail Page Styles
 */

/* ============================
   PRODUCT PAGE LAYOUT
   ============================ */
.product-page {
    padding-top: 72px;
}

.product-hero {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-secondary) 100%);
    padding: var(--space-12) 0;
}

/* Product hero content should paint immediately; reveal effects are kept below the fold. */
.product-hero .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.product-hero-grid {
    display: grid;
    gap: var(--space-12);
    align-items: start;
}

@media (min-width: 768px) {
    .product-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================
   PRODUCT GALLERY
   ============================ */
.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    cursor: zoom-in;
    transition: transform var(--transition-base);
}

.product-main-image:hover {
    transform: scale(1.02);
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.product-thumbnail {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.7;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--color-primary);
    opacity: 1;
}

/* ============================
   PRODUCT INFO
   ============================ */
.product-info {
    padding: var(--space-4) 0;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.product-breadcrumb a {
    color: var(--color-text-muted);
}

.product-breadcrumb a:hover {
    color: var(--color-primary);
}

.product-breadcrumb svg {
    width: 16px;
    height: 16px;
}

.product-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .product-title {
        font-size: var(--text-4xl);
    }
}

.product-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.product-highlight {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.product-highlight svg {
    width: 16px;
    height: 16px;
}

/* ============================
   PRODUCT FEATURES LIST
   ============================ */
.product-features-list {
    margin-bottom: var(--space-8);
}

.product-features-list h2,
.product-features-list h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.product-features-list ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.product-features-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

/* ============================
   CTA BUTTONS
   ============================ */
.product-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
    .product-cta {
        flex-direction: row;
    }
}

.purchase-note {
    margin: 0 0 var(--space-8);
    padding: var(--space-4);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.purchase-note a {
    color: var(--color-primary-dark);
    font-weight: var(--font-semibold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================
   PRODUCT DETAILS SECTION
   ============================ */
.product-details-section {
    padding: var(--space-16) 0;
}

.product-details-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .product-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-detail-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* ============================
   FULL IMAGE GALLERY
   ============================ */
.full-gallery {
    padding: var(--space-16) 0;
    background-color: var(--color-bg-secondary);
}

.gallery-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: var(--space-6);
}

.lightbox-next {
    right: var(--space-6);
}

/* ============================
   RELATED PRODUCTS
   ============================ */
.related-products {
    padding: var(--space-16) 0;
}

.related-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/**
 * 靚QUIET Design System - Main Entry Point
 * Import all stylesheets
 */





/* ============================
   HERO SECTION
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse, var(--color-primary-light) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary-dark);
    margin-bottom: var(--space-6);
}

.hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.hero-floating-badge {
    position: absolute;
    background-color: var(--color-bg-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-floating-badge.top-right {
    top: 10%;
    right: 0;
}

.hero-floating-badge.bottom-left {
    bottom: 10%;
    left: 0;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        text-align: left;
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }

    .hero-description {
        margin: 0 0 var(--space-8);
    }

    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: var(--text-6xl);
    }
}

/* ============================
   PRODUCTS SECTION
   ============================ */
.products-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================
   FEATURES SECTION
   ============================ */
.features-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.feature-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.feature-card-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ============================
   SEO CONTENT SECTION
   ============================ */
.seo-content {
    background-color: var(--color-bg-white);
}

.seo-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seo-card {
    padding: var(--space-8);
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-primary);
}

.seo-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.seo-card p {
    margin-bottom: 0;
    font-size: var(--text-sm);
}

/* ============================
   TESTIMONIALS SECTION
   ============================ */
.product-comparison {
    margin-bottom: var(--space-10);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
}

.product-comparison table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.product-comparison th,
.product-comparison td {
    padding: var(--space-4);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

.product-comparison thead th {
    background-color: var(--color-accent);
    color: var(--color-text-on-dark);
    font-weight: var(--font-semibold);
}

.product-comparison tbody th {
    color: var(--color-text-primary);
    min-width: 170px;
}

.product-comparison tbody tr:last-child th,
.product-comparison tbody tr:last-child td {
    border-bottom: 0;
}

.product-comparison a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.testimonials-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-cta-text);
    text-align: center;
    padding: var(--space-20) 0;
}

.cta-section h2 {
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.cta-section p {
    color: var(--color-accent);
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

.cta-section .btn-secondary {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.cta-section .btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* ============================
   PURCHASE SECTION
   ============================ */
.purchase-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
}

.purchase-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
    color: var(--color-text-primary);
    transition: all var(--transition-base);
}

.purchase-link:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.purchase-link img {
    height: 24px;
    width: auto;
}

/* ============================
   FREE GIFT BADGE
   ============================ */
.gift-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    box-shadow: var(--shadow-md);
}
