/* Подключение шрифта Franks Rus */
@font-face {
    font-family: 'Franks Rus';
    src: url('/assets/fonts/franks-rus.woff2') format('woff2'),
         url('/assets/fonts/franks-rus.woff') format('woff'),
         url('/assets/fonts/franks-rus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Подключение шрифта Doloman Pavljenko */
@font-face {
    font-family: 'Doloman Pavljenko';
    src: url('/assets/fonts/DolomanPavljenko.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Цветовая палитра из изображения */
:root {
    --dark-teal: #1a3d3f;        /* Темно-бирюзовый/изумрудный */
    --almost-black: #1a1a1a;     /* Почти черный */
    --dark-burgundy: #5a2a3a;    /* Темно-бордовый/сливовый (текст) */
    --dark-burgundy-accent: #1f1a18;  /* Для фона, границ, градиентов */
    --rich-crimson: #B93431;     /* Насыщенный малиновый */
    --dusty-pink: #c4a5a5;       /* Пыльно-розовый/сиреневый */
    --light-beige: #f5e6d3;      /* Светло-бежевый */
    --cream: #faf8f3;            /* Кремовый для фона */
    --gradient-primary: linear-gradient(135deg, #47000B 0%, #B93431 100%);
    --gradient-primary-hover: linear-gradient(135deg, #5c0617 0%, #d54542 100%);
    --logo-halo-color: rgba(255, 188, 140, 0.6);
    
    /* Светлая тема (по умолчанию) */
    --bg-primary: var(--cream);
    --bg-secondary: white;
    --text-primary: var(--almost-black);
    --text-secondary: var(--dark-burgundy);
    --header-bg: rgb(170, 68, 57);
    --border-color: var(--dusty-pink);
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Темная тема отключена - используется только светлая тема */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 275;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
}

/* Магический эффект при переключении темы */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                                rgba(31, 26, 24, 0.3) 0%, 
                                transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 9999;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #420604; /* RGB(66, 6, 4) */
    padding: 15px 0 0 0;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header .container {
    max-width: 900px; /* Делаем блок уже */
    margin: 0 auto;
    padding: 0 20px; /* Отступы для навигации */
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.1), 
                transparent);
    transition: left 0.6s ease;
}


.header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 30px;
    min-height: 100px; /* Увеличено на 20px (было 80px) */
    padding-bottom: 15px;
}

.header-right {
    position: absolute;
    top: 50%;
    right: -280px; /* Сдвиг на 300px вправо (20px - 300px = -280px) */
    transform: translateY(calc(-50% - 10px)); /* Поднято на 10px */
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    z-index: 10;
}

/* Навигация в шапке */
.header-navigation {
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    gap: 25px;
    justify-content: flex-start;
    flex: 1;
    padding-top: 0;
    padding-bottom: 0;
    min-width: 0; /* Позволяет flex-элементам сжиматься */
}

.header-navigation.nav-left {
    justify-content: flex-start; /* Выравнивание влево */
    padding-right: 0;
    margin-right: auto;
    padding-left: 0; /* Смещение еще левее */
    margin-left: 0;
    flex: 0 0 auto; /* Не растягивается */
    position: relative;
    left: -200px; /* Сдвиг на 200px влево */
}

.header-navigation.nav-right {
    justify-content: flex-end; /* Выравнивание вправо */
    padding-left: 0;
    margin-left: auto;
    padding-right: 80px; /* Больше отступ от корзины */
    margin-right: 0;
    flex: 0 0 auto; /* Не растягивается */
    position: relative;
    right: -200px; /* Сдвиг на 200px вправо */
}

.nav-link {
    font-family: 'Doloman Pavljenko', sans-serif;
    color: white;
    text-decoration: none;
    font-size: 1.1rem; /* Увеличен размер текста */
    font-weight: normal;
    text-transform: uppercase;
    padding: 8px 0 0 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 198, 160, 0.9) 0%, rgba(185, 52, 49, 1) 100%);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 198, 160, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 214, 190, 0.6);
}

.nav-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    order: 2; /* Логотип в центре */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none; /* Чтобы не мешать кликам по навигации */
}

.logo-container img,
.logo-container a {
    pointer-events: auto; /* Восстанавливаем клики для логотипа */
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.6s ease, transform 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) 
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.3))
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) 
                drop-shadow(0 0 15px rgba(255, 255, 255, 0.5))
                drop-shadow(0 0 25px rgba(255, 255, 255, 0.3));
    }
}


/* Иконка корзины в header */
.cart-icon-header,
.favorite-icon-header {
    position: relative;
    width: 45px;
    height: 45px;
    background-color: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.cart-icon-header:hover,
.favorite-icon-header:hover {
    transform: scale(1.1);
}

.favorite-icon-header svg {
    stroke: white;
    fill: none;
    transition: all 0.3s ease;
}


/* Бегущая строка */
.marquee-container {
    width: 100%;
    background: linear-gradient(135deg, var(--dark-burgundy-accent) 0%, var(--rich-crimson) 100%);
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    color: white;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.1rem;
    padding: 0 20px;
    animation: marquee-scroll linear infinite;
    will-change: transform;
}

.marquee-content::after {
    content: attr(data-text);
    padding-left: 50px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-content {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

.favorite-icon-header.active svg {
    fill: #e91e63;
    stroke: #e91e63;
}

.cart-count-header,
.favorite-count-header {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--rich-crimson);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--header-bg);
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-count-header:empty {
    display: none;
}

/* Переключатель темы удален - используется только светлая тема */

/* About Section */
.about-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    min-height: 420px;
}

.about-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(71, 0, 11, 0.2));
    pointer-events: none;
    mix-blend-mode: multiply;
}

.about-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #fdf4ec;
}

.about-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.65);
    z-index: 0;
    pointer-events: none;
}

