/**
 * Health King - Custom Visual Design Engine Stylesheet
 * Architectural Approach: Complete Custom Property Scoping, Complex Layer Shadows, No-JS Transforms
 * Colors Theme: Sophisticated Blue Spectrum (Strict Core Blueprint Compliance)
 */

/* -------------------------------------------------------------------------- */
/* 1. CUSTOM PROPERTIES VARIABLES CORE                                        */
/* -------------------------------------------------------------------------- */
:root {
    /* Main Theme Spectrum Definition (Pure Sophisticated Blues) */
    --theme-primary: #1e40af;          /* Core Blue Deep */
    --theme-primary-hover: #1d4ed8;    /* Interactive Accent Blue */
    --theme-primary-dark: #1e3a8a;     /* Ultra Dark Navy Accent */
    --theme-primary-light: #f0f7ff;    /* Pure Light Translucent Tint Blue */
    --theme-accent: #3b82f6;           /* Vivid Electric Blue Highlighting */
    --theme-accent-glow: rgba(59, 130, 246, 0.08);
    
    /* Neutrals Scales */
    --theme-bg-body: #f8fafc;
    --theme-bg-card: #ffffff;
    --theme-text-main: #0f172a;
    --theme-text-muted: #475569;
    --theme-text-light: #94a3b8;
    
    /* Functional Parameters */
    --gold-stars: #f59e0b;
    --verified-badge: #c2410c;
    --border-color-soft: rgba(30, 64, 175, 0.06);
    
    /* Structural Rounding Parameters */
    --br-xl: 28px;
    --br-lg: 18px;
    --br-md: 12px;
    --br-sm: 6px;
    
    /* Dynamic Interaction Transitions */
    --curve-io: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s ease-out;

    /* Complex Multi-layered Shadows Architecture */
    --elevation-1: 0 2px 4px rgba(15, 23, 42, 0.02);
    --elevation-2: 0 8px 20px -4px rgba(30, 64, 175, 0.04), 0 4px 12px -2px rgba(30, 64, 175, 0.02);
    --elevation-3: 0 30px 60px -15px rgba(30, 64, 175, 0.08), 0 10px 25px -5px rgba(30, 64, 175, 0.04);
    --elevation-glow: 0 0 50px 0 rgba(59, 130, 246, 0.15);
}

/* -------------------------------------------------------------------------- */
/* 2. BASELINE NORMALIZATION & CANVAS OVERRIDES                               */
/* -------------------------------------------------------------------------- */
body.custom-body-layout {
    font-family: 'Inter', sans-serif;
    background-color: var(--theme-bg-body);
    color: var(--theme-text-main);
    overflow-x: hidden;
    position: relative;
}

p {
    line-height: 1.65;
}

/* -------------------------------------------------------------------------- */
/* 3. AMBIENT BACKGROUND GLOW ENGINE                                          */
/* -------------------------------------------------------------------------- */
.ambient-glow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.6;
    mix-blend-mode: multiply;
}

.glow-sphere-1 {
    width: 60vw;
    height: 60vw;
    top: -15vw;
    left: -20vw;
    background: radial-gradient(circle, var(--theme-accent-glow) 0%, rgba(255,255,255,0) 70%);
}

.glow-sphere-2 {
    width: 50vw;
    height: 50vw;
    top: 35vh;
    right: -15vw;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.03) 0%, rgba(255,255,255,0) 70%);
}

.glow-sphere-3 {
    width: 40vw;
    height: 40vw;
    bottom: 10vh;
    left: -10vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(255,255,255,0) 70%);
}

/* -------------------------------------------------------------------------- */
/* 4. MAIN STICKY HEADER MODULE                                              */
/* -------------------------------------------------------------------------- */
.main-site-header {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--elevation-1);
    transition: var(--transition-premium);
}

.header-blur-backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.header-logo-text {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.header-bottom-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1) 20%, rgba(30, 64, 175, 0.1) 80%, transparent);
}

/* -------------------------------------------------------------------------- */
/* 5. PRODUCT HERO SHOWCASE CARD CONTAINER                                    */
/* -------------------------------------------------------------------------- */
.product-hero-showcase {
    perspective: 1000px;
}

.showcase-inner-card {
    background-color: var(--theme-bg-card);
    border-radius: var(--br-xl);
    box-shadow: var(--elevation-3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    transition: var(--transition-premium);
}

/* Elegant geometric structural accent at upper card corner */
.showcase-inner-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 120px;
    height: 120px;
    border-top: 3px solid var(--theme-accent);
    border-left: 3px solid var(--theme-accent);
    border-radius: var(--br-xl) 0 0 0;
    pointer-events: none;
    opacity: 0.4;
}

