/* ==================== style.css ==================== */
:root {
    --orange: #f15a24;
    --orange-hover: #e04d18;
    --orange-light: #fff5f0;
    --orange-bg: #fef7f2;
    --dark-bg: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --border: #e8e8e8;
    --border-light: #f3f4f6;
    --bg-light: #f5f5f5;
    --bg-lighter: #f9fafb;
    --white: #fff;
    --green: #4caf50;
    --red: #e63946;
    --red-badge: #ff2d55;
    --blue: #2196f3;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-2xl: 16px;
    --radius-3xl: 20px;
    --radius-full: 25px;
    --radius-round: 50%;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.3);
    --nav-height: 50px;
    --header-height: 64px;
    --font-xs: 11px;
    --font-sm: 13px;
    --font-base: 15px;
    --font-lg: 18px;
    --font-xl: 22px;
    --font-2xl: 28px;
    --font-3xl: 36px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
}

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

@media screen and (max-width: 768px) {
    input[type="text"], input[type="search"], input[type="tel"], input[type="email"], textarea { font-size: 16px !important; }
}

button, .btn-add, .qty-minus-btn, .qty-plus-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ==================== PRELOADER ==================== */
.preloader-overlay {
    position: fixed; inset: 0; background: var(--white); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-balloon-container { position: relative; width: 80px; height: 100px; }
.preloader-balloon {
    width: 60px; height: 72px; background: var(--orange);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    animation: balloonFloat 2s ease-in-out infinite;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.1), inset 4px 4px 8px rgba(255,255,255,0.3);
}
.preloader-balloon::before {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--orange);
}
.preloader-balloon::after {
    content: ''; position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
    width: 1px; height: 16px; background: var(--text-muted); animation: stringWave 2s ease-in-out infinite;
}
.preloader-balloon-highlight {
    position: absolute; top: 12px; left: 14px; width: 16px; height: 20px;
    background: rgba(255,255,255,0.4); border-radius: var(--radius-round); transform: rotate(-30deg);
}
.preloader-shadow {
    position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 6px; background: rgba(0,0,0,0.08); border-radius: var(--radius-round); animation: shadowPulse 2s ease-in-out infinite;
}
.preloader-text { font-size: 20px; font-weight: 700; color: var(--text); text-align: center; }
.preloader-dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.preloader-dot { width: 8px; height: 8px; border-radius: var(--radius-round); background: var(--orange); animation: dotBounce 1.4s ease-in-out infinite; }
.preloader-dot:nth-child(1) { animation-delay: 0s; }
.preloader-dot:nth-child(2) { animation-delay: 0.2s; }
.preloader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes balloonFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-16px); } }
@keyframes shadowPulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; } 50% { transform: translateX(-50%) scale(0.7); opacity: 0.3; } }
@keyframes stringWave { 0%, 100% { transform: translateX(-50%) rotate(0deg); } 25% { transform: translateX(-50%) rotate(3deg); } 75% { transform: translateX(-50%) rotate(-3deg); } }
@keyframes dotBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1.3); opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ==================== HEADER ==================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 12px 0; transition: all 0.3s ease;
    background: transparent; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; position: relative; gap: 0; }
.logo { position: absolute; left: 50%; transform: translateX(-50%); height: 40px; display: flex; align-items: center; text-decoration: none; z-index: 1; }
.logo-icon { height: 40px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.logo-icon img { height: 30px; width: auto; }

.delivery-tabs {
    display: flex; background: rgba(255,255,255,0.5); border-radius: var(--radius-full);
    padding: 4px; gap: 0; flex-shrink: 0; backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.6); z-index: 2;
}
.delivery-tab {
    padding: 10px 18px; border-radius: 22px; border: none; background: transparent;
    font-weight: 600; font-size: var(--font-sm); cursor: pointer; transition: all 0.3s;
    color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.delivery-tab.active { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: var(--text); }
.delivery-tab i { color: var(--orange); font-size: 14px; }

.header-icons { display: flex; align-items: center; gap: 8px; margin-left: auto; z-index: 2; }
.icon-btn {
    width: 40px; height: 40px; border-radius: var(--radius-round); border: none;
    background: rgba(255,255,255,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: var(--text); transition: all 0.2s; border: 1px solid rgba(255,255,255,0.6);
}
.icon-btn:hover { background: rgba(255,255,255,0.8); }
.btn-cart { position: relative; background: var(--orange); color: var(--white); border: none; }
.btn-cart:hover { background: var(--orange-hover); }
.btn-cart .cart-count {
    position: absolute; top: -4px; right: -4px; background: var(--red); color: var(--white);
    border-radius: var(--radius-round); width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--font-xs); font-weight: 700; border: 2px solid var(--white);
}

/* ==================== HERO SLIDER ==================== */
.hero-slider-wrapper, .mobile-delivery-wrapper { background: #ffffff; width: 100%; }
.hero-slider { position: relative; width: 100%; height: 520px; overflow: hidden; border-radius: 0 0 24px 24px; }
.hero-slider .slides { display: flex; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slider .slide-link { min-width: 100%; height: 100%; display: block; text-decoration: none; position: relative; }
.hero-slider .slide {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    background-repeat: no-repeat; position: relative; cursor: pointer;
}
.hero-slider .slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.3) 100%);
}
.hero-slider .slide-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slider .slide-video::after { z-index: 1; }
.hero-slider .slide-video .slide-content { z-index: 2; }
.slide-content { position: absolute; bottom: 80px; left: 60px; z-index: 2; color: var(--white); max-width: 500px; }
.slide-content h2 { font-size: var(--font-3xl); font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.slide-content p { font-size: 16px; opacity: 0.9; text-shadow: 0 1px 5px rgba(0,0,0,0.3); }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: var(--radius-round); background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.slider-dot.active { background: var(--white); transform: scale(1.4); }

/* ==================== ACCOUNT MODAL ==================== */
.account-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 7300; display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.account-modal-overlay.open { display: flex; }

.account-modal {
    background: var(--white);
    border-radius: var(--radius-3xl);
    width: 480px;
    max-width: 95vw;
    padding: 48px 40px 40px;
    position: relative;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.account-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: var(--radius-round);
    border: none; background: #f0f0f0; cursor: pointer;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    color: #555; transition: 0.2s;
}
.account-modal-close:hover { background: #ddd; }

.account-icon {
    width: 72px; height: 72px; border-radius: var(--radius-round);
    background: var(--orange-light); margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--orange);
}

.account-avatar {
    width: 72px; height: 72px; border-radius: var(--radius-round);
    background: var(--orange); margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: var(--white);
}

.account-title {
    font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text);
}

.account-subtitle {
    font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}

.account-input-group {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-lighter); border: 2px solid var(--border);
    border-radius: var(--radius-lg); padding: 0 14px;
    margin-bottom: 16px; transition: border 0.2s;
}
.account-input-group:focus-within { border-color: var(--orange); }
.account-input-group i { color: var(--text-muted); font-size: 16px; }

