/* ========== ОСНОВНЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== HEADER ========== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    gap: 10px;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .header {
        padding: 16px 24px;
        gap: 20px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #c62828;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo {
        font-size: 50px;
        padding-left: 30px;
    }
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo img {
        height: 50px;
        width: 50px;
    }
}

.header-center {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
    z-index: 1;
}

.recommendations-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.recommendations-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.recommendation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.recommendation-card:hover {
    border-color: #ad5800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recommendation-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.recommendation-info {
    flex: 1;
}

.recommendation-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.recommendation-price {
    font-weight: 700;
    color: #ad5800;
    font-size: 14px;
}

.recommendation-weight {
    font-size: 12px;
    color: #666;
}

.recommendation-add-btn {
    background: #03771894;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.recommendation-add-btn:hover {
    background: #037718;
    transform: scale(1.1);
}

@media (min-width: 1024px) {
    .header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
        width: 100%;
        margin-top: 0;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

@media (min-width: 768px) {
    .header-right {
        gap: 15px;
    }
}

/* ========== НАВИГАЦИОННОЕ МЕНЮ ========== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 10px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }
}

@media (min-width: 1025px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .nav-link {
        gap: 10px;
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 15px;
        white-space: normal;
    }
}

.nav-link:hover {
    background: #ad5800;
    color: white;
    border-color: #ad5800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 88, 0, 0.3);
}

.nav-link i {
    font-size: 14px;
}

@media (min-width: 768px) {
    .nav-link i {
        font-size: 16px;
    }
}

/* Бургер-меню */
.nav-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 10px;
}

@media (min-width: 1025px) {
    .nav-menu-toggle {
        display: none;
    }
}

/* ========== АДРЕС ========== */
.address-container {
    position: relative;
    width: 100%;
}

.address-btn {
    background: linear-gradient(135deg, #ad5800, #8c4700);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(173, 88, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.address-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.address-btn:active::before {
    width: 300px;
    height: 300px;
}

.address-btn:hover {
    background: linear-gradient(135deg, #8c4700, #6b3500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 88, 0, 0.35);
}

.address-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.address-btn.active .address-arrow {
    transform: rotate(180deg);
}


@media (min-width: 768px) {
    .address-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        position: sticky;
        top: 0;
        z-index: 1000;
        gap: 8px;
    }

    .header-left {
        flex: 0 0 auto;
    }

    .logo img {
        height: 35px;
        width: auto;
    }

    .header-center {
        position: static;
        transform: none;
        left: auto;
        max-width: none;
        width: auto;
        flex: 1;
        margin: 0;
        min-width: 0; /* Важно для корректного сжатия */
    }

    .address-container {
        width: 100%;
    }

    .address-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: #ad5800;
        border-radius: 20px;
    }

    .address-btn i {
        font-size: 12px;
        flex-shrink: 0;
    }

    .address-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        max-width: calc(100% - 20px);
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    /* Гамбургер меню */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
        flex-shrink: 0;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Остальная часть мобильных стилей остается без изменений */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Навигация */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 70px 20px 30px;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        font-size: 15px;
        width: 100%;
        white-space: normal;
        text-align: left;
    }

    .nav-link i {
        width: 24px;
        font-size: 16px;
    }

    .nav-link.logout-link {
        margin-top: auto;
    }
}

.address-btn:hover {
    background: #8c4700;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(173, 88, 0, 0.3);
}

.address-search-container {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    display: none;
    z-index: 10000;
    animation: fadeInDown 0.3s ease;
    overflow: hidden;
}

.address-search-container.active {
    display: block;
}

@media (min-width: 768px) {
    .address-search-container {
        padding: 16px;
    }
}

.address-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.address-search-header i {
    color: #ad5800;
    font-size: 18px;
}

.address-search-header input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    padding: 8px 0;
}

.address-search-header input::placeholder {
    color: #aaa;
}

.close-search {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-search:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    transform: rotate(90deg);
}