.about-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 2.5rem;
    color: #fff1e4;
    margin-bottom: 30px;
    font-weight: normal;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Doloman Pavljenko', sans-serif;
    text-transform: uppercase;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.about-text {
    font-size: 1.1rem;
    color: rgba(255, 245, 237, 0.9);
    line-height: 1.8;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* Page Section (для страниц галереи, о нас и т.д.) */
.page-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: 2px;
    text-align: center;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-text-block {
    margin-bottom: 30px;
    text-align: center;
}

.page-text-block h2 {
    font-size: 1.8rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: normal;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-text-block p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 275;
    opacity: 0.9;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-method {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.delivery-method h3 {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: normal;
}

.delivery-method p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 275;
    margin: 0;
    text-align: left;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.values-list li {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Legal page styles */
.legal-block {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-block-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: normal;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-block-content {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.8;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 275;
}

.legal-block-content p {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 275;
}

.legal-block-content h3 {
    font-size: 1.3rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    color: var(--text-secondary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 500;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.legal-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.8;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-info-value a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-info-value a:hover {
    color: var(--rich-crimson);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-block {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .legal-block-title {
        font-size: 1.5rem;
    }
    
    .legal-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .legal-info-item {
        padding: 16px;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(31, 26, 24, 0.15);
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 275;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cooperation-steps {
    list-style: decimal;
    padding-left: 20px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.cooperation-steps li {
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 10px 0;
    line-height: 1.8;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cooperation-steps a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cooperation-steps a:hover {
    color: var(--rich-crimson);
    text-decoration: underline;
}

/* Адаптивность навигации в шапке */
@media (max-width: 968px) {
    .header-navigation {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        min-height: 70px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .header-navigation {
        flex: 1 1 100%;
        justify-content: center;
        gap: 12px;
        padding-top: 8px;
        flex-wrap: wrap;
        order: 3;
        padding-left: 0;
        padding-right: 0;
    }
    
    .header-navigation.nav-left,
    .header-navigation.nav-right {
        justify-content: center;
    }
    
    .logo-container {
        order: 1;
        flex: 1 1 100%;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .header-right {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 5px;
        order: 2;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        min-height: 60px;
    }
    
    .header-navigation {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 6px 0;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .header-right {
        gap: 10px;
    }
}

/* Pinterest Gallery */
.pinterest-gallery {
    column-count: 4;
    column-gap: 20px;
    margin-top: 40px;
    padding: 0;
}

.pinterest-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Размеры ячеек для masonry эффекта */
/* Размеры ячеек определяются через классы для будущих стилей */

.pinterest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(31, 26, 24, 0.2);
}

.pinterest-item-media {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pinterest-item-media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.pinterest-item:hover .pinterest-item-media img {
    transform: scale(1.05);
}

.pinterest-item-media video {
    width: 100%;
    height: auto;
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-container {
    position: relative;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-container:hover .video-play-button {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.pinterest-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pinterest-item:hover .pinterest-item-overlay {
    opacity: 1;
}

.pinterest-item-overlay h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

/* Модальное окно галереи */
.gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    overflow: auto;
}

.gallery-modal-content img,
.gallery-modal-content video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.gallery-modal-content h3 {
    margin-top: 20px;
    color: var(--text-primary);
    text-align: center;
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--dark-burgundy-accent);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background-color: var(--rich-crimson);
    transform: rotate(90deg);
}

.gallery-modal-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--dark-burgundy-accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.gallery-modal-link:hover {
    background-color: var(--rich-crimson);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Адаптивность Pinterest галереи */
@media (max-width: 1200px) {
    .pinterest-gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .pinterest-gallery {
        column-count: 2;
        column-gap: 15px;
    }
    
    .pinterest-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .pinterest-gallery {
        column-count: 1;
        column-gap: 10px;
    }
}

/* Products Section */
.products-section {
    padding: 60px 0 100px;
    background-color: var(--bg-primary);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Фильтры */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.filter-btn {
    font-family: 'Doloman Pavljenko', sans-serif;
    padding: 8px 16px;
    border: 1px solid #1f1a18;
    background-color: #faf8f3;
    font-weight: normal;
    color: #1f1a18;
    border-radius: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    /* Фон при наведении — выбранный цвет кнопки (--filter-btn-color из JS), текст всегда светлый */
    background-color: var(--filter-btn-color, #1f1a18);
    color: #faf8f3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.2);
}

.filter-btn.active {
    background-color: #1f1a18;
    color: #faf8f3;
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.2);
}


.section-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

/* Product Card */
.product-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease,
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
    opacity: 1;
    filter: blur(0);
    animation: fadeInCard 0.6s ease forwards;
    position: relative;
    isolation: isolate;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(255, 214, 190, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(185, 52, 49, 0.18) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card.fade-out {
    animation: fadeOutCard 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

.product-card.fade-in {
    animation: fadeInCard 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeOutCard {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    30% {
        opacity: 0.5;
        transform: scale(0.98) translateY(-5px);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: scale(0.95) translateY(-15px);
        filter: blur(3px);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Product Detail Page */
.product-page {
    padding: 40px 0 60px;
    background: #f7f7f7;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* Плавные переходы между секциями */
.product-page > * {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-back-link {
    display: none; /* Скрываем старую ссылку, используем breadcrumbs */
}

/* Breadcrumbs */
.product-breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(90, 42, 58, 0.7);
}

.product-breadcrumbs a {
    color: rgba(90, 42, 58, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumbs a:hover {
    color: rgba(90, 42, 58, 1);
}

.product-breadcrumbs span {
    margin: 0 8px;
    color: rgba(90, 42, 58, 0.5);
}

.product-page-wrapper {
    min-height: 320px;
}

.product-page-message {
    padding: 60px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 26, 24, 0.08);
    font-size: 1.1rem;
    color: var(--dark-burgundy);
}

.product-page-message.error {
    color: #B3261E;
}

/* 1. Галерея увеличена — левая колонка шире */
.product-page-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    animation: fadeInUp 0.8s ease-out;
    align-content: start;
    margin: 0;
    padding: 0;
    grid-auto-rows: min-content;
    justify-items: start;
    align-items: start !important;
}

.product-page-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    align-self: start;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    grid-row: 1;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    margin-top: 0 !important;
}


.product-page-right {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    grid-row: 1;
    justify-content: flex-start;
    width: 100%;
    align-items: flex-start;
    min-height: 0;
    margin-top: 0 !important;
}

.product-page-media {
    position: sticky;
    top: 100px;
    align-self: start;
}

.product-media-viewer {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 !important;
    align-self: flex-start;
}

.product-media-viewer > *:first-child {
    margin-top: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
}

.product-media-main {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
}

.product-media-main img,
.product-media-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.product-media-thumbnails {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    aspect-ratio: 3/4;
    width: 48px;
    flex: 0 0 48px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img,
.product-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.product-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 26, 24, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.product-thumb.active {
    border-color: rgba(31, 26, 24, 0.3);
    box-shadow: 0 2px 8px rgba(31, 26, 24, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

/* Навигационные кнопки слайдера */
.product-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-burgundy);
    border: 2px solid rgba(31, 26, 24, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(31, 26, 24, 0.1);
    opacity: 0;
    pointer-events: none;
}

/* При нескольких фото стрелки всегда видны */
.product-media-main--has-slider .product-slider-nav {
    opacity: 0.9;
    pointer-events: all;
}
.product-media-main--has-slider:hover .product-slider-nav {
    opacity: 1;
}

.product-media-main:hover .product-slider-nav {
    opacity: 1;
    pointer-events: all;
}

.product-slider-nav:hover {
    background: rgba(31, 26, 24, 0.9);
    color: white;
    border-color: rgba(31, 26, 24, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(31, 26, 24, 0.2);
}

.product-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.product-slider-prev {
    left: 16px;
}

.product-slider-next {
    right: 16px;
}

.product-slider-nav svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Индикатор слайдера */
.product-slider-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31, 26, 24, 0.7);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 10;
    pointer-events: none;
}

.product-page-info {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.3s ease;
    width: 100%;
    flex-shrink: 0;
    margin: 0 !important;
    align-self: flex-start;
}

.product-page-info > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.product-page-info > .product-page-badges:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.product-page-info > .product-page-name:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.3;
}

/* 2. Наименование товара */
.product-page-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--dark-burgundy);
    margin: 0 0 0 0;
    line-height: 1.2;
    padding-top: 0;
}

/* 3. Артикул — минимальный отступ от наименования */
.product-page-article {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(90, 42, 58, 0.65);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* 4. Стоимость товара */
.product-page-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--dark-burgundy);
    margin: 0;
}

.product-page-badges {
    display: flex;
    gap: 12px;
    margin: 0;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0;
}

.badge-exclusive {
    background: rgba(31, 26, 24, 0.1);
    color: var(--dark-burgundy);
    border: 1px solid rgba(31, 26, 24, 0.15);
}

.badge-last {
    background: rgba(185, 52, 49, 0.12);
    color: var(--rich-crimson);
    border: 1px solid rgba(185, 52, 49, 0.2);
}

.product-page-availability {
    margin-bottom: 24px;
    font-weight: 500;
    color: var(--dark-burgundy);
}

.product-page-availability[data-state="out"] {
    color: #B3261E;
}

/* 11. Описание товара — меньший шрифт, без эффекта масштабирования */
.product-description {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-top: 20px;
    font-weight: 400;
}

.product-description p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description strong {
    color: var(--dark-burgundy);
    font-weight: 600;
}

.product-description em {
    color: var(--text-secondary);
}

.product-page-categories {
    margin-bottom: 30px;
    color: var(--dark-burgundy);
    font-size: 0.95rem;
}

.product-page-categories .label {
    font-weight: 600;
    margin-right: 6px;
}

/* 9. Кнопка «В корзину» — компактная, фон #faf8f3, текст и обводка #1f1a18 */
.product-page-info .product-page-add {
    width: auto;
    max-width: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    font-weight: 500;
    background: #faf8f3;
    color: #1f1a18;
    border: 1px solid #1f1a18;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: none;
    position: relative;
    overflow: visible;
    z-index: 0;
    margin-top: 0;
    flex-shrink: 0;
}

.product-page-info .product-page-add::before,
.product-page-info .product-page-add::after {
    display: none;
}

.product-page-info .product-page-add:hover {
    transform: translateY(-1px);
    background: #f0ede6;
    color: #1f1a18;
    border-color: #1f1a18;
    box-shadow: 0 2px 8px rgba(31, 26, 24, 0.1);
}

.product-page-info .product-page-add:active {
    transform: translateY(0);
    outline: none;
}

.product-page-info .product-page-add:focus,
.product-page-info .product-page-add:focus-visible {
    outline: none;
}

.product-page-info .product-page-add.cart-added {
    animation: cartSuccess 0.6s ease;
}

/* Общие стили кнопки (карточки и др.) */
.product-page-add {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    max-width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    font-weight: 275;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(31, 26, 24, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 0;
    margin-top: auto;
    flex-shrink: 0;
}

.product-page-add::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #f596c9;
    border: none;
    border-radius: inherit;
    z-index: -1;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-page-add::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border: none;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

.product-page-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 26, 24, 0.2);
}

.product-page-add:hover::before {
    background: #f38ab8;
}

.product-page-add:hover::after {
    transform: translateX(100%);
}

.product-page-add:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.2);
    outline: none;
}

.product-page-add:focus {
    outline: none;
}

.product-page-add:focus-visible {
    outline: none;
}

.product-page-add.cart-added {
    animation: cartSuccess 0.6s ease;
}

.product-page-add.cart-added::before {
    background: #f38ab8;
}

@media (max-width: 1100px) {
    .product-page-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-page-left {
        width: 100%;
    }

    .product-page-media {
        position: static;
    }

    .product-page-right {
        position: static;
    }

    .product-page-info {
        padding: 32px;
    }

    .product-accordion-container {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 60px 0 80px;
    }

    .product-page-info {
        padding: 24px;
        gap: 16px;
    }

    .product-page-name {
        font-size: 2rem;
    }

    .product-page-price {
        font-size: 2rem;
        font-weight: 300;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-slider-nav {
        width: 40px;
        height: 40px;
        opacity: 1;
        pointer-events: all;
        background: rgba(255, 255, 255, 0.98);
    }

    .product-slider-nav svg {
        width: 18px;
        height: 18px;
    }

    .product-slider-prev {
        left: 12px;
    }

    .product-slider-next {
        right: 12px;
    }

    .product-page-add {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .product-detail-section {
        padding: 32px 24px;
        margin-bottom: 48px;
    }

    .product-safety {
        padding: 48px 32px;
        margin: 60px 0;
    }

    .product-safety-title {
        font-size: 1.75rem;
        margin-bottom: 36px;
    }

    .product-safety-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@keyframes fadeInCard {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
        filter: blur(3px);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98) translateY(5px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(71, 0, 11, 0.25);
}

.product-card:hover::before {
    opacity: 1;
}

.product-gallery {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Создает квадратный контейнер (1:1) */
    overflow: hidden;
    background-color: var(--light-beige);
    cursor: grab;
    aspect-ratio: 1 / 1; /* Дополнительная поддержка для современных браузеров */
    flex-shrink: 0;
}

.product-gallery:active {
    cursor: grabbing;
}

.product-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.product-gallery img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.product-gallery img.prev {
    opacity: 0;
    transform: translateX(-20px) scale(1.05);
}

.product-gallery img.next {
    opacity: 0;
    transform: translateX(20px) scale(1.05);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #47000B;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.product-gallery:hover .gallery-nav {
    display: flex;
    animation: fadeInNav 0.3s ease;
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.gallery-nav:hover {
    background-color: #5b0d19;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.gallery-nav.show-hint {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    height: 100%;
    flex: 1;
    min-height: 0;
}

.product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 275;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
    text-align: center;
    flex: 1;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--rich-crimson);
    margin: 0;
    margin-top: auto;
    font-weight: 275;
    flex-shrink: 0;
    text-align: center;
}

/* Контейнер для кнопки корзины с управлением количеством */
.cart-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border: 1px solid #000;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    min-width: 140px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-button-container.in-cart {
    border: 1px solid #000;
}

/* Кнопки управления количеством */
.cart-quantity-btn {
    font-family: 'Montserrat', sans-serif;
    width: 32px;
    height: 36px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 275;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
}

.cart-button-container.in-cart .cart-quantity-btn {
    display: flex;
}

.cart-quantity-btn:first-of-type::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
}

.cart-quantity-btn:hover {
    background: #f5f5f5;
}

.cart-quantity-btn:active {
    background: #e0e0e0;
}

/* Основная кнопка "В корзину" в карточке товара */
.product-info .product-page-add {
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0;
    min-width: 0;
    transition: all 0.3s ease;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 275;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-info .product-page-add::before,
.product-info .product-page-add::after {
    display: none;
}

/* Стили для кнопки когда товар в корзине */
.product-info .product-page-add.in-cart {
    background: #fff;
    color: #000;
    border: none;
    font-weight: 275;
}

.cart-button-container.in-cart .product-page-add {
    position: relative;
}

.cart-button-container.in-cart .product-page-add::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
}

.cart-button-container.in-cart .product-page-add::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
}

.product-info .product-page-add:hover {
    background: #f5f5f5;
}

.cart-button-container:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Иконка избранного */
.product-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.product-favorite:hover {
    transform: scale(1.1);
}

.product-favorite:active {
    transform: scale(0.95);
}

.product-favorite svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.product-favorite.active svg {
    fill: #e91e63;
    stroke: #e91e63;
}

/* Плашки товаров - размещаем в верхнем левом углу карточки */
.product-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    z-index: 5;
    pointer-events: none;
}

.product-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.product-badge.exclusive-badge {
    background-color: rgba(138, 43, 226, 0.9);
    color: white;
}

.product-badge.last-in-stock-badge {
    background-color: rgba(220, 20, 60, 0.9);
    color: white;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 400;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(71, 0, 11, 0.25);
    z-index: 0;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: inherit;
    z-index: -1;
    transition: background 0.3s ease;
}

.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.add-to-cart-btn:hover::after {
    opacity: 1;
}

.add-to-cart-btn.cart-added::after {
    opacity: 1;
    animation: cartAddedPulse 0.6s ease;
}

@keyframes cartAddedPulse {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(71, 0, 11, 0.35);
}

.add-to-cart-btn:hover::before {
    background: var(--gradient-primary-hover);
}

.add-to-cart-btn.cart-added {
    animation: cartSuccess 0.6s ease;
}

.add-to-cart-btn.cart-added::before {
    background: var(--gradient-primary-hover);
}

@keyframes cartSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.add-to-cart-btn:active {
    transform: translateY(0);
    outline: none;
}

.add-to-cart-btn:focus {
    outline: none;
}

.add-to-cart-btn:focus-visible {
    outline: none;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #f7f7f7;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px var(--shadow-color);
    animation: modalAppear 0.3s ease;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1f1a18;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(31, 26, 24, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--rich-crimson);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    font-family: 'Montserrat', sans-serif;
}

.modal-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 100%;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.modal-product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 275;
}

.modal-product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--rich-crimson);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 275;
}

/* Плашки в модальном окне */
.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.modal-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.modal-badge.exclusive-badge {
    background-color: rgba(138, 43, 226, 0.9);
    color: white;
}

.modal-badge.last-in-stock-badge {
    background-color: rgba(220, 20, 60, 0.9);
    color: white;
}

.modal-product-description {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.modal-add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    outline: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(71, 0, 11, 0.25);
}

.modal-add-to-cart:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(71, 0, 11, 0.35);
}

.modal-add-to-cart:focus,
.modal-add-to-cart:focus-visible,
.modal-add-to-cart:active {
    outline: none;
}

/* Cart Icon */
.cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--dark-burgundy-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(31, 26, 24, 0.4);
    transition: all 0.3s ease, background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.cart-icon:hover {
    background-color: var(--rich-crimson);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(31, 26, 24, 0.5);
}

.cart-icon.cart-pulse {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--rich-crimson);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}


/* Пошаговая форма оформления заказа */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--light-beige);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-beige);
    color: var(--dark-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--dusty-pink);
}

.step.active .step-number {
    background: var(--rich-crimson);
    color: white;
    border-color: var(--rich-crimson);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 0.85rem;
    color: var(--dark-burgundy);
    text-align: center;
    transition: color 0.3s ease;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--rich-crimson);
    font-weight: 600;
}

.checkout-step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    color: rgba(255, 240, 232, 0.95);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: normal;
}

#step2_5 .step-title {
    color: #1f1a18;
}

#step3 .step-title {
    color: #1f1a18;
}

.step-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 25px;
}

.btn-step-next,
.btn-step-back {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-step-next {
    background: #faf8f3;
    color: #1f1a18;
    margin-left: auto;
    border: 1px solid rgba(31, 26, 24, 0.2);
}

.btn-step-next:hover {
    background: #f5f3ed;
    border-color: rgba(31, 26, 24, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.15);
}

.btn-step-back {
    background: #faf8f3;
    color: #1f1a18;
    border: 1px solid rgba(31, 26, 24, 0.2);
}

.btn-step-back:hover {
    background: #f5f3ed;
    border-color: rgba(31, 26, 24, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.15);
}

/* Просмотр заказа */
.order-review {
    background: var(--light-beige);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(31, 26, 24, 0.1);
}

.review-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dusty-pink);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h4 {
    color: #2b1f21;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.review-section p {
    margin-bottom: 8px;
    color: #3a2f31;
    line-height: 1.6;
    font-weight: 400;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    min-height: 48px;
    border-bottom: 1px solid rgba(31, 26, 24, 0.15);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item span:first-child {
    color: #3a2f31;
    font-weight: 500;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.review-item span:last-child {
    color: var(--rich-crimson);
    font-weight: 600;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
}

.checkout-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для автодополнения адресов Яндекс.Карт */
.checkout-form .form-group {
    position: relative;
}

/* Стили для выпадающего списка подсказок */
.ymaps-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    border: 2px solid var(--dusty-pink);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    max-height: 300px;
    overflow-y: auto;
    margin-top: -2px;
}

.ymaps-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ymaps-suggest-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(196, 165, 165, 0.3);
    transition: background-color 0.2s ease;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.ymaps-suggest-item:last-child {
    border-bottom: none;
}

.ymaps-suggest-item:hover,
.ymaps-suggest-item__selected {
    background-color: var(--light-beige);
    color: var(--dark-burgundy);
}

.ymaps-suggest-item:active {
    background-color: var(--dusty-pink);
    color: white;
}

/* Контейнер для подсказок адресов */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: -2px;
    display: none;
}

/* Список подсказок */
.custom-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--dusty-pink);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    max-height: 300px;
    overflow-y: auto;
}

