:root {
    --primary-color: #EC3D08;
    --primary-dark: #C52A1F;
    --secondary-color: #FFB936;
    --accent-color: #2E8B57;
    --light-color: #FFF9F0;
    --dark-color: #0E1317;
    --text-color: #333333;
    --text-light: #696969;
    --card-bg: #FFFFFF;
    --lighter-color: #F4F1EA;
    --border-color: rgba(23, 26, 33, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'auto';
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 10px !important;
}

/* Стили хедера */
header {
    background-color: #ffb936;
    backdrop-filter: blur(10px);
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 1002;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color), #a61006);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(236, 61, 8, 0.2);
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Навигация для десктопа */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.desktop-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: #000000;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

.cart-icon {
    font-size: 24px;
    color: #ff0000;
    transition: var(--transition);
}

.cart-icon-wrapper:hover .cart-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffffff, #e1e1e1);
    color: #000000;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.3);
}

/* Бургер меню для мобильных */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: var(--transition);
    display: block;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.3s ease;
    z-index: 1001;
    padding: 80px 20px 40px;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav li:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 0;
    display: block;
    transition: var(--transition);
    position: relative;
    margin: 0 10px;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav a:hover::after,
.mobile-nav a:focus::after {
    width: 80%;
}

.mobile-nav .contact-info {
    margin-top: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.5s;
    width: 100%;
    padding: 0 20px;
}

.mobile-nav.active .contact-info {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav .contact-info p {
    margin: 10px 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.mobile-nav .contact-info a {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin: 5px 0;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .mobile-nav a {
        font-size: 22px;
        padding: 14px 0;
    }
    .mobile-nav .contact-info p {
        font-size: 15px;
    }
    .mobile-nav .contact-info a {
        font-size: 17px;
    }
}

/* Адаптация для мобильных телефонов */
@media (max-width: 768px) {
    .mobile-nav {
        padding: 80px 15px 30px;
        justify-content: flex-start;
        padding-top: 100px;
    }
    .mobile-nav a {
        font-size: 20px;
        padding: 12px 0;
    }
    .mobile-nav li {
        margin: 12px 0;
    }
    .mobile-nav .contact-info {
        margin-top: 30px;
        padding: 0 15px;
    }
    .mobile-nav .contact-info p {
        font-size: 14px;
        margin: 8px 0;
    }
    .mobile-nav .contact-info a {
        font-size: 16px;
        margin: 4px 0;
    }
}

/* Адаптация для маленьких телефонов */
@media (max-width: 576px) {
    .mobile-nav {
        padding: 80px 10px 20px;
        padding-top: 90px;
    }
    .mobile-nav a {
        font-size: 18px;
        padding: 10px 0;
    }
    .mobile-nav li {
        margin: 10px 0;
    }
    .mobile-nav .contact-info {
        margin-top: 25px;
        padding: 0 10px;
    }
    .mobile-nav .contact-info p {
        font-size: 13px;
        margin: 6px 0;
    }
    .mobile-nav .contact-info a {
        font-size: 15px;
    }
}

/* Адаптация для очень маленьких телефонов */
@media (max-width: 360px) {
    .mobile-nav {
        padding: 70px 8px 15px;
        padding-top: 80px;
    }
    .mobile-nav a {
        font-size: 16px;
        padding: 8px 0;
    }
    .mobile-nav li {
        margin: 8px 0;
    }
    .mobile-nav .contact-info {
        margin-top: 20px;
        padding: 0 8px;
    }
    .mobile-nav .contact-info p {
        font-size: 12px;
        margin: 5px 0;
    }
    .mobile-nav .contact-info a {
        font-size: 14px;
    }
}

/* Поддержка темной темы для мобильного меню */
@media (prefers-color-scheme: dark) {
    .mobile-nav {
        background: rgba(26, 26, 26, 0.98);
    }
    .mobile-nav a {
        color: #ffffff;
    }
    .mobile-nav .contact-info p {
        color: #b0b0b0;
    }
}

/* Фикс для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
}

/* Фикс для предотвращения мерцания при анимации */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .mobile-nav li,
    .mobile-nav .contact-info {
        transition: none;
    }
}

/* Улучшенный Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(rgb(0 0 0 / 61%), rgb(0 0 0 / 62%)), url(/img/hero.jpg);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgb(0 0 0 / 16%), rgb(0 0 0 / 0%));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 25px;
    color: white;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(90deg, #f4ff2d, #f64def);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 20px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Улучшенные карточки товаров */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 48px;
    color: var(--dark-color);
    display: inline-block;
    padding-bottom: 20px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 25px auto 0;
    color: var(--text-light);
    font-size: 18px;
}

.pies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.pie-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--lighter-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-origin: center;
}

.pie-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.pie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: ;
    z-index: 1;
}