/* -------------------------------------------------------------------------- */
/* 6. ADVANCED PURE CSS IMAGE GALLERY MECHANICS                               */
/* -------------------------------------------------------------------------- */
.gallery-wrapper {
    position: relative;
    width: 100%;
}

.main-display-frame {
    position: relative;
    background-color: #ffffff;
    border-radius: var(--br-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--elevation-2);
    overflow: hidden;
}

.slider-translation-film {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.individual-slide-node {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
}

.image-zoom-contain {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image-element {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.8s var(--curve-io);
}

.individual-slide-node:hover .gallery-image-element {
    transform: scale(1.04);
}

/* Slider Matrix Transformation Bindings mapped into Input Check State */
#gallery-state-1:checked ~ .main-display-frame .slider-translation-film { transform: translateX(0%); }
#gallery-state-2:checked ~ .main-display-frame .slider-translation-film { transform: translateX(-25%); }
#gallery-state-3:checked ~ .main-display-frame .slider-translation-film { transform: translateX(-50%); }
#gallery-state-4:checked ~ .main-display-frame .slider-translation-film { transform: translateX(-75%); }

/* Frame Overlay Accents */
.frame-decorative-border {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(30, 64, 175, 0.03);
    border-radius: var(--br-lg);
    pointer-events: none;
}

.badge-premium-authentic {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    box-shadow: var(--elevation-1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Thumbnail Navigation Active Highlights Scoping */
.thumbnail-navigation-card {
    position: relative;
    border: 2px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--br-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-premium);
    background-color: var(--theme-bg-card);
}

.thumbnail-navigation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--elevation-2);
    border-color: var(--theme-accent);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
    transition: var(--transition-premium);
}

#gallery-state-1:checked ~ .thumbnail-control-grid label[for="gallery-state-1"],
#gallery-state-2:checked ~ .thumbnail-control-grid label[for="gallery-state-2"],
#gallery-state-3:checked ~ .thumbnail-control-grid label[for="gallery-state-3"],
#gallery-state-4:checked ~ .thumbnail-control-grid label[for="gallery-state-4"] {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
    transform: scale(1.02);
}

/* -------------------------------------------------------------------------- */
/* 7. TEXT TYPOGRAPHY & IDENTITY ARCHITECTURE                                 */
/* -------------------------------------------------------------------------- */
.product-main-h1 {
    color: var(--theme-text-main);
    line-height: 1.15;
}

.title-separator-line {
    height: 4px;
    width: 65px;
    background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-accent) 100%);
    border-radius: 50px;
}

/* Content Box 1: About Structural Block */
.content-pill-box.content-block-about {
    background-color: var(--theme-primary-light);
    border-left: 5px solid var(--theme-primary);
    border-radius: 0 var(--br-md) var(--br-md) 0;
    box-shadow: var(--elevation-1);
}

.content-header-label {
    color: var(--theme-primary-dark);
}

/* Content Box 2: Temperature Utility */
.temperature-alert-card {
    background-color: #ffffff;
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--br-md);
    box-shadow: var(--elevation-1);
}

