@charset "UTF-8";

/* ==========================================================================
   NATIVE ADVERTORIAL THEME - PROSTATE HEALTH TEA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (DESIGN TOKENS)
   -------------------------------------------------------------------------- 
*/
:root {
    /* Color Palette - Primary Deep Wine/Rose */
    --color-primary-900: #4a0c20;
    --color-primary-800: #701a35;
    --color-primary-700: #9f1239;
    --color-primary-600: #e11d48;
    
    /* Color Palette - Soft Rose Backgrounds */
    --color-surface-100: #faf5f6;
    --color-surface-200: #fdf2f4;
    --color-surface-300: #fce7eb;
    
    /* Color Palette - Neutrals */
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;
    --color-text-light: #9ca3af;
    
    /* Shadows - Soft & Ambient */
    --shadow-ambient-sm: 0 4px 15px rgba(112, 26, 53, 0.03);
    --shadow-ambient-md: 0 10px 40px -10px rgba(112, 26, 53, 0.08);
    --shadow-ambient-lg: 0 20px 50px -15px rgba(112, 26, 53, 0.15);
    --shadow-glow: 0 0 30px rgba(225, 29, 72, 0.1);
    
    /* Border Radii */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem;
    --radius-full: 9999px;
    
    /* Transitions & Timings */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Glassmorphism Blur */
    --blur-sm: blur(4px);
    --blur-md: blur(12px);
    --blur-lg: blur(24px);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ACCESSIBILITY
   -------------------------------------------------------------------------- 
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-surface-100);
    color: var(--color-text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessible Focus States */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px dashed var(--color-primary-600);
    outline-offset: 4px;
    transition: outline-offset 0.2s ease;
}

/* Custom Text Selection */
::selection {
    background-color: rgba(225, 29, 72, 0.2);
    color: var(--color-primary-900);
}

::-moz-selection {
    background-color: rgba(225, 29, 72, 0.2);
    color: var(--color-primary-900);
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface-100);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-surface-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-surface-100);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #f8c3cd;
}

/* --------------------------------------------------------------------------
   3. ABSTRACT BACKGROUNDS & SHAPES
   -------------------------------------------------------------------------- 
*/
.bg-shape {
    position: fixed;
    border-radius: var(--radius-full);
    filter: var(--blur-lg);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(253, 242, 244, 0.8) 0%, rgba(253, 242, 244, 0) 70%);
    top: -100px;
    left: -200px;
    animation: blob-float 20s infinite ease-in-out alternate;
}

.bg-shape-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(243, 232, 255, 0.6) 0%, rgba(243, 232, 255, 0) 70%);
    bottom: -200px;
    right: -100px;
    animation: blob-float 25s infinite ease-in-out alternate-reverse;
}

.bg-shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 228, 230, 0.5) 0%, rgba(255, 228, 230, 0) 70%);
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation: blob-pulse 15s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM COMPONENTS
   -------------------------------------------------------------------------- 
*/
.glass-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        var(--shadow-ambient-md);
    position: relative;
    z-index: 10;
}

/* Inner glow effects for glass card */
.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.card-glow-top {
    top: -50px;
    left: -50px;
    background: rgba(255, 255, 255, 0.9);
}

.card-glow-bottom {
    bottom: -50px;
    right: -50px;
    background: rgba(253, 242, 244, 0.9);
}

/* --------------------------------------------------------------------------
   5. PURE CSS GALLERY LOGIC (NO JS)
   -------------------------------------------------------------------------- 
*/
.gallery-interaction-area {
    min-height: 400px;
}

.gallery-main-view {
    border: 1px solid var(--color-surface-300);
    transition: box-shadow var(--transition-normal);
}

.gallery-main-view:hover {
    box-shadow: var(--shadow-ambient-lg);
}

.gallery-slide {
    will-change: transform, opacity;
}

/* Logic for mapping Radio Inputs to Slides */
#gallery-img-1:checked ~ .gallery-interaction-area .slide-1,
#gallery-img-2:checked ~ .gallery-interaction-area .slide-2,
#gallery-img-3:checked ~ .gallery-interaction-area .slide-3,
#gallery-img-4:checked ~ .gallery-interaction-area .slide-4 {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* Inactive slides styling */
.gallery-interaction-area .gallery-slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97) translateY(10px);
    transition: 
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.5s;
}

/* Gallery Image Zoom Hover Effect */
.gallery-image {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
}

.gallery-slide:hover .gallery-image {
    transform: scale(1.05) translateY(-5px);
}

/* Thumbnail Styling */
.thumb-btn {
    transition: 
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.thumb-btn img {
    transition: filter var(--transition-fast);
    filter: grayscale(20%) opacity(0.8);
}

.thumb-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-ambient-md);
}

.thumb-btn:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Active Thumbnail Mapping */
#gallery-img-1:checked ~ .gallery-interaction-area .thumb-1,
#gallery-img-2:checked ~ .gallery-interaction-area .thumb-2,
#gallery-img-3:checked ~ .gallery-interaction-area .thumb-3,
#gallery-img-4:checked ~ .gallery-interaction-area .thumb-4 {
    border-color: var(--color-primary-800);
    transform: translateY(-3px);
    box-shadow: var(--shadow-ambient-md);
}

#gallery-img-1:checked ~ .gallery-interaction-area .thumb-1 img,
#gallery-img-2:checked ~ .gallery-interaction-area .thumb-2 img,
#gallery-img-3:checked ~ .gallery-interaction-area .thumb-3 img,
#gallery-img-4:checked ~ .gallery-interaction-area .thumb-4 img {
    filter: grayscale(0%) opacity(1);
}

