:root {
    --bg-color: #080808;
    --text-color: #f5f5f5;
    --accent-color: #ffcc00;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --secondary-text: #a0a0a0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    padding-bottom: 120px;
    -webkit-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

/* Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

header {
    padding: 20px 24px 12px;
    background: rgba(8, 8, 8, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.logo-container {
    height: 52px;
    transition: height 0.3s ease;
}

.main-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    appearance: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none !important;
}

.vi-ew {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.view-text {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

#phoneBtn {
    color: #4CAF50 !important;
}

.icon-btn:active {
    transform: scale(0.9);
    background: var(--glass-border);
}

.lang-picker {
    background: #000;
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-body);
    outline: none;
}

.lang-picker option {
    background: #000;
    color: #fff;
}

/* ==========================================
   HORIZONTAL CATEGORY SLIDER
   ========================================== */
.categories {
    display: flex;
    flex-wrap: nowrap;
    padding: 10px 24px;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 100px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    color: var(--secondary-text);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.category-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.category-btn.active:hover {
    background: var(--text-color);
    transform: scale(1);
}

/* SPECIAL category — red accent */
.category-btn.special {
    background: #FF4444;
    color: #fff;
    border-color: #FF4444;
    font-weight: 800;
}

.category-btn.special.active {
    background: #FF6666;
    color: #fff;
    border-color: #FF6666;
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
}

/* ==========================================
   MENU GRID
   ========================================== */
.menu-grid {
    padding: 15px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    transition: 0.3s ease;
}

.product-card {
    background: var(--card-bg);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 204, 0, 0.05);
}

/* Expanded View (Default) */
.product-image {
    width: 100%;
    height: 240px;
    background: #111;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.5;
    font-weight: 400;
}

.product-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--accent-color);
    line-height: 1;
}

.volume-tag {
    font-size: 0.75rem;
    color: var(--secondary-text);
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================
   ADD BUTTON & QTY SPLIT BUTTON
   ========================================== */
.add-btn {
    background: var(--text-color);
    color: #000;
    border: none;
    padding: 12px 26px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.85rem;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Qty controls — same shape as .add-btn, split into 3 parts */
.qty-control-wrapper {
    display: flex;
    align-items: center;
    background: var(--text-color);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    /* Match .add-btn height via same vertical padding */
    height: auto;
}

.qty-btn-minus,
.qty-btn-plus {
    border: none;
    background: transparent;
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 12px 14px;
}

.qty-btn-minus:active,
.qty-btn-plus:active {
    background: rgba(0, 0, 0, 0.15);
}

.qty-val {
    font-weight: 900;
    font-size: 0.85rem;
    color: #000;
    min-width: 20px;
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px 4px;
}

/* ==========================================
   COMPACT VIEW
   ========================================== */
.menu-grid.compact {
    gap: 12px;
}

.menu-grid.compact .product-card {
    flex-direction: row;
    border-radius: 20px;
}

.menu-grid.compact .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.menu-grid.compact .product-info {
    padding: 15px 20px;
}

.menu-grid.compact .product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.menu-grid.compact .product-info p {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
}

.menu-grid.compact .product-footer {
    margin-top: 10px;
}

.menu-grid.compact .price {
    font-size: 1.1rem;
}

.menu-grid.compact .add-btn {
    padding: 8px 16px;
    border-radius: 12px;
}

.menu-grid.compact .qty-control-wrapper {
    min-width: 90px;
    height: 36px;
    border-radius: 12px;
}

.menu-grid.compact .qty-val {
    line-height: 36px;
    font-size: 0.85rem;
}

.menu-grid.compact .qty-btn-minus,
.menu-grid.compact .qty-btn-plus {
    font-size: 1rem;
}

/* ==========================================
   CART BAR (bottom)
   ========================================== */
.cart-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--accent-color);
    color: #000;
    padding: 18px 28px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    transform: translateY(150px);
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    cursor: pointer;
}

.cart-bar.visible {
    transform: translateY(0);
}

