: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;
    }
}