/* Active Thumbnail Overlay (Subtle) */
#gallery-img-1:checked ~ .gallery-interaction-area .thumb-1 .thumb-overlay,
#gallery-img-2:checked ~ .gallery-interaction-area .thumb-2 .thumb-overlay,
#gallery-img-3:checked ~ .gallery-interaction-area .thumb-3 .thumb-overlay,
#gallery-img-4:checked ~ .gallery-interaction-area .thumb-4 .thumb-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(112, 26, 53, 0.1) 0%, transparent 100%);
}

/* Hide Loader when any slide is active (Hack using general sibling combinator) */
input[type="radio"]:checked ~ .gallery-interaction-area .gallery-loader {
    display: none;
}

/* --------------------------------------------------------------------------
   6. EDITORIAL TYPOGRAPHY & LISTS
   -------------------------------------------------------------------------- 
*/
.product-title {
    background: linear-gradient(135deg, #111827 0%, var(--color-primary-900) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom Editorial Bullet Points */
.editorial-feature-item {
    position: relative;
    transition: transform var(--transition-fast);
}

.editorial-feature-item::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-surface-300), transparent);
    z-index: -1;
}

.editorial-feature-item:last-child::before {
    display: none;
}

.editorial-feature-item:hover {
    transform: translateX(4px);
}

.feature-marker {
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1);
}

.editorial-feature-item:hover .feature-marker {
    box-shadow: 0 0 0 6px rgba(225, 29, 72, 0.15);
}

/* --------------------------------------------------------------------------
   7. CALL TO ACTION (CTA) BUTTON ADVANCED STYLING
   -------------------------------------------------------------------------- 
*/
.cta-premium-shimmer {
    --btn-wine: #701a35;
    --btn-wine-dark: #4a0c20;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 28rem; /* 448px */
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--btn-wine) 0%, var(--btn-wine-dark) 100%);
    box-shadow: 0 10px 25px -5px rgba(112, 26, 53, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Бегущий блик */
.cta-premium-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: none;
}

/* Анимация при наведении */
.cta-premium-shimmer:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(112, 26, 53, 0.5);
}

.cta-premium-shimmer:hover::before {
    left: 100%;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект нажатия */
.cta-premium-shimmer:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 5px 15px -5px rgba(112, 26, 53, 0.4);
}

/* --------------------------------------------------------------------------
   8. REVIEWS SECTION
   -------------------------------------------------------------------------- 
*/
.review-card {
    will-change: transform;
}

.review-card:hover .avatar-ring {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--color-primary-600);
}

.avatar-ring {
    transition: all 0.5s ease;
}

.review-quote-icon {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.review-card:hover .review-quote-icon {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.08;
}

/* Review Attachments Hover Effects */
.attachment-item {
    will-change: transform;
}

.attachment-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color var(--transition-fast);
    pointer-events: none;
}

.attachment-item:hover::after {
    border-color: var(--color-primary-600);
}

/* --------------------------------------------------------------------------
   9. FOOTER STYLING
   -------------------------------------------------------------------------- 
*/
.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary-600);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --------------------------------------------------------------------------
   10. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- 
*/
@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes blob-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered fade-in to elements (if JS was used, but doing it statically here) */
.glass-container {
    animation: fade-in-up 0.8s ease-out forwards;
}

.reviews-section {
    animation: fade-in-up 1s ease-out 0.2s forwards;
    opacity: 0; /* Ensures it stays hidden until animation */
}

/* --------------------------------------------------------------------------
   11. MEDIA QUERIES & RESPONSIVE TWEAKS
   -------------------------------------------------------------------------- 
*/

/* Mobile Small (xs) */
@media (max-width: 479px) {
    :root {
        --radius-xl: 1.5rem;
    }
    
    .glass-container {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .review-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .gallery-interaction-area {
        min-height: 300px;
    }
}

/* Tablet (md) */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-info-wrapper {
        padding-top: 2rem;
    }
}

/* Desktop Large (xl) */
@media (min-width: 1280px) {
    .glass-container {
        padding: 4rem;
    }
    
    .product-title {
        font-size: 3.5rem;
    }
}

/* --------------------------------------------------------------------------
   12. ACCESSIBILITY OVERRIDES (PREFERS-REDUCED-MOTION)
   -------------------------------------------------------------------------- 
*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bg-shape {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   13. DARK MODE FALLBACK (Variables definition for future scaling)
   -------------------------------------------------------------------------- 
   Although forced light-mode for advertorial, setting up structure.
*/
@media (prefers-color-scheme: dark) {
    /* If dark mode is explicitly requested by OS, we still maintain the light layout 
       to preserve the "White Page" advertorial feel, but we lower overall brightness 
       slightly to prevent eye strain. */
    body {
        filter: brightness(0.95) contrast(1.02);
    }
}

/* --------------------------------------------------------------------------
   14. PRINT STYLES
   -------------------------------------------------------------------------- 
*/
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .bg-shape,
    .cta-section,
    .gallery-thumbs,
    .footer-nav {
        display: none !important;
    }
    
    .glass-container,
    .review-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: #fff !important;
        page-break-inside: avoid;
    }
    
    .gallery-main-view {
        border: none !important;
        height: auto !important;
    }
    
    .gallery-slide {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
    }
    
    .gallery-slide.slide-1 {
        display: block !important;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* --------------------------------------------------------------------------
   15. MICRO-INTERACTIONS & UTILITIES
   -------------------------------------------------------------------------- 
*/
.smooth-scroll {
    scroll-behavior: smooth;
}

.text-balance {
    text-wrap: balance;
}

/* Custom Tooltip implementation using pseudo-elements */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: var(--color-primary-900);
    color: white;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    box-shadow: var(--shadow-ambient-sm);
}

[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-primary-900) transparent transparent transparent;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* End of CSS File */