/* Подключение шрифта 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;
}

/* Цветовая палитра из изображения */
:root {
    --dark-teal: #1a3d3f;        /* Темно-бирюзовый/изумрудный */
    --almost-black: #1a1a1a;     /* Почти черный */
    --dark-burgundy: #5a2a3a;    /* Темно-бордовый/сливовый */
    --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);
}

/* Темная тема */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: var(--light-beige);
    --text-secondary: var(--dusty-pink);
    --header-bg: #47000B;
    --border-color: #3a3a3a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #47000B 0%, #B93431 100%);
    --gradient-primary-hover: linear-gradient(135deg, #651024 0%, #e2564f 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    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;
}

/* Магический эффект при переключении темы */
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(90, 42, 58, 0.3) 0%, 
                                transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 9999;
}

body.theme-transitioning::before {
    opacity: 1;
    animation: magicRipple 1s ease-out;
}

@keyframes magicRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

/* Header */
.header {
    background-color: var(--header-bg);
    padding: 15px 0 0 0;
    border-bottom: 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);
    position: relative;
    overflow: visible;
}

.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.theme-transitioning::before {
    left: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 15px;
    min-height: 80px;
    padding-bottom: 15px;
}

.header-right {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Навигация в шапке */
.header-navigation {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding-top: 0;
    padding-bottom: 0;
    align-self: flex-end;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    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;
    width: 100%;
}

.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 {
    position: relative;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.cart-icon-header:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cart-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);
}

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

/* Переключатель темы */
.theme-toggle-container {
    position: relative;
    z-index: 2;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 35px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-burgundy), var(--rich-crimson));
    border-radius: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(90, 42, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

[data-theme="dark"] .toggle-slider {
    background: linear-gradient(135deg, #47000B, var(--rich-crimson));
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 27px;
    width: 27px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.theme-toggle input:checked + .toggle-slider::before {
    transform: translateX(35px);
}

.toggle-icon {
    font-size: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.toggle-icon:first-child {
    opacity: 1;
    transform: scale(1);
}

.toggle-icon:last-child {
    opacity: 0.3;
    transform: scale(0.8);
}

.theme-toggle input:checked + .toggle-slider .toggle-icon:first-child {
    opacity: 0.3;
    transform: scale(0.8);
}

.theme-toggle input:checked + .toggle-slider .toggle-icon:last-child {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle:hover .toggle-slider {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(90, 42, 58, 0.4);
}

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

[data-theme="dark"] .about-section {
    background: #201316;
}

.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-size: 2.5rem;
    color: #fff1e4;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
    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;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
    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;
    color: var(--text-secondary);
    margin-bottom: 15px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.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);
    padding: 10px 0;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.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(90, 42, 58, 0.15);
}

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

.benefit-item p {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    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;
    }
    
    .header-navigation {
        width: 100%;
        justify-content: center;
        gap: 12px;
        padding-top: 8px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .header-right {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 5px;
    }
}

@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(90, 42, 58, 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-container {
    position: relative;
}

.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);
    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);
    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 {
    padding: 12px 24px;
    border: 2px solid var(--dark-burgundy);
    background-color: var(--bg-secondary);
    color: var(--dark-burgundy);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Franks Rus', 'Georgia', serif;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background-color: var(--dark-burgundy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 42, 58, 0.3);
}

.filter-btn.active {
    background-color: var(--dark-burgundy);
    color: white;
    box-shadow: 0 4px 12px rgba(90, 42, 58, 0.3);
}

/* Цвета фильтров в градиентной последовательности (бордовые оттенки) */
.filter-harry-potter {
    border-color: #AA4439;
    color: #AA4439;
}

.filter-harry-potter:hover,
.filter-harry-potter.active {
    background-color: #AA4439;
    color: white;
}

.filter-autumn {
    border-color: #B9544A;
    color: #B9544A;
}

.filter-autumn:hover,
.filter-autumn.active {
    background-color: #B9544A;
    color: white;
}

.filter-new-year {
    border-color: #C8645B;
    color: #C8645B;
}

.filter-new-year:hover,
.filter-new-year.active {
    background-color: #C8645B;
    color: white;
}

.filter-candles {
    border-color: #D7746C;
    color: #D7746C;
}

.filter-candles:hover,
.filter-candles.active {
    background-color: #D7746C;
    color: white;
}

.filter-gift-sets {
    border-color: #E6847D;
    color: #E6847D;
}

.filter-gift-sets:hover,
.filter-gift-sets.active {
    background-color: #E6847D;
    color: white;
}


.section-title {
    font-size: 2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

/* 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;
}

.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: 80px 0 100px;
    background: radial-gradient(circle at top, rgba(255, 214, 190, 0.2), transparent 65%);
}

.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-burgundy);
    margin-bottom: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.product-back-link:hover {
    color: var(--rich-crimson);
    transform: translateX(-3px);
}

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

.product-page-message {
    padding: 60px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(27, 16, 18, 0.1);
    font-size: 1.1rem;
    color: var(--dark-burgundy);
}

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

.product-page-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

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

.product-media-viewer {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(27, 16, 18, 0.1);
    padding: 20px;
}

.product-media-main {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    position: relative;
}

.product-media-main img,
.product-media-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-media-thumbnails {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f5f5f5;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    aspect-ratio: 3/4;
    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(90, 42, 58, 0.3);
}

.product-thumb.active {
    border-color: var(--dark-burgundy);
    box-shadow: 0 2px 8px rgba(90, 42, 58, 0.15);
}

/* Навигационные кнопки слайдера */
.product-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-burgundy);
    border: 2px solid rgba(90, 42, 58, 0.15);
    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 4px 12px rgba(27, 16, 18, 0.15);
    opacity: 0;
    pointer-events: none;
}

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

.product-slider-nav:hover {
    background: var(--dark-burgundy);
    color: white;
    border-color: var(--dark-burgundy);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 42, 58, 0.3);
}

