/* ==========================================================================
   AIRCUTE - Premium Product Landing Page CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theming (Green/Emerald Palette)
   -------------------------------------------------------------------------- */
   :root {
    /* Main Green Palette based on initial prompt direction */
    --clr-green-50:  #ecfdf5;
    --clr-green-100: #d1fae5;
    --clr-green-200: #a7f3d0;
    --clr-green-300: #6ee7b7;
    --clr-green-400: #34d399;
    --clr-green-500: #10b981;
    --clr-green-600: #059669;
    --clr-green-700: #047857;
    --clr-green-800: #065f46;
    --clr-green-900: #064e3b;
    
    /* Neutrals complementing the green palette */
    --clr-neutral-50:  #f8fafc;
    --clr-neutral-100: #f1f5f9;
    --clr-neutral-200: #e2e8f0;
    --clr-neutral-800: #1e293b;
    --clr-neutral-900: #0f172a;
    
    /* Semantic Colors */
    --clr-star: #fbbf24;
    --clr-text-main: var(--clr-neutral-800);
    --clr-bg-main: var(--clr-neutral-50);
    
    /* Shadows - Layered for depth */
    --shadow-soft: 0 4px 20px rgba(5, 150, 105, 0.05);
    --shadow-card: 0 20px 40px -10px rgba(5, 150, 105, 0.08), 
                   0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 30px 50px -15px rgba(5, 150, 105, 0.15), 
                    0 15px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-btn: 0 10px 25px -5px rgba(5, 150, 105, 0.4), 
                  0 8px 10px -6px rgba(5, 150, 105, 0.2);
    --shadow-btn-hover: 0 20px 35px -5px rgba(5, 150, 105, 0.5), 
                        0 12px 15px -6px rgba(5, 150, 105, 0.3);
    
    /* Border Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Base Resets & Global Styles
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background-color: var(--clr-green-200);
    color: var(--clr-green-900);
}

:focus-visible {
    outline: 3px solid var(--clr-green-400);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--clr-neutral-100);
}
::-webkit-scrollbar-thumb {
    background: var(--clr-green-300);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-green-500);
}

/* --------------------------------------------------------------------------
   3. Background Decorative Elements (CSS Art)
   -------------------------------------------------------------------------- */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--clr-green-100) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--clr-green-50) 0%, transparent 70%);
    top: 40%;
    right: -150px;
    animation: float 25s infinite alternate-reverse ease-in-out;
}

.shape-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--clr-green-100) 0%, transparent 70%);
    bottom: -10%;
    left: 20%;
    animation: float 30s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --------------------------------------------------------------------------
   4. Header Styles
   -------------------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-title {
    background: linear-gradient(135deg, var(--clr-green-800), var(--clr-green-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-base);
}

.header-underline {
    background: linear-gradient(90deg, transparent, var(--clr-green-500), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-bounce);
    transform-origin: center;
}

.header-logo-wrapper:hover .header-underline {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   5. Hero / Product Section Card
   -------------------------------------------------------------------------- */
.product-card-wrapper {
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(180deg, #ffffff 0%, var(--clr-green-50) 100%);
    overflow: hidden;
}

/* Corner Accents */
.card-accent {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--clr-green-50);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
}
.card-accent.top-left {
    top: -50px;
    left: -50px;
}
.card-accent.bottom-right {
    bottom: -50px;
    right: -50px;
}

/* --------------------------------------------------------------------------
   6. CSS-Only Gallery Logic & Styles
   -------------------------------------------------------------------------- */
.product-gallery {
    border-right: 1px solid rgba(16, 185, 129, 0.05);
}

.gallery-main-view {
    aspect-ratio: 1 / 1;
    background: white;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--clr-neutral-100);
}

.gallery-badge {
    background: linear-gradient(135deg, var(--clr-green-500), var(--clr-green-700));
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Base state for all main images */
.gallery-item {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity var(--transition-slow), 
                transform var(--transition-slow),
                visibility var(--transition-slow);
    z-index: 1;
}

/* Gallery Logic (The Magic) */
#gal-img-1:checked ~ .gallery-main-view .item-1,
#gal-img-2:checked ~ .gallery-main-view .item-2,
#gal-img-3:checked ~ .gallery-main-view .item-3,
#gal-img-4:checked ~ .gallery-main-view .item-4 {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

/* Thumbnail Base Styling */
.thumbnail-label {
    border: 2px solid transparent;
    transition: all var(--transition-base);
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.thumb-overlay {
    background: rgba(255, 255, 255, 0.4);
    transition: background var(--transition-base);
}

.thumbnail-label:hover .thumb-overlay {
    background: rgba(255, 255, 255, 0);
}

.thumbnail-label:hover {
    transform: translateY(-2px);
    border-color: var(--clr-green-200);
}

/* Thumbnail Active State Logic */
#gal-img-1:checked ~ .gallery-thumbnails label[for="gal-img-1"],
#gal-img-2:checked ~ .gallery-thumbnails label[for="gal-img-2"],
#gal-img-3:checked ~ .gallery-thumbnails label[for="gal-img-3"],
#gal-img-4:checked ~ .gallery-thumbnails label[for="gal-img-4"] {
    border-color: var(--clr-green-500);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
}

#gal-img-1:checked ~ .gallery-thumbnails label[for="gal-img-1"] .thumb-overlay,
#gal-img-2:checked ~ .gallery-thumbnails label[for="gal-img-2"] .thumb-overlay,
#gal-img-3:checked ~ .gallery-thumbnails label[for="gal-img-3"] .thumb-overlay,
#gal-img-4:checked ~ .gallery-thumbnails label[for="gal-img-4"] .thumb-overlay {
    background: rgba(255, 255, 255, 0);
}

/* Thumbnail Scrollbar Hiding/Styling for Mobile */
.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--clr-green-200);
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   7. Product Information Area
   -------------------------------------------------------------------------- */