.temperature-icon-frame {
    width: 36px;
    height: 36px;
    background-color: var(--theme-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.temperature-text-frame {
    color: var(--theme-text-main);
}

/* Content Box 4: Keyword Localization Framework */
.mandatory-keywords-wrapper-node {
    background: linear-gradient(135deg, #ffffff 0%, var(--theme-primary-light) 100%);
    border: 1px solid rgba(30, 64, 175, 0.08);
    position: relative;
    box-shadow: var(--elevation-1);
    overflow: hidden;
}

/* Background watermark effect */
.mandatory-keywords-wrapper-node::after {
    content: '✓';
    position: absolute;
    bottom: -20px;
    right: -5px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(30, 64, 175, 0.02);
    line-height: 1;
    pointer-events: none;
}

.keyword-item-emphasis {
    font-weight: 700;
    color: var(--theme-primary-dark);
    position: relative;
    display: inline-block;
    padding: 0 2px;
}

.keyword-item-emphasis::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(59, 130, 246, 0.15);
    z-index: -1;
}

/* -------------------------------------------------------------------------- */
/* 8. CTA LUXURY CONVERSION BLOCK                                             */
/* -------------------------------------------------------------------------- */
.cta-outer-glow-container {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
    border-radius: var(--br-xl);
    box-shadow: var(--elevation-3), var(--elevation-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Graphical fluid shapes inside button wrapper */
.cta-outer-glow-container::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.cta-badge-wrapper {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.cta-badge-text {
    color: #e2e8f0;
}

.grand-action-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px -5px rgba(29, 78, 216, 0.5), 0 0 0 0 rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
    animation: pulse-glow-sequence 3s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reflection shine line effect sliding across button */
.grand-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
}

.grand-action-button:hover::before {
    left: 200%;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.grand-action-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -6px rgba(29, 78, 216, 0.6), 0 0 25px 0 rgba(37, 99, 235, 0.2);
    filter: brightness(1.03);
}

.grand-action-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -4px rgba(29, 78, 216, 0.5);
}

@keyframes pulse-glow-sequence {
    0% { box-shadow: 0 12px 30px -5px rgba(29, 78, 216, 0.5), 0 0 0 0 rgba(37, 99, 235, 0.3); }
    60% { box-shadow: 0 12px 30px -5px rgba(29, 78, 216, 0.5), 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 12px 30px -5px rgba(29, 78, 216, 0.5), 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* -------------------------------------------------------------------------- */
/* 9. AMAZON STYLE VERIFIED REVIEWS MATRIX                                    */
/* -------------------------------------------------------------------------- */
.social-proof-reviews-matrix {
    border-top: 1px solid var(--border-color-soft);
    padding-top: 2rem;
}

.reviews-section-title {
    color: var(--theme-text-main);
}

.stars-gold {
    color: var(--gold-stars);
}

.vertical-reviews-linear-stack {
    display: flex;
    flex-direction: column;
}

.amazon-style-review-card {
    background-color: var(--theme-bg-card);
    border: 1px solid var(--border-color-soft);
    border-radius: var(--br-lg);
    box-shadow: var(--elevation-1);
    position: relative;
}

.amazon-style-review-card:hover {
    transform: translateX(6px);
    box-shadow: var(--elevation-2);
    border-color: rgba(30, 64, 175, 0.12);
}

.author-avatar-frame {
    border: 2px solid var(--theme-primary-light);
    box-shadow: var(--elevation-1);
    background-color: #f1f5f9;
}

.stars-indicator-gold {
    color: var(--gold-stars);
    letter-spacing: 1px;
}

.verified-purchase-badge-container {
    color: var(--verified-badge);
}

.badge-icon-check {
    font-weight: 900;
}

/* -------------------------------------------------------------------------- */
/* 10. DEEP HIGH-END footer MODULE                                           */
/* -------------------------------------------------------------------------- */
.site-master-footer {
    background-color: #0b0f19;
    position: relative;
}

.site-master-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-primary-dark) 0%, var(--theme-accent) 50%, var(--theme-primary-dark) 100%);
}

.footer-small-divider {
    height: 2px;
    width: 40px;
    background-color: var(--theme-primary);
    border-radius: 10px;
}

.custom-footer-link {
    position: relative;
}

.custom-footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: var(--transition-snappy);
}

.custom-footer-link:hover {
    color: #ffffff;
}

.custom-footer-link:hover::after {
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/* 11. ADAPTIVE MEDIA QUERIES MATRIX (MOBILE-FIRST SYSTEM)                    */
/* -------------------------------------------------------------------------- */

/* Small Smartphone Optimization Fixes (320px - 360px) */
@media (max-width: 360px) {
    .showcase-inner-card {
        padding: 1rem !important;
    }
    .individual-slide-node {
        padding: 0.75rem !important;
    }
    .grand-action-button {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* Medium Mobile Viewports (Up to 767px Desktop Borderline) */
@media (max-width: 767px) {
    /* Strict Guideline Enforcement: Image goes upper, content goes lower */
    .product-hero-showcase .grid {
        display: flex;
        flex-direction: column;
    }
    .gallery-wrapper {
        margin-bottom: 0.5rem;
    }
    .amazon-style-review-card:hover {
        transform: translateY(2px); /* No horizontal shift layout transformation on small touch devices */
    }
}

/* Tablet Layout Optimization Adaptations (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-hero-showcase .grid {
        grid-template-cols: repeat(1, minmax(0, 1fr)) !important;
    }
    .gallery-wrapper {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Desktop Master Framework Enhancements (1024px and Beyond) */
@media (min-width: 1024px) {
    .showcase-inner-card {
        transform: translateY(0);
    }
    .showcase-inner-card:hover {
        box-shadow: 0 40px 80px -20px rgba(30, 64, 175, 0.12);
    }
}

/* Focus and Accessibility Outlines Blueprint */
a:focus-visible, button:focus-visible, label:focus-visible {
    outline: 3px solid var(--theme-accent);
    outline-offset: 3px;
}