.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(0, 0, 0, 0.6);
    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: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(27, 16, 18, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-page-name {
    font-size: 2rem;
    color: var(--dark-burgundy);
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.product-page-price {
    font-size: 1.75rem;
    color: var(--rich-crimson);
    margin-bottom: 16px;
    font-weight: 600;
}

.product-page-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    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;
}

.badge-exclusive {
    background: rgba(90, 42, 58, 0.12);
    color: var(--dark-burgundy);
}

.badge-last {
    background: rgba(185, 52, 49, 0.15);
    color: var(--rich-crimson);
}

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

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

.product-description {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 1rem;
    margin-top: 20px;
}

.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;
}

.product-page-add {
    width: 100%;
    max-width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    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 8px 24px rgba(90, 42, 58, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.product-page-add::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-burgundy) 0%, var(--rich-crimson) 100%);
    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 12px 32px rgba(90, 42, 58, 0.35);
}

.product-page-add:hover::before {
    background: linear-gradient(135deg, var(--rich-crimson) 0%, var(--dark-burgundy) 100%);
}

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

.product-page-add:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(90, 42, 58, 0.3);
    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: linear-gradient(135deg, var(--rich-crimson) 0%, var(--dark-burgundy) 100%);
}

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

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

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

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

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

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

    .product-page-price {
        font-size: 1.5rem;
    }

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

    .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;
    }

    .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; /* Дополнительная поддержка для современных браузеров */
}

.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: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-name {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-price {
    font-size: 1.3rem;
    color: var(--rich-crimson);
    margin-bottom: 15px;
    font-weight: 500;
}

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

.product-badge {
    display: inline-block;
    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.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background-color: #2a2421;
    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);
}

@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: var(--dark-burgundy);
    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: 1001;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 25px;
}

.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-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;
}

.modal-product-price {
    font-size: 1.3rem;
    color: var(--rich-crimson);
    margin-bottom: 15px;
    text-align: center;
}

/* Плашки в модальном окне */
.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);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(90, 42, 58, 0.4);
    transition: all 0.3s ease, background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

[data-theme="dark"] .cart-icon {
    background-color: #47000B;
    box-shadow: 0 4px 15px rgba(71, 0, 11, 0.5);
}