.address-suggestions-list {
    max-height: 320px;
    overflow-y: auto;
    background: white;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: linear-gradient(90deg, #fff5ed, #fff);
}

.suggestion-item i {
    color: #ad5800;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.suggestion-item i {
    color: #ad5800;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.suggestion-content {
    flex: 1;
}

.suggestion-main {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.suggestion-sub {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 12px;
}

.suggestion-sub span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.suggestion-sub i {
    font-size: 10px;
    width: auto;
    color: #bbb;
}

.suggestion-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.suggestion-loading i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.suggestion-empty {
    padding: 30px 20px;
    text-align: center;
    color: #999;
}

.suggestion-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ddd;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-history {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.history-header {
    padding: 10px 16px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-history {
    background: none;
    border: none;
    color: #ad5800;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.clear-history:hover {
    background: rgba(173, 88, 0, 0.1);
}

/* Мобильная адаптация адресного блока */
@media (max-width: 768px) {
    .address-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .address-search-container {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .suggestion-item {
        padding: 12px 16px;
    }

    .suggestion-main {
        font-size: 14px;
    }
}

@keyframes cartBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cart-bump {
    animation: cartBump 0.3s ease;
}

.suggestion-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.suggestion-subtitle {
    font-size: 12px;
    color: #666;
}

/* ========== КАРУСЕЛЬ ========== */
.hero-carousel {
    width: 100%;
    margin: 12px 0 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .hero-carousel {
        margin: 20px 0 30px;
    }
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 12px;
}

@media (min-width: 768px) {
    .carousel-container {
        padding: 10px 0;
    }
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
}

.carousel-slide {
    flex: 0 0 364px;
    position: relative;
    opacity: 0.5;
    transform: scale(0.85);
    transition: all 0.5s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    filter: grayscale(40%) brightness(0.8);
    aspect-ratio: 2 / 1;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-slide:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(173, 88, 0, 0.4);
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 780px;
        border-radius: 12px;
        margin: 0 5px;
    }
}

.carousel-slide.active {
    flex: 0 0 364px;
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%) brightness(1);
}

@media (min-width: 768px) {
    .carousel-slide.active {
        flex: 0 0 780px;
    }
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quantity-row {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 5px;
}

.quantity-selector-small {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
}

.quantity-btn-small {
    width: 28px;
    height: 28px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn-small:hover {
    background: #ad5800;
    color: white;
    border-color: #ad5800;
}

.quantity-value-small {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.add-to-cart-btn {
    background: #03771894;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #037718;
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .quantity-selector-small {
        padding: 3px 8px;
    }

    .quantity-btn-small {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .add-to-cart-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

.carousel-arrow.prev {
    left: 5px;
}

@media (min-width: 768px) {
    .carousel-arrow.prev {
        left: 20px;
    }
}

.carousel-arrow.next {
    right: 5px;
}

@media (min-width: 768px) {
    .carousel-arrow.next {
        right: 20px;
    }
}

.carousel-arrow:hover {
    background: #ad5800;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(173, 88, 0, 0.3);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .carousel-dots {
        gap: 10px;
        margin-top: 15px;
    }
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

.carousel-dot:hover {
    background: rgba(173, 88, 0, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #ad5800;
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 5px rgba(173, 88, 0, 0.5);
}

/* ========== НАВИГАЦИЯ ПО КАТЕГОРИЯМ ========== */
.category-nav {
    background: white;
    padding: 10px;
    margin: 15px 0 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 900;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .category-nav {
        padding: 15px 20px;
        margin: 20px 0 30px;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.category-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0 0 15px 15px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
    background: white;
}

.category-nav.sticky #stickyCartNavLink {
    display: flex !important;
}

#stickyCartNavLink {
    display: none;
}
/* Вес товара на карточке */
.product-weight {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
    width: fit-content;
}

@media (min-width: 768px) {
    .product-weight {
        font-size: 14px;
        margin: 2px 0 -35px 0;
        padding: 6px 12px;
    }
}

.product-weight i {
    color: #ad5800;
    font-size: 12px;
}

@media (min-width: 768px) {
    .product-weight i {
        font-size: 13px;
    }
}

.card:hover .product-weight {
    background: #fff0e6;
    border-color: #ad5800;
}
.category-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .category-nav-link {
        gap: 8px;
        padding: 12px 20px;
        font-size: 14px;
        flex-shrink: 1;
    }
}

.view-menu-btn {
    background: #03771894;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-menu-btn:hover {
    background: #e55a2b;
    transform: translateX(5px);
}

.menu-link {
    background: #03771894;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.menu-link i {
    margin-right: 8px;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .menu-link {
        margin: 10px;
        text-align: center;
        display: block;
    }
}

@media (max-width: 480px) {
    .category-nav-link span {
        display: none;
    }

    .category-nav-link {
        padding: 10px;
        border-radius: 50%;
        aspect-ratio: 1.5;
    }

    .category-nav-link i {
        font-size: 18px;
        margin: 0;
    }
}

.category-nav-link:hover {
    background: #f5f5f5;
    border-color: #ad5800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-nav-link.active {
    background: #ad5800;
    color: white;
    border-color: #ad5800;
    box-shadow: 0 4px 16px rgba(173, 88, 0, 0.3);
}

/* ========== СЕКЦИИ КАТЕГОРИЙ ========== */
.category-section {
    margin-bottom: 30px;
    padding: 0 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .category-section {
        margin-bottom: 60px;
        padding: 0 20px;
    }
}

.category-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ad5800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .category-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
}

.category-header h2 {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .category-header h2 {
        font-size: 28px;
    }
}

.category-header i {
    color: #ad5800;
    font-size: 20px;
}

@media (min-width: 768px) {
    .category-header i {
        font-size: 24px;
    }
}

.show-more-btn {
    background: #fff;
    border: 2px solid #ad5800;
    color: #ad5800;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .show-more-btn {
        padding: 14px 32px;
        font-size: 16px;
        width: auto;
    }
}

.show-more-btn:hover {
    background: #ad5800;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(173, 88, 0, 0.3);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== КАРТОЧКА ТОВАРА ========== */
.card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .card {
        border-radius: 20px;
        padding: 20px;
    }
}

.card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .card img {
        height: 350px;
        border-radius: 14px;
        margin-bottom: 5px;
    }
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    margin: 0 0 8px;
    color: #ad5800;
    font-size: 18px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .card h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
}

.card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .card p {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

.card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .card-bottom {
        gap: 16px;
    }
}

.card-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

@media (min-width: 768px) {
    .card-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
}

.card-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .card-meta {
        gap: 12px;
        font-size: 13px;
        width: auto;
    }
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .card-price {
        font-size: 24px;
    }
}

.card button {
    background: #03771894;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

@media (min-width: 768px) {
    .card button {
        padding: 14px;
        font-size: 16px;
    }
}

/* ========== МОДАЛЬНОЕ ОКНО ТОВАРА ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    transition: background 0.3s ease;
    backdrop-filter: blur(0);
}

.modal-overlay.active {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-container {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

@media (min-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
    }
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg) scale(1.1);
}

.modal-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

@media (min-width: 769px) {
    .modal-content {
        flex-direction: row;
        padding: 40px;
        gap: 40px;
    }
}

.modal-left, .modal-right {
    flex: 1;
}

/* Галерея товара */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .modal-main-image {
        height: 350px;
    }
}

.modal-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(173, 88, 0, 0.2);
}

.thumbnail-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

.thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: #ad5800;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(173, 88, 0, 0.3);
}

/* Дополнительная информация */
.additional-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

@media (min-width: 768px) {
    .additional-info {
        padding: 25px;
    }
}

.additional-info h4 {
    color: #ad5800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .additional-info h4 {
        font-size: 18px;
    }
}