.custom-suggestions-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(196, 165, 165, 0.3);
    transition: background-color 0.2s ease;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.custom-suggestions-item:last-child {
    border-bottom: none;
}

.custom-suggestions-item:hover,
.custom-suggestions-item.selected {
    background-color: var(--light-beige);
    color: var(--dark-burgundy);
}

.custom-suggestions-item:active {
    background-color: var(--dusty-pink);
    color: white;
}

.checkout-title {
    color: #1f1a18;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea,
.checkout-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(196, 165, 165, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-secondary);
    color: #4a4a4a;
    font-weight: 400;
}

.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus,
.checkout-form .form-group select:focus {
    outline: none;
    border-color: var(--rich-crimson);
}

.checkout-form .form-group input::placeholder,
.checkout-form .form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

.checkout-form .form-group small {
    display: block;
    margin-top: 5px;
    color: #b0b0b0;
    font-size: 0.85rem;
    opacity: 1;
}

.checkout-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkout-form .form-group select {
    cursor: pointer;
}

.checkout-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-form .checkbox-group .telegram-hint {
    color: #26A5E4;
    font-weight: 500;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--almost-black);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    height: auto;
    accent-color: var(--rich-crimson);
}

#telegramUsernameGroup {
    display: none;
}

/* Предупреждение о доставке */
.delivery-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.delivery-warning p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Тип доставки (радио кнопки) */
.delivery-type-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.delivery-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--dusty-pink);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-beige);
    flex: 1;
}

