:root {
    --panda-red: #df1f26;
    --panda-red-dark: #b4141a;
    --panda-black: #111111;
    --panda-ink: #1d1d1f;
    --panda-muted: #667085;
    --panda-surface: #ffffff;
    --panda-soft: #f6f7fb;
    --panda-soft-2: #eef1f7;
    --panda-line: rgba(17, 17, 17, 0.08);
    --panda-radius: 24px;
    --panda-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

html,
body {
    overflow-x: hidden;
}

body.panda-theme {
    font-family: "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(223, 31, 38, 0.08), transparent 28%),
        radial-gradient(circle at right top, rgba(15, 23, 42, 0.06), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    color: var(--panda-ink);
}

img {
    max-width: 100%;
}

.panda-main {
    min-height: calc(100vh - 220px);
}

.panda-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--panda-line);
}

.panda-logo {
    color: var(--panda-black);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.panda-logo span {
    color: var(--panda-red);
}

.panda-hamburger .navbar-toggler-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.panda-nav-shell {
    gap: 1rem;
}

.panda-nav-shell .nav-link {
    color: var(--panda-ink);
    font-weight: 600;
    padding-inline: 1rem;
}

.panda-nav-shell .nav-link:hover,
.panda-nav-shell .nav-link:focus,
.panda-bottom-nav a.is-active,
.panda-bottom-nav a:hover {
    color: var(--panda-red);
}

.panda-cart-button {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--panda-black);
    border: 1px solid var(--panda-line);
    border-radius: 999px;
    padding: .75rem 1rem;
    background: #fff;
    font-weight: 700;
}

.panda-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 999px;
    background: var(--panda-red);
    color: #fff;
    font-size: .85rem;
}

.panda-btn-primary,
.panda-btn-outline:hover {
    background: var(--panda-red);
    color: #fff;
    border-color: var(--panda-red);
}

.panda-btn-primary:hover,
.panda-btn-primary:focus {
    background: var(--panda-red-dark);
    border-color: var(--panda-red-dark);
    color: #fff;
}

.panda-btn-outline {
    border: 1px solid var(--panda-line);
    color: var(--panda-black);
    background: #fff;
}

.panda-btn-outline:hover,
.panda-btn-outline:focus {
    color: #fff;
}

.panda-panel,
.panda-hero-surface,
.panda-hero-card,
.panda-category-card,
.panda-restaurant-card,
.panda-stat-card,
.panda-section-card,
.panda-auth-card {
    background: var(--panda-surface);
    border-radius: var(--panda-radius);
    box-shadow: var(--panda-shadow);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.panda-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: rgba(223, 31, 38, 0.08);
    color: var(--panda-red);
    font-weight: 700;
}

.panda-display-title,
.panda-section-title {
    font-weight: 800;
    letter-spacing: -0.05em;
}

.panda-display-title {
    font-size: clamp(2.6rem, 5vw, 4.9rem);
    line-height: .95;
    margin-bottom: 1rem;
}

.panda-lead {
    font-size: 1.08rem;
    color: var(--panda-muted);
    max-width: 560px;
}

.panda-hero-section {
    padding: 2rem 0 1rem;
}

.panda-hero-surface {
    padding: 2rem;
}

.panda-search-panel {
    padding: .85rem;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.panda-input,
.panda-search-panel .form-control {
    border-radius: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    min-height: 54px;
    padding-inline: 1rem;
    box-shadow: none;
}

.panda-input:focus,
.panda-search-panel .form-control:focus {
    border-color: rgba(223, 31, 38, 0.35);
    box-shadow: 0 0 0 .2rem rgba(223, 31, 38, 0.12);
}

.panda-hero-visual {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--panda-radius) - 4px);
    background: linear-gradient(145deg, #13151d 0%, #2e3343 100%);
    min-height: 460px;
    padding: 1rem;
}

.panda-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    border-radius: 22px;
}

.panda-hero-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    color: var(--panda-black);
    border-radius: 999px;
    padding: .7rem 1rem;
    font-weight: 700;
}

.panda-pill,
.panda-page-pill {
    display: inline-flex;
    align-items: center;
    padding: .48rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--panda-line);
    background: #fff;
    color: var(--panda-muted);
    font-weight: 600;
}