.additional-info ul {
    list-style: none;
    padding: 0;
}

.additional-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    color: #555;
    transition: all 0.3s ease;
    font-size: 14px;
}

@media (min-width: 768px) {
    .additional-info li {
        padding: 10px 0;
        font-size: 15px;
    }
}

.additional-info li:hover {
    background: rgba(173, 88, 0, 0.05);
    padding-left: 10px;
}

.additional-info li:last-child {
    border-bottom: none;
}

.additional-info strong {
    color: #333;
}

/* Правая часть модального окна */
.modal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .modal-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
}

.modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .modal-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

@media (min-width: 768px) {
    .modal-meta {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}

.modal-meta span {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    width: fit-content;
}

@media (min-width: 768px) {
    .modal-meta span {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.modal-difficulty {
    background: rgba(173, 88, 0, 0.1) !important;
    color: #ad5800 !important;
}

/* Опции товара */
.modal-options {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .modal-options {
        margin-bottom: 30px;
    }
}

.modal-options h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

@media (min-width: 768px) {
    .modal-options h3 {
        margin-bottom: 20px;
        font-size: 20px;
    }
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .options-container {
        gap: 15px;
    }
}

.option-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .option-group {
        padding: 20px;
    }
}

.option-group:hover {
    border-color: #ad5800;
}

.option-group-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

@media (min-width: 768px) {
    .option-group-title {
        margin-bottom: 10px;
        font-size: 16px;
    }
}

.option-group-title i {
    color: #ad5800;
}

.option-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .option-items {
        gap: 10px;
    }
}

.option-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
    .option-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
    }
}

