:root {
    --primary: #E63946;
    --primary-dark: #C1121F;
    --secondary: #1D3557;
    --accent: #F4A261;
    --success: #2D6A4F;
    --success-light: #40916C;
    --warning: #F4A261;
    --bg: #F7F8FC;
    --white: #FFFFFF;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-400: #ADB5BD;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--secondary);
    line-height: 1.6;
}

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

/* ─── HEADER ─────────────────────────────────────── */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary);
}

.logo-icon { font-size: 2rem; }

.logo-img { height: 46px; width: auto; display: block; }

/* ─── ДОДАТОЦИ (extras) ─────────────────────────────── */
.product-addon-hint {
    font-size: 0.74rem;
    color: var(--secondary, #2D6A4F);
    font-weight: 600;
    margin: 4px 0 0;
}
.cart-item-addons {
    font-size: 0.74rem;
    color: var(--gray-500, #6b7280);
    margin: 2px 0;
    line-height: 1.3;
}
.order-summary-item .item-addons {
    display: block;
    font-size: 0.74rem;
    color: var(--gray-500, #6b7280);
    font-weight: 400;
    margin-top: 2px;
}

.addon-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1200;
}
.addon-overlay.active { display: flex; }
.addon-modal {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: addonUp 0.28s cubic-bezier(0.16,1,0.3,1);
}
@keyframes addonUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 520px) {
    .addon-overlay { align-items: center; }
    .addon-modal { border-radius: 20px; }
}
.addon-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.addon-product { display: flex; align-items: center; gap: 10px; }
.addon-product-icon { font-size: 1.6rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; }
.addon-product-icon img { width: 100%; height: 100%; object-fit: cover; }
.addon-product-name { font-weight: 800; font-size: 1.05rem; color: var(--secondary, #1D3557); }
.addon-body { padding: 16px 20px; overflow-y: auto; }
.addon-section-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-400, #9ca3af); margin-bottom: 10px; }
.addon-list { display: flex; flex-direction: column; gap: 8px; }
.addon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.addon-row:has(input:checked) { border-color: var(--primary, #E63946); background: rgba(230,57,70,0.04); }
.addon-row input { width: 20px; height: 20px; accent-color: var(--primary, #E63946); cursor: pointer; }
.addon-row-name { flex: 1; font-weight: 600; color: var(--secondary, #1D3557); }
.addon-row-price { font-weight: 700; color: var(--primary, #E63946); font-size: 0.9rem; }
.addon-row-price.free { color: var(--secondary, #2D6A4F); }
.addon-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100, #f3f4f6);
}
.addon-qty-wrap { display: flex; align-items: center; gap: 10px; }
.addon-add-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary, #E63946);
    cursor: pointer;
    transition: opacity .15s;
}
.addon-add-btn:hover { opacity: .9; }

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.header-nav { display: flex; align-items: center; gap: 8px; }

.cart-btn {
    position: relative;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-btn svg { width: 20px; height: 20px; }

.cart-badge {
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.cart-badge.hidden { display: none; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #C1121F 40%, #780000 100%);
    color: #fff;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-logo {
    display: block;
    width: fit-content;
    background: #fff;
    padding: 14px 22px;
    border-radius: 18px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.hero-logo img { height: 64px; width: auto; display: block; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-feature span:first-child { font-size: 1.2rem; }

/* ─── CATEGORIES ────────────────────────────────────── */
.section-menu { padding: 40px 0 60px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}

/* ─── CLOSED BANNER ─────────────────────────────────── */
.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── ПРОМО КОД ─────────────────────────────────────── */
.promo-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.promo-input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s;
}
.promo-input:focus { border-color: var(--primary, #E63946); }
.promo-apply-btn {
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: var(--gray-800, #1f2937);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity .15s;
}
.promo-apply-btn:hover { opacity: .88; }
.promo-msg {
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 16px;
}
.promo-msg.error   { color: #DC2626; }
.promo-msg.success { color: #059669; }
.order-summary-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
    color: #059669;
}

.closed-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1D3557, #14233D);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.closed-banner-icon { font-size: 1.8rem; }
.closed-banner strong { font-size: 1.05rem; }
.closed-banner-msg { font-size: 0.88rem; opacity: 0.8; margin-top: 2px; }

/* ─── PRODUCTS GRID ─────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
    animation: fadeInUp 0.4s ease both;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
}

.product-img.cat-pizza   { background: linear-gradient(135deg, #FFB3BA, #FFDFBA); }
.product-img.cat-burger  { background: linear-gradient(135deg, #C8B6FF, #FFD6A5); }
.product-img.cat-drink   { background: linear-gradient(135deg, #A8DADC, #C2E9FB); }
.product-img.cat-dessert { background: linear-gradient(135deg, #FFF3B0, #FFB3C6); }
.product-img.cat-salad   { background: linear-gradient(135deg, #B7E4C7, #D8F3DC); }

.product-body { padding: 16px; }

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 4px 4px;
}

.qty-btn {
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-weight: 700;
    color: var(--secondary);
}

.qty-btn:hover { background: var(--primary); color: #fff; }

.qty-num {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
    color: var(--secondary);
}

/* ─── CART SIDEBAR ──────────────────────────────────── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 400px;
    max-width: 95vw;
    background: var(--white);
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-head h2 { font-size: 1.3rem; font-weight: 800; }

.close-btn {
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray-800);
}

.close-btn:hover { background: var(--primary); color: #fff; }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cart-empty p { font-size: 1rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    animation: fadeInLeft 0.25s ease;
}

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

.cart-item-emoji {
    font-size: 2rem;
    min-width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info { flex: 1; }

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 3px;
}

.ci-btn {
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
    color: var(--secondary);
}

.ci-btn:hover { background: var(--primary); color: #fff; }
.ci-qty { font-weight: 700; font-size: 0.9rem; min-width: 20px; text-align: center; }

.cart-foot {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

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

.cart-total-label { font-size: 1rem; color: var(--gray-600); font-weight: 600; }
.cart-total-amount { font-size: 1.4rem; font-weight: 900; color: var(--secondary); }

.order-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.order-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,57,70,0.35); }
.order-btn:disabled { background: var(--gray-400); cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── MODAL ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-step { display: none; }
.modal-step.active { display: block; }

.modal-head {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head h2 { font-size: 1.2rem; font-weight: 800; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    line-height: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-800); }

.modal-body { padding: 24px 28px; }
.modal-foot { padding: 0 28px 28px; }

/* Order summary in modal */
.order-summary-list { list-style: none; margin-bottom: 20px; }

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.order-summary-item:last-child { border-bottom: none; }
.order-summary-item .item-name { color: var(--gray-800); }
.order-summary-item .item-qty { color: var(--gray-400); font-size: 0.85rem; }
.order-summary-item .item-total { font-weight: 700; color: var(--secondary); }

.order-summary-total {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.order-summary-total span:first-child { font-weight: 600; color: var(--gray-600); }
.order-summary-total span:last-child { font-size: 1.3rem; font-weight: 900; color: var(--secondary); }

/* Form styles */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--secondary);
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.1);
}

.form-input.error { border-color: var(--primary); }
.form-hint { font-size: 0.8rem; color: var(--gray-400); margin-top: 6px; }
.form-error { font-size: 0.82rem; color: var(--primary); margin-top: 6px; display: none; }
.form-error.show { display: block; }

/* SMS code step */
.phone-display {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-display span { font-size: 1.2rem; }

.sms-info {
    background: #EBF5FB;
    border: 1px solid #AED6F1;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #2471A3;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sms-info-icon { font-size: 1.1rem; flex-shrink: 0; }

.sms-code-input {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 10px;
    padding: 16px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    margin-top: 10px;
    display: block;
}

/* Success step */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    80%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.success-content p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.6;
}

.order-id-badge {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: inline-block;
    margin-bottom: 28px;
}

.order-id-badge strong { color: var(--secondary); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary {
    background: var(--gray-100);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 10px;
}

.btn-secondary:hover { background: var(--gray-200); }

/* ─── TOAST NOTIFICATION ────────────────────────────── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--secondary);
    color: #fff;
    border-radius: var(--radius);
    padding: 14px 20px;
    min-width: 300px;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastIn 0.35s cubic-bezier(0.4,0,0.2,1);
    border-left: 4px solid var(--primary);
}

.toast.sms { border-left-color: #0984E3; background: #1A252F; }
.toast.success-toast { border-left-color: var(--success-light); }
.toast.error-toast { border-left-color: var(--primary); }

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

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); max-height: 100px; }
    to   { opacity: 0; transform: translateX(100px); max-height: 0; padding: 0; margin: 0; }
}

.toast.removing { animation: toastOut 0.3s ease forwards; }

.toast-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.toast-msg { font-size: 0.85rem; opacity: 0.85; line-height: 1.4; }

.toast-sms-code {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #74B9FF;
    margin-top: 6px;
}

/* ─── STEP PROGRESS ─────────────────────────────────── */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 28px 0;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-400);
    background: var(--white);
    transition: var(--transition);
    flex-shrink: 0;
}

.step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-dot.done { background: var(--success-light); border-color: var(--success-light); color: #fff; }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    transition: var(--transition);
}

.step-line.done { background: var(--success-light); }

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 28px 20px;
    margin-top: 60px;
    font-size: 0.88rem;
}

.footer strong { color: #fff; }

/* ─── ADMIN LAYOUT ──────────────────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--secondary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    z-index: 50;
    overflow-y: auto;
}

.admin-sidebar-head {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.admin-logo-icon { font-size: 1.5rem; }
.admin-logo-text { font-size: 1.1rem; font-weight: 800; color: #fff; }
.admin-subtitle { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

.admin-nav { padding: 16px 12px; flex: 1; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.admin-nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-nav-icon { font-size: 1.1rem; }

.admin-nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-nav-item.active .admin-nav-badge { background: rgba(255,255,255,0.25); }

.admin-sidebar-foot {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.back-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

.admin-main {
    margin-left: 240px;
    min-height: 100vh;
    background: var(--bg);
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-topbar-title { font-size: 1.2rem; font-weight: 800; color: var(--secondary); }

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--success-light);
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-light);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

.admin-content { padding: 28px 32px; }

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.red    { background: rgba(230,57,70,0.1); }
.stat-icon.blue   { background: rgba(29,53,87,0.08); }
.stat-icon.green  { background: rgba(45,106,79,0.1); }
.stat-icon.orange { background: rgba(244,162,97,0.15); }

.stat-info { }
.stat-value { font-size: 1.6rem; font-weight: 900; color: var(--secondary); line-height: 1.1; }
.stat-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; margin-top: 2px; }

/* Orders section */
.orders-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.orders-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-head h3 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); }

.filter-row {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
}

.filter-chip {
    padding: 5px 13px;
    border-radius: 50px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--gray-600);
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.orders-list {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.order-card {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.order-card:hover { background: var(--gray-100); }
.order-card.selected { background: rgba(230,57,70,0.06); border-left: 3px solid var(--primary); padding-left: 13px; }

.order-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.order-card-content { flex: 1; min-width: 0; }

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.order-card-name {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.order-card-id   { font-size: 0.76rem; color: var(--gray-400); font-weight: 600; }
.order-card-phone { font-size: 0.76rem; color: var(--gray-600); }

.order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-card-total { font-size: 0.88rem; font-weight: 800; color: var(--secondary); }
.order-card-time  { font-size: 0.75rem; color: var(--gray-400); }

/* Status badges */
.status-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-new        { background: rgba(230,57,70,0.12); color: var(--primary); }
.status-preparing  { background: rgba(244,162,97,0.2); color: #B7721A; }
.status-sent       { background: rgba(29,53,87,0.1); color: var(--secondary); }
.status-delivered  { background: rgba(45,106,79,0.12); color: var(--success); }

/* Order detail panel */
.detail-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.detail-panel.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.detail-empty {
    text-align: center;
    color: var(--gray-400);
    padding: 40px;
}

.detail-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.detail-empty p { font-size: 0.9rem; line-height: 1.6; }

.detail-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.detail-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.detail-customer-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-order-meta {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.detail-head-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover { background: var(--gray-100); border-color: var(--gray-400); }
.btn-icon-danger:hover { background: rgba(230,57,70,0.08); border-color: var(--primary); }

.detail-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.detail-status-row {
    padding: 12px 22px;
    border-bottom: 1px solid var(--gray-100);
}

.detail-section {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}

.detail-section:last-child { border-bottom: none; }

.detail-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.detail-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}

.detail-info-row:last-child { border-bottom: none; }
.detail-info-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.detail-info-label { color: var(--gray-600); min-width: 90px; }
.detail-info-value { font-weight: 600; color: var(--secondary); }

.detail-items { list-style: none; }

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

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

.detail-item-left { display: flex; align-items: center; gap: 10px; }
.detail-item-emoji { font-size: 1.3rem; }
.detail-item-name { font-weight: 600; color: var(--secondary); }
.detail-item-qty { color: var(--gray-400); font-size: 0.82rem; }
.detail-item-price { font-weight: 700; color: var(--secondary); }

.detail-total-row {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.detail-total-row span:first-child { font-weight: 600; color: var(--gray-600); }
.detail-total-row span:last-child { font-size: 1.3rem; font-weight: 900; color: var(--secondary); }

/* Status actions */
.status-actions { }

.status-btns { display: flex; flex-direction: column; gap: 8px; }

.status-action-btn {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-200);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--secondary);
    font-family: inherit;
}

.status-action-btn:not(:disabled):hover {
    background: var(--gray-100);
    transform: translateX(3px);
}

.status-action-btn.current {
    background: rgba(230,57,70,0.04);
    font-weight: 800;
}

.status-action-btn:disabled { cursor: default; }

.current-tag {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.7;
}

/* New order notification */
.new-order-pulse {
    animation: newOrderPulse 1s ease;
}

@keyframes newOrderPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.01); box-shadow: 0 0 0 4px rgba(230,57,70,0.2); }
    100% { transform: scale(1); }
}

/* Empty orders */
.orders-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-400);
}

.orders-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.orders-empty p { font-size: 0.9rem; }

/* Search */
.search-box {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.search-input {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 9px 14px 9px 36px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--secondary);
    transition: var(--transition);
    background: var(--bg);
}

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

.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ─── AVATAR ──────────────────────────────────────────── */
.avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

/* ─── FILTER + SORT ROW ───────────────────────────────── */
.filter-sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
}

.filter-sort-row .filter-row {
    padding: 0;
    border-bottom: none;
    flex: 1;
    flex-wrap: nowrap;
}

.sort-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    background: var(--white);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
}

.sort-select:focus { outline: none; border-color: var(--primary); }

/* ─── PHONE LINK ──────────────────────────────────────── */
.phone-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px dashed var(--primary);
    padding-bottom: 1px;
    transition: var(--transition);
}

.phone-link:hover { color: var(--primary); }

/* ─── CUSTOMER NOTE ───────────────────────────────────── */
.customer-note {
    font-style: italic;
    color: var(--gray-600) !important;
    background: #FFFDE7;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.88rem;
}

/* ─── TIMELINE ────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    width: 2px;
    height: calc(100% - 12px);
    background: var(--gray-200);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    z-index: 1;
    transition: var(--transition);
    color: var(--gray-400);
}

.timeline-item.done .timeline-dot {
    border-color: var(--success-light);
    background: var(--success-light);
    color: #fff;
    font-size: 0.85rem;
}

.timeline-item.current .timeline-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.15);
}

.timeline-item.done::before { background: var(--success-light); }

.timeline-content { padding-top: 3px; }

.timeline-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-400);
}

.timeline-item.done .timeline-label  { color: var(--secondary); }
.timeline-item.current .timeline-label { color: var(--primary); }

.timeline-time {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.timeline-time.pending { opacity: 0.5; }

/* ─── ADMIN NOTES ─────────────────────────────────────── */
.admin-notes-wrap { display: flex; flex-direction: column; gap: 8px; }

.admin-notes-area {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--secondary);
    resize: vertical;
    min-height: 70px;
    transition: var(--transition);
    background: var(--bg);
    line-height: 1.5;
}

.admin-notes-area:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
}

.save-notes-btn {
    align-self: flex-end;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.save-notes-btn:hover { background: #2C4A6B; }

/* ─── STATS DETAIL ────────────────────────────────────── */
.stats-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stats-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-400);
    margin-bottom: 14px;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stats-row-label { font-size: 0.9rem; font-weight: 600; }

.stats-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.stats-mini-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px;
    border: 1.5px solid var(--gray-200);
}

.stats-mini-card.highlight {
    background: var(--secondary);
    border-color: var(--secondary);
}

.stats-mini-card.highlight .stats-mini-value { color: #fff; }
.stats-mini-card.highlight .stats-mini-label { color: rgba(255,255,255,0.6); }

.stats-mini-value { font-size: 1.4rem; font-weight: 900; color: var(--secondary); line-height: 1.1; }
.stats-mini-label { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; font-weight: 500; }

/* Bar chart */
.stats-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stats-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
}

.stats-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
    transition: width 0.6s ease;
}

.stats-bar-qty {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 28px;
    text-align: right;
}

/* ─── RESPONSIVE (продавница) ──────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 40px 0 48px; }
    .hero-logo img { height: 54px; }
    .hero-features { gap: 14px; }
    .hero-feature { font-size: 0.85rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cart-sidebar { width: 100%; max-width: 100%; }
}

@media (max-width: 600px) {
    .container { padding: 0 14px; }
    .header-inner { height: 58px; gap: 8px; }
    .logo-img { height: 36px; }
    .header-nav { gap: 8px; }
    .header-nav a { display: none; }              /* админ линкот скриен на телефон */
    .cart-btn { padding: 9px 16px; font-size: 0.85rem; }

    .section-title { font-size: 1.3rem; }
    .tab-btn { padding: 7px 14px; font-size: 0.82rem; }

    .product-img { height: 128px; font-size: 3rem; }
    .product-body { padding: 12px; }
    .product-name { font-size: 0.92rem; }
    .product-desc {
        font-size: 0.76rem; margin-bottom: 10px;
        display: -webkit-box; -webkit-box-orient: vertical;
        -webkit-line-clamp: 2; overflow: hidden;
    }
    .product-price { font-size: 1rem; }
    .add-btn { width: 34px; height: 34px; font-size: 1.3rem; }

    /* Модалот за нарачка → лист од дното */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal { max-width: 100%; max-height: 94vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

@media (max-width: 340px) {
    .products-grid { grid-template-columns: 1fr; }
}
