/* style.css v196.12 - Searchable Selects & Street Autocomplete Fixes */

/* ===========================
   1. CORE & VARS 
   =========================== */
:root { 
    --primary-black: #000000; 
    --secondary-gray: #666666; 
    --accent-green: #9AB68D; 
    --accent-orange: #E09F3E; 
    --accent-orange-hover: #eda949; 
    --accent-brown: #A05538; 
    --bg-color: #FAFAFA; 
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    --menu-width: 320px; 
}

/* --- SECURITY: HONEYPOT FIELD --- */
.security-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
}

/* --- APP-LIKE FEEL FIXES --- */
button, input, textarea, select, a, .product-card, .ctrl-btn, .cart-qty-btn, .wheel-spin-btn {
    touch-action: manipulation; 
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y; 
    background-color: var(--bg-color);
    color: var(--primary-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- CRITICAL IOS ZOOM FIX --- */
@media screen and (max-width: 768px) {
    input, textarea, select, .co-addr-mini, .co-input, .search-input {
        font-size: 16px !important;
    }
}

input, textarea { 
    user-select: text; 
    -webkit-user-select: text; 
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body, input, button, select, textarea { font-family: 'Montserrat', sans-serif; }
.app-container { max-width: 1200px; margin: 0 auto; padding: 20px; padding-bottom: 100px; position: relative; z-index: 1; }

/* ===========================
   2. HEADER 
   =========================== */
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 10px 0; position: relative; z-index: 50; }
.header-right { display: flex; align-items: center; gap: 20px; }
.icon-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--primary-black); position: relative; z-index: 51; transition: transform 0.2s ease; }
.icon-btn:hover { transform: scale(1.1); }
.desktop-icon { display: none; }
.header-icon-svg { width: 34px; height: 34px; stroke: var(--primary-black); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: stroke-width 0.3s; }
.logo-container { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; z-index: 50; }
.logo-img { max-height: 85px; width: auto; display: block; }
.hero-title { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 13vw; text-transform: uppercase; color: var(--primary-black); text-align: left; margin-bottom: 30px; line-height: 1.1; letter-spacing: -1px; width: 100%; }

/* ===========================
   3. BOTTOM NAV 
   =========================== */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: white; display: flex; justify-content: space-around; padding: 15px 0; box-shadow: 0 -5px 25px rgba(0,0,0,0.1); z-index: 1100; border-top-left-radius: 20px; border-top-right-radius: 20px; }
