/* assets/css/style.css */

/* ... (Tailwind Preflight - запазвам го както е, съкратен тук за прегледност) ... */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
::before, ::after { --tw-content: ''; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: ui-sans-serif, system-ui, sans-serif; }
body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; cursor: pointer; }
img, video { max-width: 100%; height: auto; display: block; vertical-align: middle; }
[hidden] { display: none; }

/* ========================================= */
/* SANGRIA / RED VELVET THEME STYLES        */
/* ========================================= */

/* 1. Глобални променливи (Цветова палитра - Sangria Passion) */
:root {
    --color-bg-page: #fff0f1;       /* Sangria 50 (Creamy Pink) */
    --color-bg-card: #ffffff;       
    --color-bg-accent: #ffe4e6;     /* Sangria 100 */
    --color-text-main: #1c1917;     /* Stone 900 */
    --color-primary: #881337;       /* Sangria 900 (Deep Wine) */
    --color-primary-light: #e11d48; /* Sangria 600 (Vibrant Red) */
    --color-secondary: #57534e;     /* Stone 600 */
    --color-cta: #be123c;           /* Sangria 700 (Button Color) */
    --color-border: #e7e5e4;        /* Stone 200 */
    --color-gold: #f59e0b;          /* Luxury Gold Accent */
}

/* 2. Основни настройки */
body {
    background-color: var(--color-bg-page) !important;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif-font {
    font-family: 'Playfair Display', serif; 
}

/* 3. Utility Classes Overrides */
.bg-blush {
    background-color: var(--color-bg-accent) !important;
    border-color: #fda4af !important;
    color: var(--color-primary);
}

.text-accent-dark {
    color: var(--color-primary) !important;
}

.border-accent-dark {
    border-color: var(--color-primary) !important;
}

/* 4. Ценови Карти (Pricing Cards) - Sangria Style */

.pricing-card {
    background-color: #ffffff;
    /* Бордо рамка по подразбиране */
    border: 2px solid #e11d48 !important; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    position: relative;
    overflow: visible;
    cursor: pointer;
    z-index: 1;
}

/* СЪСТОЯНИЕ: ИЗБРАНА КАРТА */
.pricing-card.selected {
    /* Нежен червен фон */
    background-color: #fff0f1 !important; 
    /* Тъмна бордо рамка за контраст */
    border-color: #881337 !important;
    transform: scale(1.03);
    box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.25);
    z-index: 10;
}

.pricing-card:not(.selected):hover {
    background-color: #fff0f1; 
    transform: translateY(-2px);
}

/* 5. Плаващи елементи (Floating Buttons) */

.floating-bubble,
.floating-bubble:visited,
.floating-bubble:link {
    background-color: #881337 !important; /* Sangria 900 */
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 80px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(136, 19, 55, 0.5);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none !important;
    gap: 30px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, background-color 0.2s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-bubble:hover {
    background-color: #4c0519 !important; /* Sangria 950 (Darker on hover) */
    border-color: #ffe4e6 !important;
    transform: scale(1.02);
}

.floating-viewers-bubble {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 49;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 6. Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Пулсиращо червено за бутона "Купи" */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.7); } /* Sangria 700 base */
    70% { box-shadow: 0 0 0 15px rgba(190, 18, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(190, 18, 60, 0); }
}

.animate-pulse-custom {
    animation: pulse-red 2s infinite;
}

/* 7. Marquee (Бягаща лента) */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content; 
    animation: scroll 40s linear infinite;
}
.marquee-track span { padding-right: 4rem; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 8. Modals (Модални прозорци) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(76, 5, 25, 0.8); /* Sangria 950 semi-transparent */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}

/* 9. Upsell елементи */
.upsell-option {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.upsell-option:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary-light);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 10. FAQ Accordion */
.faq-question {
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: #fff0f1; /* Light Pink Hover */
}
.faq-answer {
    border-top: 1px solid var(--color-border);
}

/* 11. Cards (Radio Options styling if used) */
.card-option {
    position: relative;
    border: 2px solid transparent;
}
.card-option.selected {
    border-color: var(--color-primary);
    background-color: #fff0f1;
}
.card-option.selected::after {
    content: '✔';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================= */
/* 📱 MOBILE FIXES & Z-INDEX                                 */
/* ========================================================= */

#cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important; 
    padding-bottom: env(safe-area-inset-bottom) !important; 
    margin-bottom: 0 !important;
}

@media (max-width: 640px) {
    /* Mobile Floating Button */
    .floating-bubble {
        position: fixed !important;
        bottom: 15px !important; 
        left: 15px !important;
        right: 15px !important;
        width: auto !important; 
        border-radius: 50px !important; 
        padding: 12px 10px !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        animation: none !important; 
        z-index: 9999 !important; 
        margin-bottom: env(safe-area-inset-bottom) !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(136, 19, 55, 0.3) !important;
        border: 2px solid var(--color-primary) !important;
        color: var(--color-primary) !important; /* Text becomes red on mobile */
    }
    
    .floating-bubble *,
    .floating-bubble span,
    .floating-bubble div {
        color: #881337 !important;
    }

    .floating-viewers-bubble {
        bottom: 80px !important; 
        left: 10px !important;
        z-index: 9998 !important; 
    }

    h1 {
        font-size: 2rem !important; 
        line-height: 1.2 !important;
    }
}

/* ❄️ SNOWFALL EFFECT (Subtle White/Gray Snow) */
.snowflake {
    position: absolute;
    top: -30px;
    color: #e2e8f0; 
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8); 
    pointer-events: none;
    user-select: none;
    z-index: 9997 !important; 
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-30px) translateX(0) rotate(0deg); opacity: 0.9; }
    100% { transform: translateY(105vh) translateX(50px) rotate(360deg); opacity: 0.2; }
}

/* FONTS */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-v20-cyrillic_cyrillic-ext_latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2');
}

/* ORDER SUMMARY TABLE (Cart Modal) */
#orderSummaryContainer table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed; 
}

#orderSummaryContainer th, 
#orderSummaryContainer td {
    padding: 12px 8px;
    border-bottom: 1px solid #e7e5e4;
    vertical-align: middle;
}

#orderSummaryContainer th:first-child, 
#orderSummaryContainer td:first-child {
    text-align: left;
    width: 65%; 
}

#orderSummaryContainer th:last-child, 
#orderSummaryContainer td:last-child {
    text-align: right;
    width: 35%;
    white-space: nowrap !important;
    font-weight: bold;
    color: #881337; /* Sangria Color for Prices */
}

#orderSummaryContainer tr:last-child td {
    border-top: 2px solid #d6d3d1;
    border-bottom: none;
    font-size: 1.1em;
    background-color: #fafaf9;
}

@media (max-width: 768px) {
    :target {
        scroll-margin-top: -1570px;
    }
}