.option-item:hover {
    border-color: #ad5800;
    transform: translateX(5px);
}

.option-item.selected {
    background: rgba(173, 88, 0, 0.1);
    border-color: #ad5800;
}

.option-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

@media (min-width: 768px) {
    .option-name {
        font-size: 15px;
    }
}

.option-price {
    font-weight: 600;
    color: #000;
    font-size: 14px;
    align-self: flex-end;
}

@media (min-width: 768px) {
    .option-price {
        font-size: 15px;
        align-self: auto;
    }
}

.option-check {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .option-check {
        width: 20px;
        height: 20px;
    }
}

.option-check.selected {
    background: #ad5800;
    border-color: #ad5800;
}

.option-check.selected:after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Количество */
.modal-quantity {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .modal-quantity {
        margin-bottom: 30px;
    }
}

.modal-quantity h3 {
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

@media (min-width: 768px) {
    .modal-quantity h3 {
        margin-bottom: 15px;
        font-size: 20px;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 5px;
    justify-content: center;
}

@media (min-width: 768px) {
    .quantity-selector {
        width: fit-content;
        gap: 10px;
    }
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.quantity-btn:hover {
    background: #ad5800;
    color: white;
    border-color: #ad5800;
    transform: scale(1.1);
}

.quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    outline: none;
}

@media (min-width: 768px) {
    .quantity-input {
        width: 60px;
        height: 40px;
        font-size: 18px;
    }
}

.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Футер модального окна */
.modal-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

@media (min-width: 768px) {
    .modal-footer {
        padding-top: 30px;
    }
}

.modal-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .modal-price {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }
}

.total-label {
    font-size: 18px;
    color: #666;
}

@media (min-width: 768px) {
    .total-label {
        font-size: 20px;
    }
}

.total-price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .total-price {
        font-size: 36px;
    }
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .modal-buttons {
        flex-direction: row;
        gap: 15px;
    }
}

.btn-add-cart {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .btn-add-cart {
        padding: 18px;
        font-size: 17px;
    }
}

.btn-add-cart:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========== МОДАЛЬНОЕ ОКНО КОРЗИНЫ ========== */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: none;
    z-index: 2000;
    transition: background 0.4s ease;
    backdrop-filter: blur(0);
}

.cart-modal-overlay.active {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    z-index: 2001;
}

@media (min-width: 768px) {
    .cart-modal {
        width: 450px;
    }
}

.cart-modal.active {
    right: 0;
}

.cart-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .cart-modal-header {
        padding: 20px 25px;
    }
}

.cart-modal-header h2 {
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .cart-modal-header h2 {
        font-size: 24px;
    }
}