.pie-img-container {
    height: 240px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.pie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.pie-card:hover .pie-img {
    transform: scale(1.05);
}

.pie-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.pie-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pie-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pie-title {
    font-size: 20px;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.pie-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #E53935;
    background: #fff0e8;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .pie-price {
        font-size: 1.2rem;
        padding: 3px 10px;
    }
}

.pie-description {
    color: var(--text-light);
    margin-bottom: 0px;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.pie-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pie-weight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #edbb54;
    font-size: 15px;
}

.pie-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-size: 15px;
}

.pie-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
    flex-wrap: nowrap;
    flex-direction: row;
}

.add-to-cart {
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgba(252, 220, 126, 1) 50%, rgb(255 196 0) 100%);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(236, 61, 8, 0.2);
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    margin-top: 10px;
    width: 160px;
}

.add-to-cart:hover {
    background: linear-gradient(0deg, rgb(249 206 23) 0%, rgba(252, 220, 126, 1) 50%, rgb(252 217 24) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 61, 8, 0.3);
}

.pie-features {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 14px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fresh-badge {
    background: linear-gradient(90deg, #ffe336, #ece300);
    color: #000000;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

/* Улучшенная модалка товара */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-modal-content {
    background-color: white;
    width: 100%;
    max-width: 1000px;
    border-radius: var(--border-radius);
    max-height: 90vh;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

@keyframes slideUpModal {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-product-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.close-product-modal:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.product-modal-body {
    display: flex;
    flex-direction: row;
    min-height: 0;
}

.product-modal-image {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    position: relative;
}

.product-modal-info {
    flex: 1.2;
    padding: 40px;
    overflow-y: auto;
}

.product-modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.product-modal-title {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-modal-subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

.product-modal-price {
    font-size: 25px;
    color: var(--primary-color);
    font-weight: 800;
    margin-top: 15px;
}

.product-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detail-item {
    background: var(--lighter-color);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.detail-icon {
    font-size: 24px;
    color: #ffb800;
    margin-bottom: 10px;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.product-modal-composition {
    margin: 30px 0;
    padding: 25px;
    background: var(--lighter-color);
    border-radius: 15px;
}

.product-modal-composition h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-modal-composition p {
    line-height: 1.8;
    color: var(--text-color);
}

.product-modal-nutrition {
    margin: 30px 0;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.nutrition-table th,
.nutrition-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.nutrition-table th {
    background: var(--lighter-color);
    color: var(--dark-color);
    font-weight: 600;
}

.nutrition-table tr:hover {
    background: rgba(236, 61, 8, 0.05);
}

.nutrition-value {
    font-weight: 700;
    color: var(--primary-color);
}

.product-modal-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.product-quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--lighter-color);
    padding: 10px 20px;
    border-radius: 50px;
    flex-shrink: 0;
}

.product-quantity-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-quantity {
    font-size: 24px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.product-add-to-cart {
    flex: 1;
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgba(252, 220, 126, 1) 50%, rgb(255 196 0) 100%);
    color: #000000;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(236, 61, 8, 0.3);
}

.product-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(236, 61, 8, 0.4);
}

/* Анимация добавления в корзину */
.cart-animation {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    animation: flyToCart 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes flyToCart {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(1.2) translate(-20px, -50px);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.5) translate(var(--end-x), var(--end-y));
        opacity: 0;
    }
}

/* Улучшенная модалка корзины */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-content {
    background-color: white;
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    padding: 40px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h3 {
    font-size: 28px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.close-cart {
    background: var(--lighter-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    background-color: rgba(244, 241, 234, 0.5);
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 15px;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.cart-item-details h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.cart-item-details p {
    color: var(--text-light);
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--lighter-color);
    padding: 8px 15px;
    border-radius: 50px;
}

.quantity-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
}

.remove-item {
    background-color: #FFE6E6;
    color: var(--primary-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
}

.total-price {
    color: var(--primary-color);
    font-size: 25px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 61, 8, 0.3);
}

/* Обновленные стили для корзины с промокодом вверху */
@media (max-width: 768px) {
    .cart-modal {
        padding: 10px 5px;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cart-modal.active {
        display: flex;
    }
    .cart-content {
        width: 100%;
        max-width: 500px;
        max-height: 90vh;
        height: auto;
        padding: 0;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin: 20px 10px;
        overflow: hidden;
        background: white;
    }
    .cart-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        padding: 20px 20px;
        margin: 0;
        border-bottom: none;
        flex-shrink: 0;
        position: relative;
    }
    .cart-header h3 {
        font-size: 22px;
        color: white;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .close-cart {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 22px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 2;
    }
    .cart-main-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .promo-code-section {
        padding: 20px 20px 15px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }
    .promo-code-input {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }
    #promoCodeInput {
        flex: 1;
        padding: 12px 15px;
        border: 2px solid var(--border-color);
        border-radius: 10px;
        font-size: 15px;
        background: white;
        color: var(--text-color);
    }
    #applyPromoCodeBtn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 10px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    #applyPromoCodeBtn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }
    #promoCodeMessage {
        min-height: 20px;
        margin-top: 5px;
        font-size: 13px;
        text-align: center;
    }
    #promoCodeMessage.success {
        color: #28a745;
    }
    #promoCodeMessage.error {
        color: var(--primary-color);
    }
    #discountInfo {
        margin-top: 10px;
    }
    .discount-applied {
        background: rgba(40, 167, 69, 0.1);
        border: 1px solid #28a745;
        border-radius: 8px;
        padding: 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
    }
    .discount-applied span:first-child {
        color: #28a745;
        font-weight: 600;
    }
    #discountAmount {
        color: #28a745;
        font-weight: 700;
    }
    .remove-promo-btn {
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        padding: 5px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-items {
        flex: 1;
        overflow-y: visible;
        max-height: none;
        padding: 15px 20px;
    }
    .cart-item {
        display: flex;
        align-items: center;
        padding: 15px;
        border-radius: 12px;
        background: var(--lighter-color);
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
        transition: var(--transition);
    }
    .cart-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }
    .cart-item-info {
        display: flex;
        align-items: center;
        flex: 1;
        gap: 15px;
    }
    .cart-item-img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
    }
    .cart-item-details {
        flex: 1;
    }
    .cart-item-details h4 {
        font-size: 16px;
        margin-bottom: 5px;
        color: var(--dark-color);
        line-height: 1.3;
    }
    .cart-item-details p {
        font-size: 14px;
        color: var(--text-light);
        margin: 0;
    }
    .cart-item-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .quantity-control {
        display: flex;
        align-items: center;
        gap: 10px;
        background: white;
        padding: 6px 12px;
        border-radius: 25px;
        border: 1px solid var(--border-color);
    }
    .quantity-btn {
        background: none;
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        color: var(--dark-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        background: var(--lighter-color);
    }
    .quantity-btn:hover {
        background: var(--primary-color);
        color: white;
    }
    .cart-item-price {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary-color);
        min-width: 60px;
        text-align: center;
    }
    .remove-item {
        background: #FFE6E6;
        color: var(--primary-color);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 14px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: #f8f9fa;
        border-top: 2px solid var(--border-color);
        font-size: 20px;
        font-weight: 700;
        color: var(--dark-color);
        flex-shrink: 0;
    }
    .total-price {
        color: var(--primary-color);
        font-size: 24px;
    }
    .checkout-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        padding: 18px 20px;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .checkout-btn:hover {
        background: linear-gradient(135deg, var(--primary-dark), #a00);
    }
    .empty-cart-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        text-align: center;
        color: var(--text-light);
        font-size: 18px;
        flex: 1;
    }
    .empty-cart-message i {
        font-size: 48px;
        color: var(--lighter-color);
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .cart-content {
        max-width: 95%;
        max-height: 85vh;
        margin: 10px;
        border-radius: 16px;
    }
    .cart-header {
        padding: 18px 15px;
    }
    .cart-header h3 {
        font-size: 20px;
    }
    .close-cart {
        width: 30px;
        height: 30px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    .promo-code-section {
        padding: 15px 15px 12px 15px;
    }
    .promo-code-input {
        flex-direction: column;
    }
    #applyPromoCodeBtn {
        width: 100%;
        justify-content: center;
    }
    .cart-items {
        padding: 12px 15px;
    }
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 12px;
    }
    .cart-item-info {
        width: 100%;
    }
    .cart-item-img {
        width: 50px;
        height: 50px;
    }
    .cart-item-details h4 {
        font-size: 15px;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    .quantity-control {
        padding: 5px 10px;
    }
    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .cart-item-price {
        font-size: 15px;
        min-width: 50px;
    }
    .remove-item {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .cart-total {
        padding: 15px;
        font-size: 18px;
    }
    .total-price {
        font-size: 22px;
    }
    .checkout-btn {
        padding: 16px;
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cart-modal {
        align-items: center;
        justify-content: center;
    }
    .cart-content {
        max-width: 600px;
        max-height: 80vh;
        margin: 20px;
    }
    .cart-main-content {
        max-height: calc(80vh - 140px);
    }
}

@media (prefers-color-scheme: dark) {
    .cart-content {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    .cart-header {
        background: linear-gradient(135deg, #E53935, #B71C1C);
    }
    .promo-code-section {
        background: #2d2d2d;
        border-bottom-color: #444;
    }
    #promoCodeInput {
        background: #333;
        color: #ffffff;
        border-color: #444;
    }
    .cart-item {
        background: #2d2d2d;
        border-color: #444;
    }
    .cart-item-details h4 {
        color: #ffffff;
    }
    .cart-item-details p {
        color: #b0b0b0;
    }
    .quantity-control {
        background: #333;
        border-color: #444;
    }
    .quantity-btn {
        background: #444;
        color: #ffffff;
    }
    .quantity-btn:hover {
        background: var(--primary-color);
    }
    .cart-total {
        background: #2d2d2d;
        border-top-color: #444;
        color: #ffffff;
    }
    .checkout-btn {
        background: linear-gradient(135deg, #E53935, #B71C1C);
    }
}

@supports (-webkit-touch-callout: none) {
    .cart-modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .cart-content {
        max-height: -webkit-fill-available;
        height: auto;
    }
    .cart-main-content {
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-content {
        animation: none;
    }
    .cart-item,
    .checkout-btn,
    .quantity-btn,
    .remove-item {
        transition: none;
    }
}

@keyframes slideUpModal {
    from { 
        transform: scale(0.95) translateY(20px); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

/* Кнопка */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgba(252, 220, 126, 1) 50%, rgb(255 196 0) 100%);
    color: #000000;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(236, 61, 8, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    border-radius: 7px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgb(255 199 36) 50%, rgb(255 198 10 / 60%) 100%);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(236, 61, 8, 0.3);
}

.btn:hover::before {
    left: 0;
}

/* Дополнительные стили для других страниц */
.seo-section {
    padding: 20px 0;
    background: white;
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.delivery_info_text {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.delivery_info_text h1, 
.delivery_info_text h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

.delivery_info_text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Стили для футера */
footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-column li:hover {
    color: white;
    transform: translateX(5px);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    position: relative;
}

.copyright p {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    footer {
        padding: 50px 0 25px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    footer {
        padding: 40px 0 20px;
    }
    .footer-column li {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* Медиа запросы для адаптации */
@media (max-width: 1200px) {
    .pies-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    .hero h1 {
        font-size: 52px;
    }
    .product-modal-body {
        flex-direction: column;
    }
    .product-modal-image {
        min-height: 300px;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
}

@media (max-width: 992px) {
    .pies-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    .hero h1 {
        font-size: 48px;
    }
    .hero p {
        font-size: 18px;
    }
    .section-title h2 {
        font-size: 40px;
    }
    .desktop-nav ul {
        gap: 25px;
    }
    .product-modal-info {
        padding: 30px;
    }
    .product-modal-title {
        font-size: 28px;
    }
    .product-modal-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшет и мобильные устройства */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .desktop-nav {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .hero {
        padding: 100px 0 70px;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 38px;
        padding: 0 15px;
    }
    .hero p {
        font-size: 16px;
        padding: 0 15px;
    }
    .pies-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
    }
    .pie-card {
        margin: 0 10px;
    }
    .pie-img-container {
        height: 220px;
    }
    .pie-info {
        padding: 25px;
    }
    .section-title {
        margin-bottom: 50px;
        padding: 0 15px;
    }
    .section-title h2 {
        font-size: 36px;
    }
    .section-title p {
        font-size: 16px;
        padding: 0 15px;
    }
    .cart-content {
        width: 95%;
        padding: 25px;
        max-height: 90vh;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 15px 0;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    .product-modal {
        padding: 10px;
    }
    .product-modal-content {
        max-height: 95vh;
    }
    .product-modal-image {
        min-height: 250px;
    }
    .product-modal-info {
        padding: 25px;
    }
    .product-modal-title {
        font-size: 24px;
    }
    .product-modal-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .product-modal-actions {
        flex-direction: column;
        gap: 15px;
    }
    .product-quantity-control {
        width: 100%;
        justify-content: center;
    }
    .product-add-to-cart {
        width: 100%;
    }
    .close-product-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    .seo-section {
        padding: 0px 0px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .pie-card {
        margin: 10px;
    }
    .pie-img-container {
        height: 200px;
    }
    .pie-info {
        padding: 20px;
    }
    .pie-title {
        font-size: 18px;
    }
    .add-to-cart {
        padding: 10px 20px;
        font-size: 14px;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .cart-content {
        padding: 20px;
        width: 98%;
    }
    .product-modal {
        padding: 5px;
    }
    .product-modal-content {
        border-radius: 15px;
    }
    .product-modal-image {
        min-height: 200px;
    }
    .product-modal-info {
        padding: 20px;
    }
    .product-modal-title {
        font-size: 22px;
    }
    .product-modal-price {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 50px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .pie-actions {
        flex-direction: column;
        gap: 15px;
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        align-items: center;
    }
    .add-to-cart {
        justify-content: center;
    }
    .pie-features {
        justify-content: center;
    }
    .logo-title {
        font-size: 22px;
    }
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .nutrition-table th,
    .nutrition-table td {
        padding: 10px 5px;
        font-size: 14px;
    }
    .detail-item {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .logo-title {
        font-size: 20px;
    }
    .logo-subtitle {
        font-size: 10px;
    }
    .burger-menu {
        width: 26px;
        height: 18px;
    }
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 15px;
    }
    .product-modal-details {
        gap: 10px;
    }
    .detail-item {
        padding: 12px;
    }
    .product-modal-composition {
        padding: 20px;
    }
}

@media (hover: none) {
    .pie-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    .add-to-cart:active {
        transform: translateY(-1px);
    }
    .btn:active {
        transform: translateY(-2px);
    }
}

@media (prefers-color-scheme: dark) {
    .pie-card,
    .cart-content,
    .product-modal-content {
        background-color: #1a1a1a;
        color: #ffffff;
        border-color: #333;
    }
    .pie-title,
    .cart-item-details h4,
    .product-modal-title {
        color: #ffffff;
    }
    .pie-description,
    .cart-item-details p,
    .product-modal-subtitle {
        color: #b0b0b0;
    }
    .pie-details,
    .cart-header,
    .cart-footer,
    .product-modal-header,
    .product-modal-actions {
        border-color: #333;
    }
    .product-modal-composition {
        background-color: #222;
    }
    .detail-item {
        background-color: #222;
    }
    .detail-value {
        color: #ffffff;
    }
}

/* Стили для табов веса */
.weight-tabs {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.weight-tab {
    flex: 1;
    padding: 0px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.weight-tab:hover {
    border-color: #000000;
}

.weight-tab.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #000000;
}

.weight-tab.active .weight-price {
    color: #ff0000;
    font-weight: 700;
}

.weight-value {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.weight-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.popular-badge {
    position: absolute;
    top: -22px;
    right: -2px;
    background: linear-gradient(45deg, #7a00ff, #f75500);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Обновление деталей пирога */
.pie-details {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pie-size {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

.pie-size i {
    color: var(--secondary-color);
}

/* Кнопка быстрого заказа */
.quick-order-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: none;
    font-size: 16px;
}

.quick-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.quick-order-btn i {
    font-size: 20px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Модальное окно быстрого заказа */
.quick-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.quick-order-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.quick-order-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-order-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-quick-order {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-quick-order:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quick-order-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.order-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #25D366;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25D366;
}

.messenger-choice {
    margin-top: 25px;
    text-align: center;
}

.messenger-choice p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.messenger-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.messenger-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-2px);
}

.messenger-btn i {
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 576px) {
    .quick-order-btn {
        bottom: 80px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
    .quick-order-content {
        margin: 10px;
    }
    .messenger-buttons {
        flex-direction: column;
    }
    .messenger-btn {
        padding: 12px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка быстрого заказа (дубликат убран) */

/* Стили для сетов */
#sets {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

#sets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E53935, #FF6B6B, #E53935);
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.set-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.set-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #E53935;
}

.set-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B, #E53935);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.pie-subtitle {
    color: #666;
    font-size: 16px;
    margin: 10px 0;
    font-weight: 500;
    line-height: 1.4;
}

.set-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #E53935;
}

.set-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #444;
    font-size: 14px;
}

.set-detail-item i {
    color: #ffd700;
    font-size: 12px;
}

.pie-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
}

.pie-discount i {
    color: #28a745;
}

.set-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.set-features .feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    padding: 3px;
}

.set-features .feature i {
    color: #E53935;
}

/* Адаптивность сетов */
@media (max-width: 768px) {
    .sets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .set-card {
        max-width: 100%;
    }
    #sets {
        padding: 40px 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .set-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    .pie-subtitle {
        font-size: 14px;
    }
    .set-details {
        padding: 12px;
    }
    .set-detail-item {
        font-size: 13px;
    }
}

/* Стили для кнопки настройки сета */
.configure-set-btn {
    background: linear-gradient(135deg, #ffc2c2 0%, #ffd700 100%);
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 50%;
    margin-top: 10px;
}

.configure-set-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Модальное окно настройки сета */
.set-config-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.set-config-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.set-config-header {
    background: linear-gradient(135deg, #ef00ff 0%, rgb(255 206 2) 100%);
    color: #ffffff;
    padding: 20px 30px;
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
}

.set-config-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-set-config {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-config-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.option-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-group h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.option-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.option-select:focus {
    border-color: #667eea;
    outline: none;
}

.option-multiple, .option-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-multiple-item, .option-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.option-multiple-item:hover, .option-checkbox-item:hover {
    background: #e9ecef;
}

.option-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-limit {
    margin-top: 10px;
    padding: 8px 12px;
    background: #ffd700;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selection-counter.limit-exceeded {
    color: #f44336;
    font-weight: bold;
}

.set-config-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.set-summary {
    margin-bottom: 0px;
}

.set-summary-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.summary-group {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.summary-item {
    padding: 3px 0;
    color: #666;
    font-size: 0.95rem;
}

.set-total-price {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.set-config-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: linear-gradient(0deg, #e53935 0%, rgb(252 198 152) 50%, #ff6b6b 100%);
    color: #000000;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgb(255 235 177) 50%, rgb(255 196 0) 100%);
    color: #000000;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .set-config-content {
        max-width: 95%;
    }
    .set-config-body {
        padding: 15px 20px;
    }
    .set-config-footer {
        padding: 15px 20px;
    }
    .set-config-actions {
        flex-direction: column;
    }
    .sos-pie-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: auto;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: stretch;
    }
}

/* Модальное окно оформления заказа */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.checkout-content {
    background: white;
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.checkout-header {
    background: linear-gradient(135deg, #E53935, #D32F2F);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.checkout-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-checkout {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-checkout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.checkout-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.order-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.order-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
    color: #333;
}

.order-item-quantity {
    color: #666;
    margin-right: 15px;
    min-width: 50px;
}

.order-item-price {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    text-align: right;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-weight: bold;
    font-size: 1.2rem;
    color: #E53935;
}

/* Форма */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E53935;
}

/* Способ оплаты */
.payment-method {
    margin: 25px 0;
}

.payment-method h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-content {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    background: white;
}

.payment-option input:checked + .payment-content {
    border-color: #E53935;
    background: #ffebee;
    box-shadow: 0 3px 15px rgba(229, 57, 53, 0.1);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.payment-option input:checked + .payment-content .payment-icon {
    background: #E53935;
    color: white;
}

.payment-text {
    flex: 1;
}

.payment-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.payment-desc {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* Чекбокс условий */
.form-terms {
    margin: 25px 0;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    min-height: 25px;
}

.terms-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    transition: all 0.3s;
}

.terms-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.terms-checkbox input:checked ~ .checkmark {
    background-color: #E53935;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.terms-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.terms-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 7px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-text {
    color: #333;
    line-height: 1.4;
}

.terms-text a {
    color: #E53935;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Кнопки */
.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.checkout-actions .btn {
    flex: 1;
    padding: 16px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #E53935, #D32F2F);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Сообщения об ошибках */
.error-message {
    color: #E53935;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #E53935;
}

.form-group.error .error-message {
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .checkout-content {
        max-height: 95vh;
        margin: 10px;
    }
    .checkout-body {
        padding: 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .payment-options {
        grid-template-columns: 1fr;
    }
    .checkout-actions {
        flex-direction: column;
    }
    .checkout-actions .btn {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .checkout-header {
        padding: 15px 20px;
    }
    .checkout-body {
        padding: 15px;
    }
    .order-info {
        padding: 15px;
    }
    .checkout-header h3 {
        font-size: 1.2rem;
    }
}

/* Стили для прокрутки */
.checkout-body::-webkit-scrollbar {
    width: 6px;
}

.checkout-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.checkout-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.checkout-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.sos-pie-actions {
    display: flex;
    justify-content: space-evenly;
    margin-top: auto;
    flex-wrap: nowrap;
    align-items: center;
    align-content: flex-start;
    flex-direction: column;
}

/* Стили для хлебных крошек */
.breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.breadcrumbs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 100%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.breadcrumbs-item:hover {
    transform: translateY(-1px);
}

.breadcrumbs-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 14px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.breadcrumbs-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.breadcrumbs-link:hover {
    color: #3498db;
    background: #f8fafc;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.breadcrumbs-link:hover::before {
    left: 100%;
}

.breadcrumbs-link i {
    margin-right: 10px;
    font-size: 14px;
    color: rgb(255 196 0);
    transition: transform 0.3s ease;
}

.breadcrumbs-link:hover i {
    transform: scale(1.1);
    color: #2980b9;
}

.breadcrumbs-current {
    display: flex;
    align-items: center;
    color: #34495e;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.breadcrumbs-current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(255 196 0), #cc2e2e);
    border-radius: 0 0 12px 12px;
}

.breadcrumbs-current i {
    margin-right: 10px;
    font-size: 14px;
    color: rgb(255 196 0);
    animation: pulse 2s infinite;
}

.breadcrumbs-separator {
    margin: 0 4px;
    color: #bdc3c7;
    font-size: 12px;
    display: flex;
    align-items: center;
    animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 14px 0;
    }
    .breadcrumbs-container {
        padding: 0 15px;
    }
    .breadcrumbs-list {
        gap: 6px;
    }
    .breadcrumbs-link,
    .breadcrumbs-current {
        padding: 6px 12px;
        font-size: 13px;
    }
    .breadcrumbs-link i,
    .breadcrumbs-current i {
        margin-right: 6px;
        font-size: 12px;
    }
    .breadcrumbs-separator {
        font-size: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs-link span,
    .breadcrumbs-current span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .breadcrumbs-link,
    .breadcrumbs-current {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (prefers-color-scheme: dark) {
    .breadcrumbs {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .breadcrumbs-link {
        background: #2d3748;
        color: #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .breadcrumbs-link:hover {
        background: #4a5568;
        color: #63b3ed;
    }
    .breadcrumbs-current {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        color: #a0aec0;
    }
    .breadcrumbs-link i {
        color: #63b3ed;
    }
    .breadcrumbs-current i {
        color: #68d391;
    }
    .breadcrumbs-separator {
        color: #718096;
    }
    .seo-content .lead { font-size: 1.2em; margin-bottom: 1.5em; }
    .features-list, .process-list { margin: 1.5em 0; padding-left: 1.5em; }
    .features-list li, .process-list li { margin-bottom: 0.8em; }
    .faq { background: #f9f9f9; padding: 1.5em; border-radius: 8px; margin: 1.5em 0; }
    .cta-block { background: #fff8e1; padding: 1.5em; border-left: 4px solid #ff9800; margin-top: 2em; }
}

/* Кнопка калькулятора пирогов - квадратная версия */
.calculator-button {
    position: fixed;
    left: 10px;
    top: 85%;
    transform: translateY(-50%);
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgba(252, 220, 126, 1) 50%, rgb(255 196 0) 100%);
    color: #000000;
    padding: 15px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 80px;
    height: 80px;
    border-radius: 12px;
}

.calculator-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgba(252, 220, 126, 1) 50%, rgb(255 196 0) 100%);
    z-index: 1;
}

.calculator-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%);
}

.calculator-button:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.calculator-button i {
    font-size: 28px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.calculator-button span {
    font-size: 10px;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.calculator-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
    z-index: 1;
}

.calculator-button:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.calculator-button .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF5722;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .calculator-button {
        width: 70px;
        height: 70px;
        right: 15px;
        padding: 12px;
        border-radius: 10px;
    }
    .calculator-button i {
        font-size: 24px;
    }
    .calculator-button span {
        font-size: 11px;
    }
    .calculator-button .badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .calculator-button {
        width: 60px;
        height: 60px;
        right: 10px;
        border-radius: 8px;
    }
    .calculator-button i {
        font-size: 22px;
    }
    .calculator-button span {
        display: none;
    }
    .calculator-button::after {
        display: none;
    }
}

.calculator-button {
    animation: slideInRight 0.5s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(46, 125, 50, 0.3);
    }
    50% {
        box-shadow: 0 5px 20px rgba(46, 125, 50, 0.5), 0 0 0 5px rgba(76, 175, 80, 0.1);
    }
    100% {
        box-shadow: 0 5px 20px rgba(46, 125, 50, 0.3);
    }
}

.calculator-button {
    animation: slideInRight 0.5s ease-out, pulse 3s ease-in-out infinite;
}

.calculator-button:hover {
    animation: none;
}

@media (prefers-color-scheme: dark) {
    .calculator-button {
        border-color: #333;
        background: linear-gradient(135deg, #388E3C 0%, #1B5E20 100%);
    }
    .calculator-button:hover {
        background: linear-gradient(135deg, #2E7D32 0%, #0D3C0F 100%);
    }
}

@media (hover: none) and (pointer: coarse) {
    .calculator-button {
        min-width: 60px;
        min-height: 60px;
        border-width: 3px;
    }
    .calculator-button:active {
        transform: translateY(-50%) scale(0.95);
        background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    }
    .calculator-button::after {
        display: none;
    }
}

@media (min-height: 1200px) {
    .calculator-button {
        top: 40%;
    }
}

/* Стили для поля промокода в корзине */
.promo-code-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.promo-code-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#promoCodeInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#promoCodeInput:focus {
    border-color: #E53935;
    outline: none;
}

#applyPromoCodeBtn {
    background: #E53935;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#applyPromoCodeBtn:hover {
    background: #c62828;
}

.promo-code-message {
    font-size: 0.9rem;
    min-height: 20px;
    margin-top: 5px;
}

.promo-code-message.success {
    color: #4CAF50;
}

.promo-code-message.error {
    color: #E53935;
}

.discount-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(76, 175, 80, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #4CAF50;
    margin-top: 10px;
}

.discount-applied span:first-child {
    color: #388E3C;
    font-weight: 600;
}

#discountAmount {
    color: #388E3C;
    font-weight: 700;
    font-size: 1.1rem;
}

.remove-promo-btn {
    background: none;
    border: none;
    color: #E53935;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
}

.remove-promo-btn:hover {
    color: #c62828;
}

@media (max-width: 768px) {
    .promo-notice {
        padding: 15px;
    }
    .promo-notice-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .promo-notice-content i {
        align-self: center;
    }
    .promo-code-input {
        flex-direction: column;
    }
    #applyPromoCodeBtn {
        justify-content: center;
    }
}

/* Стили для телефона в хедере */
.phone {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(236, 61, 8, 0.25);
    white-space: nowrap;
}

.phone a:hover {
    background: linear-gradient(135deg, var(--primary-dark), #a00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 61, 8, 0.35);
}

.phone a:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(236, 61, 8, 0.2);
}

.phone i {
    font-size: 16px;
}

.phone span {
    font-size: 15px;
}

@keyframes phonePulse {
    0% {
        box-shadow: 0 4px 15px rgba(236, 61, 8, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(236, 61, 8, 0.4), 0 0 0 5px rgba(236, 61, 8, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(236, 61, 8, 0.25);
    }
}

.phone a {
    animation: phonePulse 3s ease-in-out infinite;
}

.phone a:hover {
    animation: none;
}

@media (max-width: 992px) {
    .phone a {
        padding: 10px 20px;
        font-size: 14px;
    }
    .phone i {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .phone a {
        padding: 8px 16px;
        font-size: 13px;
    }
    .phone i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .phone a {
        padding: 6px 12px;
        font-size: 12px;
    }
    .phone i {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .phone a {
        padding: 8px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    .phone span {
        display: none;
    }
    .phone i {
        font-size: 16px;
        margin: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .phone a {
        background: linear-gradient(135deg, #E53935, #B71C1C);
    }
    .phone a:hover {
        background: linear-gradient(135deg, #B71C1C, #7F0000);
    }
}

.order-subtotal {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px dashed #ddd;
    color: #666;
    font-size: 14px;
}

.order-discount {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    color: #4CAF50;
    font-size: 15px;
}

.discount-amount {
    color: #4CAF50;
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 2px solid #E53935;
    border-bottom: 2px solid #E53935;
    font-size: 18px;
    font-weight: 600;
}

.total-amount {
    color: #E53935;
    font-size: 20px;
}

.promo-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 8px;
    color: #1976d2;
    font-size: 14px;
}

.promo-info i {
    color: #1976d2;
}

.min-order-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.min-order-message i {
    color: #ffc107;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Модальное окно информации о товаре */
.product-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.4s ease-out;
    padding: 20px;
}

.product-info-modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
    display: flex;
    flex-direction: column;
}

.product-info-modal-header {
    background: linear-gradient(0deg, rgb(255 206 2) 0%, rgba(252, 220, 126, 1) 50%, rgb(255 196 0) 100%);
    color: #000000;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.product-info-modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-product-info-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #000000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-product-info-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.product-info-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.product-info-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-info-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-content {
    padding: 25px 30px 30px;
}

.product-info-content h4 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.product-info-price-weight {
    font-size: 1.2rem;
    color: #E53935;
    margin-bottom: 25px;
    font-weight: 600;
}

.product-info-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.product-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-tab.active {
    background: rgba(229, 57, 53, 0.1);
    color: #E53935;
    font-weight: 600;
}

.product-tab:hover:not(.active) {
    background: #f5f5f5;
    color: #333;
}

.product-info-tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    line-height: 1.7;
    color: #444;
    margin: 0 0 15px 0;
    font-size: 1.05rem;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.nutrition-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #E53935;
}

.nutrition-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nutrition-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #E53935;
}

.nutrition-unit {
    font-size: 0.9rem;
    color: #888;
    margin-left: 3px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .product-info-modal {
        padding: 10px;
    }
    .product-info-modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    .product-info-modal-header {
        padding: 18px 20px;
    }
    .product-info-modal-header h3 {
        font-size: 1.4rem;
        padding-right: 40px;
    }
    .product-info-image-container {
        height: 200px;
    }
    .product-info-content {
        padding: 20px;
    }
    .product-info-content h4 {
        font-size: 1.5rem;
    }
    .product-info-tabs {
        flex-wrap: wrap;
    }
    .product-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-info-modal-header h3 {
        font-size: 1.2rem;
    }
    .product-info-content h4 {
        font-size: 1.3rem;
    }
    .product-info-price-weight {
        font-size: 1.1rem;
    }
    .close-product-info-modal {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
    }
}

.single-weight-info {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}
.single-weight-info .weight-value {
    font-weight: 600;
    color: #333;
}

/* Блок информации о весе/размере (одиночный вариант) */
.single-weight-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 !important;
    padding: 6px 12px;
    background: #f8f8f8;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #555;
    justify-content: center;
    border: 1px solid #eee;
}

.weight-value,
.size-value {
    font-weight: 600;
    color: #2c3e50;
}

.weight-value {
    font-size: 1rem;
}

.size-value {
    font-size: 0.9rem;
}

/* Блоки с дополнительными характеристиками (пищевая ценность, размер, вес) */
.pie-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}

.pie-weight,
.pie-size,
.pie-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
}

.pie-weight i,
.pie-size i,
.pie-rating i {
    color: #E53935;
    width: 18px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .single-weight-info {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .weight-value {
        font-size: 0.9rem;
    }
    .weight-tab {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    .pie-details {
        gap: 8px;
    }
}

/* ========== ПЛАНШЕТНАЯ АДАПТАЦИЯ ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 25px !important;
    }

    .hero h1 {
        font-size: 50px;
    }

    .section-title h2 {
        font-size: 42px;
    }

    .pies-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .cart-content {
        max-width: 700px;
        padding: 30px;
    }

    .product-modal-body {
        flex-direction: row;
    }

    .product-modal-image {
        min-width: 250px;
    }

    .product-modal-info {
        padding: 30px;
    }

    .checkout-content {
        max-width: 90%;
    }

    /* Кнопка калькулятора – немного крупнее на планшетах */
    .calculator-button {
        width: 85px;
        height: 85px;
    }
}