/* ==========================================================================
   ALCAREFAM XXXL - PREMIUM LANDING PAGE STYLES
   Color Palette: Deep Blues & Vivid Reds (As requested in main prompt)
   ========================================================================== */

:root {
    /* Main Color Palette - Strict adherence to Blue/Red scheme */
    --color-blue-900: #0a1128;
    --color-blue-800: #162447;
    --color-blue-700: #1f4068;
    --color-blue-600: #2563eb;
    --color-blue-100: #e0e7ff;
    --color-blue-50:  #f0f4f8;
    
    --color-red-700:  #b91c1c;
    --color-red-600:  #dc2626;
    --color-red-500:  #ef4444;
    --color-red-400:  #f87171;
    --color-red-100:  #fee2e2;
    --color-red-50:   #fef2f2;
    
    --color-white:    #ffffff;
    --color-gray-50:  #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-400: #94a3b8;
    --color-gray-600: #475569;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    --color-star:     #f59e0b; /* Amazon Star Gold */

    /* Gradients */
    --gradient-cta: linear-gradient(135deg, var(--color-red-500) 0%, var(--color-red-700) 100%);
    --gradient-card: linear-gradient(180deg, var(--color-white) 0%, var(--color-blue-50) 100%);
    --gradient-glow: radial-gradient(circle, rgba(220,38,38,0.15) 0%, rgba(255,255,255,0) 70%);

    /* Shadows - Multi-layered for depth */
    --shadow-soft: 0 4px 20px rgba(10, 17, 40, 0.05);
    --shadow-medium: 0 10px 30px rgba(10, 17, 40, 0.08);
    --shadow-heavy: 0 20px 40px rgba(10, 17, 40, 0.12);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.03);
    --shadow-cta: 0 10px 25px -5px rgba(220, 38, 38, 0.4), 0 8px 10px -6px rgba(220, 38, 38, 0.3);
    --shadow-cta-hover: 0 15px 35px -5px rgba(220, 38, 38, 0.5), 0 10px 15px -6px rgba(220, 38, 38, 0.4);

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-round: 9999px;
    
    --border-subtle: 1px solid var(--color-gray-200);
    --border-accent: 2px solid var(--color-red-600);

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography */
    --font-main: 'Inter', sans-serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-gray-50);
    color: var(--color-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: var(--color-red-100);
    color: var(--color-red-700);
}

/* ==========================================================================
   DECORATIVE BACKGROUND SHAPES
   ========================================================================== */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-blue-100) 0%, transparent 70%);
    opacity: 0.6;
}

.shape-2 {
    top: 40%;
    right: -15%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--color-red-50) 0%, transparent 70%);
    opacity: 0.8;
}

.shape-3 {
    bottom: -5%;
    left: 20%;
    width: 60vw;
    height: 30vw;
    background: radial-gradient(circle, var(--color-blue-50) 0%, transparent 70%);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--trans-normal);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-red-600);
    margin-bottom: 0.25rem;
}

.header-badge svg {
    width: 14px;
    height: 14px;
    animation: heartbeat 2s infinite;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-blue-900);
    letter-spacing: -0.02em;
}

.header-line {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-red-500), transparent);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ==========================================================================
   PRODUCT SECTION (HERO CARD)
   ========================================================================== */
.product-section {
    position: relative;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 10;
}

/* Gradient subtle border wrapper effect */
.product-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--color-blue-100), var(--color-red-100), var(--color-white));
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0.5;
}

.product-card-inner {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-white);
}

/* ==========================================================================
   GALLERY (CSS ONLY)
   ========================================================================== */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 6rem; /* Sticks while scrolling right col */
}

.gallery-radio {
    display: none;
}

.gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-inner), 0 0 0 1px var(--color-gray-100);
    padding: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Corner Decorators for Premium Feel */
.gallery-viewport .corner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--color-blue-100);
    opacity: 0.5;
    transition: var(--trans-normal);
}
.gallery-viewport:hover .corner {
    border-color: var(--color-blue-600);
    opacity: 0.8;
}
.corner.top-left { top: 1rem; left: 1rem; border-right: none; border-bottom: none; }
.corner.top-right { top: 1rem; right: 1rem; border-left: none; border-bottom: none; }
.corner.bottom-left { bottom: 1rem; left: 1rem; border-right: none; border-top: none; }
.corner.bottom-right { bottom: 1rem; right: 1rem; border-left: none; border-top: none; }

.viewport-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* CSS Logic for Gallery Switching */
#img-1:checked ~ .gallery-viewport .img-1,
#img-2:checked ~ .gallery-viewport .img-2,
#img-3:checked ~ .gallery-viewport .img-3,
#img-4:checked ~ .gallery-viewport .img-4 {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.thumb-label {
    cursor: pointer;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    padding: 4px;
    background: var(--color-white);
    border: 2px solid transparent;
    box-shadow: var(--shadow-soft);
    transition: var(--trans-normal);
    position: relative;
}

.thumb-inner {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-md) - 4px);
    overflow: hidden;
    background: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-inner img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: var(--trans-normal);
}

.thumb-label:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.thumb-label:hover .thumb-inner img {
    transform: scale(1.1);
}

/* CSS Logic for Active Thumbnails */
#img-1:checked ~ .gallery-thumbnails .thumb-1,
#img-2:checked ~ .gallery-thumbnails .thumb-2,
#img-3:checked ~ .gallery-thumbnails .thumb-3,
#img-4:checked ~ .gallery-thumbnails .thumb-4 {
    border-color: var(--color-red-600);
    box-shadow: 0 0 0 4px var(--color-red-50);
}

