:root {
    /* Цветовая палитра */
    --primary-orange: #5f3616;
    --secondary-orange: #6c411d;
    --accent-orange: #ae8a67;
    --dark-orange: #2b1e12;
    --red: #c71804;

    --navbar: #412411;
    --navbar-scrolled: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f6eee7;
    --bg-dark: #654321;
    
    --text-primary: #2C1810;
    --text-secondary: #5D4037;
    --text-light: #8D6E63;
    --text-white: #FFFFFF;
    
    --border-color: #e1d6ca;
    --shadow-color: rgba(255, 107, 53, 0.15);
    --shadow-hover: rgba(255, 107, 53, 0.25);
    
    /* Градиенты */
    --gradient-orange: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    --gradient-red: linear-gradient(135deg, #cd1e0a 0%, #f9290f 100%);
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

body.has-cart {
    padding-bottom: 100px;
}

@media (min-width: 769px) {
    body.has-cart {
        padding-bottom: 0;
    }
}

html {
    scroll-behavior: smooth;
}

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

/* Типографика */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.discount-icon {
    font-size: 2rem;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--navbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-scrolled);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.149);
}

.navbar.scrolled .logo-text {
    color: var(--text-primary);
}

.navbar.scrolled .burger-btn,
.navbar.scrolled .cart-nav-btn {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0);
    background: transparent;
}

.burger-btn,
.cart-nav-btn {
    width: 45px;
    height: 45px;
    border: 1.4px solid rgba(255, 255, 255, 0);
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 16px;
}

.btn-label {
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    display: none;
}

@media (min-width: 769px) {
    .burger-btn,
    .cart-nav-btn {
        width: auto;
        min-width: 100px;
    }
    
    .btn-label {
        display: block;
    }
}

.burger-btn:hover,
.cart-nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.333);
    transform: scale(1.05);
}

.navbar.scrolled .burger-btn:hover,
.navbar.scrolled .cart-nav-btn:hover {
    border-color: rgba(0, 0, 0, 0.188);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: var(--text-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-sidebar {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-link {
    padding: 18px 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-primary);
    border-left-color: var(--primary-orange);
    color: var(--primary-orange);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    padding: 0px 0 0px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23FF8C42" opacity="0.08"/><circle cx="75" cy="75" r="1" fill="%23FF8C42" opacity="0.08"/><circle cx="50" cy="10" r="0.5" fill="%23FF8C42" opacity="0.08"/><circle cx="10" cy="60" r="0.5" fill="%23FF8C42" opacity="0.08"/><circle cx="90" cy="40" r="0.5" fill="%23FF8C42" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0px;
    animation: fadeInLeft 1s ease-out;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-img {
    width: 100%;
    height: 660px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    border-radius: 20px;
    z-index: 4;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1.2;
    text-align: left;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-orange);
    line-height: 1.2;
    text-align: left;
    margin-bottom: 40px;
}


.hero-buttons-desktop {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.hero-buttons-mobile {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.hero-cta {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    background: #5f3616;
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid #ffffff3c;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    text-align: left;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-cta::after {
    content: '→';
}

.hero-cta:hover {
    background: #48270e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta-desktop {
    display: flex;
}

.hero-cta-mobile {
    display: none;
}

.hero-image {
    position: relative;
}


.hero-title-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: none;
    font-size: 3rem;
    font-weight: 600;
    color: #00000000;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    text-align: start;
    z-index: 10;
}

/* Features Section */
.features-section {
    padding: 46px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
    padding: 45px 35px;
    background: var(--bg-primary);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.feature-icon {
    width: 85px;
    height: 85px;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--text-white);
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Products Section */
.products-section {
    padding: 46px 0;
    background: var(--bg-primary);
}

.discount-section {
    position: relative;
}

.discount-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 152, 0, 0.3);
}

.discount-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 152, 0, 0.3);
}

.tea-section {
    position: relative;
}

.tea-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 152, 0, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-image-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

.topsale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-red);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 32px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(199, 24, 4, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
}

.product-img.active {
    display: block;
}

.product-carousel-prev,
.product-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.product-card:hover .product-carousel-prev,
.product-card:hover .product-carousel-next {
    opacity: 1;
}

@media (max-width: 768px) {
    .product-carousel-prev,
    .product-carousel-next {
        opacity: 0.7;
    }
}

.product-carousel-prev:hover,
.product-carousel-next:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

.product-carousel-prev {
    left: 10px;
}

.product-carousel-next {
    right: 10px;
}