.cart-info {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.cart-info h4 {
    font-size: 1.3rem;
    font-weight: 900;
}

.cart-info span {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.7;
}

.view-cart-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ==========================================
   CART OVERLAY
   ========================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(25px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 40px 20px 24px;
}

.cart-overlay.active {
    display: flex;
}

.cart-header {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
}

.close-btn {
    position: absolute;
    left: 0;
    font-size: 2rem;
    background: none;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    border: none;
}

/* Cart Items */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.cart-item-info {
    flex-grow: 1;
    text-align: left;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 800;
}

.cart-item-info small {
    color: var(--secondary-text);
    font-size: 0.8rem;
    opacity: 0.8;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qty-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:active {
    background: var(--accent-color);
    color: #000;
}

.qty-display {
    font-weight: 900;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-weight: 900;
    font-size: 1rem;
    white-space: nowrap;
}

/* Remove Item Button (✕) in Cart */
.remove-item-btn {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.25);
    color: #ff4444;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}

.remove-item-btn:active {
    background: rgba(255, 68, 68, 0.4);
    transform: scale(0.9);
}

/* ==========================================
   AUTH OVERLAY
   ========================================== */
.auth-card {
    width: 100%;
    max-width: 600px;
    margin: auto;
    text-align: center;
    position: relative;
}

.auth-card h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 900;
}

.auth-card .close-btn {
    top: 5px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.auth-form input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 18px 24px;
    border-radius: 20px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.auth-form input[type="date"] {
    color-scheme: dark;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif !important;
}

.auth-form input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.tg-row {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0 24px;
}

#tgSymbol {
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.2rem;
    margin-right: 10px;
}

.tg-row input {
    border: none;
    background: none;
    padding: 18px 0;
    flex-grow: 1;
}

.welcome-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    padding: 8px 24px 0;
    text-align: left;
    display: none;
}

/* Order Comment */
.order-comment-section {
    padding: 15px 0;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.order-comment-section textarea {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 18px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.order-comment-section textarea:focus {
    border-color: var(--accent-color);
}

.order-comment-section textarea::placeholder {
    color: var(--secondary-text);
}

/* GDPR Consent */
.gdpr-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--secondary-text);
    cursor: pointer;
    text-align: left;
    padding: 5px 0;
}

.gdpr-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    background: white;
    cursor: pointer;
}

/* Location Share Button */
.loc-share-btn {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--secondary-text);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    width: 100%;
    transition: 0.2s;
    font-family: var(--font-body);
}

.loc-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ==========================================
   BADGES
   ========================================== */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
}

.product-badge.pin {
    background: #FFD700;
    color: #000;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.product-badge.sale {
    background: #FF4444;
    color: #FFF;
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.4);
}

/* Discount Prices */
.price-old {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: #888;
    margin-right: 6px;
    font-weight: 500;
}

.price.new {
    color: #FF4444;
}

/* ==========================================
   LAST ORDER BANNER
   ========================================== */
.last-order-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 24px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(255, 204, 0, 0.05));
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.last-order-banner button {
    background: var(--accent-color);
    color: #000;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ==========================================
   CART SUMMARY & CHECKOUT
   ========================================== */
.cart-summary {
    padding-top: 20px;
    border-top: 2px solid var(--accent-color);
}

.checkout-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 30px auto 0;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 100px;
    font-weight: 950;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    text-align: center;
    padding: 40px 24px 20px;
    color: var(--secondary-text);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   DESKTOP ADJUSTMENTS
   ========================================== */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .logo-container {
        height: 80px;
    }

    .main-logo {
        height: 100%;
    }

    .cart-bar {
        width: 100%;
        max-width: 380px;
        padding: 18px 28px;
        left: 50%;
        transform: translate(-50%, 150px);
        right: auto;
        border-radius: 24px;
    }

    .view-cart-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        border-radius: 16px;
    }

    .cart-bar.visible {
        transform: translate(-50%, 0);
    }

    .categories {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 20px 0;
    }

    header {
        backdrop-filter: blur(20px);
    }

    .add-btn {
        padding: 14px 30px;
    }

    .cart-overlay {
        padding: 80px 0;
    }

    .cart-header,
    .cart-items,
    .cart-summary {
        width: 100%;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .cart-item {
        padding: 22px 0;
    }

    .cart-header .close-btn {
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }
}

@media (min-width: 1200px) {
    .logo-container {
        height: 110px;
    }

    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu-grid.compact {
        grid-template-columns: repeat(3, 1fr);
    }
}