/* ============================================================
   GO — Food Delivery · New Design System
   ============================================================ */
:root {
    --orange: #ff7a00;
    --red: #ff2d55;
    --brand: linear-gradient(135deg, #ff7a00 0%, #ff2d55 100%);
    --brand-soft: linear-gradient(135deg, #fff1e6 0%, #ffe6ec 100%);
    --gold: #ffc043;
    --ink: #1a1320;
    --muted: #8a8194;
    --text-light: #8a8194;
    --bg: #fff8f2;
    --card: #ffffff;
    --line: #f0e7df;
    --dark-3: #2a2233;
    --shadow-sm: 0 4px 14px rgba(26, 19, 32, .06);
    --shadow: 0 12px 32px rgba(255, 76, 41, .12);
    --shadow-lg: 0 24px 60px rgba(26, 19, 32, .14);
    --radius: 22px;
    --radius-sm: 14px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

main { min-height: 60vh; padding-bottom: 50px; }

/* ===================== NAVBAR ===================== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 900; }
.logo-icon { font-size: 1.7rem; line-height: 1; }
.logo-box {
    font-size: 1.5rem; font-weight: 900; letter-spacing: 1px;
    background: var(--brand); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a {
    padding: 9px 15px; border-radius: 999px; font-weight: 600;
    font-size: .94rem; color: #5a5163; transition: .18s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--ink); }
.nav-links a.active { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cart {
    position: relative; width: 46px; height: 46px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 50%;
    font-size: 1.15rem; transition: .18s;
}
.nav-cart:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.badge-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
    padding: 0 5px; background: var(--red); color: #fff; font-size: .72rem;
    font-weight: 800; border-radius: 999px; display: grid; place-items: center;
    border: 2px solid #fff;
}
.nav-order-btn {
    background: var(--brand); color: #fff; font-weight: 700; font-size: .92rem;
    padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow);
    transition: .2s; white-space: nowrap;
}
.nav-order-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ===================== HERO ===================== */
.hero {
    margin: 26px 0 10px; border-radius: 30px; overflow: hidden;
    background: var(--brand); color: #fff; position: relative;
    box-shadow: var(--shadow-lg);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 85% 15%, rgba(255,255,255,.25), transparent 40%),
      radial-gradient(circle at 10% 90%, rgba(0,0,0,.12), transparent 45%);
}
.hero-slide {
    position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
    gap: 20px; align-items: center; padding: 48px 50px;
}
.hero-text h1 { font-size: 3rem; font-weight: 900; line-height: 1.08; letter-spacing: -1px; }
.hero-text .gold { color: var(--gold); }
.hero-text p { margin: 16px 0 26px; font-size: 1.08rem; opacity: .92; max-width: 460px; }
.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--red); font-weight: 800; font-size: 1rem;
    padding: 15px 28px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: .2s;
}
.hero-btn:hover { transform: translateY(-3px) scale(1.02); }
.hero-img { display: grid; place-items: center; }
.hero-img img {
    width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover;
    border-radius: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
    transform: rotate(3deg); transition: .4s;
}
.hero-img img:hover { transform: rotate(0) scale(1.03); }

/* ===================== CATEGORY TABS ===================== */
.cat-section { margin: 30px 0 10px; }
.cat-tabs { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-width: 110px; padding: 18px 16px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: .2s; font-weight: 700; font-size: .9rem;
}
.cat-tab:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); }
.cat-emoji { font-size: 2rem; line-height: 1; }
.cat-name { color: #4a414f; }

/* ===================== SECTION TITLE ===================== */
.section-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 20px; }
.section-title .deco { font-size: 1.4rem; }
.section-title h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.5px; }
.section-title .see-all {
    margin-left: auto; color: var(--red); font-weight: 700; font-size: .92rem;
}
.section-title .see-all:hover { text-decoration: underline; }