#img-1:checked ~ .gallery-thumbnails .thumb-1 .thumb-inner img,
#img-2:checked ~ .gallery-thumbnails .thumb-2 .thumb-inner img,
#img-3:checked ~ .gallery-thumbnails .thumb-3 .thumb-inner img,
#img-4:checked ~ .gallery-thumbnails .thumb-4 .thumb-inner img {
    opacity: 1;
}

/* ==========================================================================
   PRODUCT INFO (RIGHT COLUMN)
   ========================================================================== */
.product-info {
    display: flex;
    flex-direction: column;
}

.info-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-blue-900);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.main-title .highlight {
    color: var(--color-red-600);
    position: relative;
    display: inline-block;
}

.main-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--color-red-100);
    z-index: -1;
    border-radius: 4px;
}

.health-context {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-blue-50);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-blue-600);
    margin-bottom: 2.5rem;
}

.icon-pulse {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-blue-600);
    animation: soft-pulse 2s infinite;
}

.health-context p {
    font-size: 0.9rem;
    color: var(--color-blue-900);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Features List Styling */
.features-section {
    flex-grow: 1;
}

.features-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-red-500);
    border-radius: 2px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--trans-normal);
    position: relative;
    overflow: hidden;
}

/* Hover effect for list items */
.feature-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-blue-600);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
    border-color: var(--color-blue-100);
}

.feature-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-red-50);
    color: var(--color-red-600);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-text strong {
    font-size: 0.95rem;
    color: var(--color-blue-900);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.feature-text span {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ==========================================================================
   CALL TO ACTION SECTION
   ========================================================================== */
.cta-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 100px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
    animation: pulse-glow 3s infinite alternate;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--gradient-cta);
    padding: 1.25rem 3rem;
    border-radius: var(--radius-round);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-cta);
    transition: var(--trans-bounce);
    position: relative;
    overflow: hidden;
}

/* Shine effect on CTA */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-cta-hover);
}

.cta-button:hover::before {
    animation: shine 1.5s forwards;
}

.cta-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon svg {
    transform: translateX(4px);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-cta);
}

/* ==========================================================================
   REVIEWS SECTION (AMAZON STYLE UPGRADED)
   ========================================================================== */
.reviews-section {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.reviews-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-blue-900);
}

.reviews-line {
    width: 60px;
    height: 4px;
    background: var(--color-red-600);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-100);
    transition: var(--trans-normal);
    position: relative;
}

/* Left accent line on reviews */
.review-card::before {
    content: '';
    position: absolute;
    left: -1px; top: 1.5rem; bottom: 1.5rem;
    width: 3px;
    background: var(--color-blue-100);
    border-radius: 0 4px 4px 0;
    transition: var(--trans-normal);
}

.review-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-blue-100);
    transform: translateY(-2px);
}

.review-card:hover::before {
    background: var(--color-red-500);
}

.review-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex-grow: 1;
}

.review-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.review-author {
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: 1rem;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    fill: var(--color-gray-200);
}

.star.filled {
    fill: var(--color-star);
}

.review-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
}

.review-meta-mid {
    margin-bottom: 0.75rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.review-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.review-specs .divider {
    color: var(--color-gray-300);
}

.verified-purchase {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-red-700);
    background: var(--color-red-50);
    padding: 2px 8px;
    border-radius: 12px;
}

.verified-purchase svg {
    width: 12px;
    height: 12px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.review-attached-photo {
    margin-top: 1rem;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    transition: var(--trans-normal);
}

.review-attached-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-blue-400);
}

.review-attached-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-blue-900);
    color: var(--color-gray-400);
    padding: 4rem 1.5rem 2rem;
    position: relative;
    margin-top: 4rem;
}

.footer-top-border {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue-600), var(--color-red-600), var(--color-blue-600));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--color-gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--trans-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-red-400);
    transition: width var(--trans-normal);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes shine {
    100% { left: 200%; }
}

/* ==========================================================================
   MEDIA QUERIES (MOBILE-FIRST ADAPTATION)
   ========================================================================== */

/* Tablet & Smaller Desktop (Max 1024px) */
@media (max-width: 1024px) {
    .product-card-inner {
        gap: 2rem;
        padding: 2rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    .product-card-inner {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .gallery-container {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .gallery-viewport {
        padding: 1rem;
    }
    
    .gallery-viewport .corner {
        width: 15px; height: 15px;
    }

    .thumb-label {
        width: 65px; height: 65px;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .health-context {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .reviews-section {
        padding: 1.5rem;
    }

    .review-card {
        flex-direction: column;
        gap: 1rem;
    }

    .review-avatar {
        width: 40px; height: 40px;
    }
    
    .review-card::before {
        display: none; /* remove left border on mobile for space */
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Small Mobile (Max 375px) */
@media (max-width: 375px) {
    .main-wrapper {
        padding: 1.5rem 1rem;
    }

    .product-card-inner {
        padding: 1rem;
    }

    .gallery-thumbnails {
        gap: 0.5rem;
    }

    .thumb-label {
        width: 55px; height: 55px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .features-title {
        font-size: 1.1rem;
    }

    .feature-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-icon {
        margin-bottom: 0.5rem;
    }
}