:root {
    color-scheme: dark;
}

* {
    letter-spacing: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ffb3b1;
    outline-offset: 3px;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(91, 64, 63, 0.28);
    background: rgba(19, 19, 19, 0.88);
    padding: 1rem;
    backdrop-filter: blur(14px);
}

.nav-link {
    border-bottom: 2px solid transparent;
    padding: 0.4rem 0;
    color: #e4bebc;
    font-weight: 600;
    transition: color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    border-color: #ff535b;
    color: #ffb3b1;
}

.icon-button,
.add-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #ffb3b1;
    transition: background 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.add-icon:hover {
    background: #353534;
}

.icon-button:active,
.add-icon:active,
.primary-button:active,
.secondary-button:active {
    transform: scale(0.96);
}

.cart-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    display: grid;
    min-width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border: 2px solid #131313;
    border-radius: 9999px;
    background: #ff535b;
    padding: 0 0.25rem;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
    background: #ff535b;
    color: #2b0005;
    box-shadow: 0 0 22px rgba(255, 83, 91, 0.2);
}

.primary-button:hover {
    background: #ffb3b1;
}

.secondary-button {
    border: 1px solid rgba(171, 137, 135, 0.35);
    background: #201f1f;
    color: #ffb3b1;
}

.secondary-button:hover {
    background: #353534;
}

.primary-button:disabled,
.add-icon:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.section-shell {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-kicker {
    color: #ffb68b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.section-title {
    margin-top: 0.35rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    font-weight: 800;
}

.section-copy {
    max-width: 38rem;
    margin-top: 0.5rem;
    color: #e4bebc;
    line-height: 1.7;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: min(760px, calc(100vh - 72px));
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuBSvdk_uKI6ZgqJKZPYSM1LHdqV1Y155FxpNpV5Tt6NxIB1v5RxLklnlHY7tZOVwlsvK3uAGUlxZ3F6vSGsx0zcJiUXGEIy7xsPIsn6i62asJsMWk8eDzx0DrHJTvjOkb8i75HaLf70so4epBidS4X8Cym15MBLZg-NABeQA4swOb85iETq_ZmBLbmEM0cNYTYy6Fa56w2i0RSYKlrS02UdVgdfstgEvcpXr4cuUeU_FL41-qT8zS0c");
    background-position: center;
    background-size: cover;
    opacity: 0.48;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #131313 4%, rgba(19, 19, 19, 0.72) 44%, rgba(19, 19, 19, 0.18)), linear-gradient(0deg, #131313, transparent 50%);
}

.hero-dish {
    width: min(36vw, 500px);
    aspect-ratio: 1;
    justify-self: center;
    border: 1px solid rgba(255, 182, 139, 0.25);
    border-radius: 50%;
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuAGTfr9oLDpksFYUZsl-W0hKpim-yA8RltvQjCFe91lR5h_MrsAMDKtM3OjMd6QcztkLNgaym8wBlmPAcoZSu7glSabMpBnyoXDIvrGEz2MfS4t-NAdDegpeIoB0Nd5gI-IZfQn24zCBxnGfNOg8Dpp5xoCjtkFIfgMvjj_Aj_TTX8RGKmjLcxRIMgOWrr8e-CGkEO345jleLps-03V89Y87WTjJ4SExTPl_kUcgHSYi6YI06S3Po3e");
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 70px rgba(255, 127, 28, 0.18);
}

.product-card,
.menu-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: #2d1b10;
}

.product-card {
    min-height: 205px;
}

.product-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14, 14, 14, 0.98), rgba(14, 14, 14, 0.08) 72%);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    border-radius: 9999px;
    background: #e9c400;
    padding: 0.35rem 0.65rem;
    color: #221b00;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.add-icon {
    background: rgba(255, 179, 177, 0.16);
}

