/* ========================================
   PRESTIGE PIZZA — Stylesheet
   Colors: Red #E31837 · Dark #111 · Orange #FF6B2B
   ======================================== */

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

:root {
  --red:      #e31837;
  --red-dark: #b5102a;
  --orange:   #ff6b2b;
  --dark:     #111111;
  --dark2:    #1c1c1c;
  --dark3:    #2a2a2a;
  --light:    #f5f5f5;
  --white:    #ffffff;
  --gray:     #888888;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,.18);
  --shadow-lg:0 12px 48px rgba(0,0,0,.28);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--dark); color: var(--white); overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 99px; }
::selection { background: var(--red); color: var(--white); }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(17,17,17,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { font-size: 1.6rem; }
.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--red);
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--red);
  color: var(--white);
  border: none; cursor: pointer;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background .2s, transform .2s;
  position: relative;
}
.cart-btn:hover { background: var(--red-dark); transform: scale(1.03); }
.cart-icon { font-size: 1.1rem; }
.cart-count {
  background: var(--white);
  color: var(--red);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 100px 80px 60px;
  background:
    radial-gradient(ellipse 60% 70% at 90% 50%, rgba(227,24,55,.12) 0%, transparent 60%),
    var(--dark);
  overflow: hidden;
}

.hero-eyebrow {
  font-size: .82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-accent { color: var(--red); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(227,24,55,.45);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(227,24,55,.55); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 15px 36px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.25);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* Hero image */
.hero-img {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-img img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 24px 80px rgba(227,24,55,.3), 0 0 0 8px rgba(227,24,55,.1);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.hero-badge {
  position: absolute;
  bottom: 30px; left: 20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-num { display: block; font-family: 'Anton', sans-serif; font-size: 2rem; line-height: 1; }
.badge-txt { font-size: .78rem; opacity: .85; letter-spacing: .5px; }

/* ========================================
   DEALS
   ======================================== */
.deals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.deal-card {
  padding: 36px 40px;
  border-right: 1px solid rgba(255,255,255,.06);
  background: var(--dark2);
  transition: background .2s;
}
.deal-card:last-child { border-right: none; }
.deal-card:hover { background: var(--dark3); }
.deal-card.hot { border-top: 3px solid var(--red); }
.deal-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.deal-card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  letter-spacing: .5px;
  color: var(--white);
  margin-bottom: 8px;
}
.deal-card p { color: var(--gray); font-size: .9rem; line-height: 1.6; }

/* ========================================
   MENU
   ======================================== */
.menu-section { padding: 80px 60px; background: var(--dark); }

.menu-header { text-align: center; margin-bottom: 56px; }
.menu-header h2 {
  font-family: 'Anton', sans-serif;
  font-size: 3rem;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}
.menu-header p { color: var(--gray); font-size: .95rem; }

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── PIZZA CARD ── */
.pizza-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pizza-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(227,24,55,.3);
}

.pizza-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a1a, #3a1010);
}
.pizza-img-wrap.img-fail {
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.pizza-img-wrap.img-fail::after { content: '🍕'; }
.pizza-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.pizza-card:hover .pizza-img-wrap img { transform: scale(1.06); }

.pizza-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.pizza-badge.veg  { background: #2d7a3a; }
.pizza-badge.meat { background: #7a2d2d; }
.pizza-badge.new  { background: #7a5a2d; }

.pizza-info { padding: 22px 24px 26px; }
.pizza-info h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .5px;
  color: var(--white);
  margin-bottom: 8px;
}
.pizza-info > p {
  color: var(--gray);
  font-size: .875rem;
  line-height: 1.65;
  margin-bottom: 20px;
  min-height: 56px;
}

/* Size selector */
.size-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.size-btn {
  background: var(--dark3);
  border: 1.5px solid rgba(255,255,255,.1);
  color: var(--gray);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: .72rem;
  text-align: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  transition: all .2s;
}
.size-btn b { color: var(--white); display: block; font-size: .78rem; margin-top: 2px; }
.size-btn:hover { border-color: var(--red); color: var(--white); }
.size-btn.active {
  background: rgba(227,24,55,.15);
  border-color: var(--red);
  color: var(--white);
}

/* Add to order button */
.add-btn {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none; cursor: pointer;
  padding: 13px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
}
.add-btn:hover { background: var(--red-dark); transform: scale(1.01); }
.add-btn.added { background: #2d7a3a; }

/* ========================================
   CART DRAWER
   ======================================== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
  width: 400px; max-width: 95vw;
  background: var(--dark2);
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cart-head h3 { font-family: 'Anton', sans-serif; font-size: 1.4rem; letter-spacing: .5px; }
.cart-close {
  background: var(--dark3); border: none; color: var(--white);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1rem;
  cursor: pointer; transition: background .2s;
}
.cart-close:hover { background: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }

.cart-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray); text-align: center; gap: 12px; padding: 40px 0;
}
.cart-empty span { font-size: 3rem; opacity: .4; }
.cart-empty p { font-size: .9rem; line-height: 1.6; }

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--dark3);
  border-radius: 12px;
  padding: 14px 16px;
  animation: slideIn .2s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-info h4 { font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.cart-item-info p  { font-size: .8rem; color: var(--gray); }
.cart-item-price   { font-weight: 700; color: var(--red); font-size: 1rem; }

.item-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: var(--white);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.qty-btn:hover { background: var(--red); border-color: var(--red); }
.qty-num { font-size: .9rem; font-weight: 600; min-width: 20px; text-align: center; }

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  color: var(--gray); font-size: .9rem;
}
.cart-total {
  display: flex; justify-content: space-between;
  color: var(--white); font-size: 1.1rem; font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.checkout-btn {
  background: var(--red);
  color: var(--white);
  border: none; cursor: pointer;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
  transition: background .2s;
}
.checkout-btn:hover { background: var(--red-dark); }

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.checkout-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  z-index: 1101;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 40px 44px;
  width: min(640px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-lg);
}
.checkout-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%);
}
.checkout-modal h2 {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  letter-spacing: .5px;
  margin-bottom: 28px;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--dark3); border: none; color: var(--white);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1rem;
  cursor: pointer; transition: background .2s;
}
.modal-close:hover { background: var(--red); }

.form-section { margin-bottom: 28px; }
.form-section h4 {
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  font-weight: 700;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.fg label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: .5px; }
.fg input {
  background: var(--dark3);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--white);
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.fg input:focus { border-color: var(--red); }
.fg input::placeholder { color: rgba(255,255,255,.25); }

/* Pay options */
.pay-options { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pay-opt {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark3);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: .88rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray);
  transition: border-color .2s, color .2s;
}
.pay-opt input { display: none; }
.pay-opt.active-pay { border-color: var(--red); color: var(--white); }

/* Order summary in modal */
.order-summary-box {
  background: var(--dark3);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: .88rem; color: var(--gray);
}
.summary-row.total { color: var(--white); font-weight: 700; font-size: 1rem; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }

.place-order-btn {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none; cursor: pointer;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: .5px;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(227,24,55,.45);
}
.place-order-btn:hover { background: var(--red-dark); transform: scale(1.01); }

/* ========================================
   SUCCESS MODAL
   ======================================== */
.success-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.8);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.success-modal.open { opacity: 1; pointer-events: all; }
.success-inner {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 50px 44px;
  text-align: center;
  max-width: 420px;
  width: 92vw;
  box-shadow: var(--shadow-lg);
  transform: scale(.9);
  transition: transform .35s;
}
.success-modal.open .success-inner { transform: scale(1); }
.success-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.success-inner h2 { font-family: 'Anton', sans-serif; font-size: 2.2rem; margin-bottom: 14px; }
.success-inner p { color: var(--gray); font-size: .95rem; line-height: 1.7; margin-bottom: 10px; }
.order-num { font-size: 1rem; color: var(--orange); font-weight: 700; margin: 16px 0 24px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1000px) {
  .hero        { grid-template-columns: 1fr; padding: 120px 40px 60px; text-align: center; }
  .hero-img    { display: none; }
  .hero-actions { justify-content: center; }
  .pizza-grid  { grid-template-columns: repeat(2, 1fr); }
  .deals       { grid-template-columns: 1fr; }
  .deal-card   { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
}

@media (max-width: 680px) {
  .navbar      { padding: 0 20px; }
  .nav-links   { display: none; }
  .cart-label  { display: none; }
  .pizza-grid  { grid-template-columns: 1fr; }
  .menu-section { padding: 60px 20px; }
  .checkout-modal { padding: 28px 22px; }
  .form-row    { grid-template-columns: 1fr; }
}
