:root {
    --primary: #DC2626; /* Красный */
    --primary-light: #EF4444;
    --secondary: #333333;
    --light: #FFFFFF;
    --bg-light: #F9FAFB; /* Светлый фон */
    --light-gray: #F3F4F6;
    --border: #E5E7EB;
    --text: #111827; /* Темно-серый */
    --text-light: #6B7280;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --safe-area: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--light);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: calc(80px + var(--safe-area));
}

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

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
}

/* Header */
.header {
    background: var(--light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    height: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .logo-text {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .logo-text span {
        display: none;
    }
}

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

.cart-btn {
    position: relative;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cart-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF3B30;
    color: white;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@media (max-width: 576px) {
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* Hero Info */
.hero-info {
    background: var(--light);
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-top: 60px;
}

@media (max-width: 768px) {
    .hero-info {
        padding: 18px 0 14px;
        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .hero-info {
        padding: 16px 0 12px;
    }
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.info-text {
    flex: 1;
    min-width: 200px;
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .info-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .info-title {
        font-size: 16px;
        margin-bottom: 2px;
    }
}

.info-subtitle {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .info-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .info-subtitle {
        font-size: 12px;
    }
}

.delivery-time {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light-gray);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .delivery-time {
        padding: 7px 12px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .delivery-time {
        padding: 6px 10px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
}

.delivery-time i {
    color: var(--primary);
    font-size: 12px;
}

/* Баннеры */
.banners-section {
    padding: 24px 0 20px;
}

@media (max-width: 768px) {
    .banners-section {
        padding: 20px 0 16px;
    }
}

@media (max-width: 576px) {
    .banners-section {
        padding: 16px 0 14px;
    }
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .banners-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .banners-grid {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .banner {
        height: 180px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 170px;
        padding: 18px;
    }
}

@media (max-width: 640px) {
    .banner {
        height: 160px;
        padding: 16px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 150px;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .banner {
        height: 140px;
        padding: 12px;
    }
}

.banner:first-child {
    background: linear-gradient(135deg, #111827, #374151);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.banner:first-child:hover {
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
}

.banner-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.banner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
}

@media (max-width: 640px) {
    .banner-title {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .banner-title {
        font-size: 17px;
    }
}

.banner-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.4;
    max-width: 90%;
}

@media (max-width: 992px) {
    .banner-description {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .banner-description {
        font-size: 12.5px;
        margin-bottom: 14px;
    }
}

@media (max-width: 640px) {
    .banner-description {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

.banner-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .banner-button {
        padding: 9px 18px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .banner-button {
        padding: 8px 16px;
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .banner-button {
        padding: 7px 14px;
        font-size: 12px;
    }
}

.banner-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.banner-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 80px;
    opacity: 0.15;
    z-index: 1;
}

@media (max-width: 992px) {
    .banner-icon {
        font-size: 70px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    .banner-icon {
        font-size: 60px;
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 640px) {
    .banner-icon {
        font-size: 55px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .banner-icon {
        font-size: 50px;
    }
}

/* Categories */
.categories {
    background: var(--light);
    position: sticky;
    top: 60px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .categories {
        top: 60px;
    }
}

.categories-container {
    position: relative;
    padding: 12px 0;
}

@media (max-width: 768px) {
    .categories-container {
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .categories-container {
        padding: 8px 0;
    }
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px 4px;
    margin: 0 -2px;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
    height: 3px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

@media (hover: hover) {
    .categories-scroll::-webkit-scrollbar {
        display: block;
    }
}

.category-btn {
    background: var(--light-gray);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .category-btn {
        padding: 9px 15px;
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    .category-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .category-btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

/* Menu Sections */
.menu-section {
    padding: 24px 0;
}

@media (max-width: 992px) {
    .menu-section {
        padding: 22px 0;
    }
}

@media (max-width: 768px) {
    .menu-section {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .menu-section {
        padding: 18px 0;
    }
}

@media (max-width: 480px) {
    .menu-section {
        padding: 16px 0;
    }
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    padding: 0 4px;
}

@media (max-width: 992px) {
    .section-title {
        font-size: 21px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 19px;
        margin-bottom: 13px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Большие планшеты */
@media (max-width: 1100px) {
    .menu-items {
        gap: 18px;
    }
}

/* Планшеты */
@media (max-width: 992px) {
    .menu-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .menu-items {
        gap: 15px;
    }
}

/* Маленькие планшеты и большие телефоны */
@media (max-width: 700px) {
    .menu-items {
        gap: 14px;
    }
}

/* Телефоны */
@media (max-width: 640px) {
    .menu-items {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .menu-items {
        gap: 13px;
    }
}

@media (max-width: 480px) {
    .menu-items {
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .menu-items {
        gap: 10px;
    }
}

.menu-item {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

@media (max-width: 1100px) {
    .menu-item {
        padding: 18px;
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .menu-item {
        padding: 16px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .menu-item {
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 700px) {
    .menu-item {
        padding: 14px;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .menu-item {
        padding: 16px;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .menu-item {
        padding: 14px;
        gap: 14px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .menu-item {
        padding: 12px;
        gap: 12px;
    }
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 576px) {
    .item-content {
        gap: 6px;
        width: 100%;
    }
}

.item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

@media (max-width: 480px) {
    .item-title-row {
        gap: 8px;
    }
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

@media (max-width: 992px) {
    .item-title {
        font-size: 15.5px;
    }
}

@media (max-width: 768px) {
    .item-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .item-title {
        font-size: 14.5px;
    }
}

@media (max-width: 480px) {
    .item-title {
        font-size: 14px;
    }
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .item-price {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .item-price {
        font-size: 16.5px;
    }
}

@media (max-width: 576px) {
    .item-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .item-price {
        font-size: 15.5px;
    }
}

.item-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .item-description {
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    .item-description {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .item-description {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .item-description {
        font-size: 12px;
    }
}

.item-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .item-details {
        gap: 11px;
        font-size: 12.5px;
    }
}

@media (max-width: 576px) {
    .item-details {
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .item-details {
        gap: 8px;
        font-size: 11.5px;
        flex-wrap: wrap;
    }
}

.item-weight, .item-calories {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .item-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.item-image:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .item-image {
        width: 95px;
        height: 95px;
    }
}

@media (max-width: 768px) {
    .item-image {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 700px) {
    .item-image {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 576px) {
    .item-image {
        width: 80px;
        height: 80px;
        order: -1;
    }
}

@media (max-width: 480px) {
    .item-image {
        width: 75px;
        height: 75px;
    }
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .add-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .add-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .add-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

/* Modal for enlarged image */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

/* Delivery Method */
.delivery-method {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.method-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.method-buttons {
    display: flex;
    gap: 12px;
}

.method-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    background: var(--light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.method-btn.active {
    border-color: var(--primary);
    background: rgba(220, 38, 38, 0.05);
    color: var(--primary);
}

/* Delivery Form */
.delivery-form {
    display: none;
    margin-bottom: 20px;
}

.delivery-form.active {
    display: block;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.suggestions {
    position: absolute;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow);
    display: none;
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background: var(--light-gray);
}

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

/* Map Container */
.map-container {
    display: none;
    height: 300px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.map-container.active {
    display: block;
}

#map {
    width: 100%;
    height: 100%;
}

/* Pickup Info */
.pickup-info {
    display: none;
    margin-bottom: 20px;
}

.pickup-info.active {
    display: block;
}

.pickup-address {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
}

.pickup-address i {
    color: var(--primary);
    margin-right: 8px;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
    padding: 15px;
}

@media (min-width: 769px) {
    .cart-modal {
        width: 500px;
        right: -500px;
    }
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.cart-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (max-width: 480px) {
    .cart-header {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top, 16px));
    }
}

.cart-title {
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 18px;
    }
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

@media (max-width: 480px) {
    .cart-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-items {
    padding: 16px;
}

@media (max-width: 480px) {
    .cart-items {
        padding: 12px;
    }
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

@media (max-width: 480px) {
    .cart-item {
        padding: 10px 0;
    }
}

.cart-item-info {
    flex: 1;
    padding-right: 12px;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .cart-item-info h4 {
        font-size: 14px;
    }
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 480px) {
    .cart-item-price {
        font-size: 14px;
    }
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--light);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

@media (max-width: 480px) {
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

.item-quantity {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 480px) {
    .item-quantity {
        font-size: 14px;
    }
}

.cart-total {
    padding: 20px 16px;
    border-top: 1px solid var(--border);
    background: var(--light-gray);
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding-bottom: max(20px, calc(20px + var(--safe-area)));
}

@media (max-width: 480px) {
    .cart-total {
        padding: 16px;
        padding-bottom: max(16px, calc(16px + var(--safe-area)));
    }
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .total-row {
        margin-bottom: 12px;
    }
}

.total-label {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 480px) {
    .total-label {
        font-size: 15px;
    }
}

.total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 480px) {
    .total-amount {
        font-size: 20px;
    }
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 480px) {
    .checkout-btn {
        padding: 14px;
        font-size: 15px;
    }
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .empty-state {
        padding: 40px 16px;
    }
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

@media (max-width: 480px) {
    .empty-state i {
        font-size: 40px;
        margin-bottom: 12px;
    }
}

.empty-state p {
    font-size: 16px;
}

@media (max-width: 480px) {
    .empty-state p {
        font-size: 14px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    padding-bottom: max(12px, calc(12px + var(--safe-area)));
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 10px 12px;
        padding-bottom: max(10px, calc(10px + var(--safe-area)));
    }
}

.bottom-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-cart-label {
    font-size: 12px;
    color: var(--text-light);
}

.bottom-cart-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

@media (max-width: 480px) {
    .bottom-cart-total {
        font-size: 16px;
    }
}

.bottom-checkout-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 480px) {
    .bottom-checkout-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.bottom-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: var(--light);
    border-top: 1px solid var(--border);
    padding: 40px 0 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .footer {
        margin-top: 35px;
        padding: 35px 0 25px;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 30px;
        padding: 30px 0 20px;
    }
}

@media (max-width: 576px) {
    .footer {
        margin-top: 25px;
        padding: 25px 0 18px;
    }
}

@media (max-width: 480px) {
    .footer {
        margin-top: 20px;
        padding: 20px 0 16px;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

@media (max-width: 992px) {
    .footer-content {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 20px;
    }
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .footer-column {
        width: 100%;
    }
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

@media (max-width: 768px) {
    .footer-column h4 {
        font-size: 15.5px;
        margin-bottom: 14px;
    }
}

@media (max-width: 576px) {
    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
}

.footer-column p,
.footer-column a {
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .footer-column p,
    .footer-column a {
        font-size: 13.5px;
        margin-bottom: 7px;
    }
}

@media (max-width: 576px) {
    .footer-column p,
    .footer-column a {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

.footer-column a i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.footer-column a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 992px) {
    .copyright {
        margin-top: 25px;
        padding-top: 25px;
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    .copyright {
        margin-top: 24px;
        padding-top: 24px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .copyright {
        margin-top: 22px;
        padding-top: 22px;
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .copyright {
        margin-top: 20px;
        padding-top: 20px;
        font-size: 12px;
    }
}

/* Touch improvements */
@media (hover: none) {
    .add-btn:active,
    .cart-btn:active,
    .quantity-btn:active,
    .category-btn:active,
    .banner-button:active,
    .method-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }

    .menu-item:active {
        background: var(--light-gray);
    }

    .banner:active {
        transform: translateY(-2px);
    }

    .item-image:active {
        transform: scale(1.02);
    }
}

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

.menu-item, .banner {
    animation: fadeIn 0.3s ease backwards;
}

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

.cart-item {
    animation: slideIn 0.2s ease backwards;
}

/* Loading state */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Safe area for iPhone X and newer */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(12px, env(safe-area-inset-top, 12px));
    }
}

/* Additional responsive utilities */
.show-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-on-mobile {
        display: block;
    }
}

.hide-on-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}