.delivery-type-option:hover {
    border-color: var(--rich-crimson);
    background: var(--cream);
}

.delivery-type-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.delivery-type-option input[type="radio"]:checked + span {
    color: var(--rich-crimson);
    font-weight: 500;
}

.delivery-type-option:has(input[type="radio"]:checked) {
    border-color: var(--rich-crimson);
    background: var(--cream);
}

/* Отображение стоимости доставки */
.delivery-cost-info {
    padding: 12px 16px;
    background: rgba(31, 26, 24, 0.3);
    border: 2px solid rgba(196, 165, 165, 0.5);
    border-radius: 8px;
    margin-bottom: 15px;
    color: rgba(255, 240, 232, 0.95);
    font-size: 1rem;
}

.delivery-cost-info strong {
    color: rgba(255, 240, 232, 0.95);
    font-weight: 600;
}

/* Карта для выбора пункта выдачи */
.pickup-point-map {
    width: 100%;
    height: 400px;
    border: 2px solid var(--dusty-pink);
    border-radius: 8px;
    background: var(--light-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
}

.map-placeholder {
    color: var(--dark-burgundy);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.selected-point {
    display: block;
    color: var(--rich-crimson);
    font-weight: 500;
    margin-top: 5px;
}

/* Поле ввода адреса пункта выдачи */
#pickupPointFields input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--dusty-pink);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--cream);
    color: var(--almost-black);
}

#pickupPointFields input[type="text"]:focus {
    outline: none;
    border-color: var(--rich-crimson);
}

.btn-submit-order {
    padding: 14px 32px;
    background: #faf8f3;
    color: #1f1a18;
    border: 1px solid rgba(31, 26, 24, 0.2);
    border-radius: 8px;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit-order:hover {
    background: #f5f3ed;
    border-color: rgba(31, 26, 24, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.15);
}

.btn-submit-order:active {
    transform: translateY(0);
}

.checkout-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--dusty-pink);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    font-size: 1rem;
    color: #3a2f31;
}

.checkout-summary-item span:first-child {
    font-weight: 500;
}

.checkout-summary-item span:last-child {
    color: var(--rich-crimson);
    font-weight: 600;
    text-align: right;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 26, 24, 0.2);
}

.checkout-total span:last-child {
    color: var(--rich-crimson);
    font-size: 1.5rem;
}

/* Loading state */
.product-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--dusty-pink);
    border-top-color: var(--dark-burgundy-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 5;
}

.product-gallery.loading::before {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Модальное окно корзины */
.cart-modal {
    max-width: 600px;
}

.cart-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.8rem;
    color: #1f1a18;
    margin-bottom: 25px;
    text-align: center;
    font-weight: normal;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(31, 26, 24, 0.03);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #1f1a18;
    margin-bottom: 5px;
    font-weight: 275;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #420604;
    margin-bottom: 8px;
    font-weight: 275;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
    border: 1px solid #000;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    min-width: 100px;
    width: fit-content;
    transition: all 0.3s ease;
}

.quantity-btn {
    font-family: 'Montserrat', sans-serif;
    width: 28px;
    height: 28px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 275;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
}

.quantity-btn:first-of-type::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-btn:active {
    background: #e0e0e0;
}

.quantity-value {
    font-family: 'Montserrat', sans-serif;
    min-width: 40px;
    padding: 6px 12px;
    text-align: center;
    font-weight: 275;
    color: #000;
    font-size: 0.8rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quantity-value::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
}

.cart-item-remove {
    font-family: 'Montserrat', sans-serif;
    background: none;
    border: none;
    color: #1f1a18;
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cart-item-remove:hover {
    background-color: rgba(31, 26, 24, 0.1);
    transform: scale(1.2);
    color: #420604;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--rich-crimson);
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: rgba(185, 52, 49, 0.1);
    transform: scale(1.1);
}

.btn-remove svg {
    fill: currentColor;
}

.btn-add-to-cart {
    font-family: 'Montserrat', sans-serif;
    padding: 8px 16px;
    background: #ffffff;
    color: #1f1a18;
    border: 1px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 275;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-to-cart:hover:not(.in-cart) {
    background: #1f1a18;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-add-to-cart.in-cart {
    background: var(--rich-crimson);
    color: white;
    border: none;
}

.btn-add-to-cart.in-cart:hover {
    background: #a03a37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 52, 49, 0.3);
}

.cart-footer {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 275;
    color: #1f1a18;
    margin-bottom: 20px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-total span:last-child {
    color: #420604;
    font-size: 1.8rem;
    font-weight: 275;
}

.btn-checkout {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    color: #1f1a18;
    border: 1px solid #000000;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 275;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover:not(:disabled) {
    background: #1f1a18;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Модальное окно оформления заказа */
.checkout-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.8rem;
    color: #1f1a18;
    margin-bottom: 25px;
    text-align: center;
    font-weight: normal;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-form label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-form input,
.checkout-form textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-secondary);
    color: #4a4a4a;
    transition: all 0.3s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--dark-burgundy-accent);
}

.checkout-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-total span:last-child {
    color: var(--rich-crimson);
    font-size: 1.5rem;
}

.btn-submit-order {
    width: 100%;
    padding: 15px;
    background: #faf8f3;
    color: #1f1a18;
    border: 1px solid rgba(31, 26, 24, 0.2);
    border-radius: 8px;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-order:hover {
    background: #f5f3ed;
    border-color: rgba(31, 26, 24, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.15);
}

/* Footer */
.footer {
    background-color: #420604; /* RGB(66, 6, 4) */
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.2rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer .footer-social a[aria-label="Instagram"] svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
}

.social-link svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.social-link[aria-label="VK"] img,
.social-link[aria-label="VK"] .vk-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-made {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 30px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .logo {
        max-width: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* ==================================
   Клиентские инструкции (Telegram)
================================== */
.customer-notification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 12000;
    animation: fadeIn 0.25s ease;
}

.customer-notification-overlay.hide {
    animation: customerModalFadeOut 0.25s ease forwards;
}

.customer-notification-content {
    position: relative;
    background: var(--card-bg, #ffffff);
    color: var(--text-primary, #2b1f21);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 35px 60px -25px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-notification-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
}

.customer-notification-content p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.customer-bot-hint {
    font-size: 0.9rem;
    color: rgba(43, 31, 33, 0.75);
}

.customer-notification-content code {
    background: rgba(71, 0, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.customer-bot-link a {
    display: inline-block;
    padding: 10px 18px;
    background: var(--dark-burgundy-accent);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customer-bot-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -15px rgba(71, 0, 11, 0.7);
}

.customer-token-block {
    margin: 18px 0;
}

.customer-token-block label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.customer-token-row {
    display: flex;
    gap: 8px;
}

.customer-token-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(71, 0, 11, 0.3);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
}

.copy-token-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: var(--dark-burgundy-accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-token-btn:hover {
    background: #5b0614;
}

.copy-token-btn.copied {
    background: #1e7e34;
}

.customer-tip {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 8px;
}

.customer-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: inherit;
}

.customer-modal-close:hover {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 520px) {
    .customer-notification-content {
        padding: 24px 20px;
    }

    .customer-token-row {
        flex-direction: column;
    }

    .copy-token-btn {
        width: 100%;
    }
}

@keyframes customerModalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (prefers-color-scheme:dark){body{background-color:#171516;color:rgba(255,240,234,.87)}.modal-content{background-color:#f7f7f7}.delivery-type-option{background:#2a2421;border-color:#3b2f32;color:rgba(255,240,234,0.9)}.delivery-type-option input[type="radio"]+span{color:rgba(255,240,234,0.9)}.delivery-type-option input[type="radio"]:checked+span{color:#f2cdc4}.delivery-type-option:hover,.delivery-type-option:has(input[type="radio"]:checked){background:#352b28;border-color:#f2cdc4}}

.social-hub {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, rgba(71, 0, 11, 0.55), rgba(20, 20, 20, 0.92));
    position: relative;
    overflow: hidden;
}

.social-hub::before,
.social-hub::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}

.social-hub::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(185, 52, 49, 0.5), transparent 60%);
}

.social-hub::after {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -100px;
    background: radial-gradient(circle, rgba(31, 26, 24, 0.4), transparent 65%);
}

.social-hub .container {
    position: relative;
    z-index: 1;
}

.social-hub-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 70px;
}

.social-heading-text {
    max-width: 420px;
    flex: 0 1 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-hub-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 225, 220, 0.65);
}

.social-hub-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: rgba(255, 225, 220, 0.35);
}

.social-heading-text h2 {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 2.3rem;
    color: rgba(255, 240, 232, 0.95);
    letter-spacing: 0.01em;
}

.social-heading-text p {
    font-size: 0.96rem;
    color: rgba(255, 240, 232, 0.85);
    opacity: 0.9;
    line-height: 1.6;
}

.social-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.social-cta-note {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 225, 220, 0.6);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(185, 52, 49, 0.95), rgba(236, 180, 155, 0.95));
    color: #fff;
    box-shadow: 0 18px 36px rgba(185, 52, 49, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(185, 52, 49, 0.32);
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
    outline: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: rgba(90, 42, 58, 0.85);
    box-shadow: 0 12px 26px rgba(31, 26, 24, 0.12);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(31, 26, 24, 0.18);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, #fee7b4, #f06ea1 45%, #a869f0 80%, #4f5bd5 100%);
    box-shadow: 0 18px 36px rgba(214, 41, 118, 0.35);
    position: relative;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-instagram::before {
    content: '★';
    font-size: 0.85rem;
    opacity: 0.9;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(214, 41, 118, 0.45);
}

.social-story-strip {
    flex: 1 1 520px;
    min-width: 320px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(185, 52, 49, 0.14);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 70px rgba(185, 52, 49, 0.14);
    z-index: 0;
}

.social-story-strip::before,
.social-story-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}