/* ===================== PRODUCT CARDS ===================== */
.products-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
    gap: 18px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none;
}
.products-row::-webkit-scrollbar { display: none; }
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; margin-top: 8px;
}
.p-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s; display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--brand-soft); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.p-card:hover .img-wrap img { transform: scale(1.07); }
.disc {
    position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
    font-size: .78rem; font-weight: 800; padding: 5px 11px; border-radius: 999px;
    box-shadow: var(--shadow);
}
.p-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-body h4 { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.p-price { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.p-price .now { font-size: 1.12rem; font-weight: 900; color: var(--ink); }
.p-price .now::after { content: " so'm"; font-size: .68rem; font-weight: 600; color: var(--muted); }
.p-price .old { display: block; font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.add-btn, .no-image { font-family: inherit; }
.add-btn {
    background: var(--brand); color: #fff; border: none; cursor: pointer;
    font-weight: 700; font-size: .85rem; padding: 10px 16px; border-radius: 999px;
    transition: .18s; white-space: nowrap;
}
.add-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ===================== PROMO CARDS (home) ===================== */
.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    padding: 30px; color: #fff; display: flex; align-items: center;
    justify-content: space-between; min-height: 190px; box-shadow: var(--shadow);
}
.promo-card.red-bg { background: linear-gradient(135deg, #ff2d55, #b5179e); }
.promo-card.gold-bg { background: linear-gradient(135deg, #ff7a00, #ffc043); }
.promo-text .big { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.promo-text h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.promo-text p { font-size: .9rem; opacity: .92; margin-bottom: 14px; max-width: 230px; }
.promo-btn {
    background: #fff; color: var(--ink); font-weight: 800; font-size: .85rem;
    padding: 10px 18px; border-radius: 999px; display: inline-block; transition: .2s;
}
.promo-btn:hover { transform: translateY(-2px); }
.promo-img img {
    width: 130px; height: 130px; object-fit: cover; border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: rotate(-4deg);
}
.sparkles .promo-sparkle { position: absolute; font-size: 1.3rem; animation: float 3s ease-in-out infinite; }
.promo-sparkle.s1 { top: 14px; right: 20px; } .promo-sparkle.s2 { bottom: 16px; left: 24px; animation-delay: 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===================== ABOUT ===================== */
.about-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-card img { width: 100%; height: 300px; object-fit: cover; }
.about-overlay {
    position: absolute; inset: 0; padding: 30px;
    background: linear-gradient(0deg, rgba(26,19,32,.85), rgba(26,19,32,.15));
    color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.about-overlay h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.about-overlay p { max-width: 560px; opacity: .92; }

/* ===================== MENU PAGE ===================== */
.menu-header { text-align: center; margin: 34px 0 8px; }
.menu-header h1 { font-size: 2.1rem; font-weight: 900; letter-spacing: -.5px; }
.menu-header .deco { color: var(--gold); }
.menu-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 28px; }
.menu-tab {
    padding: 10px 18px; border-radius: 999px; background: var(--card);
    border: 1px solid var(--line); font-weight: 700; font-size: .9rem; transition: .18s;
}
.menu-tab:hover { border-color: var(--orange); color: var(--orange); }
.menu-tab.active { background: var(--brand); color: #fff; border-color: transparent; box-shadow: var(--shadow); }

/* ===================== PRODUCT DETAIL ===================== */
.pd-page { margin-top: 26px; }
.pd-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 28px; padding: 26px; box-shadow: var(--shadow-sm);
}
.pd-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; }
.pd-body { display: flex; flex-direction: column; }
.pd-body h1 { font-size: 2.1rem; font-weight: 900; letter-spacing: -.5px; }
.pd-desc { color: #5a5163; margin: 14px 0 20px; font-size: 1.02rem; }
.pd-price { font-size: 2rem; font-weight: 900; color: var(--red); }
.pd-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pd-qty { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.pd-qty button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; font-size: 1.2rem; cursor: pointer; transition: .15s; font-weight: 700;
}
.pd-qty button:hover { background: var(--brand-soft); border-color: var(--orange); }
.qty-num { font-size: 1.3rem; font-weight: 800; min-width: 28px; text-align: center; }
.qty-type { width: 44px; height: 44px; }
.qty-type.active { background: var(--brand) !important; color: #fff; border-color: transparent !important; }
.pd-add-btn {
    background: var(--brand); color: #fff; border: none; cursor: pointer;
    font-weight: 800; font-size: 1.05rem; padding: 16px; border-radius: 16px;
    box-shadow: var(--shadow); transition: .2s;
}
.pd-add-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ===================== CART ===================== */
.cart-page, .checkout-page, .promos-page, .profile-page { max-width: 760px; margin: 30px auto 0; }
.cart-title { font-size: 1.9rem; font-weight: 900; margin-bottom: 20px; }
.cart-card {
    display: flex; align-items: center; gap: 16px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
    margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.cart-img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.cart-info { flex: 1; } .cart-info h4 { font-size: 1rem; font-weight: 700; }
.cart-info p { color: var(--muted); font-size: .88rem; }
.cart-price { font-weight: 900; }
.cart-remove { background: none; border: none; color: var(--red); font-weight: 600; cursor: pointer; font-size: .82rem; margin-top: 4px; }
.cart-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin: 8px 0 16px;
}
.total-label { font-weight: 700; } .total-price { font-size: 1.5rem; font-weight: 900; color: var(--red); }
.cart-checkout-btn, .checkout-btn {
    display: block; text-align: center; background: var(--brand); color: #fff;
    font-weight: 800; font-size: 1.05rem; padding: 16px; border-radius: 16px;
    box-shadow: var(--shadow); transition: .2s; border: none; width: 100%; cursor: pointer;
}
.cart-checkout-btn:hover, .checkout-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .empty-icon { font-size: 3.5rem; margin-bottom: 12px; }

/* ===================== FORMS / CHECKOUT / PROFILE ===================== */
.form-card, .profile-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.form-card h2, .profile-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #4a414f; }
.required { color: var(--red); }
.form-input, .form-select {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: .95rem; background: #fff; transition: .15s;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 10px; border-top: 2px dashed var(--line); }
.t-label { font-weight: 700; } .t-price { font-size: 1.3rem; font-weight: 900; color: var(--red); }
.profile-btns { display: flex; gap: 12px; margin-top: 8px; }
.btn { flex: 1; padding: 14px; border-radius: 12px; border: none; font-weight: 800; cursor: pointer; font-size: .95rem; transition: .18s; }
.btn-save { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-save:hover { transform: translateY(-2px); }
.btn-logout { background: #f4eef0; color: var(--ink); }
.btn-logout:hover { background: #ece4e7; }

/* ===================== PROMOS PAGE BANNERS ===================== */
.promo-banner {
    position: relative; overflow: hidden; border-radius: 26px; padding: 40px;
    color: #fff; display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; box-shadow: var(--shadow); min-height: 210px;
}
.promo-banner.big-red { background: linear-gradient(135deg, #ff2d55, #9d0208); }
.promo-banner.big-gold { background: linear-gradient(135deg, #ff7a00, #ffc043); }
.promo-banner .sparkles { position: absolute; inset: 0; pointer-events: none; }
.promo-banner .sparkles span { position: absolute; font-size: 1.4rem; opacity: .8; }
.promo-banner .sparkles span:nth-child(1) { top: 18px; left: 30px; animation: float 3s infinite; }
.promo-banner .sparkles span:nth-child(2) { top: 50%; right: 40px; animation: float 3.5s infinite .5s; }
.promo-banner .sparkles span:nth-child(3) { bottom: 20px; left: 50%; animation: float 4s infinite 1s; }
.pb-text { position: relative; z-index: 1; }
.pb-big { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.pb-text h3 { font-size: 1.5rem; font-weight: 800; }
.pb-text p { margin: 10px 0 16px; opacity: .92; }
.pb-btn { background: #fff; color: var(--ink); font-weight: 800; padding: 12px 24px; border-radius: 999px; display: inline-block; transition: .2s; }
.pb-btn:hover { transform: translateY(-2px); }
.pb-img img { width: 160px; height: 160px; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 36px rgba(0,0,0,.3); transform: rotate(-5deg); }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #d8cfdd; margin-top: 60px; padding: 50px 0 26px; }
.footer .logo-box { font-size: 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer-brand p { margin-top: 12px; max-width: 320px; font-size: .92rem; opacity: .8; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .92rem; opacity: .82; transition: .15s; }
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: .86rem; opacity: .75;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: .18s; }
.footer-social a:hover { background: var(--brand); transform: translateY(-2px); }

/* ===================== ANIMATIONS ===================== */
.fade-up { opacity: 0; transform: translateY(24px); transition: .5s cubic-bezier(.2,.7,.3,1); }
.fade-up.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
    .hero-slide { grid-template-columns: 1fr; padding: 34px 26px; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; } .hero-text p { margin-inline: auto; }
    .hero-img { display: none; }
    .pd-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .nav-links {
        position: fixed; top: 70px; left: 0; right: 0; flex-direction: column;
        background: #fff; padding: 12px; gap: 6px; border-bottom: 1px solid var(--line);
        transform: translateY(-130%); transition: .25s; margin: 0;
    }
    .nav-links.open { transform: none; box-shadow: var(--shadow-lg); }
    .nav-toggle { display: block; }
    .nav-order-btn { display: none; }
    .promo-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 460px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 1.9rem; }
    .section-title h2 { font-size: 1.3rem; }
}