.panda-page-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.panda-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1.5rem;
}

.panda-category-card {
    padding: 1.25rem;
    text-align: left;
    height: 100%;
}

.panda-category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .35rem;
}

.panda-category-card p {
    margin: 0;
    color: var(--panda-muted);
    font-size: .92rem;
}

.panda-category-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(223, 31, 38, 0.12), rgba(223, 31, 38, 0.02));
    color: var(--panda-red);
    font-weight: 800;
    margin-bottom: 1rem;
}

.panda-offer-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #df1f26 0%, #111111 100%);
    box-shadow: var(--panda-shadow);
}

.panda-restaurant-card {
    overflow: hidden;
}

.panda-restaurant-card img,
.panda-media-thumb {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.panda-restaurant-card-body {
    padding: 1.4rem;
}

.panda-card-meta {
    color: var(--panda-muted);
    font-size: .95rem;
}

.panda-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(31, 181, 95, 0.12);
    color: #1f8a4d;
    font-weight: 700;
    font-size: .85rem;
}

.panda-page-banner {
    padding: 4.5rem 0 2.5rem;
    background: linear-gradient(135deg, #111111 0%, #2d3447 100%);
    color: #fff;
}

.panda-page-banner-light {
    background: transparent;
    color: var(--panda-black);
    padding-bottom: 1rem;
}

.panda-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.panda-food-card {
    padding: 1.35rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--panda-line);
    box-shadow: var(--panda-shadow);
}

.panda-food-card .price {
    color: var(--panda-red);
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

.panda-mini-product,
.panda-summary-row,
.panda-detail-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--panda-line);
}

.panda-mini-product:first-child,
.panda-summary-row:first-child,
.panda-detail-card:first-child {
    padding-top: 0;
}

.panda-mini-product:last-child,
.panda-summary-row:last-child,
.panda-detail-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.panda-summary-row.is-total {
    font-size: 1.05rem;
    font-weight: 800;
}

.panda-detail-card {
    background: var(--panda-soft);
    border: 0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    flex-direction: column;
}

.panda-detail-card span {
    color: var(--panda-muted);
    font-size: .9rem;
}

.panda-auth-shell {
    padding: 3rem 0 4rem;
}

.panda-auth-card {
    position: relative;
}

.panda-check {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    color: var(--panda-muted);
}

.panda-qty-input {
    width: 92px;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid var(--panda-line);
    text-align: center;
}

.panda-footer {
    margin-top: 3rem;
    background: #0f1117;
    color: rgba(255, 255, 255, 0.78);
}

.panda-footer a {
    color: #fff;
    text-decoration: none;
}

.panda-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--panda-line);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.panda-bottom-nav a {
    padding: .85rem .25rem calc(.85rem + env(safe-area-inset-bottom));
    text-align: center;
    color: var(--panda-muted);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
}

.panda-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 5.25rem;
    max-width: 460px;
    margin-left: auto;
    z-index: 1050;
}

.pagination {
    gap: .5rem;
}

.page-item .page-link {
    border-radius: 999px;
    border: 1px solid var(--panda-line);
    color: var(--panda-black);
}

.page-item.active .page-link {
    background: var(--panda-red);
    border-color: var(--panda-red);
}