.social-story-strip::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), transparent);
}

.social-story-strip::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.85), transparent);
}

.story-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    width: 100%;
    padding-bottom: 16px;
    position: relative;
    z-index: 0;
}

/* Адаптивность для разного количества элементов */
.story-track:has(.story-item:nth-child(1):last-child) {
    grid-template-columns: 1fr;
}

.story-track:has(.story-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.story-track:has(.story-item:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.story-track:has(.story-item:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.story-track:has(.story-item:nth-child(5):last-child) {
    grid-template-columns: repeat(5, 1fr);
}

.story-track:has(.story-item:nth-child(6):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

.story-track:has(.story-item:nth-child(n+7)) {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.story-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 18px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 26px 48px rgba(38, 21, 27, 0.27);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: storyFloat 6s ease-in-out infinite;
}

/* Круглые видео (round_video) */
.story-item.story-item--round {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 0;
}

.story-item.story-item--round video,
.story-item.story-item--round img {
    border-radius: 50%;
}

.story-item video,
.story-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

.story-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(18, 8, 12, 0.65));
    z-index: 2;
    pointer-events: none;
}

.story-item span {
    position: relative;
    z-index: 3;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.story-item:hover,
.story-item:focus-visible {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 34px 60px rgba(38, 21, 27, 0.34);
    z-index: 10;
}

.story-item:nth-child(2) { animation-delay: 0.6s; }
.story-item:nth-child(3) { animation-delay: 1.1s; }
.story-item:nth-child(4) { animation-delay: 1.6s; }
.story-item:nth-child(5) { animation-delay: 2.1s; }
.story-item:nth-child(6) { animation-delay: 2.6s; }

@keyframes storyFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-6px) scale(1.02); }
    75% { transform: translateY(2px) scale(0.99); }
}

.social-showcase {
    display: grid;
    grid-template-columns: minmax(340px, 1.4fr) minmax(220px, 0.8fr);
    gap: 32px;
}

.social-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    border-radius: 36px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 42px 70px rgba(18, 8, 12, 0.26);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.social-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.1), transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.social-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 48px 80px rgba(18, 8, 12, 0.33);
}

.social-tile--telegram {
    background: linear-gradient(135deg, #0f4c75, #1cb5e0);
}

.tile-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tile-header svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    opacity: 0.9;
}

.tile-header h3 {
    font-size: 1.3rem;
    margin-bottom: 1px;
}

.tile-header p {
    font-size: 0.85rem;
    opacity: 0.78;
    line-height: 1.4;
}

.tile-chat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    backdrop-filter: blur(12px);
    width: fit-content;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-bubble--you {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.25);
}

.chat-bubble--bot {
    align-self: flex-end;
    background: rgba(15, 76, 117, 0.35);
}

/* Круглые видео в Telegram сообщениях */
.chat-bubble video {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tile-footer {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.tile-footer::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.social-tile:hover .tile-footer::after {
    transform: translateX(4px);
}

.social-mini-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 720px) {
    .social-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-mini-grid > :first-child {
        grid-column: 1 / -1;
    }
}

.mini-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-height: 160px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 24px 40px rgba(18, 8, 12, 0.12);
}

.mini-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 52px rgba(18, 8, 12, 0.18);
}

.mini-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(18, 8, 12, 0.5));
    pointer-events: none;
}

.mini-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.58;
}

.mini-content strong {
    font-size: 0.92rem;
    line-height: 1.35;
}

.mini-content small {
    font-size: 0.72rem;
    line-height: 1.3;
}

.mini-gallery {
    display: flex;
    gap: 10px;
}

.mini-gallery img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 22px rgba(18, 8, 12, 0.18);
}

.mini-card--vk {
    background: linear-gradient(140deg, rgba(46, 110, 186, 0.96), rgba(84, 149, 214, 0.88));
    color: #fff;
}

.mini-card--instagram {
    background: linear-gradient(145deg, rgba(255, 243, 248, 0.96), rgba(250, 226, 247, 0.9));
    border: 1px solid rgba(214, 41, 118, 0.22);
    color: var(--almost-black);
}

.mini-card--reviews {
    background: linear-gradient(150deg, rgba(255, 204, 128, 0.95), rgba(255, 148, 114, 0.85));
    color: #432602;
}

.mini-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
}

.mini-rating span {
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.mini-rating small {
    font-size: 0.78rem;
    opacity: 0.75;
}

.mini-instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 8px 0 6px;
}

.insta-pulse {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
    animation: instaPulse 2.4s infinite ease-in-out;
    box-shadow: 0 6px 14px rgba(214, 41, 118, 0.35);
}

.insta-pulse:nth-child(2) { animation-delay: 0.4s; }
.insta-pulse:nth-child(3) { animation-delay: 0.8s; }
.insta-pulse:nth-child(4) { animation-delay: 1.2s; }

.insta-pulse::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(214, 41, 118, 0.35);
    opacity: 0;
    animation: instaGlow 2.4s infinite ease-in-out;
}

.insta-pulse:nth-child(2)::after { animation-delay: 0.4s; }
.insta-pulse:nth-child(3)::after { animation-delay: 0.8s; }
.insta-pulse:nth-child(4)::after { animation-delay: 1.2s; }

@keyframes instaPulse {
    0% { transform: scale(0.85); }
    45% { transform: scale(1.12); }
    65% { transform: scale(0.95); }
    100% { transform: scale(0.85); }
}

@keyframes instaGlow {
    0% { opacity: 0; transform: scale(0.6); }
    45% { opacity: 0.9; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(0.6); }
}