.cart-icon:hover {
    background-color: var(--rich-crimson);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(90, 42, 58, 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;
}

/* Ссылка на админку */
.admin-link {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(90, 42, 58, 0.1);
    color: var(--dark-burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    opacity: 0.3;
    transition: all 0.3s ease, 
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

[data-theme="dark"] .admin-link {
    background-color: rgba(71, 0, 11, 0.2);
    color: var(--dusty-pink);
}

.admin-link:hover {
    opacity: 1;
    background-color: rgba(90, 42, 58, 0.2);
    transform: scale(1.1);
}

/* Пошаговая форма оформления заказа */
.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;
}

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

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

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

.step-title {
    color: var(--dark-burgundy);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.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: var(--gradient-primary);
    color: white;
    margin-left: auto;
    box-shadow: 0 8px 20px rgba(71, 0, 11, 0.25);
}

.btn-step-next:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(71, 0, 11, 0.35);
}

.btn-step-back {
    background: var(--light-beige);
    color: var(--dark-burgundy);
    border: 2px solid var(--dusty-pink);
}

.btn-step-back:hover {
    background: var(--dusty-pink);
    color: white;
}

/* Просмотр заказа */
.order-review {
    background: var(--light-beige);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(90, 42, 58, 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: var(--dark-burgundy);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.review-section p {
    margin-bottom: 8px;
    color: var(--dark-burgundy);
    line-height: 1.6;
    font-weight: 400;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(90, 42, 58, 0.15);
}

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

.review-item span:first-child {
    color: var(--dark-burgundy);
    font-weight: 500;
}

.review-item span:last-child {
    color: var(--rich-crimson);
    font-weight: 600;
}

.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: var(--dark-burgundy);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Стили для автодополнения адресов Яндекс.Карт */
.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;
}

[data-theme="dark"] .ymaps-suggest {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .ymaps-suggest-item {
    color: var(--text-primary);
    border-bottom-color: rgba(196, 165, 165, 0.2);
}

[data-theme="dark"] .ymaps-suggest-item:hover,
[data-theme="dark"] .ymaps-suggest-item__selected {
    background-color: rgba(90, 42, 58, 0.3);
    color: var(--text-primary);
}

/* Контейнер для подсказок адресов */
.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;
}

[data-theme="dark"] .custom-suggestions-list {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .custom-suggestions-item {
    color: var(--text-primary);
    border-bottom-color: rgba(196, 165, 165, 0.2);
}

[data-theme="dark"] .custom-suggestions-item:hover,
[data-theme="dark"] .custom-suggestions-item.selected {
    background-color: rgba(90, 42, 58, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .checkout-form .form-group label {
    color: rgba(255, 240, 232, 0.92);
}

[data-theme="dark"] .cart-item-name {
    color: white;
}

[data-theme="dark"] .cart-total {
    color: white;
}

[data-theme="dark"] .checkout-total {
    color: white;
}

[data-theme="dark"] .quantity-value {
    color: white;
}

[data-theme="dark"] .cart-title {
    color: white;
}

[data-theme="dark"] .checkout-title {
    color: white;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea,
.checkout-form .form-group select {
    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(--bg-secondary);
    color: var(--dark-burgundy);
    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 small {
    display: block;
    margin-top: 5px;
    color: var(--dark-burgundy);
    font-size: 0.85rem;
    opacity: 0.7;
}

.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);
}

/* Карта для выбора пункта выдачи */
.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: #666;
    text-align: center;
    font-size: 0.9rem;
}

.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: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 10px 24px rgba(71, 0, 11, 0.25);
}

.btn-submit-order:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(71, 0, 11, 0.35);
}

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

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

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.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);
    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-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.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(90, 42, 58, 0.05);
}

.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-size: 1rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--rich-crimson);
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--dark-burgundy);
    color: white;
    border-color: var(--dark-burgundy);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--rich-crimson);
    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;
}

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

.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-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(71, 0, 11, 0.25);
}

.btn-checkout:hover:not(:disabled) {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(71, 0, 11, 0.35);
}

.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-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    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: var(--text-primary);
    transition: all 0.3s ease;
}

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

.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-color: var(--dark-burgundy);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-order:hover {
    background-color: var(--rich-crimson);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 42, 58, 0.3);
}

/* Footer */
.footer {
    background-color: var(--header-bg);
    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-weight: 500;
    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;
}

.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: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 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;
    }
    
    .theme-toggle {
        width: 60px;
        height: 30px;
    }
    
    .toggle-slider::before {
        height: 22px;
        width: 22px;
    }
    
    .theme-toggle input:checked + .toggle-slider::before {
        transform: translateX(30px);
    }
    
    .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: 'Fira Code', monospace;
    font-size: 14px;
}

.customer-bot-link a {
    display: inline-block;
    padding: 10px 18px;
    background: var(--dark-burgundy);
    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);
    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:#1f1a18}.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(90, 42, 58, 0.4), transparent 65%);
}

[data-theme="dark"] .social-hub {
    background: linear-gradient(135deg, rgba(71, 0, 11, 0.55), rgba(20, 20, 20, 0.92));
}

[data-theme="dark"] .social-hub::before,
[data-theme="dark"] .social-hub::after {
    opacity: 0.35;
}

.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);
}

[data-theme="dark"] .social-hub-label {
    color: rgba(255, 225, 220, 0.65);
}

[data-theme="dark"] .social-hub-label::before {
    background: rgba(255, 225, 220, 0.35);
}

.social-heading-text h2 {
    font-family: 'Cinzel', 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);
}

[data-theme="dark"] .social-cta-note {
    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(90, 42, 58, 0.12);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(90, 42, 58, 0.18);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(40, 20, 30, 0.85);
    color: rgba(255, 225, 220, 0.85);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.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);
}