@media (max-width: 991.98px) {
    .panda-nav-shell {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .panda-hero-surface {
        padding: 1.25rem;
    }

    .panda-display-title {
        font-size: clamp(2.15rem, 9vw, 3.4rem);
    }

    .panda-offer-banner {
        flex-direction: column;
        align-items: start;
    }

    .panda-footer {
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 575.98px) {
    .panda-hero-section {
        padding-top: 1rem;
    }

    .panda-page-banner {
        padding-top: 2.5rem;
    }

    .panda-search-panel {
        border-radius: 24px;
    }

    .panda-cart-button {
        padding-inline: .85rem;
    }

    .panda-cookie {
        bottom: 5.75rem;
    }
}

.panda-category-media,
.panda-card-banner,
.panda-feature-media,
.panda-food-card-media,
.panda-empty-media,
.panda-page-hero-image,
.panda-cart-thumb,
.panda-mini-product-thumb,
.panda-store-logo,
.panda-logo-chip,
.panda-category-chip {
    display: block;
    object-fit: cover;
}

.panda-category-media {
    margin: -1.25rem -1.25rem 1rem;
    height: 120px;
    overflow: hidden;
    border-radius: var(--panda-radius) var(--panda-radius) 20px 20px;
}

.panda-category-media img,
.panda-card-banner,
.panda-feature-media,
.panda-food-card-media,
.panda-page-hero-image {
    width: 100%;
    height: 100%;
}

.panda-card-banner,
.panda-feature-media,
.panda-page-hero-image {
    border-radius: 22px;
}

.panda-card-banner {
    height: 170px;
}

.panda-feature-media {
    min-height: 220px;
    max-height: 360px;
}

.panda-category-icon img,
.panda-category-chip {
    width: 100%;
    height: 100%;
}

.panda-logo-chip {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fff;
    padding: .25rem;
}

.panda-store-logo {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: #fff;
    padding: .4rem;
}

.panda-offer-banner {
    overflow: hidden;
    position: relative;
}

.panda-offer-banner img {
    width: 240px;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
    flex: 0 0 auto;
}

.panda-offer-content {
    flex: 1 1 auto;
}

.panda-gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.panda-gallery-strip img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 18px;
}

.panda-gallery-strip-large img {
    height: 180px;
}

.panda-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.panda-food-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.2rem;
    box-shadow: var(--panda-shadow);
    border: 1px solid rgba(255,255,255,.7);
}

.panda-food-card-media {
    width: 100%;
    height: 220px;
    border-radius: 22px;
    margin-bottom: 1rem;
}

.panda-empty-media {
    width: min(100%, 420px);
    margin-inline: auto;
    border-radius: 24px;
}

.panda-cart-thumb,
.panda-mini-product-thumb {
    border-radius: 18px;
    flex: 0 0 auto;
}

.panda-cart-thumb {
    width: 96px;
    height: 96px;
}

.panda-mini-product {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: .75rem;
}

.panda-mini-product-thumb {
    width: 64px;
    height: 64px;
}

.panda-category-chip {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

@media (max-width: 991.98px) {
    .panda-offer-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .panda-offer-banner img {
        width: 100%;
        height: 220px;
    }

    .panda-menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .panda-gallery-strip {
        grid-template-columns: 1fr;
    }

    .panda-gallery-strip img,
    .panda-gallery-strip-large img {
        height: 180px;
    }

    .panda-mini-product {
        grid-template-columns: 56px 1fr;
    }

    .panda-mini-product > strong {
        grid-column: 2;
    }

    .panda-cart-thumb {
        width: 72px;
        height: 72px;
    }
}

.panda-menu-shell {
    background:
        radial-gradient(circle at top right, rgba(223, 31, 38, .10), transparent 32%),
        linear-gradient(180deg, #fff 0%, #fbf6f4 100%);
}

.panda-menu-hero {
    position: sticky;
    top: 88px;
    z-index: 15;
}

.panda-menu-hero-banner {
    height: 280px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--panda-shadow);
}

.panda-menu-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panda-menu-hero-card {
    position: relative;
    margin: -72px 1.25rem 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 22px 50px rgba(17, 17, 17, .10);
}

.panda-menu-hero-logo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    box-shadow: 0 12px 28px rgba(17, 17, 17, .14);
    flex: 0 0 auto;
}

.panda-menu-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.panda-menu-meta-pill {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border: 1px solid var(--panda-line);
    border-radius: 22px;
    padding: .95rem 1rem;
}

.panda-menu-meta-pill strong,
.panda-menu-meta-pill span {
    display: block;
}

.panda-menu-meta-pill span:last-child {
    color: var(--panda-muted);
    font-size: .9rem;
}

.panda-menu-meta-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(223, 31, 38, .08);
    color: var(--panda-red);
    font-size: 1.15rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.panda-menu-tabs-wrap {
    position: sticky;
    top: 420px;
    z-index: 14;
}

.panda-menu-tabs {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding: .5rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 999px;
    box-shadow: 0 18px 34px rgba(17, 17, 17, .08);
    scrollbar-width: none;
}