@media (max-width: 1100px) {
    .social-showcase {
        grid-template-columns: 1fr;
    }

    .social-hub-heading {
        gap: 32px;
    }

    .social-story-strip {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .social-hub {
        padding: 72px 0 90px;
    }

    .social-hub-heading {
        flex-direction: column;
        margin-bottom: 48px;
    }

    .social-heading-text h2 {
        font-size: 2.2rem;
    }

    .social-story-strip::before,
    .social-story-strip::after {
        display: none;
    }

    .story-track {
        padding-bottom: 6px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .story-item {
        padding: 12px;
        border-radius: 16px;
    }
    
    .story-item.story-item--round {
        border-radius: 50%;
    }

    .social-tile {
        padding: 28px;
        border-radius: 28px;
    }

    .mini-card {
        padding: 24px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-track,
    .story-item,
    .insta-pulse,
    .insta-pulse::after {
        animation: none;
    }
}

.cart-icon.cart-icon--empty {
    opacity: 0.85;
}

.product-hero {
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* Sticky блок следует до следующего блока */
.product-safety,
.product-recommendations {
    position: relative;
    z-index: 2;
}

.product-hero.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.product-detail-section.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавные переходы при скролле */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные переходы для всех секций */
.product-hero,
.product-detail-section {
    will-change: transform, opacity;
}


.product-tagline {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: normal;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.product-price-note {
    font-size: 0.9rem;
    color: var(--dusty-pink);
}

.product-availability-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: rgba(31, 26, 24, 0.08);
    color: var(--dark-burgundy);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.product-availability-chip[data-state=\"out\"] {
    background: rgba(185, 52, 49, 0.12);
    color: var(--rich-crimson);
}

/* 5–8. Характеристики — на странице товара: один ряд 1×4 */
.product-highlights-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 2px;
}

.product-highlights-row .product-highlight-card {
    min-width: 0;
    aspect-ratio: unset;
    padding: 8px 10px;
    align-items: flex-start;
    text-align: left;
    border-radius: 8px;
}

.product-highlights-row .highlight-icon {
    margin-bottom: 2px;
}

/* На странице товара характеристики свечи — всегда в 1 ряд (4 колонки), без переключения на 2×2 */

/* Общая сетка характеристик (каталог и др.). На странице товара — колонки задаёт .product-highlights-row */
.product-highlight-grid {
    display: grid;
    gap: 10px;
}

.product-highlight-grid:not(.product-highlights-row) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
}

@media (max-width: 768px) {
    .product-highlight-grid:not(.product-highlights-row) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-highlight-grid:not(.product-highlights-row) {
        grid-template-columns: 1fr;
    }
}

.product-highlight-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(31, 26, 24, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    box-shadow: 0 1px 4px rgba(27, 16, 18, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-highlight-grid:not(.product-highlights-row) .product-highlight-card {
    align-items: center;
    text-align: center;
}

.product-highlight-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(27, 16, 18, 0.1);
}

.highlight-icon {
    font-size: 1rem;
    line-height: 1;
    margin-bottom: 0;
    flex-shrink: 0;
}

.highlight-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.2;
}

.highlight-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    line-height: 1.25;
    word-break: break-word;
}

.product-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* 9–10. Кнопка корзины со счётчиком и иконка избранного рядом */
.product-summary-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Контейнер корзины на странице товара — в стиле кнопки #faf8f3 / #1f1a18 */
.product-summary-actions .cart-button-container {
    margin-top: 0;
    border: 1px solid #1f1a18;
    border-radius: 10px;
    background: #faf8f3;
    min-width: 120px;
}

.product-summary-actions .cart-button-container .cart-quantity-btn {
    background: #faf8f3;
    color: #1f1a18;
    width: 36px;
    height: 40px;
    font-size: 1.1rem;
}

.product-summary-actions .cart-button-container .cart-quantity-btn:hover {
    background: #f0ede6;
}

.product-summary-actions .cart-button-container.in-cart .product-page-add::before,
.product-summary-actions .cart-button-container.in-cart .product-page-add::after {
    background: #1f1a18;
}

.product-summary-actions .cart-button-container .product-page-add {
    background: #faf8f3;
    color: #1f1a18;
    border: none;
    padding: 10px 18px;
    font-size: 0.9rem;
}

.product-summary-actions .cart-button-container .product-page-add:hover {
    background: #f0ede6;
}

.product-summary-actions .cart-button-container.cart-added .product-page-add {
    animation: cartSuccess 0.6s ease;
}

.product-favorite-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-favorite-btn:hover {
    transform: scale(1.05);
}

.product-favorite-btn.active {
    color: #e91e63;
}

.product-favorite-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.product-favorite-btn.active svg {
    fill: #e91e63;
    stroke: #e91e63;
}

.product-support-text {
    font-size: 0.9rem;
    color: var(--dusty-pink);
    margin: 0;
}

.product-detail-section {
    margin-bottom: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(27, 16, 18, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s ease-out,
                transform 0.6s ease-out;
    border: 1px solid rgba(31, 26, 24, 0.08);
    opacity: 0;
    transform: translateY(30px);
}

.product-detail-section:last-child {
    margin-bottom: 0;
}

.product-detail-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 16, 18, 0.12);
}

.product-section-title {
    font-size: 1.15rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    margin-bottom: 12px;
    color: var(--dark-burgundy);
    font-weight: normal;
    position: relative;
    padding-bottom: 8px;
}

.product-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--rich-crimson), transparent);
    border-radius: 2px;
}

.product-section-subtitle {
    margin-top: -4px;
    margin-bottom: 16px;
    color: var(--dusty-pink);
    font-size: 0.9rem;
    font-style: italic;
}

.product-story-content {
    color: var(--text-primary);
    line-height: 1.7;
}

.product-story-content p {
    margin-bottom: 14px;
    color: var(--text-primary);
}

.product-story-content p:last-child {
    margin-bottom: 0;
}

.product-mood {
    margin-top: 24px;
    padding: 18px 22px;
    background: rgba(255, 214, 190, 0.25);
    border-radius: 16px;
    color: var(--dark-burgundy);
}

.product-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .product-usage-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.product-usage-column h3,
.product-composition-column h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-burgundy);
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(31, 26, 24, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usage-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 240, 230, 0.3);
    transition: background 0.2s ease;
}

.usage-step:hover {
    background: rgba(255, 240, 230, 0.5);
}

.usage-step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rich-crimson), var(--dark-burgundy-accent));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(185, 52, 49, 0.3);
}

.usage-step p {
    margin: 0;
    flex: 1;
}

.product-composition-column {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 245, 240, 0.3));
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(31, 26, 24, 0.08);
}

.product-composition-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-primary);
    line-height: 1.5;
}

.product-composition-list li {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    padding-left: 32px;
    color: var(--text-primary);
    transition: background 0.2s ease;
    border: 1px solid rgba(31, 26, 24, 0.05);
}

.product-composition-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(31, 26, 24, 0.1);
}

.product-composition-list li::before {
    content: '•';
    position: absolute;
    left: 16px;
    color: rgba(185, 52, 49, 0.5);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-aroma-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .product-aroma-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.aroma-column {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 245, 240, 0.4));
    border: 1px solid rgba(31, 26, 24, 0.08);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(31, 26, 24, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.aroma-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(185, 52, 49, 0.3), rgba(31, 26, 24, 0.3));
}

.aroma-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 26, 24, 0.08);
}

.aroma-column h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-burgundy);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(31, 26, 24, 0.1);
}

.aroma-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-primary);
}

.aroma-list li {
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: background 0.2s ease;
    color: var(--text-primary);
    border: 1px solid rgba(31, 26, 24, 0.05);
}

.aroma-list li:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(31, 26, 24, 0.1);
}

.aroma-placeholder {
    margin: 0;
    color: var(--dusty-pink);
    font-size: 0.95rem;
}

.product-placeholder-text {
    color: var(--dusty-pink);
    font-style: italic;
    margin: 0;
}

/* Аккордеон для Пирамиды аромата и Состава */
.product-accordion-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-accordion-item {
    background: transparent;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(31, 26, 24, 0.1);
    border-bottom: 1px solid rgba(31, 26, 24, 0.1);
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-accordion-item:hover {
    box-shadow: none;
    border-color: rgba(31, 26, 24, 0.15);
}

.product-accordion-header {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
    color: var(--dark-burgundy);
}

.product-accordion-header:hover {
    background: transparent;
}

.accordion-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--dark-burgundy);
    letter-spacing: 0.3px;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-burgundy);
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.product-accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.product-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.product-accordion-item.active .product-accordion-content {
    max-height: 2000px;
    padding: 0 0 16px 0;
}

/* Обновленные стили для колонок аромата в аккордеоне */
.product-accordion-content .aroma-column {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 245, 240, 0.4));
    border: 1px solid rgba(31, 26, 24, 0.08);
    box-shadow: 0 1px 4px rgba(31, 26, 24, 0.04);
}

.product-accordion-content .aroma-column::before {
    background: linear-gradient(90deg, rgba(185, 52, 49, 0.3), rgba(31, 26, 24, 0.3));
    height: 2px;
}

.product-accordion-content .aroma-list li {
    background: rgba(255, 255, 255, 0.8);
}

.product-accordion-content .aroma-list li:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Стили для списка состава в аккордеоне */
.product-accordion-content .product-composition-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-accordion-content .product-composition-list li {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    padding-left: 32px;
    transition: background 0.2s ease;
    border: 1px solid rgba(31, 26, 24, 0.05);
}

.product-accordion-content .product-composition-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(31, 26, 24, 0.1);
}

.product-accordion-content .product-composition-list li::before {
    content: '•';
    position: absolute;
    left: 16px;
    color: rgba(185, 52, 49, 0.5);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-delivery-content {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-delivery-content p {
    margin: 0 0 12px 0;
}

.product-delivery-content ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style: disc;
}

.product-delivery-content li {
    margin-bottom: 8px;
}

/* Секция безопасности */
.product-safety {
    background: transparent;
    border: none;
    padding: 100px 40px;
    margin: 100px 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    width: 100%;
    max-width: 100%;
    background-color: transparent;
}

.product-safety::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(155, 89, 182, 0.6) 0%,
        rgba(39, 174, 96, 0.6) 25%,
        rgba(52, 152, 219, 0.6) 50%,
        rgba(233, 30, 99, 0.6) 75%,
        rgba(155, 89, 182, 0.6) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.product-safety-title {
    text-align: center;
    font-size: 1.75rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    color: var(--dark-burgundy);
    margin: 0 auto 64px;
    letter-spacing: 0.02em;
    position: relative;
    max-width: 600px;
    line-height: 1.4;
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

.product-safety-title::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-burgundy-accent), transparent);
    opacity: 0.3;
}

