/* ==================== style.css ==================== */
:root {
    --orange: #f15a24;
    --orange-hover: #e04d18;
    --dark-bg: #1a1a1a;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #e8e8e8;
    --bg-light: #f5f5f5;
    --white: #fff;
    --green: #4caf50;
    --red-badge: #ff2d55;
    --nav-height: 50px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5; 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: #fff; 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: #999; 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: 50%; 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: 50%; animation: shadowPulse 2s ease-in-out infinite;
}
.preloader-text { font-size: 20px; font-weight: 700; color: #1a1a1a; text-align: center; }
.preloader-dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.preloader-dot { width: 8px; height: 8px; border-radius: 50%; 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; } }

/* ==================== HEADER ==================== */
.header { background: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; color: inherit; flex-shrink: 0; max-width: 150px; }
.logo-icon { height: 40px; display: flex; align-items: center; justify-content: center; overflow: visible; max-width: 150px; }
.logo-icon img { height: 100%; width: auto; max-width: 150px; object-fit: contain; }

.delivery-selector-header { flex: 1; max-width: 400px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; cursor: pointer; user-select: none; }
.delivery-selector-header .delivery-selector-buttons { display: flex; gap: 0; width: 100%; background: #f5f5f5; border-radius: 10px; padding: 3px; }
.delivery-selector-header .delivery-selector-btn { flex: 1; padding: 9px 12px; border-radius: 8px; border: none; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.25s; white-space: nowrap; color: #666; display: flex; align-items: center; justify-content: center; gap: 6px; }
.delivery-selector-header .delivery-selector-btn.active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.delivery-selector-header .delivery-selector-btn i { font-size: 13px; color: var(--orange); }
.delivery-selector-header .delivery-selector-address { font-size: 11px; color: #888; padding: 5px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { font-weight: 700; font-size: 16px; color: #1a1a1a; text-decoration: none; white-space: nowrap; }
.header-phone i { color: var(--orange); margin-right: 4px; font-size: 13px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: #f5f5f5; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; position: relative; font-size: 18px; color: #444; }
.icon-btn:hover { background: #e8e8e8; }
.btn-cart { background: var(--orange); color: #fff; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; position: relative; font-size: 18px; flex-shrink: 0; }
.btn-cart:hover { background: var(--orange-hover); }
.btn-cart .cart-count { position: absolute; top: -4px; right: -4px; background: #e63946; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 2px solid #fff; }

/* ==================== STICKY CONTAINER ==================== */
.sticky-panel { position: sticky; top: 68px; z-index: 999; background: #fff; border-bottom: 1px solid var(--border); height: var(--nav-height); overflow: hidden; }
.nav-bar { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; opacity: 1; visibility: visible; transition: opacity 0.15s, visibility 0.15s; }
.nav-bar.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.nav-bar .nav-inner { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; height: 100%; width: 100%; padding: 0 15px; cursor: grab; justify-content: flex-start; white-space: nowrap; -ms-overflow-style: none; touch-action: pan-x; }
.nav-bar .nav-inner:active { cursor: grabbing; } .nav-bar .nav-inner::-webkit-scrollbar { display: none; }
.nav-link { display: flex; align-items: center; padding: 0 20px; text-decoration: none; color: #555; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; transition: all 0.2s; height: 100%; user-select: none; flex-shrink: 0; touch-action: manipulation; }
.nav-link:hover, .nav-link.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ==================== HERO SLIDER ==================== */
.hero-slider { position: relative; width: 100%; height: 420px; overflow: hidden; margin-bottom: 0; background: #1a1a1a; cursor: grab; }
.hero-slider:active { cursor: grabbing; }
.hero-slider .slides { display: flex; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slider .slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 120px; background-size: cover; background-position: center; background-repeat: no-repeat; user-select: none; -webkit-user-drag: none; }
.hero-slider .slide-1 { background: linear-gradient(135deg, #fef7f2 0%, #ffe8d6 100%); }
.hero-slider .slide-2 { background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%); }
.hero-slider .slide-3 { background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%); }
.hero-slider .slide-4 { background: linear-gradient(135deg, #fde8e0 0%, #fcd5c4 100%); }
.hero-slider .slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.85); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; z-index: 10; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.hero-slider .slider-arrow:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.hero-slider .slider-arrow.prev { left: 20px; } .hero-slider .slider-arrow.next { right: 20px; }
.hero-slider .slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.hero-slider .slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.hero-slider .slider-dot.active { background: #fff; transform: scale(1.3); }

/* ==================== СЕЛЕКТОР ДОСТАВКИ (МОБИЛЬНЫЙ) ==================== */
.delivery-selector-section { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); display: none; }
.delivery-selector { display: flex; flex-direction: column; align-items: stretch; gap: 0; cursor: pointer; user-select: none; max-width: 500px; margin: 0 auto; }
.delivery-selector-buttons { display: flex; gap: 0; width: 100%; background: #f0f0f0; border-radius: 12px; padding: 4px; }
.delivery-selector-btn { flex: 1; padding: 10px; border-radius: 10px; border: none; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.25s; white-space: nowrap; color: #666; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.delivery-selector-btn.active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.delivery-selector-btn i { font-size: 13px; color: var(--orange); }
.delivery-selector-address { font-size: 12px; color: #888; padding: 8px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%; display: block; }

/* ==================== КАТЕГОРИИ-КАРТОЧКИ ==================== */
.categories-cards-section { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.categories-cards-scroll { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; cursor: grab; user-select: none; touch-action: pan-x; white-space: nowrap; padding: 4px 0 8px; }
.categories-cards-scroll:active { cursor: grabbing; } .categories-cards-scroll::-webkit-scrollbar { display: none; }
.nav-card { background: #fff; border-radius: 16px; padding: 14px 12px 10px; cursor: pointer; transition: all 0.25s; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex-shrink: 0; width: 130px; white-space: normal; user-select: none; }
.nav-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--orange); }
.nav-card.active { border-color: var(--orange); background: #fff5f0; }
.nav-card-icon { width: 80px; height: 80px; aspect-ratio: 1; border-radius: 16px; background: linear-gradient(135deg, #fef7f2 0%, #ffe8d6 100%); display: flex; align-items: center; justify-content: center; font-size: 36px; transition: transform 0.3s; flex-shrink: 0; color: var(--orange); }
.nav-card:hover .nav-card-icon { transform: scale(1.1); }
.nav-card-name { font-size: 13px; font-weight: 600; color: #333; line-height: 1.3; word-break: break-word; }

/* ==================== FILTERS SECTION ==================== */
.filters-section {
    background: #fff; padding: 10px 0; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 997;
}
.filters-bar {
    display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; overflow-y: visible;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
    padding: 2px 0; -ms-overflow-style: none;
}
.filters-bar::-webkit-scrollbar { display: none; }

.filter-dropdown { position: relative; flex-shrink: 0; }
.filter-dropdown-btn {
    display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 20px;
    border: 2px solid #e0e0e0; background: #fff; font-weight: 600; font-size: 12px;
    cursor: pointer; transition: all 0.2s; color: #555; white-space: nowrap; font-family: inherit;
    position: relative;
}
.filter-dropdown-btn i:first-child { font-size: 11px; }
.filter-dropdown-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-dropdown-btn-quick { background: #fff5f0; border-color: #ffe0d0; }
.filter-dropdown-btn .filter-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--orange); color: #fff; border-radius: 50%;
    width: 16px; height: 16px; min-width: 16px;
    display: none; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; line-height: 1;
    border: 2px solid #fff;
}

.filter-reset-btn {
    display: none; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 20px;
    border: 2px solid transparent; background: #f5f5f5; font-weight: 600; font-size: 12px;
    cursor: pointer; transition: all 0.2s; color: #888; white-space: nowrap; font-family: inherit; flex-shrink: 0;
}
.filter-reset-btn:hover { background: #fee; color: #e63946; }

.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: #fff5f0;
    border: 1px solid #ffd0b8; border-radius: 15px; font-size: 11px; 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: #999; }
.active-filter-tag:hover i { color: #e63946; }

/* ==================== 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: #fff; border-radius: 20px; width: 95%; max-width: 650px; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.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: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.filter-modal-header h3 i { color: var(--orange); }
.filter-modal-close {
    width: 34px; height: 34px; border-radius: 50%; border: none; background: #f0f0f0;
    font-size: 18px; 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: 15px; font-weight: 700; margin-bottom: 12px; color: #1a1a1a;
    display: flex; align-items: center; gap: 8px;
}
.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, #fff5f0 0%, #fff0e8 100%);
    border: 1px solid #ffe0d0; border-radius: 12px; padding: 12px; grid-template-columns: repeat(2, 1fr);
}

.filter-checkbox {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
}
.filter-checkbox:hover { background: #f9f9f9; }
.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: 10px; height: 10px; 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 10px; }
.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: #fff;
}
.filter-checkmark-quick::after {
    content: ''; width: 10px; height: 10px; background: #fff; 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: 13px; font-weight: 500; color: #555; white-space: nowrap; }

.filter-modal-actions { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid #eee; flex-shrink: 0; }
.filter-modal-apply { flex: 1; padding: 13px; border-radius: 25px; border: none; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.filter-modal-apply:hover { background: var(--orange-hover); }
.filter-modal-reset { padding: 13px 22px; border-radius: 25px; border: 1px solid #ddd; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; color: #888; }
.filter-modal-reset:hover { background: #f5f5f5; }

/* ==================== PIZZA GRID ==================== */
.pizza-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 40px; }
.pizza-card { background: #fff; border-radius: 16px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; position: relative; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.pizza-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.pizza-card .img-area { aspect-ratio: 1; height: auto; background: linear-gradient(135deg, #fef7f2 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: 12px; left: 12px; background: var(--red-badge); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 15px; letter-spacing: 0.5px; text-transform: uppercase; }
.pizza-card .card-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.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: 8px; }
.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: #1a1a1a; }
.pizza-card .card-info .price .current-price.has-old { color: #e63946; }
.pizza-card .card-info .price .old-price { font-size: 13px; font-weight: 400; color: #bbb; text-decoration: line-through; white-space: nowrap; flex-shrink: 0; }
.pizza-card .card-info .price small { font-size: 13px; font-weight: 400; color: #999; }

.pizza-card .btn-add { width: 40px; height: 40px; border-radius: 50%; background: #fff5f0; 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: #fff; }
.pizza-card .btn-add.added { background: #4caf50 !important; border-color: #4caf50 !important; color: #fff !important; width: 40px !important; height: 40px !important; border-radius: 50% !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: 25px !important; padding: 6px 14px !important; background: #fff5f0 !important; border-color: var(--orange) !important; color: var(--orange) !important; font-size: 15px !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: 15px; }

@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: #1a1a1a; color: #999; padding: 45px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.footer a { color: #888; text-decoration: none; font-size: 13px; 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: #666; }
.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: #fff; 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: 18px; font-weight: 700; }
.btn-close-drawer { width: 34px; height: 34px; border-radius: 50%; border: none; background: #f0f0f0; cursor: pointer; font-size: 18px; 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: 50%; border: none; background: #f0f0f0; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: 0.2s; color: #999; }
.cart-clear-btn:hover { background: #e63946; color: #fff; }
.cart-items-list { flex: 1; overflow-y: auto; padding: 15px 20px; }
.cart-empty-msg { text-align: center; padding: 60px 20px; color: #bbb; }
.cart-empty-msg i { font-size: 55px; display: block; margin-bottom: 15px; color: #ddd; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; gap: 10px; }
.cart-item-image { width: 50px; height: 50px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fef7f2; 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: 20px; color: #ccc; }
.cart-item-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-item .ci-name { font-weight: 600; font-size: 14px; }
.cart-item-option { font-size: 11px; color: #888; display: flex; align-items: center; gap: 4px; background: #f9f9f9; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.cart-item-option i { font-size: 10px; color: var(--orange); flex-shrink: 0; }
.cart-item .ci-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-item .ci-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: 0.2s; touch-action: manipulation; }
.cart-item .ci-qty button:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.cart-item .ci-price { font-weight: 700; min-width: 65px; text-align: right; font-size: 14px; flex-shrink: 0; }
.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: 14px; }
.btn-checkout { width: 100%; padding: 15px; background: var(--orange); color: #fff; border: none; border-radius: 25px; font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.2s; letter-spacing: 0.3px; }
.btn-checkout:hover { background: var(--orange-hover); }

.cart-delivery-info { margin-top: 16px; padding: 14px; background: #f9f9f9; border-radius: 12px; border: 1px solid #eee; }
.cart-delivery-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #1a1a1a; margin-bottom: 6px; }
.cart-delivery-row i { color: var(--orange); font-size: 16px; }
.cart-delivery-address { font-size: 13px; color: #666; 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: 12px; padding: 12px; background: #f9f9f9; border-radius: 12px; border: 1px solid #eee; }
.cart-promo-applied { background: #f0fff0; border-color: #b8e6b8; }
.cart-promo-row { display: flex; align-items: center; gap: 8px; }
.cart-promo-row i { color: var(--orange); font-size: 14px; }
.promo-input { flex: 1; padding: 10px 14px; border-radius: 20px; 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: 10px 18px; border-radius: 20px; border: none; background: var(--orange); color: #fff; cursor: pointer; font-weight: 600; font-size: 13px; 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: 50%; 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: #e63946; color: #fff; }
.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: #4caf50; margin-top: 6px; }

.cart-min-order { margin-top: 12px; padding: 12px 14px; background: #fffbf5; border: 1px solid #f0e0c0; border-radius: 10px; font-size: 13px; 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; }

/* ==================== MODAL ==================== */
.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); }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 20px; width: 95%; max-width: 700px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.modal-header h3 i { color: var(--orange); }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: #f0f0f0; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.modal-close:hover { background: #ddd; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: #f5f5f5; border-radius: 12px; padding: 4px; }
.modal-tab { flex: 1; padding: 10px; border-radius: 10px; border: none; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.modal-tab.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.modal-tab i { font-size: 14px; color: var(--orange); }
.address-input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid #e0e0e0; font-size: 15px; outline: none; font-family: inherit; transition: border 0.2s; margin-bottom: 12px; }
.address-input:focus { border-color: var(--orange); }
.pickup-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pickup-item { padding: 14px 16px; border: 2px solid #e8e8e8; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; }
.pickup-item:hover { border-color: var(--orange); background: #fff8f5; }
.pickup-item.selected { border-color: var(--orange); background: #fff5f0; }
.pickup-item .pickup-name { font-weight: 600; font-size: 14px; }
.pickup-item .pickup-addr { font-size: 12px; color: #888; }
.pickup-hours { font-size: 12px; color: #666; margin-top: 2px; }
.pickup-comment { font-size: 12px; color: #888; margin-top: 2px; font-style: italic; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #eee; display: flex; gap: 10px; justify-content: flex-end; }
.btn-secondary { padding: 12px 24px; border-radius: 25px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: 0.2s; }
.btn-secondary:hover { background: #f5f5f5; }
.btn-primary { padding: 12px 24px; border-radius: 25px; border: none; background: var(--orange); color: #fff; cursor: pointer; font-weight: 700; font-size: 14px; transition: 0.2s; }
.btn-primary:hover { background: var(--orange-hover); }

/* ==================== YANDEX MAP ==================== */
.yandex-map-container { width: 100%; height: 300px; border-radius: 12px; margin-bottom: 16px; overflow: hidden; background: #e9e9e9; }
.map-search-row { display: flex; gap: 10px; margin-bottom: 12px; position: relative; }
.map-search-row .address-input { flex: 1; margin-bottom: 0; }
.map-search-row .btn-primary { white-space: nowrap; padding: 14px 20px; }
.map-hint { font-size: 12px; color: #999; margin-bottom: 12px; text-align: center; }
.detect-location-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background: #f5f5f5; border: 2px dashed #ddd; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: #666; transition: all 0.2s; margin-bottom: 16px; }
.detect-location-btn:hover { background: #fff5f0; border-color: var(--orange); color: var(--orange); }
.detect-location-btn i { font-size: 18px; }
.address-details-row { display: flex; gap: 10px; margin-top: 12px; }
.address-details-row input { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; cursor: pointer; user-select: none; }
.checkbox-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); cursor: pointer; }
.checkbox-row label { cursor: pointer; font-size: 14px; color: #555; }

/* ==================== 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: #fff; border: 2px solid var(--orange); border-top: none; border-radius: 0 0 12px 12px; max-height: 250px; overflow-y: auto; z-index: 7000; display: none; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.suggestions-dropdown.active { display: block; }
.suggestion-item { padding: 12px 16px; 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: #fff5f0; color: var(--orange); }
.suggestion-item i { color: #999; margin-right: 8px; font-size: 13px; }
.suggestions-loading { padding: 12px 16px; text-align: center; color: #999; font-size: 13px; }

/* ==================== 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: #fff; 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: 25px; border: none; font-size: 17px; outline: none; font-family: inherit; background: #f5f5f5; }
.search-wrapper-modal input::placeholder { color: #999; }
.search-wrapper-modal .search-icon-inside { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #999; font-size: 18px; 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: 50%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #999; 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: 16px; }
.search-result-card { background: #fff; border-radius: 16px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.search-result-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); border-color: var(--orange); }
.search-result-image { aspect-ratio: 1; height: auto; background: linear-gradient(135deg, #fef7f2 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: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.search-result-name { font-weight: 600; font-size: 15px; 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: 8px; margin-top: auto; }
.search-result-price { font-size: 18px; font-weight: 700; color: #1a1a1a; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.search-result-price .current-price { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.search-result-price .current-price.has-old { color: #e63946; }
.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: #999; }
.search-result-add { width: 36px; height: 36px; border-radius: 50%; background: #fff5f0; border: 2px solid var(--orange); color: var(--orange); font-size: 18px; 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: #fff; }

/* ==================== 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: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;  /* было 800px */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.product-modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; width: 36px; height: 36px; border-radius: 50%; 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: #fff; color: #000; }
.product-modal-content { display: flex; gap: 0; flex: 1; overflow: hidden; min-height: 0; }
.product-modal-gallery { flex: 0 0 50%; background: #f9f9f9; display: flex; flex-direction: column; overflow-y: auto; }
.product-modal-main-image { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fef7f2 0%, #ffe8d6 100%); font-size: 100px; color: #ddd; flex-shrink: 0; }
.product-modal-main-image img, .product-modal-main-image video { width: 100%; height: 100%; object-fit: cover; }
.product-modal-thumbs { display: flex; gap: 8px; padding: 12px; flex-shrink: 0; }
.product-modal-thumb { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #ccc; transition: all 0.2s; flex-shrink: 0; }
.product-modal-thumb:hover, .product-modal-thumb.active { border-color: var(--orange); }
.product-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-info { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.product-modal-scroll { flex: 1; overflow-y: auto; padding: 30px 24px 20px; }
.product-modal-sku { font-size: 12px; color: #999; 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: #666; margin-bottom: 12px; line-height: 1.6; }
.product-modal-info-block { font-size: 13px; color: #888; background: #fffbf5; border: 1px solid #f0e0c0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.product-modal-info-block i { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.product-modal-delivery { font-size: 13px; color: #666; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.product-modal-order-date { font-size: 13px; color: #666; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.product-modal-options { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.product-option { padding: 10px 14px; border: 1px solid #eee; border-radius: 10px; background: #fafafa; }
.product-option label { font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.product-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.option-qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.option-qty-row button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.option-qty-row .qty-value { font-weight: 700; min-width: 20px; text-align: center; }
.option-print-text { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid #ddd; font-size: 14px; outline: none; font-family: inherit; }
.product-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid #eee; background: #fff; flex-shrink: 0; }
.product-modal-price { font-size: 24px; font-weight: 700; color: #1a1a1a; white-space: nowrap; display: flex; align-items: baseline; gap: 8px; }
.product-modal-price .current-price { font-size: 24px; font-weight: 700; color: #1a1a1a; }
.product-modal-price .current-price.has-old { color: #e63946; }
.product-modal-price .old-price { font-size: 16px; font-weight: 400; color: #999; text-decoration: line-through; white-space: nowrap; }
.product-modal-price small { font-size: 14px; font-weight: 400; color: #999; }
.product-modal-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.product-modal-add { padding: 14px 28px; border-radius: 25px; border: none; background: var(--orange); color: #fff; 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: #fff5f0; border: 2px solid var(--orange); border-radius: 25px; 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: 50%; 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: #fff; }
.product-modal-footer .qty-control .qty-value { font-weight: 700; font-size: 18px; color: #1a1a1a; 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: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    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;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}
.order-modal-header h3 { font-size: 20px; 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: 50%; 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: 24px; }

/* ==================== ORDER FORM ==================== */
.order-form-section { margin-bottom: 24px; }
.order-form-section:last-of-type { margin-bottom: 0; }
.order-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: #1a1a1a; }
.order-section-title i { color: var(--orange); font-size: 16px; }
.order-form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.order-form-group { flex: 1; margin-bottom: 16px; }
.order-form-row .order-form-group { margin-bottom: 0; }
.order-label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.required { color: #e63946; }
.order-input, .order-textarea { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid #e0e0e0; font-size: 15px; outline: none; font-family: inherit; transition: border 0.2s; background: #fff; }
.order-input:focus, .order-textarea:focus { border-color: var(--orange); }
.order-input.error, .order-textarea.error { border-color: #e63946; }
.order-input.valid, .order-textarea.valid { border-color: #4caf50; }
.order-error { display: block; font-size: 12px; color: #e63946; margin-top: 4px; min-height: 0; }
.order-textarea { resize: vertical; min-height: 80px; }
.order-delivery-info { padding: 12px 16px; background: #f9f9f9; border-radius: 12px; margin-bottom: 16px; font-size: 14px; color: #666; display: flex; flex-direction: column; gap: 6px; }
.order-delivery-info i { color: var(--orange); width: 20px; text-align: center; margin-right: 4px; }
.order-delivery-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: #fffbf5; border: 1px solid #f0e0c0; border-radius: 12px; margin-bottom: 16px; font-size: 13px; color: #8a6d3b; line-height: 1.5; }
.order-delivery-note i { color: var(--orange); font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.order-min-date-info { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f0f8ff; border: 1px solid #b8d8f0; border-radius: 10px; margin-top: 12px; font-size: 13px; color: #555; }
.order-min-date-info i { color: #2196f3; font-size: 16px; flex-shrink: 0; }
.order-min-date-info strong { color: #1a1a1a; }

input[type="date"].order-input {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #fff;
}

select.order-input {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding: 12px 44px 12px 16px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    color: #1a1a1a;
    outline: none;
    transition: border 0.2s;
}
select.order-input:focus { border-color: var(--orange); }

.order-payment-options { display: flex; flex-direction: column; gap: 10px; }
.order-payment-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid #e8e8e8; border-radius: 14px; cursor: pointer; transition: all 0.25s; position: relative; }
.order-payment-option:hover { border-color: var(--orange); background: #fff8f5; transform: translateX(4px); }
.order-payment-option input[type="radio"] { display: none; }
.order-payment-option input[type="radio"]:checked ~ .payment-radio-custom { border-color: var(--orange); background: var(--orange); }
.order-payment-option input[type="radio"]:checked ~ .payment-radio-custom::after { opacity: 1; transform: scale(1); }
.order-payment-option:has(input:checked) { border-color: var(--orange); background: #fff5f0; box-shadow: 0 2px 12px rgba(241, 90, 36, 0.1); }
.payment-radio-custom { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; transition: all 0.25s; flex-shrink: 0; position: relative; }
.payment-radio-custom::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(0); transition: all 0.25s; }
.payment-label { display: flex; align-items: center; gap: 12px; flex: 1; }
.payment-label i { color: var(--orange); font-size: 24px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #fff5f0; border-radius: 12px; flex-shrink: 0; transition: all 0.25s; }
.order-payment-option:has(input:checked) .payment-label i { background: var(--orange); color: #fff; }
.payment-label span { display: flex; flex-direction: column; gap: 2px; }
.payment-label strong { font-size: 15px; color: #1a1a1a; }
.payment-label small { font-size: 12px; color: #888; font-weight: 400; }

.order-summary { display: flex; flex-direction: column; gap: 10px; }
.order-summary-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.order-summary-item:last-child { border-bottom: none; }
.order-summary-image { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #fef7f2; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-summary-image img { width: 100%; height: 100%; object-fit: cover; }
.order-summary-image i { font-size: 20px; color: #ccc; }
.order-summary-info { flex: 1; min-width: 0; }
.order-summary-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-summary-options { font-size: 11px; color: #888; margin-top: 2px; }
.order-summary-qty { font-weight: 600; font-size: 14px; color: #666; flex-shrink: 0; }
.order-summary-price { font-weight: 700; font-size: 14px; flex-shrink: 0; min-width: 70px; text-align: right; }

.order-form-total { padding: 20px 0; border-top: 2px solid #f0f0f0; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; color: #666; }
.order-total-final { font-size: 18px; font-weight: 700; color: #1a1a1a; padding-top: 10px; margin-top: 6px; border-top: 1px solid #f0f0f0; }
.order-total-final span:last-child { font-size: 22px; color: var(--orange); }

.order-btn-submit { width: 100%; padding: 16px; border-radius: 25px; border: none; background: var(--orange); color: #fff; cursor: pointer; font-weight: 700; font-size: 16px; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.order-btn-submit:hover { background: var(--orange-hover); }
.order-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==================== 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: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    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: 50%;
    animation: spin 0.8s linear infinite;
}
.success-loader-text { font-size: 16px; font-weight: 600; color: #555; }
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-result {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.success-result.show { display: flex; }
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4caf50;
    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: #fff; }
@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.success-title { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.success-message { font-size: 14px; color: #666; line-height: 1.6; }
.success-message strong { color: var(--orange); }
.success-close-btn {
    margin-top: 10px;
    padding: 14px 40px;
    border-radius: 25px;
    border: none;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    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: 10px; }
.toast { padding: 14px 20px; border-radius: 12px; color: #fff; 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: 10px; cursor: pointer; }
.toast.show { transform: translateX(0); }
.toast-success { background: #4caf50; }
.toast-error { background: #e63946; }
.toast-info { background: #2196f3; }
.toast-warning { background: #ff9800; }
.toast i { font-size: 18px; flex-shrink: 0; }

/* ==================== QTY CONTROL ==================== */
.qty-control { display: flex; align-items: center; gap: 8px; background: #fff5f0; border: 2px solid var(--orange); border-radius: 25px; padding: 6px 12px; }
.qty-control .qty-minus-btn, .qty-control .qty-plus-btn { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; 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: #fff; }
.qty-control .qty-value { font-weight: 700; font-size: 16px; color: #1a1a1a; min-width: 24px; text-align: center; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) { .sticky-panel { display: none !important; } .delivery-selector-section { display: none; } .categories-cards-section { display: block; } }
@media (max-width: 1024px) { .pizza-grid { grid-template-columns: repeat(3, 1fr); } .hero-slider { height: 320px; } .search-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .delivery-selector-header { display: none !important; }
    .delivery-selector-section { display: block; }
    .categories-cards-section { display: none !important; }
    .hero-slider { height: 240px; }
    .pizza-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .header-phone { display: none; }
    .hero-slider .slider-arrow { width: 36px; height: 36px; font-size: 16px; }
    
    .pizza-card .card-info { padding: 12px; gap: 6px; }
    .pizza-card .card-info h4 { font-size: 15px; }
    .pizza-card .card-info .price .current-price { font-size: 18px; }
    .pizza-card .card-info .price .old-price { font-size: 12px; }
    .pizza-card .card-info .bottom { flex-direction: column; gap: 8px; align-items: stretch; }
    .pizza-card .card-info .price { justify-content: flex-start; }
    
    .btn-add { width: 100% !important; height: 40px !important; border-radius: 12px !important; font-size: 15px !important; font-weight: 600 !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; background: var(--orange) !important; color: #fff !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: #4caf50 !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 16px !important; border-radius: 12px !important; gap: 16px !important; background: #fff5f0 !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: #fff !important; border-radius: 50% !important; }
    .qty-control .qty-value { font-size: 18px !important; min-width: 32px !important; font-weight: 700 !important; }
    .btn-add.has-qty { display: none !important; }
    
    .search-result-card .search-result-info { padding: 10px 12px; gap: 6px; }
    .search-result-card .search-result-name { font-size: 13px; }
    .search-result-card .search-result-price { font-size: 15px; }
    .search-result-card .search-result-price .current-price { font-size: 15px; }
    .search-result-card .search-result-price .old-price { font-size: 11px; }
    .search-result-card .search-result-add { width: 32px; height: 32px; font-size: 16px; }

/* Кнопки +/- без обводки в карточке товара */
.product-modal-footer .qty-control {
    padding: 6px 10px !important;
    border: none !important;
    background: #f5f5f5 !important;
    border-radius: 25px !important;
    gap: 12px !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: 18px !important;
    background: #e8e8e8 !important;
    color: #555 !important;
    border-radius: 50% !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: #fff !important;
}

.product-modal-footer .qty-control .qty-value {
    font-size: 16px !important;
    min-width: 24px !important;
}

/* Карточка товара на мобильных */
.product-modal {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-modal-content {
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    display: flex;
}

.product-modal-gallery {
    flex: 0 0 auto;
    max-height: 40vh;
    overflow: hidden;
}

.product-modal-gallery .product-modal-main-image {
    aspect-ratio: 1;
    max-height: 30vh;
}

.product-modal-thumbs {
    padding: 8px 12px;
    overflow-x: auto;
}

.product-modal-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.product-modal-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.product-modal-name {
    font-size: 18px;
    line-height: 1.3;
}

/* Фиксированный футер */
.product-modal-footer {
    flex-shrink: 0;
    padding: 12px 16px;
    gap: 10px;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.product-modal-price {
    font-size: 18px;
}

.product-modal-price .current-price {
    font-size: 18px;
}

.product-modal-price .old-price {
    font-size: 13px;
}

.product-modal-add {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.product-modal-footer .qty-control {
    padding: 8px 12px;
}
    
    .order-form-row { flex-direction: column; gap: 0; }
    .order-form-row .order-form-group { margin-bottom: 16px; }
    .order-payment-option { padding: 14px; gap: 10px; }
    .payment-label i { font-size: 20px; width: 36px; height: 36px; border-radius: 10px; }
    .payment-label strong { font-size: 14px; }
    .payment-label small { font-size: 11px; }
    .order-delivery-note { font-size: 12px; padding: 10px 12px; }
    
    /* ==================== МОДАЛКИ ВЫЕЗЖАЮТ СНИЗУ ==================== */
    
    /* Корзина */
    .cart-drawer {
        width: 100%;
        right: -100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px 20px 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; }
    
    /* Модалка доставки/самовывоза */
    .modal-overlay { align-items: flex-end; }
    .modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        width: 100%;
        margin: 0;
    }
    
    /* Модалка товара */
    .product-modal-overlay { align-items: flex-end; }
    .product-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        width: 100%;
        margin: 0;
    }
    
    /* Модалка фильтров */
    .filter-modal-overlay { align-items: flex-end; }
    .filter-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        align-self: flex-end;
        margin: 0;
    }
    
    /* Модалка заказа */
    .order-modal-overlay { padding: 0; align-items: flex-end; }
    .order-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        width: 100%;
        margin: 0;
    }
    .order-modal-body { padding: 16px; max-height: calc(90vh - 70px); overflow-y: auto; }
    .order-modal-header { border-radius: 20px 20px 0 0; }
    
    /* Модалка успеха */
    .success-modal-overlay { align-items: flex-end; }
    .success-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        width: 100%;
        margin: 0;
    }
    
    .search-modal { width: 100%; height: 85vh; max-height: 85vh; border-radius: 20px 20px 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: 16px 16px 12px; max-width: 100%; }
    .search-wrapper-modal { height: 44px; }
    .search-wrapper-modal input { font-size: 16px; background: #f0f0f0; border-radius: 12px; }
    .search-modal-results { padding: 12px 16px; max-width: 100%; }
    .search-modal-empty { padding: 40px 20px; }
    .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 20px; }
    .search-result-card { display: flex; flex-direction: column; border-radius: 14px; }
    .search-result-card .search-result-image { width: 100%; aspect-ratio: 1; height: auto; font-size: 44px; border-radius: 14px 14px 0 0; }
    .toast-container { top: 10px; right: 10px; left: 10px; }
    .toast { max-width: 100%; }
    
    .filter-dropdown-btn { padding: 6px 10px; font-size: 11px; }
    .filter-reset-btn { padding: 6px 10px; font-size: 11px; }
    .filter-modal-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-modal-body { padding: 14px; }
    .filter-modal-actions { padding: 12px 14px; }
    .filter-modal-header { padding: 14px 16px; }
    .filter-modal-header h3 { font-size: 16px; }
    
    select.order-input {
        -webkit-appearance: none !important;
        appearance: none !important;
        background-color: #fff !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' stroke-linecap='round' stroke-linejoin='round'%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: 12px !important;
        border: 2px solid #e0e0e0 !important;
        font-size: 16px !important;
        color: #1a1a1a !important;
        height: auto !important;
        line-height: normal !important;
    }
}
@media (max-width: 480px) {
    .hero-slider { height: 180px; }
    .pizza-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pizza-card .card-info { padding: 10px; 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: 11px; }
    .btn-add { height: 38px !important; font-size: 14px !important; border-radius: 10px !important; }
    .btn-add::before { font-size: 15px; }
    .qty-control { height: 38px !important; border-radius: 10px !important; gap: 12px !important; }
    .qty-control .qty-minus-btn, .qty-control .qty-plus-btn { width: 30px !important; height: 30px !important; font-size: 18px !important; }
    .qty-control .qty-value { font-size: 16px !important; min-width: 28px !important; }
    .cart-drawer { width: 100%; right: -100%; }
    .search-modal { height: 80vh; max-height: 80vh; }
    .search-modal-header { padding: 12px 12px 10px; }
    .search-results-grid { gap: 8px; }
    .search-result-card .search-result-image { font-size: 36px; }
    .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: 11px; }
    .product-modal-footer { padding: 10px 14px; gap: 10px; }
    .product-modal-price { font-size: 18px; }
    .product-modal-price .current-price { font-size: 18px; }
    .product-modal-add { padding: 10px 18px; font-size: 14px; }
    .filter-dropdown-btn { padding: 5px 8px; font-size: 10px; }
    .filter-dropdown-btn i:first-child { font-size: 10px; }
    .filter-reset-btn { padding: 5px 8px; font-size: 10px; }
    .filter-modal-grid-quick { grid-template-columns: repeat(2, 1fr); }
}

.btn-checkout:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}