.category-tile {
    position: relative;
    display: flex;
    aspect-ratio: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    overflow: hidden;
    border: 1px solid rgba(91, 64, 63, 0.32);
    border-radius: 1rem;
    background-position: center;
    background-size: cover;
    text-align: center;
    transition: border-color 160ms ease, transform 160ms ease;
}

.category-tile:hover {
    border-color: #ff535b;
    transform: translateY(-2px);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.72);
}

.track-panel {
    display: grid;
    align-items: center;
    gap: 1rem 2rem;
    border: 1px solid rgba(91, 64, 63, 0.35);
    border-radius: 1rem;
    background: #1c1b1b;
    padding: 1.5rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-row > span {
    color: #ffb68b;
}

.info-row strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.info-row p {
    margin-top: 0.25rem;
    color: #e4bebc;
    font-size: 0.9rem;
    line-height: 1.55;
}

.store-map {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(91, 64, 63, 0.4);
    border-radius: 1rem;
    background: #201f1f;
}

.mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(91, 64, 63, 0.4);
    background: rgba(32, 31, 31, 0.96);
    padding: 0.55rem 0.5rem max(0.55rem, env(safe-area-inset-bottom));
    backdrop-filter: blur(14px);
}

.mobile-nav-item {
    display: flex;
    min-width: 0;
    min-height: 3.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border-radius: 0.5rem;
    color: #e4bebc;
    font-size: 0.68rem;
}

.mobile-nav-item.is-active {
    background: rgba(255, 83, 91, 0.15);
    color: #ffb3b1;
}

.cart-shell,
.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    visibility: hidden;
    opacity: 0;
    transition: visibility 180ms ease, opacity 180ms ease;
}

.cart-shell.is-open,
.modal-shell.is-open {
    visibility: visible;
    opacity: 1;
}

.cart-backdrop,
.modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(5px);
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: min(100%, 430px);
    height: 100%;
    grid-template-rows: auto 1fr auto;
    background: #201f1f;
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.cart-shell.is-open .cart-drawer {
    transform: translateX(0);
}

.cart-items {
    overflow-y: auto;
    padding: 1rem;
}

.cart-line {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(91, 64, 63, 0.25);
    padding: 1rem 0;
}

.cart-line:first-child {
    padding-top: 0;
}

.cart-line img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.cart-line-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.cart-line-controls button {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 50%;
    background: #353534;
}