.product-safety-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 32px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 1200px) {
    .product-safety-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 56px 40px;
    }
}

.product-safety-item {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.product-safety-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background: linear-gradient(180deg, transparent, var(--dark-burgundy-accent), transparent);
    opacity: 0.15;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-safety-item:hover::before {
    height: 100%;
}

.product-safety-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-safety-icon-wrapper {
    width: 80px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--safety-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    opacity: 0.85;
}

.product-safety-item:hover .product-safety-icon-wrapper {
    transform: translateY(-4px);
    opacity: 1;
}

/* Эффект свечения для SVG иконок - минималистичный */
.product-safety-candle-icon {
    width: 100%;
    height: 100%;
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 0.5px var(--safety-color)) 
            drop-shadow(0 0 1px color-mix(in srgb, var(--safety-color) 15%, transparent));
}

.product-safety-item:hover .product-safety-candle-icon {
    filter: drop-shadow(0 0 1px var(--safety-color)) 
            drop-shadow(0 0 2px color-mix(in srgb, var(--safety-color) 20%, transparent))
            drop-shadow(0 0 4px color-mix(in srgb, var(--safety-color) 10%, transparent));
}

/* Эффект свечения для кастомных иконок (изображений) - минималистичный */
.product-safety-custom-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 0.5px var(--safety-color)) 
            drop-shadow(0 0 1px color-mix(in srgb, var(--safety-color) 15%, transparent));
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-safety-item:hover .product-safety-custom-icon {
    filter: drop-shadow(0 0 1px var(--safety-color)) 
            drop-shadow(0 0 2px color-mix(in srgb, var(--safety-color) 20%, transparent))
            drop-shadow(0 0 4px color-mix(in srgb, var(--safety-color) 10%, transparent));
}



.product-safety-text {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-weight: 300;
    width: 100%;
    max-width: 240px;
    letter-spacing: 0.01em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.product-safety-item:hover .product-safety-text {
    opacity: 1;
}


.product-safety-image-wrapper {
    width: 100%;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.product-safety-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Бегущая строка */
.product-marquee {
    background: #f596c9;
    color: white;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin: 60px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.product-marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Блок «Вам понравится» на всю ширину страницы — выходит за пределы .container */
.product-recommendations {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    margin-top: 60px;
}

.product-recommendations-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.product-recommendations .product-section-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-bottom: 14px;
    width: 100%;
    display: block;
}

.product-recommendations .product-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--rich-crimson), transparent);
    border-radius: 2px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .recommendation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .recommendation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(27, 16, 18, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 26, 24, 0.08);
}

/* Мини-карточка: квадратная миниатюра, название и цена по центру, кнопка В корзину */
.recommendation-card-mini .recommendation-image-wrapper {
    aspect-ratio: 1;
}

.recommendation-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.recommendation-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Карточка: колонка, тело растягивается — кнопка «Подробнее» прижата к низу, на одной линии в ряду */
.recommendation-card-mini {
    display: flex;
    flex-direction: column;
}

.recommendation-card-mini .recommendation-body-mini {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 10px 16px;
    gap: 8px;
}

.recommendation-body-mini .recommendation-name-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.recommendation-body-mini .recommendation-name {
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    color: var(--dark-burgundy);
    line-height: 1.3;
    text-align: center;
}

.recommendation-body-mini .recommendation-name-link:hover .recommendation-name {
    color: var(--rich-crimson);
}

/* Цена и кнопка в одном блоке внизу — на одном уровне по всему ряду */
.recommendation-body-mini .recommendation-bottom {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.recommendation-bottom .recommendation-price {
    font-weight: 600;
    color: var(--dark-burgundy);
    font-size: 0.95rem;
    text-align: center;
}

.recommendation-bottom .recommendation-add-to-cart {
    width: 100%;
    max-width: 140px;
    padding: 8px 14px;
    font-size: 0.85rem;
}

.recommendation-grid-six {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Мини-карточки в блоке «Вам могут понравиться» — компактный вид */
.product-recommendations .recommendation-grid-six .recommendation-card-mini {
    max-width: 160px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
}

.product-recommendations .recommendation-grid-six .recommendation-image-wrapper {
    aspect-ratio: 1;
    max-height: 140px;
    flex-shrink: 0;
}

.product-recommendations .recommendation-grid-six .recommendation-body-mini {
    padding: 10px 8px 12px;
    gap: 6px;
    min-height: 88px;
    flex: 1 1 auto;
}

.product-recommendations .recommendation-grid-six .recommendation-name-link {
    flex: 0 1 auto;
    min-height: 0;
}

.product-recommendations .recommendation-grid-six .recommendation-name {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #1f1a18;
    margin: 0;
    min-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-recommendations .recommendation-grid-six .recommendation-bottom {
    flex-shrink: 0;
    margin-top: 4px;
}

.product-recommendations .recommendation-grid-six .recommendation-bottom .recommendation-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f1a18;
}

.product-recommendations .recommendation-grid-six .recommendation-details-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    color: #1f1a18;
    border: 1px solid rgba(31, 26, 24, 0.35);
    background: #faf8f3;
}
.product-recommendations .recommendation-grid-six .recommendation-details-btn:hover {
    background: rgba(31, 26, 24, 0.08);
}

@media (max-width: 1200px) {
    .recommendation-grid-six { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .product-recommendations .recommendation-grid-six .recommendation-card-mini { max-width: 140px; }
    .product-recommendations .recommendation-grid-six .recommendation-image-wrapper { max-height: 140px; }
}
@media (max-width: 768px) {
    .recommendation-grid-six { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .product-recommendations .recommendation-grid-six .recommendation-card-mini { max-width: 120px; }
    .product-recommendations .recommendation-grid-six .recommendation-image-wrapper { max-height: 120px; }
}
@media (max-width: 480px) {
    .recommendation-grid-six { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-recommendations .recommendation-grid-six .recommendation-card-mini { max-width: none; }
    .product-recommendations .recommendation-grid-six .recommendation-image-wrapper { max-height: 140px; }
}

.recommendation-details-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--dark-burgundy);
    border: 1px solid rgba(31, 26, 24, 0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.recommendation-details-btn:hover {
    background: rgba(31, 26, 24, 0.06);
    border-color: var(--dark-burgundy);
}

.product-highlights-compact.product-highlights-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.product-highlights-compact .product-highlight-card {
    padding: 6px 8px;
}
.product-highlights-compact .highlight-label {
    font-size: 0.6rem;
}
.product-highlights-compact .highlight-value {
    font-size: 0.75rem;
}

.product-page-info .product-page-article {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.product-delivery-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.product-page-marquee-pink {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: rgba(245, 150, 201, 0.25);
    padding: 12px 0;
    margin-top: 32px;
    overflow: hidden;
}
.product-page-marquee-inner {
    overflow: hidden;
}
.product-page-marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: product-marquee-scroll 40s linear infinite;
    color: var(--dark-burgundy);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
@keyframes product-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ——— Обёртка ритуал + «Вам могут понравиться»: полный экран, эффект стекла/воды ——— */
.product-ritual-rec-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 48px;
    overflow: hidden;
    box-sizing: border-box;
    isolation: isolate;
}
/* Слой «стекло»: размытие и лёгкое искажение пространства за блоком */
.product-ritual-rec-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(247, 247, 247, 0.88) 0%, rgba(240, 238, 235, 0.85) 40%, rgba(235, 232, 228, 0.82) 70%, rgba(250, 248, 243, 0.88) 100%);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    background-size: 100% 200%;
    background-position: 0 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
/* Лёгкая «рябь» для эффекта воды за стеклом */
.product-ritual-rec-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    min-height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}
.product-ritual-rec-wrap--in-view::before {
    opacity: 1;
    animation: ritual-rec-bg-flow 5s ease-in-out infinite;
}
.product-ritual-rec-wrap--in-view::after {
    opacity: 1;
    animation: ritual-glass-shimmer 8s ease-in-out infinite;
}
@keyframes ritual-rec-bg-flow {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 0 25%; }
}
@keyframes ritual-glass-shimmer {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.06; }
}
.product-ritual-rec-wrap > .product-ritual,
.product-ritual-rec-wrap > .product-recommendations {
    position: relative;
    z-index: 1;
}

/* ——— Ритуал свечи: контент по центру рабочего поля, визуально на полный экран ——— */
.product-ritual {
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding: 48px 24px 40px;
    background: transparent;
    border-radius: 0;
}
.product-ritual-title {
    margin-bottom: 28px;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}
.product-ritual-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .product-ritual-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-ritual-steps { grid-template-columns: 1fr; }
}