.highlight-text {
    position: relative;
    display: inline-block;
    color: var(--clr-green-700);
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--clr-green-200);
    opacity: 0.6;
    z-index: -1;
    transform: rotate(-1deg);
}

.meta-tag {
    background: var(--clr-green-50);
    color: var(--clr-green-800);
    border: 1px solid var(--clr-green-100);
}

/* Features List Styling */
.feature-item {
    padding: 16px;
    border-radius: var(--radius-md);
    transition: background var(--transition-base), transform var(--transition-base);
    border: 1px solid transparent;
}

.feature-item:hover {
    background: white;
    border-color: var(--clr-green-100);
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
}

.feature-icon {
    background: linear-gradient(135deg, var(--clr-green-400), var(--clr-green-600));
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Keyword Notice Box */
.health-notice {
    background: linear-gradient(to right, var(--clr-green-50), white);
    border-left: 4px solid var(--clr-green-500);
    color: var(--clr-green-900);
}

.health-notice-icon {
    color: var(--clr-green-600);
}

/* --------------------------------------------------------------------------
   8. CTA Section (Action Block)
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--clr-green-900);
}

.cta-background {
    background: linear-gradient(135deg, var(--clr-green-900) 0%, var(--clr-green-800) 100%);
}

.cta-blobs {
    overflow: hidden;
}

.cta-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-blobs .blob-1 {
    width: 400px;
    height: 400px;
    background: var(--clr-green-600);
    top: -100px;
    left: -100px;
    animation: blobMove 10s infinite alternate ease-in-out;
}

.cta-blobs .blob-2 {
    width: 300px;
    height: 300px;
    background: var(--clr-green-400);
    bottom: -50px;
    right: 10%;
    animation: blobMove 12s infinite alternate-reverse ease-in-out;
}

@keyframes blobMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(30px, 20px); }
}

/* CTA Button Styling */
.cta-button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); /* Amazon yellow palette vibe but elevated */
    color: #78350f; /* Dark brown/orange text for contrast */
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4), inset 0 -3px 0 rgba(180, 83, 9, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: none;
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.5), inset 0 -3px 0 rgba(180, 83, 9, 0.2);
    color: #451a03;
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px -5px rgba(245, 158, 11, 0.4), inset 0 -1px 0 rgba(180, 83, 9, 0.2);
}

/* Pulse ring around button */
.cta-pulse {
    border: 2px solid #fbbf24;
    animation: pulseBtn 2s infinite;
    opacity: 0;
}

@keyframes pulseBtn {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; border-width: 1px; }
}

/* --------------------------------------------------------------------------
   9. Reviews Section (Amazon-style Elevated)
   -------------------------------------------------------------------------- */
.review-card {
    border: 1px solid var(--clr-green-50);
    box-shadow: var(--shadow-card);
    z-index: 1;
}

.review-card:hover {
    border-color: var(--clr-green-100);
    box-shadow: var(--shadow-hover);
}

.review-quote-icon {
    color: var(--clr-green-500);
    transition: transform var(--transition-bounce), opacity var(--transition-base);
}

.review-card:hover .review-quote-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.08;
}

.review-avatar {
    background: linear-gradient(135deg, white, var(--clr-green-50));
}

.star-filled {
    color: var(--clr-star);
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.verified-badge {
    background: var(--clr-green-50);
    color: var(--clr-green-700);
    border: 1px solid var(--clr-green-200);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, var(--clr-neutral-50) 0%, #ffffff 100%);
}

.footer-bg {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(16, 185, 129, 0.03) 10px,
        rgba(16, 185, 129, 0.03) 20px
    );
}

.footer-link:focus-visible {
    outline: none;
    color: var(--clr-green-700);
}

.footer-link:focus-visible span.absolute {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   11. Media Queries & Responsive Design (Mobile-First tweaks)
   -------------------------------------------------------------------------- */

/* Extra small devices */
@media (max-width: 359px) {
    .product-title {
        font-size: 1.75rem;
    }
    .cta-button {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
}

/* Tablet / Desktop Switch */
@media (min-width: 1024px) {
    .product-card-wrapper {
        min-height: 700px;
    }
    
    .product-gallery {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
    
    .gallery-main-view {
        aspect-ratio: 4 / 3;
    }
}

/* Custom Grid Adjustments for Reviews */
@media (max-width: 767px) {
    .review-card {
        padding: 1.25rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-avatar {
        margin-bottom: 0.5rem;
    }
    
    .feature-item {
        padding: 10px 0;
    }
    
    .feature-item:hover {
        background: transparent;
        box-shadow: none;
        transform: none;
    }
}

/* High Contrast / Accessibility Tweaks */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}