/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM (GREEN PALETTE)
   ========================================================================== */
   :root {
    /* Color Palette - Greens (Deep Forest to Soft Mint) */
    --color-primary-darkest: #022c22;  /* Tailwind teal-900 equivalent */
    --color-primary-dark: #047857;     /* Tailwind emerald-700 equivalent */
    --color-primary: #10b981;          /* Tailwind emerald-500 equivalent */
    --color-primary-light: #34d399;    /* Tailwind emerald-400 equivalent */
    --color-primary-soft: #a7f3d0;     /* Tailwind emerald-200 equivalent */
    --color-bg-light: #f0fdf4;         /* Tailwind green-50 equivalent */
    
    /* Neutrals */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    
    /* Accents */
    --color-star: #fbbf24;             /* Amber-400 */
    --color-verified: #ea580c;         /* Orange-600 */

    /* Shadows - Layered & Complex */
    --shadow-soft: 0 4px 20px rgba(16, 185, 129, 0.05);
    --shadow-medium: 0 10px 30px rgba(4, 120, 87, 0.08), 0 4px 10px rgba(0,0,0,0.03);
    --shadow-heavy: 0 20px 40px rgba(4, 120, 87, 0.12), 0 8px 16px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.3), 0 0 60px rgba(52, 211, 153, 0.1);
    --shadow-inner-card: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 6px rgba(0,0,0,0.02);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-gray-700);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Decorative Background Shapes */
.bg-decorative-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-soft) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, rgba(255,255,255,0) 70%);
    bottom: 20%;
    right: -300px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary-soft) 0%, rgba(255,255,255,0) 70%);
    top: 40%;
    left: 10%;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ==========================================================================
   HEADER COMPONENT
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-glass-bg {
    background: rgba(4, 120, 87, 0.85); /* Dark green semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light), var(--color-primary-dark));
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}

.header-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   HERO / PRODUCT CARD SECTION
   ========================================================================== */
.product-section {
    position: relative;
    z-index: 10;
    animation: slideUpFade 0.8s ease-out forwards;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-heavy);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Inner decorative corner accents */
.product-card::before,
.product-card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.product-card::before {
    top: -30px;
    left: -30px;
    background: var(--color-primary-soft);
}

.product-card::after {
    bottom: -30px;
    right: -30px;
    background: rgba(52, 211, 153, 0.2);
}

/* ==========================================================================
   CSS-ONLY GALLERY COMPONENT
   ========================================================================== */
.product-gallery {
    display: flex;
    flex-direction: column;
}

.gallery-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-primary-soft) 0%, rgba(255,255,255,0) 70%);
    filter: blur(30px);
    z-index: 0;
    opacity: 0.6;
}

.main-image-container {
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.main-image-container:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

.image-frame {
    border: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.gallery-img {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

/* Gallery Logic (No JS) */
#thumb-1:checked ~ .main-image-container .img-1,
#thumb-2:checked ~ .main-image-container .img-2,
#thumb-3:checked ~ .main-image-container .img-3,
#thumb-4:checked ~ .main-image-container .img-4 {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

/* Thumbnails Setup */
.thumbnails-container::-webkit-scrollbar {
    height: 4px;
}
.thumbnails-container::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
}
.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

.thumbnail-label {
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.thumbnail-overlay {
    background: rgba(255,255,255,0.4);
}

.thumbnail-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.15);
}

.thumbnail-label:hover .thumbnail-overlay {
    opacity: 0;
}

/* Active Thumbnail Logic */
#thumb-1:checked ~ .thumbnails-container label[for="thumb-1"],
#thumb-2:checked ~ .thumbnails-container label[for="thumb-2"],
#thumb-3:checked ~ .thumbnails-container label[for="thumb-3"],
#thumb-4:checked ~ .thumbnails-container label[for="thumb-4"] {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

#thumb-1:checked ~ .thumbnails-container label[for="thumb-1"] .thumbnail-overlay,
#thumb-2:checked ~ .thumbnails-container label[for="thumb-2"] .thumbnail-overlay,
#thumb-3:checked ~ .thumbnails-container label[for="thumb-3"] .thumbnail-overlay,
#thumb-4:checked ~ .thumbnails-container label[for="thumb-4"] .thumbnail-overlay {
    opacity: 0;
}

/* ==========================================================================
   PRODUCT DETAILS COMPONENT
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-soft));
    border-radius: var(--radius-full);
}

.feature-item {
    background: rgba(255,255,255,0.5);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.8);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transform: translateX(5px);
    border-color: rgba(16, 185, 129, 0.1);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon svg {
    transform: scale(1.1);
}

.health-info-box {
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.health-info-box .info-bg {
    background: linear-gradient(135deg, var(--color-bg-light), rgba(16, 185, 129, 0.05));
}

/* ==========================================================================
   CALL TO ACTION (CTA) SECTION
   ========================================================================== */
.cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 800;
    padding: 1.25rem 3.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-medium), 0 0 0 0 rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-bounce);
    overflow: hidden;
    animation: pulseGlow 2.5s infinite;
}

/* Inner shadow for 3D effect */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), inset 0 -3px 0 rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Shine effect */
.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    color: var(--color-white);
}

.cta-button:hover::after {
    transform: rotate(30deg) translate(500%, 0);
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.cta-icon {
    transition: transform var(--transition-fast);
}

.cta-button:hover .cta-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   REVIEWS SECTION (AMAZON STYLE BEAUTIFIED)
   ========================================================================== */
.reviews-header-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.review-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(16, 185, 129, 0.05);
    transition: var(--transition-smooth);
}

.review-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.15);
}

@media (min-width: 640px) {
    .review-card {
        flex-direction: row;
        padding: 2rem;
    }
}

.review-avatar-col {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .review-avatar-col {
        margin-bottom: 0;
        margin-right: 1.5rem;
        width: 60px;
    }
}

.avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    padding: 2px; /* For gradient border effect */
}

@media (min-width: 640px) {
    .avatar-wrapper {
        width: 60px;
        height: 60px;
    }
}

.review-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background-color: var(--color-gray-200);
}

.review-content-col {
    flex-grow: 1;
}

.review-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.review-author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-gray-900);
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    color: var(--color-verified);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(234, 88, 12, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
}

.review-rating-row {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    color: var(--color-star);
    width: 80px; /* 5 stars approximate width */
}

.review-headline {
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: 1rem;
}

.review-meta {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.review-body {
    color: var(--color-gray-700);
    line-height: 1.6;
    font-size: 0.95rem;
}

.customer-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-fast);
}

.customer-photo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.site-footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.02);
}

.footer-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-soft), var(--color-primary), var(--color-primary-soft));
}

.footer-icon-wrapper {
    background: var(--color-bg-light);
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.footer-link {
    position: relative;
    color: var(--color-gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding-bottom: 2px;
}

.footer-link:hover {
    color: var(--color-primary-dark);
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

.footer-link:hover .link-underline {
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 1024px) {
    .product-card {
        padding: 3rem;
    }
    
    .thumbnails-container {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .product-card {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        width: 100%;
    }
}

@media (max-width: 375px) {
    .product-title {
        font-size: 1.75rem;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
    
    .review-author-name {
        font-size: 1rem;
    }
    
    .review-headline {
        font-size: 0.9rem;
    }
    
    .thumbnails-container {
        gap: 0.5rem;
    }
}
.main-images {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 320px;
}

@media (max-width: 480px) {
    .main-images {
        min-height: 280px;
    }
}