.ritual-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    background: transparent;
    border: none;
    transition: none;
}
.ritual-step--text-top {
    flex-direction: column-reverse;
}
.ritual-step--text-bottom {
    flex-direction: column;
}
.ritual-step:hover {
    transform: none;
}
.ritual-step--animate {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}
.ritual-step--visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ritual-step--visible:nth-child(1) { animation: ritual-step-in 0.5s ease forwards; }
.ritual-step--visible:nth-child(2) { animation: ritual-step-in 0.5s 0.08s ease forwards; }
.ritual-step--visible:nth-child(3) { animation: ritual-step-in 0.5s 0.16s ease forwards; }
.ritual-step--visible:nth-child(4) { animation: ritual-step-in 0.5s 0.24s ease forwards; }

@keyframes ritual-step-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ritual-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    font-size: 9rem;
    font-weight: 700;
    line-height: 0.9;
    color: #b0b0b0;
    font-family: 'Montserrat', sans-serif;
}
.ritual-step-body {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
}
.ritual-step-text {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-primary);
}
.ritual-step-warning-toggle {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--rich-crimson);
    background: rgba(185, 52, 49, 0.06);
    border: 1px solid rgba(185, 52, 49, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ritual-step-warning-toggle:hover {
    background: rgba(185, 52, 49, 0.12);
}
.ritual-step-warning {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(255, 243, 224, 0.9);
    border-radius: 8px;
    border-left: 4px solid var(--rich-crimson);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.ritual-step-warning p {
    margin: 0;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(27, 16, 18, 0.12);
    border-color: rgba(31, 26, 24, 0.15);
}

.recommendation-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
}

.recommendation-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .recommendation-image-wrapper img {
    transform: scale(1.05);
}

.recommendation-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.recommendation-favorite-btn:hover {
    transform: scale(1.1);
}

.recommendation-favorite-btn.active {
    color: #e91e63;
}

.recommendation-favorite-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.recommendation-favorite-btn.active svg {
    fill: #e91e63;
    stroke: #e91e63;
}

.recommendation-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.recommendation-name {
    margin: 0;
    font-size: 1rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    color: var(--dark-burgundy);
    line-height: 1.3;
}

.recommendation-description {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(90, 42, 58, 0.7);
    line-height: 1.4;
}

.recommendation-price {
    font-weight: 600;
    color: var(--dark-burgundy);
    font-size: 1rem;
}

.recommendation-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f596c9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.recommendation-details-btn:hover {
    background: #f38ab8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 150, 201, 0.3);
}

.btn-link {
    background: none;
    border: none;
    color: var(--dark-burgundy);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: var(--rich-crimson);
}

@media (max-width: 1024px) {
    .product-detail-section {
        padding: 36px;
    }

    .product-highlight-grid:not(.product-highlights-row) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-page-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-page-right {
        position: static;
    }

    .product-accordion-container {
        margin-top: 0;
    }

    .product-accordion-header {
        padding: 14px 16px;
    }

    .accordion-title {
        font-size: 0.9rem;
    }

    .product-accordion-content {
        padding: 0 16px;
    }

    .product-accordion-item.active .product-accordion-content {
        padding: 0 16px 16px 16px;
    }

    .product-highlight-grid:not(.product-highlights-row) {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-section {
        padding: 28px;
        margin-bottom: 48px;
    }

    .product-safety {
        padding: 40px 24px;
        margin: 48px 0;
    }

    .product-safety-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .product-safety-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-safety-text {
        max-width: 100%;
    }

    .product-safety-icon-wrapper {
        width: 80px;
        height: 100px;
    }

    .product-safety-candle-icon,
    .product-safety-custom-icon {
        filter: drop-shadow(0 0 1px var(--safety-color)) 
                drop-shadow(0 0 2px color-mix(in srgb, var(--safety-color) 20%, transparent))
                drop-shadow(0 0 3px color-mix(in srgb, var(--safety-color) 10%, transparent));
    }

    .product-safety-icon-wrapper::after {
        width: 100%;
        height: 100%;
        filter: blur(6px);
        opacity: 0.02;
    }

    .product-section-title {
        font-size: 1.6rem;
    }

    .product-summary-actions {
        align-items: flex-start;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .product-highlight-grid:not(.product-highlights-row) {
        grid-template-columns: 1fr;
    }

    .product-price-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Блог */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(31, 26, 24, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--light-beige);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--rich-crimson);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-beige);
    color: var(--dark-burgundy);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card-link {
    color: var(--rich-crimson);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: var(--dark-burgundy);
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Страница отдельной статьи */
.article-page {
    padding: 40px 0;
}

.article-header {
    margin-bottom: 40px;
}

.article-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-color);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-meta {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.8rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 1.5rem;
    font-family: 'Doloman Pavljenko', sans-serif;
    font-weight: normal;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.article-body a {
    color: var(--rich-crimson);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: var(--dark-burgundy);
}

.article-body blockquote {
    border-left: 4px solid var(--rich-crimson);
    padding-left: 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-back:hover {
    background: var(--rich-crimson);
    color: white;
    border-color: var(--rich-crimson);
}

/* Стили для выбора способа оплаты */
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-option:hover {
    border-color: #d4a574;
    background: #fafafa;
}

.payment-method-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4a574;
}

.payment-method-option input[type="radio"]:checked + div {
    font-weight: 600;
}

.payment-method-option input[type="radio"]:checked ~ div {
    font-weight: 600;
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: #d4a574;
    background: #fff9f5;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .payment-method-options {
        gap: 10px;
    }
    
    .payment-method-option {
        padding: 12px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-featured-image {
        margin-bottom: 24px;
    }
}

/* ========== Главная страница: анимации появления с задержкой ========== */
@keyframes homeFadeDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes homeSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes homeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes homeFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes homeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes homeScaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.home-anim {
    opacity: 0;
    will-change: opacity, transform;
}

.home-anim.in-view {
    animation-fill-mode: both;
    will-change: auto;
}

/* 1. Заголовок «Наши изделия» */
.home-anim.in-view[data-home-anim="fade-down"] {
    animation: homeFadeDown 0.6s ease-out 0s forwards;
}

/* 2. Фильтры */
.home-anim.in-view[data-home-anim="slide-left"] {
    animation: homeSlideLeft 0.55s ease-out 0.1s forwards;
}

/* 3. Карточки товаров — каскад снизу вверх, до 8 карточек, с задержкой */
.home-anim-cards.in-view {
    opacity: 1;
}
.home-anim-cards.in-view .product-card {
    opacity: 0;
    animation: homeFadeUp 0.55s ease-out forwards;
}
.home-anim-cards.in-view .product-card:nth-child(1) { animation-delay: 0.12s; }
.home-anim-cards.in-view .product-card:nth-child(2) { animation-delay: 0.24s; }
.home-anim-cards.in-view .product-card:nth-child(3) { animation-delay: 0.36s; }
.home-anim-cards.in-view .product-card:nth-child(4) { animation-delay: 0.48s; }
.home-anim-cards.in-view .product-card:nth-child(5) { animation-delay: 0.6s; }
.home-anim-cards.in-view .product-card:nth-child(6) { animation-delay: 0.72s; }
.home-anim-cards.in-view .product-card:nth-child(7) { animation-delay: 0.84s; }
.home-anim-cards.in-view .product-card:nth-child(8) { animation-delay: 0.96s; }
.home-anim-cards.in-view .product-card:nth-child(n+9) {
    opacity: 0;
    animation: homeFadeUp 0.55s ease-out 0.96s forwards;
}

/* 4. Сообщество Lumos — поочерёдное появление при входе секции в зону видимости */
.social-hub.in-view {
    opacity: 1;
}
.social-hub .social-hub-el-1,
.social-hub .social-hub-el-2,
.social-hub .social-hub-el-3,
.social-hub .social-hub-el-4,
.social-hub .social-hub-el-5,
.social-hub .social-hub-el-6 {
    opacity: 0;
    will-change: opacity, transform;
}

.social-hub.in-view .social-hub-el-1,
.social-hub.in-view .social-hub-el-2,
.social-hub.in-view .social-hub-el-3,
.social-hub.in-view .social-hub-el-4,
.social-hub.in-view .social-hub-el-5,
.social-hub.in-view .social-hub-el-6 {
    will-change: auto;
}

.social-hub.in-view .social-hub-el-1 {
    animation: homeFadeUp 0.7s ease-out 0s forwards;
}
.social-hub.in-view .social-hub-el-2 {
    animation: homeFadeUp 0.7s ease-out 0.45s forwards;
}
.social-hub.in-view .social-hub-el-3 {
    animation: homeSlideRight 0.6s ease-out 0.9s forwards;
}
.social-hub.in-view .social-hub-el-4 {
    animation: homeScaleIn 0.5s ease-out 1.2s forwards;
}
.social-hub.in-view .social-hub-el-5 {
    animation: homeScaleIn 0.5s ease-out 1.45s forwards;
}
.social-hub.in-view .social-hub-el-6 {
    animation: homeScaleIn 0.5s ease-out 1.7s forwards;
}

/* Футер */
.home-anim.in-view[data-home-anim="fade-in"] {
    animation: homeFadeIn 0.7s ease-out 0s forwards;
}