.nav-item { color: #CCC; font-size: 20px; cursor: pointer; transition: 0.2s; position: relative; }
.nav-item:hover { color: #999; }
.nav-item.active { color: var(--accent-orange); }
.nav-item:active { transform: scale(0.9); }
#openMobileCart { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-top: -15px; transition: all 0.3s; }
#openMobileCart.has-items { background-color: var(--accent-orange); color: white !important; box-shadow: 0 5px 20px rgba(224, 159, 62, 0.4); transform: translateY(-5px); }
.nav-badge { position: absolute; top: -2px; right: -2px; background: white; color: var(--accent-orange); border: 2px solid var(--accent-orange); border-radius: 50%; width: 20px; height: 20px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0); transition: all 0.3s; }
#openMobileCart.has-items .nav-badge { opacity: 1; transform: scale(1); }

/* ===========================
   4. CATEGORIES 
   =========================== */
.categories-wrapper { display: flex; gap: 15px; overflow-x: auto; padding: 15px 5px; margin-bottom: 20px; -ms-overflow-style: none; scrollbar-width: none; position: sticky; top: 0; z-index: 60; background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(10px); margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; touch-action: pan-x; }
.categories-wrapper::-webkit-scrollbar { display: none; }
.category-item { display: flex; flex-direction: column; align-items: center; min-width: 85px; cursor: pointer; opacity: 0.6; transition: all 0.3s ease; text-decoration: none; }
.category-item:hover { opacity: 1; }
.category-item.active { opacity: 1; transform: scale(1.05); }
.cat-img-box { width: 85px; height: 85px; border-radius: 24px; background-color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.3s ease; overflow: hidden; padding: 0; border: 2px solid transparent; }
.category-item.active .cat-img-box { background-color: #fff; border: 3px solid var(--accent-green); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.category-item:hover .cat-img-box { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cat-img-box img { width: 100%; height: 100%; object-fit: cover; }
.category-item span { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #333; text-align: center; width: 100%; line-height: 1.2; }

/* ===========================
   5. PRODUCTS 
   =========================== */
.category-section { margin-bottom: 40px; } 
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; padding-left: 10px; border-left: 6px solid var(--accent-orange); line-height: 1; }
.main-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-card { background: white; border-radius: 24px; overflow: hidden; display: flex; flex-direction: row; box-shadow: var(--card-shadow); min-height: 180px; height: auto; position: relative; transition: transform 0.3s ease; cursor: pointer; }
.product-card:hover { transform: translateY(-2px); }
.product-img-col { width: 40%; position: relative; overflow: hidden; flex-shrink: 0; }
.product-img-col img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-info-col { width: 60%; padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 5; }
.p-title { font-weight: 800; font-size: 16px; text-transform: uppercase; margin-bottom: 6px; line-height: 1.2; word-wrap: break-word; }
.p-desc { font-weight: 400; font-size: 11px; color: var(--secondary-gray); margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.discount-badge { position: absolute; top: 10px; left: 10px; background: #ef4444; color: white; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; z-index: 10; box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3); }
.price-wrap-visual { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 10px; }
.old-price { text-decoration: line-through; color: #9ca3af; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.current-price { font-weight: 800; font-size: 15px; color: var(--primary-black); }
.p-promo-text { color: #ef4444; font-size: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; display: inline-block; }
.prod-btn-wrap { margin-top: auto; position: relative; z-index: 50; }
.price-btn { background-color: var(--accent-orange); color: white; border: none !important; padding: 8px 16px; border-radius: 50px; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; width: fit-content; box-shadow: 0 4px 10px rgba(224, 159, 62, 0.3); transition: all 0.2s ease; z-index: 50; -webkit-appearance: none; pointer-events: auto; }
.price-btn:active { transform: scale(0.95); }
.price-btn * { pointer-events: none; }
.card-controls { display: flex; align-items: center; justify-content: space-between; background-color: var(--accent-orange); border-radius: 50px; height: 36px; min-width: 90px; padding: 0 5px; box-shadow: 0 4px 10px rgba(224, 159, 62, 0.3); animation: popIn 0.2s ease-out; position: relative; z-index: 50; pointer-events: auto; }
.ctrl-btn { background: transparent !important; border: none !important; color: white; width: 30px; height: 100%; cursor: pointer; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; -webkit-appearance: none; }
.ctrl-btn:active { transform: scale(0.8); }
.ctrl-qty { color: white; font-weight: 800; font-size: 14px; margin: 0 5px; }
.cart-circle { background: white; color: var(--accent-orange); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; margin-left: 5px; }

/* ===========================
   6. OVERLAYS & MODALS (BASE)
   =========================== */
.overlay-base { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px); pointer-events: none; z-index: 1200; display: flex; flex-direction: column; }
.overlay-base.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* Scrollable Modals for Mobile */
.loc-box, .search-box, .status-box, .delivery-check-box, .lang-box, .product-modal-box, .wheel-box, .iyzico-box { 
    background: #fff; 
    width: 100%; 
    max-height: 92vh; 
    overflow-y: auto; 
    border-radius: 30px 30px 0 0; 
    padding: 25px 25px 40px 25px; 
    transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    z-index: 1201; 
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1); 
    pointer-events: auto; 
    -webkit-overflow-scrolling: touch; 
}
.product-modal-box { padding: 0; display: flex; flex-direction: column; height: 90vh; }
.iyzico-box { padding: 20px 15px 30px 15px !important; display: flex; flex-direction: column; }

.overlay-base.open .loc-box, .overlay-base.open .search-box, .overlay-base.open .status-box, .overlay-base.open .delivery-check-box, .overlay-base.open .lang-box, .overlay-base.open .product-modal-box, .overlay-base.open .wheel-box, .overlay-base.open .iyzico-box { transform: translateY(0); }
.status-box.closed-modal { text-align: center; transform: translateY(100%); bottom: 0; left: 0; width: 100%; }
.overlay-base.open .status-box.closed-modal { transform: translateY(0); }
.overlay-base.center-overlay { justify-content: center; align-items: center; }

/* ===========================
   7. FORTUNE WHEEL SPECIFICS
   =========================== */
.wheel-box {
    background-image: radial-gradient(circle at 50% 0%, #fff7ed 0%, #ffffff 60%);
    text-align: center;
    max-height: 85vh !important; 
    overflow-y: auto !important;
    padding: 25px 15px 25px 15px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-close-btn {
    position: absolute; top: 10px; right: 10px;
    background: #f3f4f6; border: none; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer; color: #333; font-size: 16px;
    display: flex; align-items: center; justify-content: center; z-index: 20;
}

.wheel-header { margin-bottom: 15px; width: 100%; }
.wheel-title { font-weight: 900; font-size: 22px; color: var(--accent-orange); text-transform: uppercase; margin-bottom: 2px; }
.wheel-subtitle { font-size: 13px; color: #666; font-weight: 600; }

.wheel-stage { position: relative; width: 250px; height: 250px; margin: 0 auto 20px auto; flex-shrink: 0; }

#wheelCanvas { 
    width: 100%; height: 100%; border-radius: 50%; border: 5px solid white; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    transition: transform 4s cubic-bezier(0.1, 0.9, 0.2, 1); 
    display: block; 
}

.wheel-pointer-icon { 
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%); 
    z-index: 20; color: #333; font-size: 40px; 
    filter: drop-shadow(0 3px 2px rgba(0,0,0,0.2)); 
}

.wheel-center-dot { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    width: 36px; height: 36px; background: white; border-radius: 50%; 
    z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    display: flex; align-items: center; justify-content: center; 
    border: 3px solid var(--accent-orange); 
    color: var(--accent-orange);
    font-size: 14px;
}

.wheel-spin-btn { 
    background: var(--accent-orange); color: white; border: none; 
    padding: 15px 40px; border-radius: 50px; font-weight: 900; 
    font-size: 16px; cursor: pointer; 
    box-shadow: 0 5px 15px rgba(224, 159, 62, 0.4); 
    width: 80%; text-transform: uppercase; 
    margin-bottom: 10px;
}

/* Result Box */
#wheelResult { width: 100%; padding-bottom: 10px; }
.wheel-win-title { font-size: 24px; font-weight: 900; color: #16a34a; margin-bottom: 5px; }
.wheel-win-label { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 15px; }

.wheel-promo-box {
    background: #f0fdf4; border: 2px dashed #86efac; border-radius: 12px;
    padding: 12px; margin-bottom: 15px; cursor: pointer; transition: all 0.2s; position: relative;
}
.wheel-promo-box:hover { background: #dcfce7; transform: translateY(-2px); }
.wheel-promo-box:active { transform: scale(0.98); background: #bbf7d0; }

.promo-label { font-size: 10px; text-transform: uppercase; color: #15803d; font-weight: 800; letter-spacing: 1px; }
.promo-code-text { font-family: 'Courier New', monospace; font-size: 26px; font-weight: 800; color: #333; margin: 5px 0; }
.promo-expiry { font-size: 11px; color: #666; font-weight: 600; margin-bottom: 5px; }
.promo-hint { font-size: 10px; color: #166534; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Floating Button */
#wheelFloatingBtn {
    position: fixed; left: 20px; bottom: 100px;
    width: 55px; height: 55px; background: var(--accent-orange);
    color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; cursor: pointer; z-index: 1000;
    box-shadow: 0 4px 15px rgba(224, 159, 62, 0.4);
    animation: pulseWheel 2s infinite;
}
@media (min-width: 900px) {
    #wheelFloatingBtn { left: auto; right: 30px; bottom: 30px; }
    .wheel-stage { width: 300px; height: 300px; }
}

/* ===========================
   8. MOBILE MENU & COMMON MODALS
   =========================== */
.menu-overlay { z-index: 1500; }
.mobile-menu { position: fixed; top: 0; left: 0; width: var(--menu-width); max-width: 80%; height: 100%; background-color: #fff; z-index: 1501; box-shadow: none; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.3s; padding: 30px; display: flex; flex-direction: column; border-top-right-radius: 20px; border-bottom-right-radius: 20px; pointer-events: auto; }
.mobile-menu.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.1); }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.menu-close-btn { background: none; border: none; cursor: pointer; padding: 5px; }
.menu-nav-list { list-style: none; display: flex; flex-direction: column; gap: 25px; }
.menu-link { text-decoration: none; color: var(--primary-black); font-weight: 800; font-size: 18px; text-transform: uppercase; display: flex; align-items: center; gap: 15px; }
.menu-footer { margin-top: auto; border-top: 1px solid #eee; padding-top: 20px; color: var(--secondary-gray); font-size: 12px; text-align: center; }

.loc-title, .search-title, .lang-title { font-weight: 900; font-size: 20px; text-transform: uppercase; margin-bottom: 20px; text-align: center; }
.search-input { width: 100%; background: #F5F5F5; border: none; padding: 15px 20px; border-radius: 15px; font-weight: 600; font-size: 16px; color: #333; margin-bottom: 20px; outline: none; }
.search-submit-btn { width: 100%; background: var(--accent-orange); color: white; border: none; padding: 15px; border-radius: 15px; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 5px 15px rgba(224, 159, 62, 0.4); display: flex; align-items: center; justify-content: center; gap: 10px; }
.search-submit-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.loc-address { font-size: 14px; color: #333; margin-bottom: 20px; text-align: center; line-height: 1.5; font-weight: 600; display:flex; align-items:center; justify-content:center; gap:5px; }
.loc-map-frame { width: 100%; height: 250px; background: #eee; border-radius: 20px; margin-bottom: 20px; position: relative; overflow: hidden; }
.loc-map-frame iframe { width: 100%; height: 100%; border: none; }
.loc-btn { width: 100%; background: #F5F5F5; border: none; padding: 15px; border-radius: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: 0.2s; text-decoration: none; color: var(--primary-black); }
.loc-btn:hover { background: #eee; }
.loc-btn:disabled { background: #e5e5e5; color: #999; }
.lang-options { display: flex; flex-direction: column; gap: 15px; }
.lang-btn { background: #F5F5F5; border: none; padding: 15px; border-radius: 15px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.2s; text-decoration: none; color: inherit; }
.lang-close-x, .pm-close-btn, .mc-close { position: absolute; top: 20px; right: 20px; background: #eee; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #333; cursor: pointer; z-index: 10; }
.pm-img-container { width: 100%; height: 250px; position: relative; display: flex; justify-content: center; align-items: center; background: linear-gradient(to bottom, #fff, #f9f9f9); border-radius: 30px 30px 0 0; }
.pm-drag-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); }
.pm-content { padding: 20px 25px; flex: 1; overflow-y: auto; }
.pm-footer { padding: 20px 25px 30px 25px; background: #fff; border-top: 1px solid #f5f5f5; display: flex; justify-content: center; }
.pm-add-cart-btn { width: 100%; background: var(--accent-brown); color: white; border: none; padding: 18px; border-radius: 20px; font-weight: 800; font-size: 16px; text-transform: uppercase; cursor: pointer; box-shadow: 0 5px 15px rgba(160, 85, 56, 0.3); display: flex; justify-content: space-between; padding-left: 30px; padding-right: 30px; }

/* === IMAGE ZOOM STYLES === */
.pm-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.pm-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    z-index: 20;
    position: relative;
}

.pm-img.is-zoomed {
    transform: scale(1.6);
    cursor: zoom-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    z-index: 100;
}

.pm-zoom-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 25;
    transition: opacity 0.3s;
    font-size: 16px;
}

.pm-img.is-zoomed + .pm-zoom-icon {
    opacity: 0;
}
/* ========================= */

.pm-description-container {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    background: #f8fafc;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.mod-group-title {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    margin: 20px 0 10px 0;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mod-option-card:active { transform: scale(0.98); }

.mod-input:checked + .mod-card-content + .mod-checkbox-visual {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.mod-input:checked ~ .mod-card-content .mod-label {
    color: var(--accent-orange);
}

.mod-option-card:has(.mod-input:checked) {
    border-color: var(--accent-orange);
    background: #fffcf9;
}

.mod-card-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 12px;
}

.mod-label { font-weight: 700; font-size: 14px; transition: color 0.2s; }
.mod-price { font-weight: 600; font-size: 13px; color: #64748b; }

.mod-checkbox-visual {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.mod-checkbox-visual::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
}

.mod-input:checked + .mod-card-content + .mod-checkbox-visual::after {
    transform: translate(-50%, -50%) scale(1);
}

.hidden-input { display: none; }
/* ------------------------------------------------ */

/* ===========================
   9. CART OVERLAY & CHECKOUT
   =========================== */
.cart-overlay { z-index: 9999; }
.mobile-cart-panel { position: fixed; bottom: 0; left: 0; width: 100%; height: auto; max-height: 85vh; background: #FAFAFA; z-index: 1101; border-radius: 30px 30px 0 0; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); pointer-events: auto; }
.mobile-cart-panel.open { transform: translateY(0); }

/* HEADER */
.mc-header { padding: 25px 25px 15px 25px; display: flex; justify-content: center; align-items: center; position: relative; }
.mc-title { font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: -1px; text-align: center; flex: 1; }
.mc-close, .mc-back { background: #eee; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #333; cursor: pointer; position: absolute; top: 25px; }
.mc-close { right: 25px; }
.mc-back { left: 25px; }

/* BODY */
.mc-body { flex: 1; overflow-y: auto; padding: 0 25px 100px 25px; }
.mc-item { background: white; border-radius: 20px; padding: 15px; display: flex; align-items: center; margin-bottom: 15px; box-shadow: var(--card-shadow); }
.mc-item-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.mc-item-info { flex: 1; }
.mc-item-title { font-weight: 800; font-size: 14px; text-transform: uppercase; margin-bottom: 5px; }
.mc-item-price { background: var(--accent-orange); color: white; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 10px; }
.mc-item-mods { font-size: 11px; color: #888; margin-top: 4px; line-height: 1.3; }
.mod-tag { display: inline-flex; align-items: center; margin-right: 5px; margin-bottom: 2px; background: #f0f0f0; padding: 2px 6px; border-radius: 6px; }
.mod-group { margin-bottom: 15px; }
.mod-option { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }

/* === NEW BUTTON STYLES (UPDATED) === */
.mc-item-controls { display: flex; align-items: center; background: #f3f4f6; border-radius: 50px; padding: 4px; width: fit-content; margin-top: 8px; }
.qty-num { font-weight: 800; font-size: 14px; margin: 0 12px; color: var(--primary-black); min-width: 15px; text-align: center; }
.cart-qty-btn { width: 28px; height: 28px; border-radius: 50%; border: none !important; outline: none; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; line-height: 1; transition: transform 0.1s; background-color: white !important; color: var(--primary-black) !important; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.cart-qty-btn:active { transform: scale(0.9); box-shadow: none; }
/* =================================== */

/* CHECKOUT STEPS */
.checkout-step { display: none; padding-bottom: 20px; }
.checkout-step.active { display: block; animation: popIn 0.3s ease; }
.co-section { background: white; padding: 20px; border-radius: 20px; margin-bottom: 15px; box-shadow: var(--card-shadow); }
.co-title { font-weight: 800; font-size: 14px; text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.delivery-toggle-wrap { display: flex; background: #f3f4f6; padding: 4px; border-radius: 12px; margin-bottom: 15px; }
.dt-option { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.2s; color: #6b7280; }
.dt-option.active { background: white; color: var(--accent-orange); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.co-input-group { margin-bottom: 15px; position: relative; }
.co-label { display: block; font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 5px; text-transform: uppercase; }
.co-input { width: 100%; background: #f9fafb; border: 1px solid #e5e7eb; padding: 12px 15px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #333; outline: none; transition: 0.2s; }
.co-input:focus { border-color: var(--accent-orange); background: white; }

/* MAP PIN OVERLAY - FIX FOR MOBILE */
#deliveryMapContainer, #initialDeliveryMapContainer { width: 100%; height: 280px !important; background-color: #e5e7eb; display: block; position: relative; overflow: hidden; border-radius: 15px; border: 2px solid #eee; }

/* Media query to reduce map height on small screens */
@media (max-height: 700px) {
    #deliveryMapContainer, #initialDeliveryMapContainer { height: 180px !important; }
}

.map-center-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 10; font-size: 34px; color: var(--accent-orange); pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); margin-top: -2px; }
.map-overlay-btn { position: absolute; bottom: 15px; right: 15px; background: white; border: none; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; color: #333; z-index: 5; font-size: 18px; }

/* NEW: LAYER BUTTON STYLE */
.map-layer-btn {
    bottom: 65px !important; 
    color: #4b5563; 
    background: white;
}
.map-layer-btn:active {
    background: #f3f4f6;
    transform: scale(0.95);
}

/* PROMOCODE BLOCK */
.promo-input-wrap { display: flex; gap: 10px; margin-top: 10px; }
.promo-apply-btn { background: var(--primary-black); color: white; border: none; border-radius: 12px; padding: 0 20px; font-weight: 700; cursor: pointer; transition: 0.2s; height: 48px; flex-shrink: 0; }
.promo-apply-btn:active { transform: scale(0.95); }
.promo-apply-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.promo-msg { display: none; margin-top: 10px; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 10px; animation: popIn 0.2s ease; text-align: center; }
.promo-msg.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.promo-msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.co-addr-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.co-addr-mini { background: #f9fafb; border: 1px solid #e5e7eb; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600; width: 100%; outline: none; }
.co-addr-mini:focus { border-color: var(--accent-orange); background: white; }
.co-error-message { background: #fee2e2; border: 1px solid #fca5a5; color: #ef4444; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 700; margin-bottom: 15px; display: none; align-items: center; gap: 10px; animation: popIn 0.2s ease; }

.pay-methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-option { background: #f9fafb; border: 2px solid transparent; border-radius: 12px; padding: 15px 5px; text-align: center; cursor: pointer; transition: 0.2s; }
.pay-option:hover { background: #f0f0f0; }
.pay-option.active { border-color: var(--accent-orange); background: #fff7ed; color: var(--accent-orange); }
.pay-icon { font-size: 20px; margin-bottom: 5px; display: block; }
.pay-name { font-size: 10px; font-weight: 800; text-transform: uppercase; display: block; }

/* STYLED RECEIPT BOX */
.checkout-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.csb-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 14px; color: #64748b; font-weight: 500;
}
.csb-row i { width: 20px; text-align: center; margin-right: 8px; color: #94a3b8; }
.csb-row span:last-child { font-weight: 700; color: #334155; }
.csb-row.discount { color: #ef4444; }
.csb-row.discount i, .csb-row.discount span:last-child { color: #ef4444; }
.csb-row.delivery { color: #3b82f6; }
.csb-row.delivery i, .csb-row.delivery span:last-child { color: #3b82f6; }
.csb-line { border-bottom: 2px dashed #cbd5e1; margin: 15px 0; opacity: 0.7; }
.csb-total {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 900; font-size: 22px; color: var(--primary-black); letter-spacing: -0.5px;
}

.mc-footer { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: #FAFAFA; border-top: 1px solid #eee; }
.checkout-btn { width: 100%; background: var(--accent-orange); color: white; border: none; padding: 18px; border-radius: 20px; font-weight: 800; font-size: 18px; text-transform: uppercase; box-shadow: 0 5px 20px rgba(224, 159, 62, 0.4); cursor: pointer; }

/* TIME SELECTION */
.time-toggle-wrap { display: flex; gap: 10px; }
.time-radio { flex: 1; cursor: pointer; position: relative; }
.time-radio input { position: absolute; opacity: 0; cursor: pointer; }
.tr-box { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f9fafb; border: 1px solid #e5e7eb; padding: 10px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #6b7280; transition: all 0.2s; height: 100%; gap: 5px; }
.time-radio input:checked ~ .tr-box { background: #fff7ed; border-color: var(--accent-orange); color: var(--accent-orange); box-shadow: 0 2px 5px rgba(224, 159, 62, 0.2); }
.tr-box i { font-size: 16px; margin-bottom: 2px; }

/* UPSELL */
.mc-upsell-title { font-weight: 800; font-size: 16px; text-transform: uppercase; margin: 25px 0 15px 0; }
.mc-upsell-scroll { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; -ms-overflow-style: none; scrollbar-width: none; }
.mc-upsell-scroll::-webkit-scrollbar { display: none; }
.upsell-card { background: white; min-width: 130px; max-width: 130px; border-radius: 18px; padding: 12px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #f3f4f6; display: flex; flex-direction: column; align-items: center; }
.upsell-img { width: 70px; height: 70px; object-fit: contain; margin-bottom: 8px; }
.upsell-name { font-weight: 700; font-size: 11px; margin-bottom: 5px; height: 28px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; width: 100%; }
.upsell-price { font-weight: 800; font-size: 12px; color: var(--primary-black); margin-bottom: 8px; }
.upsell-add { background: #f0f0f0; border: none; width: 100%; padding: 8px; border-radius: 10px; font-weight: 800; font-size: 10px; cursor: pointer; color: var(--primary-black); transition: 0.2s; text-transform: uppercase; }

/* MISC CART */
.min-order-alert { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; padding: 15px; border-radius: 10px; margin-bottom: 15px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.min-order-alert i { font-size: 18px; color: var(--accent-orange); }
.cart-progress-wrap { padding: 15px 20px 5px 20px; background: #FAFAFA; border-top: 1px solid #eee; margin-bottom: 5px; display: block !important; }
.cp-bar-bg { height: 8px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.cp-bar-fill { height: 100%; background: var(--accent-orange); transition: width 0.4s ease, background 0.3s; border-radius: 10px; }
.cp-bar-fill.success { background: #22c55e; }
.cp-text { font-size: 11px; font-weight: 700; text-align: center; color: #64748b; text-transform: uppercase; }
.cp-text.success { color: #15803d; }
.empty-cart-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; color: var(--secondary-gray); }
.empty-cart-icon { font-size: 60px; color: #e5e7eb; margin-bottom: 20px; }
.empty-cart-title { font-weight: 800; font-size: 18px; color: var(--primary-black); margin-bottom: 10px; text-transform: uppercase; }
.empty-cart-text { font-size: 14px; margin-bottom: 25px; max-width: 250px; line-height: 1.5; }
.empty-cart-btn { background-color: var(--primary-black); color: white; border: none; padding: 15px 40px; border-radius: 50px; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: transform 0.2s; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; margin-top: 15px; }
.empty-cart-btn:active { transform: scale(0.95); }

/* === NEW TRACK ORDER BUTTON STYLE === */
.track-order-btn {
    background-color: white;
    color: var(--primary-black);
    border: 2px solid var(--primary-black);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-top: 10px;
    width: 100%; /* Make it full width for mobile */
    max-width: 300px;
}
.track-order-btn:active {
    background-color: #f3f4f6;
    transform: scale(0.95);
}
/* =================================== */

.order-success-view { display: none; text-align: center; padding: 40px 20px; }
.order-success-view.active { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; animation: popIn 0.4s ease; }
.os-icon { width: 100px; height: 100px; background: #22c55e; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 50px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4); animation: popIn 0.5s cubic-bezier(0.5, 0, 0.2, 1.5); }
.os-title { font-weight: 900; font-size: 24px; text-transform: uppercase; margin-bottom: 10px; color: #333; }
.os-text { font-size: 15px; color: #666; margin-bottom: 20px; }
.os-id { font-size: 32px; font-weight: 800; color: var(--primary-black); letter-spacing: 2px; background: #f3f4f6; padding: 10px 20px; border-radius: 12px; margin-bottom: 30px; display: inline-block; }
.os-details { background: #f8fafc; border-radius: 15px; padding: 20px; margin-bottom: 20px; width: 100%; border: 1px dashed #e2e8f0; }
.os-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #64748b; font-weight: 600; }
.os-row.total { border-top: 1px solid #e2e8f0; margin-top: 10px; padding-top: 10px; color: #333; font-weight: 800; font-size: 16px; }
.os-note { background: #eff6ff; color: #1e40af; padding: 10px; border-radius: 10px; font-size: 12px; font-weight: 600; margin-bottom: 25px; line-height: 1.4; border: 1px solid #dbeafe; }

/* ===========================
   10. DELIVERY CHECK & STATUS STYLES 
   =========================== */
.del-res-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; padding: 10px; border: 1px solid #eee; border-radius: 15px; background: #fff; }
.del-res-item { background: #f8fafc; padding: 10px 5px; border-radius: 12px; text-align: center; }
.del-res-icon { font-size: 20px; color: var(--accent-orange); margin-bottom: 5px; }
.del-res-label { font-size: 9px; color: #64748b; text-transform: uppercase; font-weight: 700; }
.del-res-val { font-size: 13px; font-weight: 800; color: #334155; }
.del-success-text { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px; margin-bottom: 15px; color: #16a34a; font-weight: 800; text-align: center; font-size: 15px; }
.del-error-box { background: #fff5f5; border: 1px solid #fecaca; border-radius: 12px; padding: 20px; text-align: center; margin-top: 6px; }
.del-error-title { color: #ef4444; font-weight: 800; margin-bottom: 5px; font-size: 16px; }
.del-error-text { color: #7f1d1d; font-size: 13px; margin-bottom: 15px; }
.del-msg { display: none; padding: 15px; margin-bottom: 15px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.4; animation: popIn 0.2s ease-out; text-align: center; }
.del-msg.error { background: #fff5f5; color: #dc2626; border: 1px solid #fca5a5; }
.del-msg.loading { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }

/* NEW: STATUS ERROR MESSAGE */
.status-error-msg {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #ef4444;
    padding: 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    display: none;
    animation: popIn 0.2s ease;
}

/* Status Modal Specifics */
#statusPanel { display: flex; flex-direction: column; max-height: 85vh; }
#statusResultStep { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 40px; min-height: 0; }
.btn-text-only { background: none; border: none; font-weight: 600; font-size: 12px; cursor: pointer; padding: 10px; }
.history-toggle-btn { width: 100%; background: #f3f4f6; border: none; padding: 15px; border-radius: 15px; font-weight: 700; color: #4b5563; margin-top: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.status-card { background: white; border: 1px solid #e5e7eb; border-radius: 20px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.sc-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 13px; font-weight: 700; color: #333; }
.sc-id { color: var(--accent-orange); }
.stepper { display: flex; justify-content: space-between; position: relative; margin-bottom: 20px; }
.stepper::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 3px; background: #e5e7eb; z-index: 0; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.step-dot { width: 24px; height: 24px; background: #e5e7eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: white; margin-bottom: 5px; transition: 0.3s; }
.step.active .step-dot { background: var(--accent-orange); box-shadow: 0 0 0 4px rgba(224, 159, 62, 0.2); }
.step-label { font-size: 9px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }
.step.active .step-label { color: var(--accent-orange); }
.sc-items { font-size: 12px; color: #666; margin-bottom: 10px; line-height: 1.4; }
.sc-total { font-weight: 800; font-size: 16px; text-align: right; color: #333; }
.hist-card { background: #f9fafb; border-radius: 15px; padding: 15px; margin-bottom: 10px; border: 1px solid #eee; }
.hc-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #666; }
.hc-status { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.hc-status.delivered { background: #dcfce7; color: #166534; }
.hc-status.cancelled { background: #fee2e2; color: #991b1b; }
.rating-area { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ddd; }
.stars { display: flex; gap: 5px; margin-bottom: 10px; cursor: pointer; }
.star { font-size: 24px; color: #d1d5db; transition: 0.2s; }
.star.filled { color: #fbbf24; }
.rating-comment { width: 100%; border: 1px solid #ddd; border-radius: 10px; padding: 8px; font-size: 12px; margin-bottom: 8px; }
.rate-btn-mini { background: #333; color: white; border: none; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* --- АНИМАЦИЯ ПУЛЬСАЦИИ ДЛЯ АКТИВНОГО СТАТУСА (KDS) --- */
@keyframes statusPulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 159, 62, 0.7); /* Используем ваш фирменный оранжевый --accent-orange */
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(224, 159, 62, 0);
        transform: scale(1.1); /* Легкое увеличение самой иконки */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(224, 159, 62, 0);
        transform: scale(1);
    }
}

.step.current .step-dot {
    animation: statusPulseRing 1.5s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--accent-orange) !important;
    border: 2px solid #fff; /* Белая каемочка для контраста с пульсацией */
    z-index: 2; /* Выносим вперед, чтобы пульсация не перекрывалась линией степпера */
}
.step.current .step-label {
    color: var(--primary-black); /* Делаем текст активного шага темнее/жирнее */
    font-weight: 900;
}
/* ----------------------------------------------------- */

/* Receipt Style */
.status-receipt-list { background: #fdfdfd; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 15px; margin-bottom: 15px; font-size: 13px; color: #334155; position: relative; }
.status-item-row { display: flex; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #eee; }
.status-item-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.si-qty { font-weight: 800; margin-right: 5px; min-width: 20px; color: var(--accent-orange); }
.si-name { flex: 1; font-weight: 600; }
.si-price { font-weight: 700; margin-left: 10px; white-space: nowrap; }

/* Status Time */
.status-est-time { background: #eef2ff; color: #4338ca; padding: 10px; border-radius: 8px; font-size: 13px; text-align: center; margin-bottom: 10px; border: 1px solid #c7d2fe; }
.status-delayed-badge { background: #fee2e2; color: #dc2626; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px; border-radius: 6px; text-align: center; margin-bottom: 10px; }

/* ===========================
   11. POPUPS & MARKETING 
   =========================== */
.marketing-box {
    background: #fff; width: 100%;
    /* Mobile Default: Bottom Sheet */
    position: absolute; bottom: 0; left: 0;
    border-radius: 30px 30px 0 0; 
    padding: 30px;
    transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2001;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    text-align: center; pointer-events: auto;
    top: auto; right: auto;
}
.overlay-base.open .marketing-box { transform: translateY(0); }
.marketing-img { width: 100%; height: 200px; object-fit: cover; border-radius: 20px; margin-bottom: 20px; display: block; }
.marketing-title { font-weight: 900; font-size: 24px; text-transform: uppercase; margin-bottom: 10px; line-height: 1.2; }
.marketing-text { font-size: 14px; line-height: 1.5; margin-bottom: 20px; opacity: 0.9; }
.marketing-btn { display: inline-block; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 16px; transition: transform 0.2s; }
.marketing-btn:active { transform: scale(0.95); }
.marketing-close-btn {
    position: absolute;
    top: 25px; 
    right: 25px; 
    background: #f0f0f0; 
    border: none;
    width: 44px; 
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 20px;
    z-index: 50; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}
.marketing-close-btn:active {
    transform: scale(0.9);
}
.back-to-top { position: fixed; right: 0; bottom: 120px; background: var(--accent-orange); color: white; border-radius: 12px 0 0 12px; padding: 12px 16px; box-shadow: 0 4px 15px rgba(224, 159, 62, 0.4); transform: translateX(100%); transition: transform 0.3s; cursor: pointer; z-index: 90; pointer-events: auto; display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { transform: translateX(0); }
@keyframes highlightPulse { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.product-card.highlight-anim { z-index: 50 !important; }
.product-card.highlight-anim::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 4px solid var(--accent-orange); border-radius: 24px; z-index: 100; pointer-events: none; animation: highlightPulse 1.5s ease-in-out; }
@keyframes popIn { from { transform: scale(0); opacity:0; } to { transform: scale(1); opacity:1; } }
.desktop-icon { display: none; } .sidebar-cart { display: none; }

.loc-address-container { display: flex; align-items: center; justify-content: space-between; background: #f9f9f9; border: 1px solid #eee; border-radius: 12px; padding: 12px 15px; margin-bottom: 20px; gap: 10px; }
.loc-addr-icon { color: var(--accent-orange); font-size: 18px; flex-shrink: 0; }
.loc-addr-text { flex-grow: 1; font-size: 13px; color: #333; font-weight: 600; line-height: 1.4; text-align: center; }
.copy-btn { background: white; border: 1px solid #ddd; color: #666; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.copy-btn:active { transform: scale(0.9); background: #eee; }
.loc-map-frame iframe { width: 100%; height: 100%; border: none; border-radius: 20px; }
.loc-address { display: none; }

.map-status-line { font-size: 11px; font-weight: 700; min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.map-status-line.loading { color: #64748b; }
.map-status-line.success { color: #16a34a; }
.map-status-line.error { color: #dc2626; }
.msl-item { display: flex; align-items: center; gap: 4px; }

/* ===========================
   12. GOOGLE MAPS FIXES 
   =========================== */
.pac-container {
    z-index: 9999 !important;
    border-radius: 0 0 15px 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    border: none;
    margin-top: 2px;
}
.pac-item {
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
}
.pac-item:hover {
    background-color: #f3f4f6;
}
.pac-icon {
    display: none; 
}

/* ===========================
   13. NEW WARNING STYLES
   =========================== */

/* --- Phone Input Warning --- */
.phone-warning-tooltip {
    font-size: 11px;
    color: #c2410c; /* Темно-оранжевый/красный */
    background: #fff7ed;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    margin-bottom: 8px;
    display: none; /* Скрыто по умолчанию */
    animation: popIn 0.3s ease;
    line-height: 1.3;
    font-weight: 600;
}

/* --- Online Payment Block Warning --- */
.payment-blocked-msg {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 15px;
    text-align: center;
    line-height: 1.5;
    display: none; /* Скрыто по умолчанию */
    animation: popIn 0.3s ease;
}

/* --- COURIER UNAVAILABLE MESSAGE (NEW) --- */
.courier-unavailable-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff7ed; /* Light orange/yellow background */
    border: 2px dashed #fed7aa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    animation: popIn 0.3s ease;
}

.cu-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.cu-text {
    color: #c2410c; /* Dark orange/brown */
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
}

/* Стили для заблокированной кнопки */
.checkout-btn:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* --- NEW: TOP BADGE & HIT STYLES --- */
.top-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* Справа, чтобы не перекрывать скидку слева */
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(253, 185, 49, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: popIn 0.3s ease;
}

.top-badge i {
    font-size: 10px;
}

.product-card:has(.top-badge) {
    border: 1px solid #ffeeba;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

/* ===========================
   14. DESKTOP MEDIA QUERY 
   =========================== */
@media (min-width: 900px) {
    .app-container { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding-top: 40px; }
    header, .hero-title { grid-column: 1 / -1; }
    .categories-wrapper { grid-column: 1; margin-left: -5px; margin-right: -5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; }
    .main-content { grid-column: 1; }
    .main-grid { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
    .bottom-nav { display: none; }
    .desktop-icon { display: flex; }
    .mobile-cart-panel { display: none; }
    
    /* FIX: Remove bottom padding on desktop */
    .mobile-cart-panel {
        padding-bottom: 30px !important;
    }
    .mc-body {
        padding-bottom: 20px;
    }

    .sidebar-cart { display: block; grid-column: 2; grid-row: 3 / 10; background: white; padding: 30px; border-radius: 30px; box-shadow: var(--card-shadow); height: fit-content; position: sticky; top: 120px; z-index: 30; max-height: calc(100vh - 150px); display: flex; flex-direction: column; overflow: hidden; }
    .sidebar-cart .mc-item { box-shadow: none; background: transparent; border-bottom: 1px solid #eee; border-radius: 0; padding: 10px 0; margin-bottom: 10px; }
    .sidebar-cart .mc-item:last-child { border-bottom: none; }
    .sidebar-cart .mc-item-img { width: 50px; height: 50px; border-radius: 10px; }
    #desktop-cart-items { flex: 1; overflow-y: auto; margin-bottom: 15px; padding-right: 5px; }
    .hero-title { font-size: 72px; letter-spacing: -2px; }
    .product-card { height: 210px; flex-direction: row; min-height: 210px; }
    .product-img-col { width: 45%; }
    .product-info-col { width: 55%; padding: 20px; }
    .logo-img { max-height: 130px; }
    .header-icon-svg { width: 38px; height: 38px; }
    
    /* MODALS DESKTOP */
    .loc-box, .search-box, .status-box, .delivery-check-box, .lang-box, .product-modal-box, 
    .mobile-cart-panel, .wheel-box, .iyzico-box { 
        width: 500px; height: auto; max-height: 85vh; border-radius: 30px; overflow: hidden; 
        position: fixed; top: 50%; left: 50%; bottom: auto; 
        transform: translate(-50%, -50%) scale(0.9); opacity: 0; 
        transition: all 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
        padding: 30px; margin: auto; 
        visibility: hidden;
    }
    .product-modal-box, .mobile-cart-panel { padding: 0; display: flex; flex-direction: column; }
    .iyzico-box { padding: 25px !important; display: flex; flex-direction: column; }
    .overlay-base.open .loc-box, .overlay-base.open .search-box, .overlay-base.open .status-box, .overlay-base.open .delivery-check-box, .overlay-base.open .lang-box, .overlay-base.open .product-modal-box, .overlay-base.open .mobile-cart-panel, .overlay-base.open .wheel-box, .overlay-base.open .iyzico-box { 
        transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible;
    }
    .status-box.closed-modal { width: 500px !important; max-width: 500px !important; position: fixed !important; top: 50% !important; left: 50% !important; bottom: auto !important; transform: translate(-50%, -50%) scale(0.9) !important; border-radius: 30px !important; }
    .overlay-base.open .status-box.closed-modal { transform: translate(-50%, -50%) scale(1) !important; }
    
    /* MARKETING POPUP DESKTOP VARIANTS */
    .marketing-box { width: 500px; max-width: 500px; border-radius: 30px; position: fixed; bottom: auto; opacity: 0; transition: all 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
    .marketing-box.pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); }
    .overlay-base.open .marketing-box.pos-center { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    .marketing-box.pos-bottom_right { top: auto; left: auto; bottom: 30px; right: 30px; transform: translateY(20px); }
    .overlay-base.open .marketing-box.pos-bottom_right { transform: translateY(0); opacity: 1; }

    .pm-img-container { height: 200px; border-radius: 30px 30px 0 0; }
    .pm-drag-handle { display: none; }
    .category-section { scroll-margin-top: 140px; }
    .back-to-top { bottom: 30px; }
    .mc-close .fa-chevron-down::before { content: "\f00d"; }

    /* WHEEL DESKTOP SPECIFIC */
    #wheelFloatingBtn { left: auto; right: 20px; bottom: 40px; }
}

/* ===========================
   15. CUSTOM SEARCHABLE SELECT
   =========================== */
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: #fff; border: 1px solid #e5e7eb; padding: 12px 15px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #333; transition: 0.2s; height: 100%; min-height: 44px; }
.custom-select-trigger.disabled { background: #f9fafb; cursor: not-allowed; color: #9ca3af; }
.custom-select-trigger:focus-within, .custom-select-trigger:active { border-color: var(--accent-orange); }
.custom-select-trigger i { color: #9ca3af; font-size: 12px; transition: transform 0.2s; }
.custom-select-dropdown.open ~ .custom-select-trigger i { transform: rotate(180deg); }
.custom-select-dropdown { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; display: flex; flex-direction: column; overflow: hidden; }
.custom-select-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-select-search-wrap { padding: 10px; border-bottom: 1px solid #f3f4f6; background: #fafafa; }
.custom-select-search { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 15px; font-size: 13px; font-family: 'Montserrat', sans-serif; outline: none; transition: border-color 0.2s; }
.custom-select-search:focus { border-color: var(--accent-orange); background: #fff; }
.custom-select-options { max-height: 180px; overflow-y: auto; }
.custom-select-option { padding: 12px 15px; font-size: 13px; font-weight: 600; color: #4b5563; cursor: pointer; border-bottom: 1px solid #f9fafb; transition: background 0.2s; }
.custom-select-option:last-child { border-bottom: none; }
.custom-select-option:hover { background: #fff7ed; color: var(--accent-orange); }

/* ===========================
   16. CUSTOM STREET AUTOCOMPLETE
   =========================== */
.custom-autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; max-height: 200px; overflow-y: auto; margin-top: 5px; animation: popIn 0.2s ease; }
.custom-autocomplete-item { padding: 12px 15px; border-bottom: 1px solid #f3f4f6; cursor: pointer; font-size: 13px; display: flex; flex-direction: column; color: #333; transition: background 0.2s; }
.custom-autocomplete-item:last-child { border-bottom: none; }
.custom-autocomplete-item:hover, .custom-autocomplete-item:active { background-color: #fff7ed; }