.account-input {
    flex: 1; height: 48px; border: none; background: transparent;
    font-size: 16px; font-family: inherit; outline: none; color: var(--text);
}
.account-input::placeholder { color: #bbb; }

.account-code-group {
    margin-bottom: 16px;
}

.account-code-input {
    width: 100%; height: 56px;
    border: 2px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-lighter); font-size: 28px; font-weight: 700;
    text-align: center; letter-spacing: 8px; font-family: inherit;
    outline: none; color: var(--text); transition: border 0.2s;
}
.account-code-input:focus { border-color: var(--orange); }
.account-code-input::placeholder { letter-spacing: 2px; font-size: 16px; font-weight: 400; color: #bbb; }

.account-btn {
    width: 100%; height: 50px; background: var(--orange);
    border: none; border-radius: var(--radius-full);
    color: var(--white); font-weight: 700; font-size: 16px;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: background 0.2s;
}
.account-btn:hover { background: var(--orange-hover); }
.account-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.account-btn-outline {
    background: transparent; border: 2px solid var(--orange);
    color: var(--orange); margin-bottom: 8px;
}
.account-btn-outline:hover { background: var(--orange); color: var(--white); }

.account-link {
    background: none; border: none; font-size: 13px;
    color: var(--text-muted); cursor: pointer; font-family: inherit;
    padding: 8px; margin-top: 8px; transition: color 0.2s;
}
.account-link:hover { color: var(--orange); }

.account-link-logout { color: var(--red); margin-top: 4px; }
.account-link-logout:hover { color: var(--red); opacity: 0.8; }

.account-stats {
    display: flex; gap: 8px; margin-bottom: 24px;
}

.account-stat {
    flex: 1; background: var(--bg-lighter);
    border-radius: var(--radius-lg); padding: 14px 8px;
    text-align: center;
}

.account-stat-icon {
    width: 36px; height: 36px; border-radius: var(--radius-round);
    margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

.account-stat-value {
    font-size: 20px; font-weight: 700; color: var(--text);
}

.account-stat-label {
    font-size: 11px; color: var(--text-muted); margin-top: 2px;
}

/* ==================== ACCOUNT HISTORY MODAL ==================== */
.account-history-modal {
    background: var(--white);
    border-radius: var(--radius-3xl);
    width: 800px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.account-history-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.account-history-header h3 {
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.account-history-header h3 i { color: var(--orange); }

.account-history-body {
    flex: 1; overflow-y: auto; padding: 20px 24px;
    display: flex; flex-direction: column; gap: 16px;
}

.account-history-card {
    background: var(--bg-lighter);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.account-history-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; cursor: pointer;
    transition: background 0.2s;
}

@media (max-width: 768px) {
    .account-modal { width: 100%; max-width: 100vw; padding: 32px 20px 24px; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
    .account-history-modal { width: 100%; max-width: 100vw; max-height: 92vh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
    .account-history-card-right { gap: 6px; }
    .account-history-card-total { font-size: 13px; }
    .account-history-card-status { font-size: 10px; padding: 3px 8px; }
    .account-history-card-info { font-size: 12px; }
    .account-stats { gap: 4px; }
    .account-stat { padding: 10px 4px; }
    .account-stat-value { font-size: 16px; }
}

.account-history-card-header:hover { background: #f5f5f5; }

.account-history-card-left {
    display: flex; align-items: center; gap: 12px;
}

.account-history-card-type {
    width: 36px; height: 36px; border-radius: var(--radius-round);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.account-history-card-type.check { background: #f0fdf4; color: #059669; }
.account-history-card-type.order { background: #eff6ff; color: #3b82f6; }

.account-history-card-info { text-align: left; }
.account-history-card-number { font-weight: 700; font-size: 14px; color: var(--text); }
.account-history-card-date { font-size: 11px; color: var(--text-muted); }

.account-history-card-right {
    display: flex; align-items: center; gap: 12px;
}
.account-history-card-total { font-weight: 700; font-size: 14px; }
.account-history-card-status {
    padding: 4px 10px; border-radius: 15px;
    font-size: 11px; font-weight: 600;
}
.account-history-card-chevron { color: #ccc; font-size: 12px; }

.account-history-card-body {
    display: none; padding: 0 16px 16px;
    border-top: 1px solid var(--border);
}
.account-history-card.open .account-history-card-body {
    display: block;
}
.account-history-card.open .account-history-card-chevron {
    transform: rotate(180deg);
}

.account-history-detail-row {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 13px; color: var(--text-light);
}
.account-history-detail-row span:last-child { color: var(--text); font-weight: 500; }

.account-history-detail-items {
    margin-top: 8px;
}
.account-history-detail-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px; background: #fff; border-radius: 6px;
    margin-bottom: 4px; font-size: 12px;
}
.account-history-detail-item-name { flex: 1; font-weight: 500; color: var(--text); }
.account-history-detail-item-qty { color: var(--text-muted); margin: 0 12px; }
.account-history-detail-item-price { font-weight: 600; white-space: nowrap; }

/* Статусы */
.status-paid { background: #eff6ff; color: #3b82f6; }
.status-done { background: #f0fdf4; color: #059669; }
.status-cancel { background: #fef2f2; color: #dc2626; }
.status-new { background: #f9fafb; color: #6b7280; }
.status-assembly { background: #fefce8; color: #a16207; }
.status-ready { background: #f0fdf4; color: #16a34a; }
.status-courier { background: #fff7ed; color: #ea580c; }

.account-detail-grid {
    display: flex; flex-direction: column; gap: 0;
}
.account-detail-item {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #f5f5f5;
    font-size: 14px; color: var(--text-light);
}
.account-detail-item:last-child { border-bottom: none; }
.account-detail-item span:last-child { color: var(--text); font-weight: 500; }

/* ==================== МОБИЛЬНЫЙ БЛОК ДОСТАВКИ ==================== */
.mobile-delivery-block { display: none; padding: 16px 15px 0; }
.mobile-delivery-tabs { display: flex; background: #e8e8e8; border-radius: var(--radius-xl); padding: 4px; gap: 0; }
.mobile-delivery-tab {
    flex: 1; padding: 12px 10px; border-radius: var(--radius-xs); border: none;
    background: transparent; font-weight: 600; font-size: var(--font-sm); cursor: pointer;
    color: var(--text-light); white-space: nowrap; display: flex; align-items: center;
    justify-content: center; gap: 6px; font-family: inherit; transition: all 0.3s;
}
.mobile-delivery-tab.active { background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.08); color: var(--text); }
.mobile-delivery-tab i { color: var(--orange); font-size: 14px; }
.mobile-delivery-address {
    display: flex; align-items: center; gap: 8px; padding: 14px 16px;
    background: #e8e8e8; border-radius: var(--radius-xl); margin-top: 8px;
    cursor: pointer; font-size: 14px; color: var(--text); font-weight: 500; transition: all 0.2s;
}
.mobile-delivery-address:hover { background: #ddd; }
.mobile-delivery-address i { color: var(--orange); font-size: 16px; }
.mobile-delivery-address span { flex: 1; }

/* ==================== FILTER MODAL ==================== */
.filter-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 7200; align-items: center; justify-content: center;
}
.filter-modal-overlay.open { display: flex; }
.filter-modal {
    background: var(--white); border-radius: var(--radius-3xl); 
    width: 100%; max-width: 100vw; height: 100vh; max-height: 100vh;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-xl);
}
.filter-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.filter-modal-header h3 { font-size: var(--font-lg); font-weight: 700; display: flex; align-items: center; gap: var(--radius-md); }
.filter-modal-header h3 i { color: var(--orange); }
.filter-modal-close { width: 34px; height: 34px; border-radius: var(--radius-round); border: none; background: #f0f0f0; font-size: var(--font-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #555; }
.filter-modal-close:hover { background: #ddd; }
.filter-modal-body { flex: 1; overflow-y: auto; padding: 18px; }
.filter-modal-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.filter-modal-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-modal-group-title { font-size: var(--font-base); font-weight: 700; margin-bottom: var(--radius-lg); color: var(--text); display: flex; align-items: center; gap: var(--radius-sm); }
.filter-modal-group-title i { color: var(--orange); font-size: 14px; }
.filter-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.filter-modal-grid-quick { background: linear-gradient(135deg, var(--orange-light) 0%, #fff0e8 100%); border: 1px solid #ffe0d0; border-radius: var(--radius-lg); padding: var(--radius-lg); grid-template-columns: repeat(2, 1fr); }
.filter-checkbox { display: flex; align-items: center; gap: var(--radius-sm); padding: 8px var(--radius-md); border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; }
.filter-checkbox:hover { background: var(--bg-lighter); }
.filter-checkbox input[type="checkbox"] { display: none; }
.filter-checkmark { width: 18px; height: 18px; border-radius: 4px; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; position: relative; }
.filter-checkmark::after { content: ''; width: var(--radius-md); height: var(--radius-md); background: var(--orange); border-radius: 2px; opacity: 0; transform: scale(0); transition: all 0.2s; }
.filter-checkbox input:checked ~ .filter-checkmark { border-color: var(--orange); }
.filter-checkbox input:checked ~ .filter-checkmark::after { opacity: 1; transform: scale(1); }
.filter-checkbox-quick { padding: 8px var(--radius-md); }
.filter-checkmark-quick { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; position: relative; background: var(--white); }
.filter-checkmark-quick::after { content: ''; width: var(--radius-md); height: var(--radius-md); background: var(--white); border-radius: 2px; opacity: 0; transform: scale(0); transition: all 0.2s; }
.filter-checkbox-quick input:checked ~ .filter-checkmark-quick { border-color: var(--orange); background: var(--orange); }
.filter-checkbox-quick input:checked ~ .filter-checkmark-quick::after { opacity: 1; transform: scale(1); }
.filter-checkbox-quick input:checked ~ .filter-label { color: var(--orange); font-weight: 600; }
.filter-label { font-size: var(--font-sm); font-weight: 500; color: #555; white-space: nowrap; }
.filter-modal-actions { display: flex; gap: var(--radius-md); padding: 16px 22px; border-top: 1px solid #eee; flex-shrink: 0; }
.filter-modal-apply { flex: 1; padding: 13px; border-radius: var(--radius-full); border: none; background: var(--orange); color: var(--white); font-weight: 700; font-size: var(--font-base); cursor: pointer; }
.filter-modal-apply:hover { background: var(--orange-hover); }
.filter-modal-reset { padding: 13px 22px; border-radius: var(--radius-full); border: 1px solid #ddd; background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; color: #888; }
.filter-modal-reset:hover { background: var(--bg-light); }

/* ==================== КАТЕГОРИИ + ФИЛЬТРЫ ==================== */
.categories-filters-section {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 24px 24px;
    position: sticky;
    top: 68px;
    z-index: 997;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.categories-filters-section.scrolled {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}
.categories-filters-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.categories-scroll { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 2px 0; cursor: grab; user-select: none; touch-action: pan-x; white-space: nowrap; }
.categories-scroll:active { cursor: grabbing; }
.categories-scroll::-webkit-scrollbar { display: none; }
.category-chip { display: inline-flex; align-items: center; padding: 10px 16px; background: var(--bg-lighter); border: 2px solid transparent; border-radius: var(--radius-lg); font-weight: 600; font-size: var(--font-sm); color: var(--text); cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; text-decoration: none; font-family: inherit; }
.category-chip:hover { background: var(--orange-light); border-color: var(--orange); color: var(--orange); }
.category-chip.active { background: var(--orange); border-color: var(--orange); color: var(--white); }
.category-chip-icon { display: none; }
.filters-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--bg-lighter); border: 2px solid var(--border); border-radius: var(--radius-lg); font-weight: 600; font-size: var(--font-sm); color: var(--text); cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; font-family: inherit; position: relative; }
.filters-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.filters-btn i { font-size: 14px; }
.filter-count-badge { position: absolute; top: -4px; right: -4px; background: var(--orange); color: var(--white); border-radius: var(--radius-round); width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; border: 2px solid var(--white); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.active-filter-tag { display: flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--orange-light); border: 1px solid #ffd0b8; border-radius: 15px; font-size: var(--font-xs); font-weight: 600; color: var(--orange); cursor: pointer; transition: all 0.2s; }
.active-filter-tag:hover { background: #ffe8d6; border-color: var(--orange); }
.active-filter-tag i { font-size: 9px; color: var(--text-muted); }
.active-filter-tag:hover i { color: var(--red); }

/* ==================== PIZZA GRID ==================== */
.pizza-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--radius-2xl); padding-bottom: 40px; }
.pizza-card { background: var(--white); border-radius: var(--radius-2xl); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.pizza-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pizza-card .img-area { aspect-ratio: 1; height: auto; background: linear-gradient(135deg, var(--orange-bg) 0%, #ffe8d6 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pizza-card .img-area img, .pizza-card .img-area video { width: 100%; height: 100%; object-fit: cover; }
.pizza-card .img-area i { font-size: 60px; color: #ddd; }
.pizza-card .tag-hit { 
    position: absolute; top: 8px; left: 8px; 
    background: var(--red-badge); color: var(--white); 
    font-size: 10px; font-weight: 700; 
    padding: 3px 8px; border-radius: 10px; 
    letter-spacing: 0.5px; text-transform: uppercase; 
}
.pizza-card .tag-sale {
    position: absolute; top: 8px; right: 8px;
    background: #059669; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 10px;
    letter-spacing: 0.5px;
}
.pizza-card .card-info { padding: var(--radius-2xl); flex: 1; display: flex; flex-direction: column; gap: var(--radius-sm); }
.pizza-card .card-info h4 { font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.pizza-card .card-info .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: var(--radius-sm); }
.pizza-card .card-info .price { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.pizza-card .card-info .price .current-price { font-size: 20px; font-weight: 700; color: var(--text); }
.pizza-card .card-info .price .current-price.has-old { color: var(--red); }
.pizza-card .card-info .price .old-price { font-size: var(--font-sm); font-weight: 400; color: #bbb; text-decoration: line-through; white-space: nowrap; flex-shrink: 0; }
.pizza-card .card-info .price small { font-size: var(--font-sm); font-weight: 400; color: var(--text-muted); }
.pizza-card .btn-add { width: 40px; height: 40px; border-radius: var(--radius-round); background: var(--orange-light); border: 2px solid var(--orange); color: var(--orange); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; font-weight: 600; line-height: 1; flex-shrink: 0; position: relative; overflow: hidden; }
.pizza-card .btn-add:hover { background: var(--orange); color: var(--white); }
.pizza-card .btn-add.added { background: var(--green) !important; border-color: var(--green) !important; color: var(--white) !important; width: 40px !important; height: 40px !important; border-radius: var(--radius-round) !important; animation: popAdded 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.pizza-card .btn-add.added i { animation: iconAppear 0.3s ease 0.1s both; }
.pizza-card .btn-add.added i::before { content: '\f00c'; }
.pizza-card .btn-add.more { width: auto !important; min-width: 90px; border-radius: var(--radius-full) !important; padding: 6px 14px !important; background: var(--orange-light) !important; border-color: var(--orange) !important; color: var(--orange) !important; font-size: var(--font-base) !important; gap: 6px; }
.pizza-card .btn-add.more i { font-size: 16px; }
.pizza-card .btn-add.more i::before { content: '\f067'; }
.pizza-card .btn-add.more::after { content: 'Ещё'; font-weight: 600; font-size: var(--font-base); }
@keyframes popAdded { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes iconAppear { 0% { transform: scale(0) rotate(-180deg); opacity: 0; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

/* ==================== FOOTER ==================== */
.footer { background: var(--dark-bg); color: var(--text-muted); padding: 45px 0 20px; margin-top: 20px; border-radius: 24px 24px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h5 { color: var(--white); font-size: var(--font-base); margin-bottom: var(--radius-xl); font-weight: 600; }
.footer a { color: #888; text-decoration: none; font-size: var(--font-sm); display: block; margin: 7px 0; transition: color 0.2s; }
.footer a:hover { color: var(--orange); }
.footer .copyright { border-top: 1px solid #333; padding-top: 18px; text-align: center; font-size: 12px; color: var(--text-light); }
.footer .copyright a { color: #888; display: inline; }

/* ==================== CART DRAWER ==================== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 5000; display: none; backdrop-filter: blur(2px); }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: -420px; width: 400px; max-width: 100vw; height: 100vh; background: var(--white); z-index: 5100; transition: right 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,0.15); }
.cart-drawer.open { right: 0; }
.cart-drawer-header { padding: 18px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-header h4 { font-size: var(--font-lg); font-weight: 700; }
.btn-close-drawer { width: 34px; height: 34px; border-radius: var(--radius-round); border: none; background: #f0f0f0; cursor: pointer; font-size: var(--font-lg); display: flex; align-items: center; justify-content: center; transition: 0.2s; color: #555; }
.btn-close-drawer:hover { background: #ddd; }
.cart-clear-btn { width: 34px; height: 34px; border-radius: var(--radius-round); border: none; background: #f0f0f0; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: 0.2s; color: var(--text-muted); }
.cart-clear-btn:hover { background: var(--red); color: var(--white); }
.cart-item { display: flex; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--bg-light); }
.cart-items-list { flex: 1; overflow-y: auto; padding: 0px 15px 10px 15px; }
.cart-item-image { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--orange-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-image i { font-size: 18px; color: #ccc; }
.cart-item-main { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-opts { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.cart-opt-icon { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; color: var(--orange); background: var(--orange-light); padding: 2px 6px; border-radius: 4px; position: relative; cursor: default; }

.cart-opt-icon span { font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.cart-qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text); transition: 0.2s; }
.cart-qty-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.cart-qty-btn i { font-size: 9px; }
.cart-item-qty span { font-weight: 600; min-width: 16px; text-align: center; font-size: 12px; }
.cart-item-price { font-weight: 700; font-size: 14px; flex-shrink: 0; text-align: right; }
.cart-drawer-footer { padding: 16px 20px 22px; border-top: 2px solid #f0f0f0; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: var(--radius-xl); }
.btn-checkout { width: 100%; padding: 15px; background: var(--orange); color: var(--white); border: none; border-radius: var(--radius-full); font-weight: 700; font-size: var(--font-base); cursor: pointer; transition: 0.2s; letter-spacing: 0.3px; }
.btn-checkout:hover { background: var(--orange-hover); }
.cart-delivery-info { margin-top: var(--radius-2xl); padding: var(--radius-xl); background: var(--bg-lighter); border-radius: var(--radius-lg); border: 1px solid #eee; }
.cart-delivery-row { display: flex; align-items: center; gap: var(--radius-sm); font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.cart-delivery-row i { color: var(--orange); font-size: 16px; }
.cart-delivery-address { font-size: var(--font-sm); color: var(--text-light); margin-bottom: 4px; line-height: 1.4; }
.cart-delivery-time { font-size: 12px; color: #888; }
.cart-delivery-cost { font-size: 12px; color: #888; margin-top: 2px; }
.cart-promo-info { margin-top: var(--radius-lg); padding: var(--radius-lg); background: var(--bg-lighter); border-radius: var(--radius-lg); border: 1px solid #eee; }
.cart-promo-applied { background: #f0fff0; border-color: #b8e6b8; }
.cart-promo-row { display: flex; align-items: center; gap: var(--radius-sm); }
.cart-promo-row i { color: var(--orange); font-size: 14px; }
.promo-input { flex: 1; padding: var(--radius-md) var(--radius-xl); border-radius: var(--radius-3xl); border: 2px solid #e0e0e0; font-size: 14px; outline: none; font-family: inherit; transition: border 0.2s; min-width: 0; }
.promo-input:focus { border-color: var(--orange); }
.promo-apply-btn { padding: var(--radius-md) 18px; border-radius: var(--radius-3xl); border: none; background: var(--orange); color: var(--white); cursor: pointer; font-weight: 600; font-size: var(--font-sm); white-space: nowrap; transition: background 0.2s; flex-shrink: 0; }
.promo-apply-btn:hover { background: var(--orange-hover); }
.promo-remove-btn { width: 26px; height: 26px; border-radius: var(--radius-round); border: none; background: #e0e0e0; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; margin-left: auto; }
.promo-remove-btn:hover { background: var(--red); color: var(--white); }
.cart-promo-rules { font-size: 12px; color: #888; margin-top: 6px; line-height: 1.4; }
.cart-promo-discount { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 6px; }
.cart-min-order { margin-top: var(--radius-lg); padding: var(--radius-lg) var(--radius-xl); background: #fffbf5; border: 1px solid #f0e0c0; border-radius: var(--radius-md); font-size: var(--font-sm); color: #555; }
.cart-min-order i { color: var(--orange); font-size: 14px; }
.cart-min-order .min-order-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cart-min-order .min-order-row:last-child { margin-bottom: 0; }



/* ==================== YANDEX MAP ==================== */
.yandex-map-container { width: 100%; height: 300px; border-radius: var(--radius-lg); margin-bottom: var(--radius-2xl); overflow: hidden; background: #e9e9e9; }

/* ==================== ADDRESS SUGGESTIONS ==================== */
.address-input-wrapper { position: relative; flex: 1; }
.address-input-wrapper .address-input { width: 100%; margin-bottom: 0; }
.suggestions-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 2px solid var(--orange); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); max-height: 250px; overflow-y: auto; z-index: 7000; display: none; box-shadow: var(--shadow-lg); }
.suggestions-dropdown.active { display: block; }
.suggestion-item { padding: var(--radius-lg) var(--radius-2xl); cursor: pointer; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; transition: background 0.15s; text-align: left; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--orange-light); color: var(--orange); }
.suggestion-item i { color: var(--text-muted); margin-right: var(--radius-sm); font-size: var(--font-sm); }
.suggestions-loading { padding: var(--radius-lg) var(--radius-2xl); text-align: center; color: var(--text-muted); font-size: var(--font-sm); }

/* ==================== SEARCH MODAL ==================== */
.search-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 7000; display: none; }
.search-modal-overlay.open { display: flex; }
.search-modal { background: var(--white); width: 100%; height: 100vh; display: flex; flex-direction: column; overflow: hidden; align-items: center; }
.search-modal-header { display: flex; align-items: center; gap: 0; padding: 20px 20px 15px; flex-shrink: 0; max-width: 1200px; width: 100%; }
.search-wrapper-modal { flex: 1; position: relative; height: 48px; display: flex; align-items: center; }
.search-wrapper-modal input { width: 100%; height: 100%; padding: 0 44px 0 44px; border-radius: var(--radius-full); border: none; font-size: 17px; outline: none; font-family: inherit; background: var(--bg-light); }
.search-wrapper-modal input::placeholder { color: var(--text-muted); }
.search-wrapper-modal .search-icon-inside { position: absolute; left: var(--radius-2xl); top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: var(--font-lg); pointer-events: none; z-index: 2; }
.search-wrapper-modal .search-close-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: var(--radius-round); border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 16px; transition: all 0.2s; z-index: 2; }
.search-wrapper-modal .search-close-btn:hover { background: #f0f0f0; color: #555; }
.search-modal-cancel { display: none; }
.search-modal-results { flex: 1; overflow-y: auto; padding: 20px; max-width: 1200px; width: 100%; }
.search-modal-empty { text-align: center; padding: 80px 20px; color: #bbb; font-size: 16px; }
.search-modal-empty i { font-size: 50px; display: block; margin-bottom: 15px; color: #ddd; }
.search-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--radius-2xl); }
.search-result-card { background: var(--white); border-radius: var(--radius-2xl); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; box-shadow: var(--shadow-xs); border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.search-result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.search-result-image { aspect-ratio: 1; height: auto; background: linear-gradient(135deg, var(--orange-bg) 0%, #ffe8d6 100%); display: flex; align-items: center; justify-content: center; font-size: 60px; }
.search-result-image img, .search-result-image video { width: 100%; height: 100%; object-fit: cover; }
.search-result-image i { font-size: 40px; color: #ccc; }
.search-result-info { padding: var(--radius-xl); flex: 1; display: flex; flex-direction: column; gap: var(--radius-sm); }
.search-result-name { font-weight: 600; font-size: var(--font-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.search-result-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--radius-sm); margin-top: auto; }
.search-result-price { font-size: var(--font-lg); font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.search-result-price .current-price { font-size: var(--font-lg); font-weight: 700; color: var(--text); }
.search-result-price .current-price.has-old { color: var(--red); }
.search-result-price .old-price { font-size: 12px; font-weight: 400; color: #bbb; text-decoration: line-through; white-space: nowrap; }
.search-result-price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.search-result-add { width: 36px; height: 36px; border-radius: var(--radius-round); background: var(--orange-light); border: 2px solid var(--orange); color: var(--orange); font-size: var(--font-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-weight: 600; flex-shrink: 0; }
.search-result-add:hover { background: var(--orange); color: var(--white); }

/* ==================== PRODUCT MODAL ==================== */
.product-modal-overlay { 
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 7100; 
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); 
}
.product-modal-overlay.open { display: flex; }
.product-modal {
    background: var(--white);
    border-radius: var(--radius-3xl);
    width: 1200px;
    max-width: 95vw;
    height: 85vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.product-modal-close { 
    position: absolute; top: 16px; right: 16px; z-index: 10; 
    width: 36px; height: 36px; border-radius: var(--radius-round); 
    border: none; background: rgba(255,255,255,0.9); cursor: pointer; 
    font-size: 20px; display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; color: #555; 
}
.product-modal-close:hover { background: var(--white); color: #000; }
.product-modal-content { 
    display: flex; gap: 0; flex: 1; overflow: hidden; min-height: 0;
    height: 100%;
}

/* Галерея */
.product-modal-gallery { 
    flex: 0 0 50%;
    background: var(--bg-lighter); 
    overflow: hidden;
}

/* Слайдер фото */
.product-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.product-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}
.product-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-bg) 0%, #ffe8d6 100%);
}
.product-slide img, .product-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-slide i {
    font-size: 80px;
    color: #ddd;
}
.product-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.product-slider-dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-round);
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.product-slider-dot.active {
    background: var(--white);
    transform: scale(1.4);
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}
.product-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: var(--radius-round);
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 16px;
    color: #555;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.product-slider-arrow:hover { background: var(--white); }
.product-slider-arrow.prev { left: 8px; }
.product-slider-arrow.next { right: 8px; }

.product-modal-composition {
    margin-top: 16px; margin-bottom: 16px; padding: 14px;
    background: var(--bg-lighter); border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.product-modal-comp-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; border-bottom: 1px solid #eee;
    font-size: 13px;
}
.product-modal-comp-item:last-child { border-bottom: none; }
.product-modal-comp-image {
    width: 32px; height: 32px; border-radius: 6px;
    background: var(--orange-light); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.product-modal-comp-image img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-comp-image i { font-size: 14px; color: #ccc; }
.product-modal-comp-item span:first-of-type { flex: 1; font-weight: 500; }

/* Инфо */
.product-modal-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    min-height: 0;
    height: 100%;
}
.product-modal-scroll { 
    flex: 1; 
    overflow-y: auto; 
    padding: 30px 24px 20px;
    max-height: 100%;
}
.product-modal-sku { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.product-modal-name { font-size: 24px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.product-modal-desc { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.product-modal-info-block { 
    font-size: var(--font-sm); color: #888; background: #fffbf5; 
    border: 1px solid #f0e0c0; border-radius: var(--radius-sm); 
    padding: var(--radius-md) var(--radius-xl); margin-bottom: 12px; 
    display: flex; align-items: flex-start; gap: var(--radius-sm); 
}
.product-modal-info-block i { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.product-modal-delivery { 
    font-size: var(--font-sm); color: var(--text-light); margin-bottom: 8px; 
    display: flex; align-items: center; gap: 6px; 
}
.product-modal-order-date { 
    font-size: var(--font-sm); color: var(--text-light); margin-bottom: 12px; 
    display: flex; align-items: center; gap: 6px; 
}

/* Опции */
.product-modal-options { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.product-option { 
    padding: 12px 16px; border-radius: var(--radius-lg); background: var(--bg-lighter);
    transition: all 0.2s; cursor: pointer;
}
.product-option:has(input:checked) { background: var(--orange-light); }
.product-option label { font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; }
.product-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.option-qty-row { display: none; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.product-option:has(input:checked) .option-qty-row { display: flex; }
.option-qty-row button { width: 28px; height: 28px; border-radius: var(--radius-round); border: 1px solid #ddd; background: var(--white); cursor: pointer; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.option-qty-row button:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.option-qty-row .qty-value { font-weight: 700; min-width: 20px; text-align: center; font-size: 14px; }
.option-print-text { width: 100%; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid #ddd; font-size: 14px; outline: none; font-family: inherit; display: none; margin-top: 8px; }
.product-option:has(input:checked) .option-print-text { display: block; }

/* Подвал */
.product-modal-footer { 
    display: flex; align-items: center; justify-content: space-between; 
    gap: 16px; padding: 16px 24px; border-top: 1px solid #eee; 
    background: var(--white); flex-shrink: 0; 
}
.product-modal-price { font-size: 24px; font-weight: 700; color: var(--text); white-space: nowrap; display: flex; align-items: baseline; gap: 8px; }
.product-modal-price .current-price { font-size: 24px; font-weight: 700; color: var(--text); }
.product-modal-price .current-price.has-old { color: var(--red); }
.product-modal-price .old-price { font-size: 16px; font-weight: 400; color: var(--text-muted); text-decoration: line-through; white-space: nowrap; }
.product-modal-price small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.product-modal-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.product-modal-add { padding: 14px 28px; border-radius: var(--radius-full); border: none; background: var(--orange); color: var(--white); font-weight: 700; font-size: 16px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.product-modal-add:hover { background: var(--orange-hover); }
.product-modal-footer .qty-control { display: flex; align-items: center; gap: 12px; background: var(--orange-light); border: 2px solid var(--orange); border-radius: var(--radius-full); padding: 10px 16px; }
.product-modal-footer .qty-control .qty-minus-btn,
.product-modal-footer .qty-control .qty-plus-btn { width: 32px; height: 32px; border-radius: var(--radius-round); border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: var(--orange); transition: all 0.2s; }
.product-modal-footer .qty-control .qty-minus-btn:hover,
.product-modal-footer .qty-control .qty-plus-btn:hover { background: var(--orange); color: var(--white); }
.product-modal-footer .qty-control .qty-value { font-weight: 700; font-size: var(--font-lg); color: var(--text); min-width: 28px; text-align: center; }

/* ==================== ORDER MODAL ==================== */
.order-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 7200; display: none; align-items: flex-start; justify-content: center; backdrop-filter: blur(3px); overflow-y: auto; padding: 20px 0; }
.order-modal-overlay.open { display: flex; }
.order-modal { background: var(--white); border-radius: var(--radius-3xl); width: 95%; max-width: 560px; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); margin: auto; position: relative; }
.order-modal-header { padding: 20px 24px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background: var(--white); z-index: 10; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
.order-modal-header h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.order-modal-header h3 i { color: var(--orange); }
.order-modal-close { width: 36px; height: 36px; border-radius: var(--radius-round); border: none; background: #f0f0f0; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: 0.2s; color: #555; }
.order-modal-close:hover { background: #ddd; }
.order-modal-body { padding: 20px 24px 24px; }
.order-step-card { background: var(--white); border-radius: var(--radius-2xl); padding: 20px; margin-bottom: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.order-step-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.order-step-num { width: 26px; height: 26px; border-radius: var(--radius-round); background: var(--orange); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.order-form-row { display: flex; gap: 10px; margin-bottom: 12px; }
.order-form-row:last-child { margin-bottom: 0; }
.order-form-group { flex: 1; display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.order-form-row .order-form-group { margin-bottom: 0; }
.order-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.required { color: var(--red); }
.order-input, .order-textarea { width: 100%; height: 46px; padding: 0 14px; border: 2px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; font-family: inherit; outline: none; background: var(--bg-lighter); transition: border 0.2s; color: var(--text); }
.order-input:focus, .order-textarea:focus { border-color: var(--orange); background: var(--white); }
.order-input::placeholder, .order-textarea::placeholder { color: #bbb; }
.order-textarea { height: auto; padding: 12px 14px; min-height: 60px; resize: vertical; }
select.order-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.order-error { font-size: 11px; color: var(--red); min-height: 0; }
.order-delivery-tabs { display: flex; background: #f0f0f0; border-radius: var(--radius-full); padding: 4px; margin-bottom: 12px; }
.order-delivery-tab { flex: 1; padding: 10px 14px; border-radius: 22px; border: none; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text-light); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; transition: all 0.2s; }
.order-delivery-tab.active { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.order-delivery-tab i { color: var(--orange); font-size: 14px; }
.order-delivery-preview { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--orange-light); border-radius: var(--radius-lg); font-size: 13px; font-weight: 500; color: var(--text); }
.order-delivery-preview i { color: var(--orange); flex-shrink: 0; font-size: 14px; }
.order-delivery-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-change-btn { padding: 6px 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 11px; font-weight: 600; color: var(--orange); cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0; transition: all 0.2s; }
.order-change-btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.order-min-date-info { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f0f8ff; border: 1px solid #b8d8f0; border-radius: var(--radius-md); margin-top: 10px; font-size: 12px; color: #555; line-height: 1.4; }
.order-min-date-info i { color: var(--blue); font-size: 15px; flex-shrink: 0; }
.order-min-date-info strong { color: var(--text); }
.order-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.order-summary-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.order-summary-item:last-child { border-bottom: none; }
.order-summary-image { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--orange-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.order-summary-image img { width: 100%; height: 100%; object-fit: cover; }
.order-summary-image i { font-size: 18px; color: #ccc; }
.order-summary-info { flex: 1; min-width: 0; }
.order-summary-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-summary-options { font-size: 10px; color: var(--text-light); margin-top: 1px; }
.order-summary-right { text-align: right; flex-shrink: 0; }
.order-summary-qty { font-size: 12px; color: var(--text-muted); }
.order-summary-price { font-weight: 700; font-size: 13px; }
.order-totals { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.order-totals-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); }
.order-totals-total { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.order-totals-total span:last-child { color: var(--orange); }
.order-payment-options { display: flex; flex-direction: column; gap: 8px; }
.order-payment-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; }
.order-payment-option:hover { border-color: var(--orange); }
.order-payment-option input[type="radio"] { display: none; }
.payment-radio-custom { width: 20px; height: 20px; border-radius: var(--radius-round); border: 2px solid #ccc; flex-shrink: 0; position: relative; }
.order-payment-option:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.order-payment-option:has(input:checked) .payment-radio-custom { border-color: var(--orange); background: var(--orange); }
.order-payment-option:has(input:checked) .payment-radio-custom::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: var(--radius-round); background: var(--white); }
.order-payment-option i { color: var(--orange); font-size: 22px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--orange-light); border-radius: var(--radius-md); flex-shrink: 0; transition: all 0.2s; }
.order-payment-option:has(input:checked) i { background: var(--orange); color: var(--white); }
.payment-label { display: flex; flex-direction: column; gap: 1px; }
.payment-label strong { font-size: 14px; color: var(--text); white-space: normal; display: block; }
.payment-label small { font-size: 11px; color: var(--text-muted); font-weight: 400; display: block; white-space: normal; }
.order-submit-btn { width: 100%; height: 52px; background: var(--orange); color: var(--white); border: none; border-radius: var(--radius-full); font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; margin-top: 4px; }
.order-submit-btn:hover { background: var(--orange-hover); }
.order-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.account-pay-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: var(--orange); color: #fff;
    border-radius: 20px; font-size: 12px; font-weight: 600;
    text-decoration: none; margin-top: 8px;
    transition: background 0.2s;
}
.account-pay-btn:hover { background: var(--orange-hover); }

/* ==================== SUCCESS MODAL ==================== */
.success-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 8000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.success-modal-overlay.open { display: flex; }
.success-modal { background: var(--white); border-radius: var(--radius-3xl); width: 95%; max-width: 450px; box-shadow: var(--shadow-xl); position: relative; overflow: hidden; }
.success-modal-content { padding: 40px 30px; text-align: center; }
.success-loader { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.success-spinner { width: 60px; height: 60px; border: 4px solid #f0f0f0; border-top: 4px solid var(--orange); border-radius: var(--radius-round); animation: spin 0.8s linear infinite; }
.success-loader-text { font-size: 16px; font-weight: 600; color: #555; }
.success-result { display: none; flex-direction: column; align-items: center; gap: var(--radius-2xl); }
.success-result.show { display: flex; }
.success-icon { width: 80px; height: 80px; border-radius: var(--radius-round); background: var(--green); display: flex; align-items: center; justify-content: center; animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.success-icon i { font-size: 40px; color: var(--white); }
@keyframes popIn { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
.success-title { font-size: var(--font-xl); font-weight: 700; color: var(--text); }
.success-message { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.success-message strong { color: var(--orange); }
.success-close-btn { margin-top: var(--radius-md); padding: var(--radius-xl) 40px; border-radius: var(--radius-full); border: none; background: var(--orange); color: var(--white); font-weight: 700; font-size: var(--font-base); cursor: pointer; transition: 0.2s; }
.success-close-btn:hover { background: var(--orange-hover); }

/* ==================== TOAST ==================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: var(--radius-md); }
.toast { padding: var(--radius-xl) 20px; border-radius: var(--radius-lg); color: var(--white); font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); max-width: 380px; display: flex; align-items: center; gap: var(--radius-md); cursor: pointer; }
.toast.show { transform: translateX(0); }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.toast-info { background: var(--blue); }
.toast-warning { background: #ff9800; }
.toast i { font-size: var(--font-lg); flex-shrink: 0; }

/* ==================== QTY CONTROL ==================== */
.qty-control { display: flex; align-items: center; gap: var(--radius-sm); background: var(--orange-light); border: 2px solid var(--orange); border-radius: var(--radius-full); padding: 6px var(--radius-lg); }
.qty-control .qty-minus-btn, .qty-control .qty-plus-btn { width: var(--font-2xl); height: var(--font-2xl); border-radius: var(--radius-round); border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--font-lg); color: var(--orange); transition: all 0.2s; touch-action: manipulation; }
.qty-control .qty-minus-btn:hover, .qty-control .qty-plus-btn:hover { background: var(--orange); color: var(--white); }
.qty-control .qty-value { font-weight: 700; font-size: 16px; color: var(--text); min-width: 24px; text-align: center; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) { .mobile-delivery-block { display: none; } }
@media (max-width: 1024px) { .pizza-grid { grid-template-columns: repeat(3, 1fr); } .hero-slider { height: 380px; } .search-results-grid { grid-template-columns: repeat(3, 1fr); } .slide-content { left: 30px; bottom: 60px; } .slide-content h2 { font-size: var(--font-2xl); } }
@media (max-width: 768px) {
    .header .logo { position: relative; left: auto; transform: none; margin-right: auto; }
    .header .delivery-tabs { display: none; }
    .mobile-delivery-block { display: block; }
    .hero-slider { height: 280px; border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); }
    .pizza-grid { grid-template-columns: repeat(2, 1fr); gap: var(--radius-md); }
    .slide-content { left: 20px; bottom: 50px; }
    .slide-content h2 { font-size: var(--font-xl); }
    .slide-content p { font-size: var(--font-sm); }
    .pizza-card .card-info { padding: var(--radius-lg); gap: 6px; }
    .pizza-card .card-info h4 { font-size: var(--font-base); }
    .pizza-card .card-info .price .current-price { font-size: var(--font-lg); }
    .pizza-card .card-info .price .old-price { font-size: 12px; }
    .pizza-card .card-info .bottom { flex-direction: column; gap: var(--radius-sm); align-items: stretch; }
    .pizza-card .card-info .price { justify-content: flex-start; }
    .btn-add { width: 100% !important; height: 40px !important; border-radius: var(--radius-lg) !important; font-size: var(--font-base) !important; font-weight: 600 !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: var(--radius-sm) !important; background: var(--orange) !important; color: var(--white) !important; border: none !important; transition: all 0.3s ease !important; }
    .btn-add::before { content: '\f07a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 16px; }
    .btn-add::after { content: 'В корзину'; }
    .btn-add i { display: none; }
    .btn-add.added { background: var(--green) !important; border: none !important; animation: popAdded 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
    .btn-add.added::before { content: '\f00c'; animation: iconAppear 0.3s ease 0.1s both; }
    .btn-add.added::after { content: 'Добавлено'; }
    .btn-add.more { background: var(--orange) !important; border: none !important; animation: none !important; }
    .btn-add.more::before { content: '\f067'; animation: none !important; }
    .btn-add.more::after { content: 'Ещё'; }
    .qty-control { width: 100% !important; height: 40px !important; justify-content: center !important; padding: 0 var(--radius-2xl) !important; border-radius: var(--radius-lg) !important; gap: var(--radius-2xl) !important; background: var(--orange-light) !important; border: 2px solid var(--orange) !important; }
    .qty-control .qty-minus-btn, .qty-control .qty-plus-btn { width: 32px !important; height: 32px !important; font-size: 20px !important; background: var(--orange) !important; color: var(--white) !important; border-radius: var(--radius-round) !important; }
    .qty-control .qty-value { font-size: var(--font-lg) !important; min-width: 32px !important; font-weight: 700 !important; }
    .btn-add.has-qty { display: none !important; }
    .search-result-card .search-result-info { padding: var(--radius-md) var(--radius-lg); gap: 6px; }
    .search-result-card .search-result-name { font-size: var(--font-sm); }
    .search-result-card .search-result-price { font-size: var(--font-base); }
    .search-result-card .search-result-price .current-price { font-size: var(--font-base); }
    .search-result-card .search-result-price .old-price { font-size: var(--font-xs); }
    .search-result-card .search-result-add { width: 32px; height: 32px; font-size: 16px; }
.product-modal {
    max-width: 100%;
    max-height: 90vh;
    height: 90vh;
    width: 100%;
    margin: 0;
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.product-modal-overlay { align-items: flex-end; }
.product-modal-content { flex-direction: column; flex: 1; overflow: hidden; display: flex; min-height: 0; }
.product-modal-gallery { flex: 0 0 auto; overflow: hidden; }
    .product-slider { aspect-ratio: 1; width: 100%; }
    .product-modal-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
    .product-modal-scroll { flex: 1; overflow-y: auto; padding: var(--radius-2xl); -webkit-overflow-scrolling: touch; }
    .product-modal-name { font-size: var(--font-lg); line-height: 1.3; }
    .product-modal-footer { flex-shrink: 0; padding: var(--radius-lg) var(--radius-2xl); gap: var(--radius-md); border-top: 1px solid #eee; background: var(--white); position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -2px 8px rgba(0,0,0,0.05); }
    .product-modal-price { font-size: var(--font-lg); }
    .product-modal-price .current-price { font-size: var(--font-lg); }
    .product-modal-price .old-price { font-size: var(--font-sm); }
    .product-modal-add { padding: var(--radius-lg) 20px; font-size: 14px; white-space: nowrap; }
    .product-modal-footer .qty-control { padding: 6px var(--radius-md) !important; border: none !important; background: var(--bg-light) !important; border-radius: var(--radius-full) !important; gap: var(--radius-lg) !important; }
    .product-modal-footer .qty-control .qty-minus-btn, .product-modal-footer .qty-control .qty-plus-btn { width: 32px !important; height: 32px !important; font-size: var(--font-lg) !important; background: var(--border) !important; color: #555 !important; border-radius: var(--radius-round) !important; border: none !important; }
    .product-modal-footer .qty-control .qty-minus-btn:hover, .product-modal-footer .qty-control .qty-plus-btn:hover { background: var(--orange) !important; color: var(--white) !important; }
    .product-modal-footer .qty-control .qty-value { font-size: 16px !important; min-width: 24px !important; }
    .cart-drawer { width: 100%; right: -100%; height: 85vh; max-height: 85vh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; top: auto; bottom: 0; transition: right 0.35s cubic-bezier(0.32, 0.72, 0, 1); }
    .cart-drawer.open { right: 0; }
    .cart-overlay { align-items: flex-end; }
    .filter-modal-overlay { align-items: flex-end; }
    .filter-modal { max-width: 100%; max-height: 100vh; border-radius: 0; align-self: flex-end; margin: 0; width: 100%; height: 100vh; }
    .order-modal-overlay { padding: 0; align-items: flex-end; }
    .order-modal { max-width: 100%; max-height: 92vh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; width: 100%; margin: 0; }
    .order-modal-body { padding: 16px; max-height: calc(92vh - 65px); overflow-y: auto; }
    .order-modal-header { border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
    .order-form-row { flex-direction: column; gap: 0; }
    .order-form-row .order-form-group { margin-bottom: 12px; }
    .order-step-card { padding: 16px; }
    .success-modal-overlay { align-items: flex-end; }
    .success-modal { max-width: 100%; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; width: 100%; margin: 0; }
    .search-modal { width: 100%; height: 85vh; max-height: 85vh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: 0 -10px 40px rgba(0,0,0,0.25); }
    .search-modal-overlay { align-items: flex-end; }
    .search-modal-overlay.open .search-modal { transform: translateY(0); }
    .search-modal-header { padding: var(--radius-2xl) var(--radius-2xl) var(--radius-lg); max-width: 100%; }
    .search-wrapper-modal { height: 44px; }
    .search-wrapper-modal input { font-size: 16px; background: #f0f0f0; border-radius: var(--radius-lg); }
    .search-modal-results { padding: var(--radius-lg) var(--radius-2xl); max-width: 100%; }
    .search-modal-empty { padding: 40px 20px; }
    .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: var(--radius-md); padding-bottom: 20px; }
    .search-result-card { display: flex; flex-direction: column; border-radius: var(--radius-xl); }
    .search-result-card .search-result-image { width: 100%; aspect-ratio: 1; height: auto; font-size: 44px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
    .toast-container { top: var(--radius-md); right: var(--radius-md); left: var(--radius-md); }
    .toast { max-width: 100%; }
    .filter-modal-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-modal-body { padding: var(--radius-xl); }
    .filter-modal-actions { padding: var(--radius-lg) var(--radius-xl); }
    .filter-modal-header { padding: var(--radius-xl) var(--radius-2xl); }
    .filter-modal-header h3 { font-size: 16px; }
    .categories-filters-section { position: sticky; border-radius: 0 0 24px 24px; top: 56px; padding: 16px 0 8px 0; }
    .filters-btn-text { display: none; }
    .filters-btn { padding: 8px 12px; border-radius: var(--radius-lg); font-size: 12px; min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
    .category-chip { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-lg); }
    select.order-input { -webkit-appearance: none !important; appearance: none !important; background-color: var(--white) !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px !important; padding-right: 44px !important; border-radius: var(--radius-lg) !important; border: 2px solid #e0e0e0 !important; font-size: 16px !important; color: var(--text) !important; height: auto !important; line-height: normal !important; }
}
@media (max-width: 480px) {
    .hero-slider { height: 220px; }
    .pizza-grid { grid-template-columns: repeat(2, 1fr); gap: var(--radius-sm); }
    .pizza-card .card-info { padding: var(--radius-md); gap: 4px; }
    .pizza-card .card-info h4 { font-size: 14px; }
    .pizza-card .card-info .price .current-price { font-size: 17px; }
    .pizza-card .card-info .price .old-price { font-size: var(--font-xs); }
    .btn-add { height: 38px !important; font-size: 14px !important; border-radius: var(--radius-md) !important; }
    .btn-add::before { font-size: var(--font-base); }
    .qty-control { height: 38px !important; border-radius: var(--radius-md) !important; gap: var(--radius-lg) !important; }
    .qty-control .qty-minus-btn, .qty-control .qty-plus-btn { width: 30px !important; height: 30px !important; font-size: var(--font-lg) !important; }
    .qty-control .qty-value { font-size: 16px !important; min-width: var(--font-2xl) !important; }
    .cart-drawer { width: 100%; right: -100%; }
    .search-modal { height: 80vh; max-height: 80vh; }
    .search-modal-header { padding: var(--radius-lg) var(--radius-lg) var(--radius-md); }
    .search-results-grid { gap: var(--radius-sm); }
    .search-result-card .search-result-image { font-size: var(--font-3xl); }
    .search-result-card .search-result-name { font-size: 12px; }
    .search-result-card .search-result-price { font-size: 14px; }
    .search-result-card .search-result-price .current-price { font-size: 14px; }
    .search-result-card .search-result-price .old-price { font-size: var(--font-xs); }
    .product-modal-footer { padding: var(--radius-md) var(--radius-xl); gap: var(--radius-md); }
    .product-modal-price { font-size: var(--font-lg); }
    .product-modal-price .current-price { font-size: var(--font-lg); }
    .product-modal-add { padding: var(--radius-md) var(--font-lg); font-size: 14px; }
}

/* ==================== НОВАЯ МОДАЛКА ДОСТАВКИ ==================== */
.delivery-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 6000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.delivery-modal-overlay.open { display: flex; }
.delivery-modal { background: var(--white); border-radius: var(--radius-3xl); width: 95%; max-width: 800px; height: 85vh; max-height: 650px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-xl); }
.delivery-modal-content { flex: 1; position: relative; min-height: 0; }
.delivery-map { position: absolute; inset: 0; }
.delivery-map .ymap-container { width: 100%; height: 100%; }
.delivery-top-bar { position: absolute; top: var(--radius-lg); left: var(--radius-lg); right: var(--radius-lg); display: flex; align-items: center; gap: var(--radius-sm); z-index: 10; }
.delivery-tabs { display: flex; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 4px; gap: 0; box-shadow: var(--shadow-sm); }
.delivery-tab { padding: var(--radius-md) var(--font-lg); border: none; background: transparent; font-weight: 600; font-size: var(--font-sm); cursor: pointer; color: var(--text-light); font-family: inherit; display: flex; align-items: center; gap: 6px; border-radius: var(--radius-md); transition: all 0.2s; }
.delivery-tab.active { background: var(--dark-bg); color: var(--white); }
.delivery-tab i { font-size: 14px; }
.delivery-close-btn { width: 40px; height: 40px; border-radius: var(--radius-round); border: none; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); cursor: pointer; font-size: var(--font-lg); display: flex; align-items: center; justify-content: center; color: #555; box-shadow: var(--shadow-sm); flex-shrink: 0; margin-left: auto; }
.delivery-close-btn:hover { background: var(--white); }
.delivery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: var(--white); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; padding: var(--radius-2xl) 20px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: var(--radius-md); }
.address-search-row { display: flex; gap: var(--radius-sm); align-items: center; }
.address-input-wrapper { flex: 1; position: relative; }
.address-input { width: 100%; height: 46px; padding: 0 var(--radius-xl); border: 2px solid var(--border); border-radius: var(--radius-lg); font-size: var(--font-base); outline: none; font-family: inherit; background: var(--bg-lighter); }
.address-input:focus { border-color: var(--orange); background: var(--white); }
.address-input::placeholder { color: #9ca3af; }
.locate-btn { width: 46px; height: 46px; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--bg-lighter); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: var(--font-lg); color: var(--orange); flex-shrink: 0; }
.locate-btn:hover { background: var(--orange-light); border-color: var(--orange); }
.address-fields-row { display: flex; gap: var(--radius-sm); }
.address-field { flex: 1; height: 42px; padding: 0 var(--radius-lg); border: 2px solid var(--border); border-radius: var(--radius-md); font-size: 14px; outline: none; font-family: inherit; background: var(--bg-lighter); }
.address-field:focus { border-color: var(--orange); background: var(--white); }
.address-field::placeholder { color: #9ca3af; }
.checkbox-row { display: flex; align-items: center; gap: var(--radius-sm); cursor: pointer; user-select: none; padding: 2px 0; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.checkbox-row label { cursor: pointer; font-size: var(--font-sm); color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.checkbox-row label i { color: var(--orange); }
.confirm-btn { width: 100%; height: 46px; background: var(--orange); border: none; border-radius: var(--radius-lg); color: var(--white); font-weight: 700; font-size: var(--font-base); cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: var(--radius-sm); }
.confirm-btn:hover { background: var(--orange-hover); }
.pickup-cards { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.pickup-card { display: flex; align-items: center; gap: var(--radius-md); padding: var(--radius-lg) var(--radius-xl); border: 2px solid var(--border); border-radius: var(--radius-md); cursor: pointer; background: var(--white); }
.pickup-card:hover { border-color: var(--orange); background: #fff8f5; }
.pickup-card.selected { border-color: var(--orange); background: var(--orange-light); }
.pickup-card-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--orange-light); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--orange); flex-shrink: 0; }
.pickup-card-info { flex: 1; min-width: 0; }
.pickup-card-name { font-weight: 600; font-size: var(--font-sm); color: var(--text); }
.pickup-card-addr { font-size: var(--font-xs); color: var(--text-light); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickup-card-check { width: var(--font-xl); height: var(--font-xl); border-radius: var(--radius-round); border: 2px solid #ccc; flex-shrink: 0; }
.pickup-card.selected .pickup-card-check { border-color: var(--orange); background: var(--orange); }
.pickup-card.selected .pickup-card-check::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: var(--radius-md); color: var(--white); display: flex; align-items: center; justify-content: center; height: 100%; }
.hidden { display: none !important; }
@media (max-width: 768px) {
    .delivery-modal-overlay { align-items: flex-end; }
    .delivery-modal { max-width: 100%; height: 92vh; max-height: none; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.3); }
    .delivery-modal-content { border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; overflow: hidden; }
    .delivery-map { border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; overflow: hidden; }
    .delivery-top-bar { top: var(--radius-2xl); left: var(--radius-2xl); right: var(--radius-2xl); }
    .delivery-overlay { padding: var(--radius-xl) var(--radius-2xl) 20px; }
    .address-fields-row { flex-wrap: wrap; }
    .address-field { flex: 1 1 calc(50% - 4px); }
    .account-modal-overlay { align-items: flex-end; }
.account-modal { width: 100%; max-width: 100vw; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; margin-top: auto; }
.account-history-modal { width: 100%; max-width: 100vw; max-height: 92vh; border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; }
.account-history-card-header { padding: 12px 14px; }
.account-history-card-right { gap: 6px; }
.account-history-card-total { font-size: 13px; }
.account-history-card-status { font-size: 10px; padding: 3px 8px; }
}
.btn-checkout:disabled { background: #ccc !important; cursor: not-allowed !important; }

/* ==================== УТИЛИТАРНЫЕ КЛАССЫ ==================== */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.bg-orange { background: var(--orange); color: #fff; }
.bg-orange-light { background: var(--orange-light); }
.bg-white { background: var(--white); }
.bg-lighter { background: var(--bg-lighter); }
.border { border: 1px solid var(--border); }
.border-orange { border-color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-full); border: none; font-weight: 600; font-size: var(--font-sm); cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline { background: var(--white); border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: var(--bg-light); }
.btn-sm { padding: 6px 12px; font-size: var(--font-xs); }
.btn-lg { padding: 14px 24px; font-size: var(--font-base); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }