/* =========================================================
   AYVA BURGERS
   STYLE.CSS
   ========================================================= */


/* =========================================================
   1. GLOBAL
   ========================================================= */

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


:root {

    --red: #e30613;
    --red-dark: #b9000b;
    --red-light: #fff0f1;

    --black: #111111;
    --black-2: #1b1b1b;
    --black-3: #252525;

    --white: #ffffff;

    --gray-1: #f5f5f5;
    --gray-2: #e8e8e8;
    --gray-3: #999999;
    --gray-4: #666666;

    --shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    --shadow-heavy:
        0 15px 40px rgba(0, 0, 0, 0.18);

    --radius-small: 10px;
    --radius: 16px;
    --radius-large: 22px;

    --transition:
        0.2s ease;

}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--gray-1);

    color: var(--black);

    min-height: 100vh;

    padding-bottom: 110px;

}


button,
input {

    font-family: inherit;

}


button {

    border: none;

    cursor: pointer;

}


img {

    max-width: 100%;

    display: block;

}


a {

    color: inherit;

    text-decoration: none;

}


.hidden {

    display: none !important;

}



/* =========================================================
   2. HEADER
   ========================================================= */

.header {

    width: 100%;

    height: 68px;

    background: var(--black);

    color: var(--white);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 16px;

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.18);

}


.logo {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 19px;

    font-weight: 800;

}


.logo-icon {

    font-size: 25px;

}


.logo-text {

    letter-spacing: -0.4px;

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}


.profile-btn {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: var(--black-3);

    color: var(--white);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 19px;

    transition:
        var(--transition);

}


.profile-btn:hover {

    background: var(--red);

}


.profile-btn:active {

    transform: scale(0.94);

}



/* =========================================================
   3. MAIN CONTAINER
   ========================================================= */

.container {

    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding:
        16px;

}



/* =========================================================
   4. LOCATION
   ========================================================= */

.location-section {

    margin-bottom: 16px;

}


.location {

    width: 100%;

    min-height: 65px;

    background: var(--white);

    border-radius: var(--radius);

    padding:
        10px 14px;

    display: flex;

    align-items: center;

    gap: 12px;

    text-align: left;

    box-shadow: var(--shadow);

    transition:
        var(--transition);

}


.location:hover {

    transform: translateY(-1px);

}


.location:active {

    transform: scale(0.99);

}


.location-icon {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    background: var(--red-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    flex-shrink: 0;

}


.location-content {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.location-content small {

    color: var(--gray-3);

    font-size: 11px;

}


.location-content strong {

    color: var(--black);

    font-size: 14px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.location-arrow {

    color: var(--gray-3);

    font-size: 25px;

    line-height: 1;

}



/* =========================================================
   5. CATEGORIES
   ========================================================= */

.categories-section {

    margin-bottom: 20px;

}


.categories {

    display: flex;

    gap: 9px;

    overflow-x: auto;

    padding:
        3px 1px 7px;

    scrollbar-width: none;

}


.categories::-webkit-scrollbar {

    display: none;

}


.category {

    flex-shrink: 0;

    min-height: 42px;

    padding:
        0 16px;

    border-radius: 50px;

    background: var(--white);

    color: var(--black);

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.06);

    transition:
        var(--transition);

}


.category:hover {

    background: #eeeeee;

}


.category:active {

    transform: scale(0.96);

}


/*
    JS active kategoriyaga
    .active class qo‘shadi.
*/

.category.active {

    background: var(--red);

    color: var(--white);

    box-shadow:
        0 6px 18px rgba(227, 6, 19, 0.25);

}



/* =========================================================
   6. MENU HEADER
   ========================================================= */

.menu {

    width: 100%;

}


.menu-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 15px;

}


.menu-header h1 {

    font-size: 23px;

    font-weight: 800;

    color: var(--black);

}



/* =========================================================
   7. PRODUCTS GRID
   ========================================================= */

.products {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}



/* =========================================================
   8. PRODUCT CARD
   ========================================================= */

.product-card {

    background: var(--white);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);

    transition:
        transform var(--transition),
        box-shadow var(--transition);

    position: relative;

}


.product-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.11);

}


.product-card:active {

    transform: scale(0.985);

}



/* =========================================================
   9. PRODUCT IMAGE
   ========================================================= */

.product-image {

    width: 100%;

    aspect-ratio: 1 / 0.88;

    object-fit: cover;

    background: #eeeeee;

}


.product-image-wrapper {

    position: relative;

    width: 100%;

}



/* =========================================================
   10. PRODUCT INFO
   ========================================================= */

.product-info {

    padding:
        11px;

}


.product-info h2 {

    font-size: 15px;

    line-height: 1.25;

    font-weight: 800;

    color: var(--black);

    margin-bottom: 5px;

}


.product-info p {

    color: var(--gray-4);

    font-size: 11px;

    line-height: 1.4;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 30px;

    margin-bottom: 10px;

}



/* =========================================================
   11. PRODUCT BOTTOM
   ========================================================= */

.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

}


.product-price {

    color: var(--black);

    font-size: 14px;

    font-weight: 800;

}


.product-add {

    width: 36px;

    height: 36px;

    border-radius: 11px;

    background: var(--red);

    color: var(--white);

    font-size: 24px;

    line-height: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        var(--transition);

}


.product-add:hover {

    background: var(--red-dark);

}


.product-add:active {

    transform: scale(0.9);

}



/* =========================================================
   12. EMPTY STATE
   ========================================================= */

.empty-state {

    background: var(--white);

    border-radius: var(--radius);

    padding:
        45px 20px;

    text-align: center;

    box-shadow: var(--shadow);

}


.empty-icon {

    font-size: 45px;

    margin-bottom: 12px;

}


.empty-state h2 {

    font-size: 18px;

    margin-bottom: 7px;

}


.empty-state p {

    color: var(--gray-3);

    font-size: 13px;

}



/* =========================================================
   13. CART BAR
   ========================================================= */

.cart {

    position: fixed;

    left: 12px;

    right: 12px;

    bottom: 12px;

    z-index: 2000;

    min-height: 65px;

    background: var(--black);

    color: var(--white);

    border-radius: 18px;

    padding:
        8px 8px 8px 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.28);

}


.cart-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.cart-label {

    color: #aaaaaa;

    font-size: 11px;

}


.cart-info strong {

    font-size: 13px;

}


.cart-total {

    display: flex;

    align-items: center;

    gap: 10px;

}


#total {

    font-size: 14px;

    font-weight: 800;

    white-space: nowrap;

}


#orderButton {

    min-height: 48px;

    padding:
        0 17px;

    border-radius: 13px;

    background: var(--red);

    color: var(--white);

    font-size: 13px;

    font-weight: 800;

    transition:
        var(--transition);

}


#orderButton:hover {

    background: var(--red-dark);

}


#orderButton:active {

    transform: scale(0.95);

}



/* =========================================================
   14. MODAL
   ========================================================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 3000;

    display: flex;

    align-items: flex-end;

    justify-content: center;

}


.modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.65);

    backdrop-filter:
        blur(3px);

}


.modal-content {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 550px;

    max-height: 90vh;

    overflow-y: auto;

    background: var(--white);

    border-radius:
        24px 24px 0 0;

    padding:
        24px 18px;

    box-shadow: var(--shadow-heavy);

    animation:
        modalUp 0.25s ease;

}


@keyframes modalUp {

    from {

        transform:
            translateY(100%);

        opacity: 0;

    }

    to {

        transform:
            translateY(0);

        opacity: 1;

    }

}


.modal-close {

    position: absolute;

    top: 13px;

    right: 13px;

    width: 36px;

    height: 36px;

    border-radius: 50%;

    background: var(--gray-1);

    color: var(--black);

    font-size: 24px;

    line-height: 1;

    display: flex;

    align-items: center;

    justify-content: center;

}


.modal-close:hover {

    background: var(--gray-2);

}



/* =========================================================
   15. LOCATION MODAL
   ========================================================= */

.modal-content h2 {

    font-size: 21px;

    margin-bottom: 8px;

}


.modal-content > p {

    color: var(--gray-4);

    font-size: 13px;

    margin-bottom: 20px;

}


.location-form {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.location-form input {

    width: 100%;

    height: 50px;

    border:
        1px solid var(--gray-2);

    border-radius: 13px;

    padding:
        0 14px;

    outline: none;

    font-size: 14px;

}


.location-form input:focus {

    border-color: var(--red);

}


.location-form button {

    height: 50px;

    border-radius: 13px;

    background: var(--red);

    color: var(--white);

    font-weight: 800;

    font-size: 14px;

}



/* =========================================================
   16. PROFILE MODAL
   ========================================================= */

.profile-modal {

    text-align: center;

}


.profile-icon {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: var(--red-light);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    margin:
        0 auto 15px;

}


.profile-modal h2 {

    margin-bottom: 5px;

}


.profile-modal p {

    margin-bottom: 20px;

}


.profile-actions button {

    width: 100%;

    height: 50px;

    border-radius: 13px;

    background: var(--red);

    color: var(--white);

    font-weight: 800;

}



/* =========================================================
   17. PRODUCT MODAL
   ========================================================= */

.product-modal {

    padding:
        0 0 20px;

    overflow: hidden;

}


.product-modal-image {

    width: 100%;

    aspect-ratio: 1 / 0.72;

    background: #eeeeee;

}


.product-modal-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.product-modal-info {

    padding:
        20px 18px 0;

}


.product-modal-info h2 {

    padding-right: 35px;

    margin-bottom: 8px;

}


.product-modal-info p {

    color: var(--gray-4);

    line-height: 1.5;

    font-size: 13px;

    margin-bottom: 15px;

}


#productModalPrice {

    display: block;

    color: var(--red);

    font-size: 19px;

    margin-bottom: 18px;

}



/* =========================================================
   18. QUANTITY
   ========================================================= */

.quantity {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-bottom: 17px;

}


.quantity button {

    width: 42px;

    height: 42px;

    border-radius: 12px;

    background: var(--gray-1);

    color: var(--black);

    font-size: 24px;

}


.quantity button:hover {

    background: var(--gray-2);

}


#quantity {

    min-width: 30px;

    text-align: center;

    font-size: 18px;

    font-weight: 800;

}


.add-to-cart {

    width: 100%;

    height: 52px;

    border-radius: 14px;

    background: var(--red);

    color: var(--white);

    font-size: 14px;

    font-weight: 800;

}


.add-to-cart:hover {

    background: var(--red-dark);

}



/* =========================================================
   19. CART MODAL
   ========================================================= */

.cart-modal {

    max-height: 88vh;

}


.cart-items {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 20px;

    margin-bottom: 20px;

}


.cart-item {

    background: var(--gray-1);

    border-radius: 14px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 10px;

}


.cart-item-image {

    width: 55px;

    height: 55px;

    border-radius: 10px;

    object-fit: cover;

}


.cart-item-info {

    flex: 1;

    min-width: 0;

}


.cart-item-info strong {

    display: block;

    font-size: 13px;

    margin-bottom: 4px;

}


.cart-item-info span {

    color: var(--gray-4);

    font-size: 12px;

}


.cart-item-quantity {

    font-weight: 800;

    font-size: 13px;

}


.cart-footer {

    border-top:
        1px solid var(--gray-2);

    padding-top: 15px;

}


.cart-summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 13px;

}


.cart-summary span {

    color: var(--gray-4);

    font-size: 13px;

}


.cart-summary strong {

    font-size: 18px;

}


.checkout-button {

    width: 100%;

    height: 52px;

    border-radius: 14px;

    background: var(--red);

    color: var(--white);

    font-size: 14px;

    font-weight: 800;

}



/* =========================================================
   20. LOADING
   ========================================================= */

.loading {

    position: fixed;

    inset: 0;

    z-index: 5000;

    background:
        rgba(255, 255, 255, 0.9);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

}


.loading-spinner {

    width: 40px;

    height: 40px;

    border:
        4px solid var(--gray-2);

    border-top-color:
        var(--red);

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;

}


@keyframes spin {

    to {

        transform:
            rotate(360deg);

    }

}


.loading span {

    color: var(--gray-4);

    font-size: 13px;

}



/* =========================================================
   21. TOAST
   ========================================================= */

.toast {

    position: fixed;

    left: 50%;

    bottom: 90px;

    transform:
        translateX(-50%);

    z-index: 6000;

    background: var(--black);

    color: var(--white);

    border-radius: 12px;

    padding:
        11px 16px;

    font-size: 13px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    white-space: nowrap;

    animation:
        toastIn 0.25s ease;

}


@keyframes toastIn {

    from {

        opacity: 0;

        transform:
            translate(-50%, 10px);

    }

    to {

        opacity: 1;

        transform:
            translate(-50%, 0);

    }

}



/* =========================================================
   22. TABLET
   ========================================================= */

@media (min-width: 600px) {

    .container {

        padding:
            20px;

    }


    .products {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;

    }


    .product-info {

        padding:
            13px;

    }


    .product-info h2 {

        font-size: 16px;

    }


    .product-info p {

        font-size: 12px;

    }


    .product-price {

        font-size: 15px;

    }


    .modal {

        align-items: center;

        padding:
            20px;

    }


    .modal-content {

        border-radius: 24px;

        max-height: 85vh;

    }

}



/* =========================================================
   23. DESKTOP
   ========================================================= */

@media (min-width: 900px) {

    body {

        padding-bottom: 30px;

    }


    .header {

        padding:
            0 calc((100% - 1060px) / 2);

    }


    .container {

        padding:
            25px 20px;

    }


    .products {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;

    }


    .product-card {

        border-radius: 18px;

    }


    .cart {

        left: 50%;

        right: auto;

        width: 520px;

        transform:
            translateX(-50%);

    }


    .menu-header h1 {

        font-size: 27px;

    }


    .category {

        font-size: 14px;

    }

}



/* =========================================================
   24. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .container {

        max-width: 1120px;

    }


    .products {

        grid-template-columns:
            repeat(5, minmax(0, 1fr));

    }

}



/* =========================================================
   25. ACCESSIBILITY
   ========================================================= */

button:focus-visible,
input:focus-visible,
a:focus-visible {

    outline:
        3px solid rgba(227, 6, 19, 0.35);

    outline-offset: 2px;

}



/* =========================================================
   26. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

    }

}

/* =========================================================
   TELEGRAM SYNC: manzillar, profil, buyurtmalar, savat
   ========================================================= */

.hint {
    font-size: 12px;
    color: var(--gray-3);
    margin-top: 10px;
    line-height: 1.4;
}

.secondary-btn {
    width: 100%;
    height: 46px;
    border-radius: 13px;
    background: var(--red-light);
    color: var(--red-dark);
    font-weight: 800;
    font-size: 14px;
    margin: 4px 0 12px;
    border: 0;
    cursor: pointer;
}

.link-btn {
    background: none;
    border: 0;
    color: var(--red);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 6px 0 10px;
    max-height: 32vh;
    overflow-y: auto;
}

.address-item {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-2);
    border-radius: 13px;
    overflow: hidden;
}

.address-item.active {
    border-color: var(--red);
    background: var(--red-light);
}

.address-pick {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

.address-pick small {
    color: var(--gray-3);
    font-size: 11px;
}

.address-delete {
    width: 46px;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 16px;
}

.notice {
    background: var(--red-light);
    color: var(--red-dark);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    margin: 8px 0;
    text-align: center;
}

.profile-icon {
    overflow: hidden;
}

.profile-rows {
    display: flex;
    flex-direction: column;
    margin: 12px 0;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-2);
    font-size: 13px;
}

.profile-row span {
    color: var(--gray-4);
    flex: 1;
}

.section-title {
    font-size: 15px;
    margin: 14px 0 8px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 34vh;
    overflow-y: auto;
}

.order-card {
    border: 1px solid var(--gray-2);
    border-radius: 13px;
    padding: 10px 12px;
    font-size: 13px;
}

.order-head,
.order-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.order-items {
    color: var(--gray-4);
    margin: 6px 0;
}

.order-foot {
    font-size: 12px;
    color: var(--gray-3);
}

.order-foot strong {
    color: var(--black);
}

.cart-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.cart-extra textarea {
    width: 100%;
    border: 1px solid var(--gray-2);
    border-radius: 13px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
}

.cart-extra textarea:focus {
    border-color: var(--red);
}

.bonus-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: var(--gray-1);
    padding: 10px 12px;
    border-radius: 12px;
}

.cart-lines > div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-4);
    padding: 3px 0;
}

.profile-rows,
.orders-list,
.order-card,
.cart-lines,
.address-list,
.cart-extra {
    text-align: left;
}

.profile-row span {
    text-align: left;
}

.profile-row strong {
    text-align: right;
}

.section-title {
    text-align: left;
}



/* =========================================================
   SEARCH
   ========================================================= */

.search-section {
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}

.search-box:focus-within {
    border-color: var(--red);
}

.search-icon {
    padding-left: 14px;
    font-size: 16px;
    line-height: 1;
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px; /* iOS zoom bo'lmasligi uchun */
    color: var(--black);
    -webkit-appearance: none;
    appearance: none;
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.search-clear {
    width: 36px;
    height: 36px;
    margin-right: 6px;
    border: none;
    border-radius: 50%;
    background: var(--gray-1);
    color: var(--gray-4);
    font-size: 14px;
    cursor: pointer;
}

.search-clear.hidden {
    display: none;
}



/* =========================================================
   PREMIUM DARK THEME
   Qora fon, qizil urg'u. Eski o'zgaruvchilar qayta
   belgilanadi, shuning uchun butun ilova avtomatik
   qorong'u bo'ladi; pastda faqat istisnolar tuzatilgan.
   ========================================================= */

:root {

    --bg: #0b0b0d;
    --surface: #17171a;
    --surface-2: #1f1f23;
    --line: #2a2a30;

    --red: #ff2d3b;
    --red-dark: #d81926;
    --red-light: rgba(255, 45, 59, 0.14);

    /* Eski nomlar → yangi qorong'u ma'no */
    --white: var(--surface);
    --black: #f4f4f6;
    --black-3: #26262b;

    --gray-1: var(--bg);
    --gray-2: var(--line);
    --gray-3: #8b8b95;
    --gray-4: #a9a9b3;

    --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-heavy: 0 -10px 50px rgba(0, 0, 0, 0.6);

    --radius-small: 12px;
    --radius: 18px;
    --radius-large: 24px;

    --font: "Manrope", "Inter", system-ui, -apple-system,
            "Segoe UI", Roboto, Arial, sans-serif;

    color-scheme: dark;
}


body {
    font-family: var(--font);
    background:
        radial-gradient(
            120% 60% at 50% -10%,
            rgba(255, 45, 59, 0.10),
            transparent 60%
        ),
        var(--bg);
    background-attachment: fixed;
    color: var(--black);
    -webkit-font-smoothing: antialiased;
}


/* ---------- HEADER ---------- */

.header {
    height: 64px;
    background: rgba(11, 11, 13, 0.82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    color: #fff;
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, #fff 30%, #ff8a92);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-btn {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: #fff;
}

.profile-btn:hover {
    background: var(--red);
    border-color: var(--red);
}


/* ---------- LOCATION ---------- */

.location {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    color: var(--black);
}

.location-icon {
    background: var(--red-light);
    color: var(--red);
    border-radius: 12px;
}


/* ---------- SEARCH ---------- */

.search-box {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
    border-radius: 16px;
}

.search-box:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 45, 59, 0.16);
}

.search-input::placeholder {
    color: var(--gray-3);
}

.search-clear {
    background: var(--surface-2);
    color: var(--gray-4);
}


/* ---------- CATEGORIES (yopishib turadi) ---------- */

.categories-section {
    position: sticky;
    top: 64px;
    z-index: 900;
    margin: 0 -16px 16px;
    padding: 8px 16px 4px;
    background: linear-gradient(
        to bottom,
        rgba(11, 11, 13, 0.94) 70%,
        rgba(11, 11, 13, 0)
    );
}

.category {
    background: var(--surface);
    color: var(--gray-4);
    border: 1px solid var(--line);
    box-shadow: none;
    min-height: 40px;
}

.category:hover {
    background: var(--surface-2);
}

.category.active {
    background: linear-gradient(135deg, #ff4753, #e0111f);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 45, 59, 0.35);
}


/* ---------- MENU / PRODUCTS ---------- */

.menu-header h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: none;
    animation: cardIn 0.45s ease both;
}

.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.10s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(n+5) { animation-delay: 0.18s; }

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

.product-card:hover {
    border-color: rgba(255, 45, 59, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.product-image {
    background: var(--surface-2);
    aspect-ratio: 1 / 0.9;
}

.product-image-wrapper::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
}

.product-info h2 {
    color: #fff;
}

.product-info p {
    color: var(--gray-3);
}

.product-price {
    color: #fff;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.product-add {
    background: linear-gradient(135deg, #ff4753, #e0111f);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(255, 45, 59, 0.35);
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line);
    box-shadow: none;
}


/* ---------- SKELETON (yuklanayotganda) ---------- */

.skeleton-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

.skeleton-img,
.skeleton-line {
    background: linear-gradient(
        100deg,
        var(--surface-2) 30%,
        #2a2a30 50%,
        var(--surface-2) 70%
    );
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}

.skeleton-img { aspect-ratio: 1 / 0.9; }

.skeleton-body { padding: 12px; }

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 9px;
}

.skeleton-line.short { width: 55%; }

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}


/* ---------- CART BAR ---------- */

.cart {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(28, 28, 32, 0.88);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65);
}

.cart-label { color: var(--gray-3); }

#total { color: #fff; }

#orderButton {
    background: linear-gradient(135deg, #ff4753, #e0111f);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(255, 45, 59, 0.4);
}


/* ---------- MODALLAR ---------- */

.modal-overlay {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.modal-content {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-radius: 28px 28px 0 0;
    color: var(--black);
}

.modal-content::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: -10px auto 14px;
    border-radius: 4px;
    background: var(--line);
}

.modal-close {
    background: var(--surface-2);
    color: var(--gray-4);
}

.product-modal-image {
    background: var(--surface-2);
}

.quantity {
    background: var(--surface-2);
}

.cart-item,
.address-item,
.order-card,
.bonus-toggle,
.cart-extra {
    background: var(--surface-2);
    border-color: var(--line);
}

.cart-summary,
.cart-footer {
    border-color: var(--line);
}

.add-to-cart,
.checkout-button,
.location-form button,
.profile-actions button {
    background: linear-gradient(135deg, #ff4753, #e0111f);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 45, 59, 0.32);
}

.secondary-btn {
    background: var(--red-light);
    color: #ff6b75;
}

input,
textarea,
select {
    background: var(--surface-2);
    color: var(--black);
    border-color: var(--line);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-3);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 45, 59, 0.16);
}


/* ---------- LOADING / TOAST ---------- */

.loading {
    background: rgba(11, 11, 13, 0.88);
    color: #fff;
}

.toast {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: #fff;
}


/* ---------- DESKTOP ---------- */

@media (min-width: 600px) {
    .categories-section {
        margin: 0 0 16px;
        padding-left: 0;
        padding-right: 0;
    }
}


/* ---------- TUZATISHLAR ---------- */

/* Qidiruv maydoni ichidagi input alohida ramka olmasin */
.search-input,
.search-input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Qidiruv paytida kategoriya "o'chiq" ko'rinadi */
body.searching .category.active {
    background: var(--surface);
    border-color: var(--line);
    color: var(--gray-4);
    box-shadow: none;
}

/* Rasmsiz mahsulot uchun chiroyli placeholder */
div.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, #2c2c33, var(--surface-2));
}

div.product-image::before {
    content: "🍔";
    font-size: 44px;
    opacity: 0.35;
}

/* Kategoriya soyasi kesilib qolmasin */
.categories {
    padding: 6px 4px 16px;
    margin-bottom: -10px;
}