.panda-menu-tabs::-webkit-scrollbar {
    display: none;
}

.panda-menu-tab {
    white-space: nowrap;
    text-decoration: none;
    color: var(--panda-black);
    background: #fff;
    border: 1px solid var(--panda-line);
    border-radius: 999px;
    padding: .8rem 1.15rem;
    font-weight: 600;
    transition: .2s ease;
}

.panda-menu-tab.is-active,
.panda-menu-tab:hover {
    background: var(--panda-red);
    border-color: var(--panda-red);
    color: #fff;
}

.panda-menu-category {
    scroll-margin-top: 220px;
}

.panda-menu-category-head {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.panda-menu-list {
    display: grid;
    gap: 1rem;
}

.panda-menu-item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 1rem;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 28px;
    box-shadow: 0 16px 32px rgba(17, 17, 17, .06);
    padding: 1.2rem;
}

.panda-menu-item-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.panda-menu-item-media img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    border-radius: 22px;
}

.panda-menu-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    background: #111111;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
}

.panda-menu-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--panda-red);
}

.panda-menu-add-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: var(--panda-red);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 24px rgba(223, 31, 38, .26);
}

.panda-menu-add-btn:disabled {
    opacity: .55;
    box-shadow: none;
}

.panda-menu-cart-item {
    border-bottom: 1px solid rgba(17, 17, 17, .08);
    padding-bottom: .9rem;
}

.panda-menu-cart-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.panda-mobile-cartbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 82px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--panda-black);
    color: #fff;
    border-radius: 24px;
    padding: 1rem 1.1rem;
    box-shadow: 0 20px 42px rgba(17, 17, 17, .30);
}

.panda-addon-modal {
    border: 0;
    border-radius: 32px;
}

.panda-addon-head {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.panda-addon-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
}

.panda-addon-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--panda-line);
    border-radius: 22px;
    background: #fff9f8;
}

.panda-qty-stepper {
    display: inline-grid;
    grid-template-columns: 46px 88px 46px;
    align-items: center;
    gap: .55rem;
}

.panda-qty-stepper .btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--panda-line);
    border-radius: 16px;
    background: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.panda-addon-group {
    border: 1px solid var(--panda-line);
    border-radius: 24px;
    padding: 1.1rem;
    background: #fff;
}

.panda-addon-group.is-invalid {
    border-color: rgba(223, 31, 38, .55);
    box-shadow: 0 0 0 3px rgba(223, 31, 38, .08);
}

.panda-addon-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--panda-line);
    border-radius: 18px;
    padding: .9rem 1rem;
    cursor: pointer;
}

@media (max-width: 1199.98px) {
    .panda-menu-hero,
    .panda-menu-tabs-wrap {
        position: static;
    }

    .panda-menu-hero-card {
        margin-inline: 0;
    }
}

@media (max-width: 991.98px) {
    .panda-menu-hero-banner {
        height: 220px;
        border-radius: 28px;
    }

    .panda-menu-hero-card {
        margin-top: -46px;
        padding: 1.2rem;
    }

    .panda-menu-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panda-menu-item-card {
        grid-template-columns: minmax(0, 1fr) 122px;
    }

    .panda-addon-head {
        grid-template-columns: 1fr;
    }

    .panda-addon-image {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .panda-menu-hero-logo {
        width: 78px;
        height: 78px;
    }

    .panda-menu-meta-grid {
        grid-template-columns: 1fr;
    }

    .panda-menu-item-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .panda-menu-item-media {
        order: -1;
    }

    .panda-menu-item-media img {
        min-height: 180px;
    }

    .panda-addon-modal {
        border-radius: 0;
    }
}

@media (max-width: 575.98px) {
    .panda-menu-shell {
        padding-bottom: 6.5rem;
    }

    .panda-menu-hero-actions,
    .panda-menu-hero-actions .btn {
        width: 100%;
    }

    .panda-menu-tab {
        padding: .75rem 1rem;
        font-size: .95rem;
    }

    .panda-addon-qty {
        flex-direction: column;
        align-items: stretch;
    }

    .panda-qty-stepper {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        width: 100%;
    }
}
