/* =====================================================
   GOLDEN PIZZA CAFE — STYLES
   ===================================================== */

:root {
  --white: #FFFFFF;
  --cream: #FFF8ED;
  --beige: #FCEEd2;
  --orange: #FF7A1A;
  --orange-dark: #E05D00;
  --gold: #FFB020;
  --text: #2B2118;
  --text-muted: #6B5A47;
  --line: #F0DFB8;
  --shadow: 0 10px 26px rgba(43, 33, 24, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 70px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

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

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 0 var(--orange-dark);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--beige); }
.btn-whatsapp {
  background: #33C455;
  color: #fff;
  box-shadow: 0 6px 0 #279A42;
}
.btn-whatsapp:hover { background: #2AA548; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 237, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--orange); }
.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav a:hover { color: var(--orange); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn { padding: 10px 16px; font-size: 0.85rem; }
.cart-badge {
  background: #fff;
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 1px 7px;
  margin-left: 4px;
  font-weight: 700;
}
.hamburger {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text);
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--beige) 0%, var(--cream) 100%);
  padding: 50px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.subheading {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  font-weight: 500;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: floatIn 0.8s ease;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Offers ---------------- */
.offers { padding: 40px 0; }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.offer-card:hover { transform: translateY(-4px); }
.offer-icon { font-size: 2rem; margin-bottom: 10px; }
.offer-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.offer-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------------- Menu ---------------- */
.menu-section { padding: 50px 0; }
.menu-controls { max-width: 760px; margin: 0 auto 10px; }
.search-box {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 16px;
}
.search-box:focus { outline: none; border-color: var(--orange); }
.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.category-bar::-webkit-scrollbar { height: 5px; }
.category-btn {
  flex-shrink: 0;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
}
.category-btn.active {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: #fff;
}
.result-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 14px 0;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.food-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.food-card:hover { transform: translateY(-4px); }
.food-card-img {
  height: 90px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.food-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.food-card-name { font-weight: 700; font-size: 1rem; }
.food-card-price { color: var(--orange-dark); font-weight: 700; font-size: 1.05rem; }
.food-card-sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.size-chip {
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}
.size-chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.food-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.add-btn {
  flex: 1;
  background: var(--gold);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.add-btn:hover { background: var(--orange); color: #fff; }
.add-btn.added { background: #33C455; color: #fff; }
.wa-btn {
  background: #33C455;
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px;
  align-self: flex-start;
}
.qty-row button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--beige);
  font-weight: 700;
}
.empty-note {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  grid-column: 1 / -1;
  font-style: italic;
}

/* ---------------- About ---------------- */
.about { padding: 50px 0; background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.about-text .section-title { text-align: left; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list li { margin-bottom: 8px; font-weight: 500; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------------- Party Hall ---------------- */
.party { padding: 50px 0; }
.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.party-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.party-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- Gallery ---------------- */
.gallery { padding: 50px 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* ---------------- Contact ---------------- */
.contact { padding: 50px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 6px; font-size: 1rem; }
.contact-card a { color: var(--orange-dark); font-weight: 600; }
.contact-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--text);
  color: #F5E6C8;
  padding: 30px 0;
  text-align: center;
}
.footer .logo { color: #fff; justify-content: center; }
.footer .logo span { color: var(--gold); }
.footer p { margin-top: 8px; font-size: 0.85rem; opacity: 0.85; }
.footer-copy { margin-top: 14px; font-size: 0.78rem; opacity: 0.6; }

/* ---------------- Mobile sticky bar ---------------- */
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 150;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.mobile-bar.show { display: flex; }
.mobile-bar button {
  background: var(--gold);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ---------------- Overlay + Modals ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.modal.show { transform: translateX(0); }
.modal-lg { width: min(460px, 100vw); }
.modal-head {
  padding: 18px 20px;
  border-bottom: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}
.modal-head h3 { font-size: 1.15rem; font-weight: 700; }
.close-btn {
  background: var(--beige);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
}
.modal-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.modal-foot { padding: 16px 20px 20px; border-top: 2px dashed var(--line); background: var(--white); }

/* Cart lines */
.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 700; font-size: 0.9rem; }
.cart-line-meta { font-size: 0.78rem; color: var(--text-muted); }
.remove-link {
  background: none;
  border: none;
  color: #C1392B;
  font-size: 0.76rem;
  text-decoration: underline;
  padding: 0;
}
.cart-line-total { font-weight: 700; font-size: 0.88rem; min-width: 54px; text-align: right; }

.row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.92rem; }
.row.grand { font-size: 1.1rem; font-weight: 800; border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 10px; }

/* Checkout form */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--orange); }
.form-field.invalid input, .form-field.invalid textarea { border-color: #C1392B; }
.hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 5px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
}
.payment-option.selected { border-color: var(--orange); background: var(--beige); }
.payment-option input { accent-color: var(--orange); width: 18px; height: 18px; }

.upi-box {
  text-align: center;
  background: var(--beige);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}
.upi-box img { margin: 8px auto; border-radius: 8px; }
.upi-id-row { font-weight: 700; margin-top: 4px; }
.copy-btn {
  background: var(--white);
  border: 1.5px solid var(--text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-left: 6px;
}
.copy-btn.copied { background: #33C455; color: #fff; border-color: #279A42; }

.summary-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.summary-box h4 { margin-bottom: 8px; font-size: 0.95rem; }
.summary-item-line { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 3px 0; color: var(--text-muted); }

.error-banner {
  background: #FBE2DD;
  border: 1px solid #C1392B;
  color: #C1392B;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: none;
}
.error-banner.show { display: block; }

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 300;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .about-img { order: -1; }
}
@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .nav.show { display: flex; }
  .header-only { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 480px) {
  .modal, .modal-lg { width: 100vw; }
}
