/* ================================================
   Bigelow Tea Premium Landing Page - Custom CSS
   Yellow Color Palette - Modern & Unique Design
   ================================================ */

/* CSS Variables - Yellow Palette */
:root {
    /* Primary Yellow Tones */
    --yellow-50: #fffef7;
    --yellow-100: #fefce8;
    --yellow-200: #fef9c3;
    --yellow-300: #fef08a;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;
    --yellow-700: #a16207;
    --yellow-800: #854d0e;
    --yellow-900: #713f12;
    
    /* Neutral Tones */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Warm Accent */
    --warm-cream: #fffbeb;
    --warm-beige: #fef3c7;
    --warm-honey: #f59e0b;
    --warm-amber: #d97706;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-yellow: 0 10px 40px -10px rgba(250, 204, 21, 0.4);
    --shadow-yellow-lg: 0 25px 50px -12px rgba(250, 204, 21, 0.5);
    
    /* Gradients */
    --gradient-yellow: linear-gradient(135deg, var(--yellow-300) 0%, var(--yellow-400) 50%, var(--yellow-500) 100%);
    --gradient-yellow-subtle: linear-gradient(180deg, var(--yellow-50) 0%, var(--warm-cream) 100%);
    --gradient-warm: linear-gradient(135deg, var(--warm-cream) 0%, var(--yellow-100) 100%);
    --gradient-header: linear-gradient(135deg, var(--yellow-400) 0%, var(--warm-honey) 100%);
    --gradient-cta: linear-gradient(135deg, var(--yellow-400) 0%, var(--yellow-500) 50%, var(--warm-honey) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(2rem, 5vw, 4rem);
    --container-max: 1200px;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-yellow-subtle);
    color: var(--neutral-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================================================
   HEADER SECTION
   ================================================ */
header {
    background: var(--gradient-header);
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(250, 204, 21, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--yellow-600) 20%, 
        var(--warm-honey) 50%, 
        var(--yellow-600) 80%, 
        transparent 100%);
}

header h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--neutral-900);
    text-align: center;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
main {
    padding: var(--section-padding) 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ================================================
   PRODUCT SECTION - CARD
   ================================================ */
.product-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--yellow-50) 100%);
    border-radius: var(--radius-2xl);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 1px rgba(250, 204, 21, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-yellow);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.product-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .product-section {
        padding: 2.5rem;
    }
}

/* ================================================
   GALLERY - CSS ONLY IMAGE SWITCHING
   ================================================ */
.gallery {
    position: relative;
}

.gallery-input {
    display: none;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--yellow-50) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    opacity: 0;
    transform: scale(0.98);
    transition: 
        opacity var(--transition-base),
        transform var(--transition-slow);
}

/* Show selected image with animation */
#img1:checked ~ .gallery-main #main-img1,
#img2:checked ~ .gallery-main #main-img2,
#img3:checked ~ .gallery-main #main-img3,
#img4:checked ~ .gallery-main #main-img4 {
    opacity: 1;
    transform: scale(1);
}

/* Thumbnail Container */
.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.5rem;
    background: var(--warm-cream);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Thumbnail Labels */
.thumb-label {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    background: white;
    box-shadow: var(--shadow-sm);
}

.thumb-label:hover {
    border-color: var(--yellow-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.thumb-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-fast);
}

.thumb-label:hover .thumb-img {
    transform: scale(1.05);
}

/* Active thumbnail highlight */
#img1:checked ~ .gallery-thumbs label[for="img1"],
#img2:checked ~ .gallery-thumbs label[for="img2"],
#img3:checked ~ .gallery-thumbs label[for="img3"],
#img4:checked ~ .gallery-thumbs label[for="img4"] {
    border-color: var(--yellow-500);
    box-shadow: 
        0 0 0 3px rgba(250, 204, 21, 0.3),
        var(--shadow-md);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .thumb-img {
        width: 56px;
        height: 56px;
    }
    
    .gallery-thumbs {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .thumb-img {
        width: 48px;
        height: 48px;
    }
    
    .gallery-thumbs {
        gap: 0.375rem;
        padding: 0.375rem;
    }
}

/* ================================================
   PRODUCT INFO
   ================================================ */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-info h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

.product-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-yellow);
    border-radius: 2px;
}

/* Description Styling */
.description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description p {
    color: var(--neutral-700);
    font-size: 0.9375rem;
    line-height: 1.7;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--yellow-50) 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--yellow-400);
    box-shadow: var(--shadow-sm);
    transition: 
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.description p:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.description p strong {
    color: var(--neutral-900);
    font-weight: 600;
    display: block;
    margin-bottom: 0.375rem;
}

.description p:last-child {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-left-color: var(--neutral-300);
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-style: italic;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    padding: 1.25rem 2.5rem;
    background: var(--gradient-cta);
    color: var(--neutral-900);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-xl);
    box-shadow: 
        var(--shadow-yellow),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 0 rgba(250, 204, 21, 0);
    transition: 
        transform var(--transition-bounce),
        box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        var(--shadow-yellow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(250, 204, 21, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-2px) scale(1);
}

@media (max-width: 480px) {
    .cta-button {
        min-width: 100%;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ================================================
   REVIEWS SECTION
   ================================================ */
.reviews-section {
    margin-bottom: 3rem;
}

.reviews-section h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews-section h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: var(--gradient-yellow);
    border-radius: 3px;
}

/* Individual Review Card */
.review {
    background: linear-gradient(180deg, #ffffff 0%, var(--yellow-50) 100%);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: 
        var(--shadow-md),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: 
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-yellow);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.review:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px rgba(250, 204, 21, 0.1);
}

.review:hover::before {
    opacity: 1;
}

@media (min-width: 768px) {
    .review {
        padding: 1.75rem;
    }
}

/* Review Header */
.review-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--yellow-200);
    box-shadow: var(--shadow-sm);
    transition: 
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.review:hover .review-avatar {
    border-color: var(--yellow-400);
    transform: scale(1.05);
}

.review-meta {
    flex: 1;
}

.review-meta p:first-child {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

/* Stars */
.stars {
    color: var(--yellow-500);
    font-size: 0.9375rem;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(234, 179, 8, 0.3);
}

.review-meta p.font-medium {
    font-weight: 600;
    color: var(--neutral-800);
    font-size: 0.9375rem;
}

/* Verified Purchase Badge */
.review p.text-sm.text-gray-500 {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.review p.text-sm.text-gray-500:first-of-type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--warm-cream);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--yellow-700);
}

/* Review Text */
.review-text {
    color: var(--neutral-700);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.review-text p {
    margin: 0;
}

/* Review Photo */
.review-photo {
    margin-top: 1rem;
}

.review-attached-img {
    max-width: 140px;
    max-height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: 
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.review-attached-img:hover {
    transform: scale(1.05);
    border-color: var(--yellow-300);
    box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
    .review-attached-img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: linear-gradient(180deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    color: var(--neutral-300);
    padding: 2rem 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-yellow);
}

footer p.font-semibold {
    color: white;
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--neutral-400);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow-400);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--yellow-400);
}

.footer-links a:hover::after {
    width: 100%;
}

@media (max-width: 480px) {
    .footer-links {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

/* ================================================
   UTILITIES & ANIMATIONS
   ================================================ */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--yellow-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yellow-500);
}

/* Selection */
::selection {
    background: var(--yellow-300);
    color: var(--neutral-900);
}

/* Focus states for accessibility */
a:focus-visible,
label:focus-visible {
    outline: 3px solid var(--yellow-400);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .cta-section,
    footer {
        display: none;
    }
}