.product-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.product-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.product-carousel-indicator.active {
    background: var(--text-white);
    width: 24px;
    border-radius: 4px;
    border-color: var(--text-white);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 8px;
    flex: 1;
}

.product-features li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.product-features li:before {
    content: "✓";
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-orange);
    font-family: 'Inter', sans-serif;
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discount-badge {
    display: inline-block;
    background: var(--red);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
    align-self: flex-start;
}

.discount-badge i {
    font-size: 0.75rem;
}

.product-price-discount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.product-price-original {
    font-size: 1.33rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.7;
}

.product-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.product-button-composition {
    flex: 1;
    background: transparent;
    color: var(--bg-dark);
    border: 2px solid var(--bg-dark);
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.product-button-composition:hover {
    transform: translateY(-2px);
    background: var(--bg-dark);
    color: var(--text-white);
    box-shadow: 0 6px 20px rgba(95, 54, 22, 0.4);
}

.product-button-order {
    flex: 1;
    background: var(--bg-dark);
    color: var(--text-white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.product-button-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Order Modal */
/* Composition Modal */
.composition-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.composition-modal.active {
    opacity: 1;
    visibility: visible;
}

.composition-modal-content {
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.composition-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 10px;
}

.composition-content::-webkit-scrollbar {
    width: 6px;
}

.composition-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.composition-content::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
}

.composition-content::-webkit-scrollbar-thumb:hover {
    background: var(--bg-dark);
}

.composition-list {
    list-style: none;
    margin-top: 30px;
}

.composition-ok-btn {
    display: none;
    margin-top: 30px;
    padding: 18px 40px;
    background: var(--bg-dark);
    color: var(--text-white);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    align-self: center;
    min-width: 150px;
}

.composition-ok-btn:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.composition-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.composition-list li:before {
    content: "✓";
    color: var(--primary-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.order-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-modal-content {
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary-orange);
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.order-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.15);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 20px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px var(--shadow-color);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--shadow-hover);
}

.instagram-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: transparent;
    color: var(--red);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.instagram-link-btn:hover {
    color: #ff008d;
}

.instagram-link-btn i {
    font-size: 1.2rem;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0;
    overflow-y: auto;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal-content {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 50px;
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: none;
    max-height: 100vh;
    overflow-y: auto;
}

@media (min-width: 769px) {
    .cart-modal-content {
        max-width: 600px;
        width: 90%;
        max-height: 90vh;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        padding: 40px;
    }
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

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

.cart-item-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--red);
    color: var(--text-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 12px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #b01a09;
    transform: scale(1.1);
}

.cart-form {
    margin-top: 30px;
}

.form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.15);
}

.cart-total {
    text-align: center;
    padding: 20px;
   
    margin: 25px 0;
    font-size: 1.5rem;
    color: var(--text-primary);
   
}

.cart-total strong {
    font-family: 'Inter', serif;
}