.cart-modal-header h2 i {
    color: #ad5800;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .cart-modal-close {
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
}

.cart-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg) scale(1.1);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

@media (min-width: 768px) {
    .cart-modal-body {
        padding: 20px 25px;
    }
}

.cart-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

@media (min-width: 768px) {
    .cart-modal-footer {
        padding: 20px 25px;
    }
}

.cart-empty {
    text-align: center;
    padding: 40px 15px;
    color: #666;
}

@media (min-width: 768px) {
    .cart-empty {
        padding: 60px 20px;
    }
}

.cart-empty i {
    font-size: 60px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .cart-empty i {
        font-size: 80px;
        margin-bottom: 20px;
    }
}

.cart-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

@media (min-width: 768px) {
    .cart-empty h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .cart-items-container {
        gap: 15px;
    }
}

/* Элемент корзины */
.cart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .cart-item {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
    }
}

.cart-item:hover {
    border-color: #ad5800;
    background: #f0f0f0;
}

.cart-item-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .cart-item-name {
        font-size: 16px;
    }
}

.cart-item-price {
    color: #ad5800;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-options {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: fit-content;
    margin: 8px 0;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .cart-item-quantity button {
        width: 30px;
        height: 30px;
    }
}

.cart-item-quantity button:hover {
    background: #ad5800;
    color: white;
}

.cart-item-total {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .cart-item-total {
        font-size: 16px;
    }
}

.cart-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    align-self: flex-end;
}

@media (min-width: 768px) {
    .cart-item-remove {
        width: 36px;
        height: 36px;
        align-self: flex-start;
    }
}

.cart-item-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .cart-total-row {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.cart-total-price {
    color: #000;
}

.checkout-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .checkout-btn {
        padding: 15px;
        font-size: 16px;
    }
}

.checkout-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px 15px 20px;
    margin-top: 40px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

@media (min-width: 768px) {
    .footer {
        padding: 60px 20px 30px;
        margin-top: 80px;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-bottom: 30px;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        margin-bottom: 40px;
    }
}

.footer-section h3 {
    color: #ad5800;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-section h3 {
        margin-bottom: 20px;
        font-size: 24px;
        text-align: left;
    }
}

.footer-section h4 {
    color: #ad5800;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-section h4 {
        margin-bottom: 20px;
        font-size: 18px;
        text-align: left;
    }
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-section p {
        margin-bottom: 15px;
        font-size: 14px;
        justify-content: flex-start;
    }
}

.footer-links {
    list-style: none;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links {
        text-align: left;
    }
}

.footer-links li {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .footer-links li {
        margin-bottom: 12px;
    }
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-links a {
        font-size: 14px;
        justify-content: flex-start;
    }
}

.footer-links a:hover {
    color: #ad5800;
    padding-left: 10px;
}

.footer-links i {
    width: 20px;
    text-align: center;
    color: #ad5800;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 30px;
        font-size: 14px;
    }
}

.footer-bottom p {
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .footer-bottom p {
        margin-bottom: 10px;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* ========== ОПТИМИЗАЦИЯ ДЛЯ СЕНСОРНЫХ ЭКРАНОВ ========== */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }

    .card button:hover {
        transform: none;
    }

    .category-nav-link:hover {
        transform: none;
    }

    .nav-link:hover {
        transform: none;
    }

    .cart-item-remove:hover {
        transform: none;
    }

    .quantity-btn:hover {
        transform: none;
    }

    .checkout-btn:hover {
        transform: none;
    }

    .btn-add-cart:hover {
        transform: none;
    }
}

.carousel-loading {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 18px;
    width: 100%;
}

.view-menu-btn i.fa-arrow-right,
.view-menu-btn .fa-arrow-right {
    display: none !important;
}

/* Или если иконка добавляется через псевдоэлемент */
.view-menu-btn::before,
.view-menu-btn::after {
    display: none !important;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


.carousel-loading:after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}


/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ad5800;
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #8c4700;
}