.cart-empty,
.empty-state {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.toast {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 100;
    visibility: hidden;
    max-width: min(24rem, calc(100vw - 2rem));
    border-left: 4px solid #ff535b;
    border-radius: 0.5rem;
    background: #2a2a2a;
    padding: 0.85rem 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 180ms ease;
}

.toast.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.category-nav {
    position: sticky;
    top: 72px;
    z-index: 35;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(91, 64, 63, 0.35);
    background: rgba(19, 19, 19, 0.95);
    padding: 1rem 0;
    scrollbar-width: none;
    backdrop-filter: blur(12px);
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-link {
    flex: none;
    border-bottom: 2px solid transparent;
    padding: 0.4rem 0;
    color: #e4bebc;
    font-weight: 600;
}

.category-link:hover,
.category-link.is-active {
    border-color: #ff535b;
    color: #ffb3b1;
}

.menu-section {
    padding-top: 3.5rem;
}

.menu-card {
    display: flex;
    min-height: 440px;
    flex-direction: column;
}

.modal-shell {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.product-modal {
    position: relative;
    z-index: 2;
    width: min(100%, 600px);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    border-radius: 1rem 1rem 0 0;
    background: #2a2a2a;
    transform: translateY(100%);
    transition: transform 220ms ease;
}

.modal-shell.is-open .product-modal {
    transform: translateY(0);
}

.modal-handle {
    width: 3rem;
    height: 0.3rem;
    margin: 0.75rem auto 0;
    border-radius: 9999px;
    background: rgba(228, 190, 188, 0.35);
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(91, 64, 63, 0.55);
    border-radius: 0.5rem;
    padding: 0.8rem;
    cursor: pointer;
}

.option-row:has(input:checked) {
    border-color: #ffb3b1;
    background: rgba(255, 83, 91, 0.08);
}

.quantity-control {
    display: grid;
    width: 8.5rem;
    grid-template-columns: 2.5rem 3.5rem 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(91, 64, 63, 0.5);
    border-radius: 0.5rem;
    background: #353534;
}

.quantity-control button {
    display: grid;
    place-items: center;
}

.quantity-control input {
    border: 0;
    background: transparent;
    padding: 0.6rem 0;
    text-align: center;
}

.checkout-panel,
.order-summary {
    border: 1px solid rgba(91, 64, 63, 0.26);
    border-radius: 1rem;
    background: #1c1b1b;
    padding: 1.5rem;
}

.panel-title {
    margin-bottom: 1.25rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.choice-surface {
    display: flex;
    min-height: 6.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background: #201f1f;
    color: #e4bebc;
    cursor: pointer;
}

.choice-surface.horizontal {
    min-height: 4.5rem;
    flex-direction: row;
}

.peer:checked + .choice-surface {
    border-color: #ffb3b1;
    background: rgba(255, 83, 91, 0.1);
    color: #ffb3b1;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: #e5e2e1;
    font-size: 0.85rem;
    font-weight: 600;
}

.store-input {
    width: 100%;
    border: 1px solid rgba(91, 64, 63, 0.45) !important;
    border-radius: 0.5rem !important;
    background: #201f1f !important;
    padding: 0.75rem 0.9rem !important;
    color: #e5e2e1 !important;
    box-shadow: none !important;
}

.store-input:focus {
    border-color: #ffb3b1 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 179, 177, 0.15) !important;
}

.store-input::placeholder {
    color: rgba(228, 190, 188, 0.48);
}

.gcash-panel {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
    border: 1px solid rgba(91, 64, 63, 0.35);
    border-radius: 0.75rem;
    background: #201f1f;
    padding: 1.25rem;
}

.qr-placeholder {
    display: grid;
    width: 8rem;
    height: 8rem;
    flex: none;
    place-items: center;
    border-radius: 0.5rem;
    background: #e5e2e1;
    color: #131313;
}

.order-summary {
    position: sticky;
    top: 96px;
    background: rgba(45, 27, 16, 0.88);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: #e4bebc;
}

.success-mark {
    position: relative;
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border-radius: 50%;
    background: #ff7f1c;
    color: #602a00;
    box-shadow: 0 0 35px rgba(255, 127, 28, 0.35);
}

.order-timeline {
    position: relative;
    display: flex;
    max-width: 32rem;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem auto 0;
}

.order-timeline::before {
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 1.2rem;
    width: 2px;
    background: #353534;
    content: "";
}

.timeline-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1.25rem;
    align-items: start;
}

.timeline-step.pending {
    opacity: 0.46;
}

.timeline-dot {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 3px solid #131313;
    border-radius: 50%;
    background: #353534;
}

.timeline-step.done .timeline-dot {
    background: #ff7f1c;
    color: #602a00;
}

.timeline-step.active .timeline-dot {
    background: #ff535b;
    color: #5b000e;
    box-shadow: 0 0 22px rgba(255, 83, 91, 0.35);
}

.timeline-step.active .material-symbols-outlined {
    animation: spin 2.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .store-header { padding-right: 3rem; padding-left: 3rem; }
    .section-shell { padding: 5rem 3rem; }
    .track-panel { grid-template-columns: 1fr 1fr; padding: 2rem; }
    .product-modal { align-self: center; border-radius: 1rem; }
}

@media (max-width: 767px) {
    .hero-section { min-height: calc(100vh - 230px); }
    .hero-overlay { background: linear-gradient(0deg, #131313 2%, rgba(19, 19, 19, 0.64) 68%, rgba(19, 19, 19, 0.35)); }
    .section-shell { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .gcash-panel { flex-direction: column; }
    .qr-placeholder { width: 100%; height: 7rem; }
    .order-summary { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