.cart-total span {
    color: var(--primary-orange);
    font-size: 1.6rem;
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.confirmation-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirmation-modal-content {
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 50px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.confirmation-details {
    margin: 30px 0;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.confirmation-details::-webkit-scrollbar {
    width: 6px;
}

.confirmation-details::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.confirmation-details::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
}

.confirmation-details::-webkit-scrollbar-thumb:hover {
    background: var(--bg-dark);
}

.confirmation-detail {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.confirmation-detail strong {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirmation-detail span {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.confirm-btn,
.cancel-btn {
    flex: 1;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.confirm-btn {
    background: var(--gradient-red);
    color: var(--text-white);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px var(--shadow-hover);
}

.cancel-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cancel-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Checkout Button */
.checkout-btn {
    position: fixed;
    bottom: 32px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    animation: pulse 1.5s ease-in-out infinite;
}

@media (min-width: 769px) {
    .checkout-btn {
        display: none !important;
    }
}

.checkout-btn i {
    font-size: 1.3rem;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #b01a09 0%, #d6200b 100%);
    transform: translateY(-2px);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--dark-orange);
    text-decoration: underline;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
        width: 40px;
        border-radius: 0px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 0px 0 0px;
        margin-top: 60px;
    }

    .hero-img {
        border-radius: 0px;
        height: auto;
    }

    .hero-image::before {
        border-radius: 0px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .hero-text {
        display: none;
    }
    
    .hero-title {
        display: none;
    }
    
    .hero-buttons-desktop {
        display: none;
    }
    
    .hero-title-overlay {
        display: block;
        font-size: 2.45rem;
        top: 36px;
        left: 20px;
        right: 20px;
        color: var(--text-white);
    }
    
    .hero-buttons-mobile {
        display: flex;
    }
    
    .hero-cta-mobile {
        display: flex;
        font-size: 1.1rem;
        padding: 12px 30px;
        background: #5f361665;
    }

    .hero-cta-mobile:hover {
        background: #48270e8f;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-image-carousel {
        height: 320px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1.35rem;
    }
    
    .product-price-discount {
        font-size: 1.35rem;
    }
    
    .product-price-original {
        font-size: 1.15rem;
    }
    
    .composition-modal {
        padding: 0;
    }
    
    .composition-modal-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 50px 25px 30px 25px;
        box-shadow: none;
    }
    
    .composition-content {
        padding-right: 5px;
    }
    
    .composition-ok-btn {
        display: block;
        margin-top: 20px;
        padding: 16px 35px;
        font-size: 1rem;
        width: 100%;
        max-width: none;
        align-self: stretch;
    }
    
    .order-modal {
        padding: 0;
    }
    
    .order-modal-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 40px 25px;
        box-shadow: none;
    }
    
    .cart-modal-content {
        padding: 40px 25px;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cart-modal {
        padding: 0;
    }
    
    .confirmation-modal {
        padding: 0;
    }
    
    .confirmation-modal-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        box-shadow: none;
    }
    
    .cart-item {
        padding: 8px 10px;
    }
    
    .cart-item-info h4 {
        font-size: 0.95rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .cart-item-remove {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-left: 10px;
    }
    
    .cart-total {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .cart-total span {
        font-size: 1.4rem;
    }
    
    .confirmation-modal-content {
        padding: 40px 25px;
        max-height: 100vh;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .checkout-btn {
        bottom: 32px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        font-size: 1.2rem;
        padding: 22px;
        border: none;
    }
    
    .checkout-btn i {
        font-size: 1.1rem;
    }
    
    body.has-cart {
        padding-bottom: 95px !important;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px;
        padding: 0 15px;
    }
    
    .burger-btn,
    .cart-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        padding: 0;
        min-width: 40px;
    }
    
    .btn-label {
        display: none !important;
    }
    
    .logo-img {
        height: 35px;
        width: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero-section {
        margin-top: 60px;
        padding: 0px 0 0px;
    }
    
    .hero-content {
        gap: 0;
    }
    
    .hero-title-overlay {
        display: block;
        font-size: 1.85rem;
        top: 20px;
        left: 20px;
        right: 20px;
        color: var(--text-white);
    }
    
    .hero-buttons-mobile {
        display: flex;
    }
    
    .hero-cta-mobile {
        display: flex;
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    .hero-cta-mobile:hover {
        background: #48270e8f;
    }

    .hero-img {
        border-radius: 0px;
        height: auto;
    }

    .hero-image::before {
        border-radius: 0px;
    }

    .hero-content {
        gap: 0;
        padding: 0;
    }

    .hero-text {
        display: none;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-carousel {
        height: 280px;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .composition-modal {
        padding: 0;
    }
    
    .composition-modal-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 40px 20px 25px 20px;
        box-shadow: none;
    }
    
    .composition-content {
        padding-right: 5px;
    }
    
    .composition-ok-btn {
        display: block;
        margin-top: 20px;
        padding: 14px 30px;
        font-size: 0.95rem;
        width: 100%;
        max-width: none;
        align-self: stretch;
    }
    
    .order-modal {
        padding: 0;
    }
    
    .order-modal-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 34px 20px;
        box-shadow: none;
    }
    
    .cart-modal-content {
        padding: 30px 20px;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cart-modal {
        padding: 0;
    }
    
    .confirmation-modal {
        padding: 0;
    }
    
    .confirmation-modal-content {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        box-shadow: none;
    }
    
    .cart-item {
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
    }
    
    .cart-item-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-item-remove {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-left: 10px;
        margin-top: 0;
        align-self: center;
    }
    
    .cart-total {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .cart-total span {
        font-size: 1.3rem;
    }
    
    .confirmation-modal-content {
        padding: 30px 20px;
    }
    
    .confirmation-details {
        padding: 15px;
    }
    
    .confirmation-detail span {
        font-size: 1rem;
    }
    
    .checkout-btn {
        bottom: 32px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        font-size: 1.1rem;
        padding: 20px;
        border: none;
    }
    
    .checkout-btn i {
        font-size: 1rem;
    }
    
    body.has-cart {
        padding-bottom: 90px !important;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-subtitle {
        font-size: 0.95rem;
    }
}
