/* Custom CSS Variables - HEALTH Theme */
:root {
    --supp-bg: #f9fdfa; /* Light clean natural background */
    --supp-surface: #ffffff;
    --supp-surface-alt: #f0f7f2; /* Slightly darker for reviews - Preset B */
    --supp-tone: #2980b9; /* Calming blue accent */
    --supp-tone-hover: #1c5980;
    --supp-ink: #2c3e50; /* Softer dark text */
    --supp-gradient: linear-gradient(135deg, #74ebd5 0%, #9face6 100%); /* Fresh health gradient */
    
    /* Randomized Visual Parameters */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 12px; /* Soft radius */
    --shadow-depth: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04); /* Raised shadow */
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout utilities */
.now-max-width {
    max-width: 1200px;
}

/* Header */
.now-main-heading {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
}

@media (min-width: 768px) {
    .now-main-heading {
        font-size: 2.25rem;
    }
}

/* Pure CSS Gallery - Preset B (Thumbnails on the side for desktop) */
.now-hidden-input {
    display: none;
}

.now-gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .now-gallery-layout {
        flex-direction: row-reverse; /* Main image right, thumbs left */
        align-items: flex-start;
    }
}

/* Main Image Area */
.now-main-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex: 1;
}

.now-slide-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}

/* Thumbnails */
.now-thumb-strip {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .now-thumb-strip {
        flex-direction: column;
        width: 90px;
        flex-shrink: 0;
        padding-bottom: 0;
        overflow-y: auto;
        max-height: 500px;
    }
}

.now-thumb-label {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--supp-surface);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .now-thumb-label {
        width: 80px;
        height: 80px;
    }
}

.now-thumb-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.now-thumb-label:hover {
    border-color: rgba(41, 128, 185, 0.4); /* subtle hover hint */
}

/* Gallery Logic (Linking inputs to slides and thumbs) */
#now-pic-1:checked ~ .now-gallery-layout .now-main-frame .now-img-1,
#now-pic-2:checked ~ .now-gallery-layout .now-main-frame .now-img-2,
#now-pic-3:checked ~ .now-gallery-layout .now-main-frame .now-img-3,
#now-pic-4:checked ~ .now-gallery-layout .now-main-frame .now-img-4 {
    opacity: 1;
    visibility: visible;
}

#now-pic-1:checked ~ .now-gallery-layout .now-thumb-strip label[for="now-pic-1"],
#now-pic-2:checked ~ .now-gallery-layout .now-thumb-strip label[for="now-pic-2"],
#now-pic-3:checked ~ .now-gallery-layout .now-thumb-strip label[for="now-pic-3"],
#now-pic-4:checked ~ .now-gallery-layout .now-thumb-strip label[for="now-pic-4"] {
    border-color: var(--supp-tone);
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
}

/* Headings */
.now-sub-heading {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .now-sub-heading {
        font-size: 2rem;
    }
}

/* CTA Button Interaction */
.now-purchase-link {
    text-decoration: none;
    display: inline-block;
}

.now-purchase-link:hover {
    background-color: var(--supp-tone-hover) !important;
}

/* Accessibility focus styles for inputs (hidden but label reachable if clicked) */
.now-thumb-label:focus-visible {
    outline: 2px solid var(--supp-tone);
    outline-offset: 2px;
}