[data-theme="dark"] .btn-instagram {
    box-shadow: 0 18px 42px rgba(214, 41, 118, 0.55);
}

.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);
}

.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);
}

[data-theme="dark"] .social-story-strip {
    background: rgba(32, 18, 26, 0.88);
    border-color: rgba(255, 225, 220, 0.08);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .social-story-strip::before {
    background: linear-gradient(90deg, rgba(32, 18, 26, 0.95), transparent);
}

[data-theme="dark"] .social-story-strip::after {
    background: linear-gradient(270deg, rgba(32, 18, 26, 0.95), transparent);
}

.story-track {
    display: flex;
    gap: 22px;
    width: max-content;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.story-track::-webkit-scrollbar {
    display: none;
}

.story-track:active {
    cursor: grabbing;
}

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

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

.story-item span {
    position: relative;
    z-index: 1;
    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);
}

.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);
}

.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; }

[data-theme="dark"] .story-item {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .story-item::before {
    background: linear-gradient(180deg, transparent 35%, rgba(10, 6, 8, 0.78));
}

@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: 24px;
    padding: 32px;
    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);
}

[data-theme="dark"] .social-tile--telegram {
    background: linear-gradient(135deg, rgba(16, 80, 126, 0.92), rgba(39, 138, 194, 0.88));
    box-shadow: 0 42px 80px rgba(0, 0, 0, 0.55);
}

.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: 18px;
}

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

.tile-header h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

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

.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;
}

.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);
}

[data-theme="dark"] .chat-bubble--bot {
    background: rgba(9, 43, 69, 0.58);
}

.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: 24px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-height: 190px;
    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: 10px;
}

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

.mini-content strong {
    font-size: 0.98rem;
    line-height: 1.45;
}

.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);
}

[data-theme="dark"] .mini-card--instagram {
    background: linear-gradient(145deg, rgba(88, 40, 68, 0.78), rgba(50, 29, 66, 0.82));
    border-color: rgba(214, 41, 118, 0.38);
    color: var(--light-beige);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
}

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

[data-theme="dark"] .mini-card--reviews {
    background: linear-gradient(150deg, rgba(255, 195, 110, 0.88), rgba(235, 130, 100, 0.78));
    color: rgba(32, 16, 4, 0.92);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
}

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

.mini-rating span {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
}

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

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

.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); }
}

[data-theme="dark"] .social-showcase .mini-card {
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .mini-card--vk {
    background: linear-gradient(140deg, rgba(32, 64, 109, 0.95), rgba(44, 102, 166, 0.92));
}

[data-theme="dark"] .mini-card--reviews {
    background: linear-gradient(150deg, rgba(255, 182, 102, 0.88), rgba(235, 119, 86, 0.76));
}

@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;
    }

    .story-item {
        min-width: 120px;
    }

    .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;
    animation: fadeInUp 0.6s ease-out;
}

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

.product-page-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.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(90, 42, 58, 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);
}

.product-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.product-highlight-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(90, 42, 58, 0.1);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(27, 16, 18, 0.06);
}

.highlight-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.highlight-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 500;
}

.highlight-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.product-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.product-detail-section {
    margin-bottom: 80px;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 8px 24px rgba(27, 16, 18, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-section-title {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    color: var(--dark-burgundy);
    font-weight: 600;
}

.product-section-subtitle {
    margin-top: -8px;
    margin-bottom: 32px;
    color: var(--dusty-pink);
}

.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: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    align-items: start;
}

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

.usage-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.usage-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(90, 42, 58, 0.1);
    color: var(--dark-burgundy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.product-composition-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--text-primary);
    line-height: 1.7;
}

.product-aroma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.aroma-column {
    background: var(--bg-secondary);
    border: 1px solid rgba(90, 42, 58, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(27, 16, 18, 0.06);
}

.aroma-column h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-burgundy);
    font-size: 1rem;
    font-weight: 600;
}

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

.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-recommendations {
    background: linear-gradient(135deg, rgba(255, 214, 190, 0.15) 0%, rgba(255, 240, 230, 0.1) 100%);
    border: 1px solid rgba(90, 42, 58, 0.08);
}

.product-recommendations .product-section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.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(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(27, 16, 18, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(90, 42, 58, 0.08);
}

.recommendation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(27, 16, 18, 0.18);
    border-color: rgba(90, 42, 58, 0.15);
}

.recommendation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

.recommendation-body h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--dark-burgundy);
}

.recommendation-price {
    font-weight: 600;
    color: var(--rich-crimson);
}

.recommendation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.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 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

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

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

    .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 {
        grid-template-columns: 1fr;
    }

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