:root {
    --kidneytea-bg: #F5F7F2;
    --kidneytea-surface: #FFFFFF;
    --kidneytea-tone: #4A6B3C;
    --kidneytea-tone-hover: #37522B;
    --kidneytea-ink: #2C2E29;
    --kidneytea-border: #D8DDD1;
    --kidneytea-gradient: linear-gradient(135deg, #4A6B3C 0%, #688B58 100%);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    background-color: var(--kidneytea-bg);
    color: var(--kidneytea-ink);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.product-heading-font {
    font-family: var(--font-display);
    text-transform: uppercase;
}

/* Shape Details */
.soft-edges-effect {
    border-radius: 16px;
}

/* Depth & Shadows */
.deep-shadow-effect {
    box-shadow: 0 20px 40px -10px rgba(74, 107, 60, 0.1), 0 10px 20px -8px rgba(0, 0, 0, 0.08);
}

/* CTA Custom Styling - Pill Shape + Hover Shadow */
.amazon-purchase-link {
    display: inline-block;
    border-radius: 999px; /* Pill shape as per Preset A requirement */
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(74, 107, 60, 0.3);
}

.amazon-purchase-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(74, 107, 60, 0.4);
    background: var(--kidneytea-tone-hover) !important; /* fallback to darker color on hover */
}

/* Review Left Accent Box - Preset A */
.echo-entry {
    border-left: 4px solid var(--kidneytea-tone);
}

/* Gallery CSS Only Logic */
.leaf-cam-toggle {
    display: none;
}

.leaf-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--kidneytea-bg);
}

.leaf-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

/* Active Slide Visibility */
#leaf-view-1:checked ~ .leaf-stage .leaf-item-1,
#leaf-view-2:checked ~ .leaf-stage .leaf-item-2,
#leaf-view-3:checked ~ .leaf-stage .leaf-item-3,
#leaf-view-4:checked ~ .leaf-stage .leaf-item-4 {
    opacity: 1;
    z-index: 2;
}

/* Thumbnails Strip - Bottom of Gallery */
.leaf-thumb-strip {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.leaf-thumb-btn {
    width: 64px;
    height: 64px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--kidneytea-surface);
}

.leaf-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.leaf-thumb-btn:hover img {
    opacity: 1;
}

/* Active Thumbnail Highlight */
#leaf-view-1:checked ~ .leaf-thumb-strip .leaf-tbtn-1,
#leaf-view-2:checked ~ .leaf-thumb-strip .leaf-tbtn-2,
#leaf-view-3:checked ~ .leaf-thumb-strip .leaf-tbtn-3,
#leaf-view-4:checked ~ .leaf-thumb-strip .leaf-tbtn-4 {
    border-color: var(--kidneytea-tone);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#leaf-view-1:checked ~ .leaf-thumb-strip .leaf-tbtn-1 img,
#leaf-view-2:checked ~ .leaf-thumb-strip .leaf-tbtn-2 img,
#leaf-view-3:checked ~ .leaf-thumb-strip .leaf-tbtn-3 img,
#leaf-view-4:checked ~ .leaf-thumb-strip .leaf-tbtn-4 img {
    opacity: 1;
}

/* Responsive tweaks */
@media (min-width: 768px) {
    .leaf-thumb-btn {
        width: 80px;
        height: 80px;
    }
}