/* pizzaria.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --pz-red:       #E8200A;
  --pz-red-dark:  #B81507;
  --pz-gold:      #F5A623;
  --pz-dark:      #1A0A05;
  --pz-card:      #2A1208;
  --pz-mid:       #3D1C0E;
  --pz-text:      #F5EDE8;
  --pz-muted:     #B89080;
  --pz-green:     #22C55E;
  --pz-blue:      #3B82F6;
  --pz-radius:    14px;
  --pz-shadow:    0 8px 32px rgba(0,0,0,.4);
}

/* ── Wrapper ───────────────────────────────────────────── */
.pizzaria-wrap, .pizzaria-wrap * { box-sizing: border-box; }
.pizzaria-wrap {
  font-family: 'DM Sans', sans-serif;
  background: var(--pz-dark);
  color: var(--pz-text);
  min-height: 60vh;
  border-radius: 16px;
  overflow: hidden;
}

/* ── Hero ──────────────────────────────────────────────── */
.pz-hero { position: relative; padding: 48px 24px 36px; text-align: center; overflow: hidden; }
.pz-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1A0A05 0%, #3D1C0E 50%, #1A0A05 100%);
}
.pz-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,32,10,.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(245,166,35,.12) 0%, transparent 45%);
}
.pz-hero-content { position: relative; z-index: 1; }
.pz-logo { width: 80px; height: 80px; border-radius: 40px; object-fit: cover; margin-bottom: 12px; box-shadow: 0 4px 20px rgba(232,32,10,.4); }
.pz-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px,6vw,48px); letter-spacing: -1px; margin: 0 0 6px; }
#pz-tagline { color: var(--pz-muted); font-size: 15px; margin: 0 0 18px; }
.pz-hero-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.pz-hero-meta span { font-size: 13px; color: var(--pz-muted); }

/* ── Nav ───────────────────────────────────────────────── */
.pz-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,10,5,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 10px 20px; display: flex; justify-content: space-between; align-items: center;
}
.pz-nav-tabs { display: flex; gap: 6px; }
.pz-tab {
  padding: 8px 16px; border-radius: 10px; border: none;
  background: transparent; color: var(--pz-muted);
  cursor: pointer; font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.pz-tab.active { background: var(--pz-red); color: #fff; }
.pz-tab:hover:not(.active) { color: var(--pz-text); background: rgba(255,255,255,.06); }
.pz-cart-btn {
  position: relative; background: var(--pz-red); color: #fff;
  border: none; border-radius: 12px; padding: 10px 20px;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.pz-cart-btn:hover { background: var(--pz-red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,32,10,.4); }
.pz-cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--pz-gold); color: var(--pz-dark);
  border-radius: 10px; width: 20px; height: 20px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ── Content ───────────────────────────────────────────── */
.pz-content { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.pz-section { display: none; }
.pz-section.active { display: block; animation: pzFadeIn .25s ease; }
@keyframes pzFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ── Category tabs ─────────────────────────────────────── */
.pz-category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pz-cat-tag {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.12);
  background: transparent; color: var(--pz-muted); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; transition: all .15s;
}
.pz-cat-tag.active { background: var(--pz-red); border-color: var(--pz-red); color: #fff; }
.pz-cat-tag:hover:not(.active) { border-color: var(--pz-red); color: var(--pz-text); }

/* ── Pizza grid ────────────────────────────────────────── */
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.pz-pizza-card {
  background: var(--pz-card); border-radius: var(--pz-radius);
  border: 1px solid rgba(255,255,255,.06); padding: 20px;
  position: relative; overflow: hidden; transition: transform .2s;
}
.pz-pizza-card:hover { transform: translateY(-3px); box-shadow: var(--pz-shadow); }
.pz-card-glow {
  position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(232,32,10,.15), transparent);
  border-radius: 0 var(--pz-radius) 0 80px; pointer-events: none;
}
.pz-card-emoji { font-size: 36px; margin-bottom: 8px; }
.pz-card-name { font-family: 'Playfair Display', serif; font-size: 17px; margin: 6px 0 4px; line-height: 1.3; }
.pz-card-desc { color: var(--pz-muted); font-size: 12px; margin: 0 0 14px; line-height: 1.4; }

/* Sizes */
.pz-sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pz-size-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.12);
  background: transparent; color: var(--pz-muted);
  cursor: pointer; transition: all .15s; min-width: 52px;
}
.pz-size-btn.active { border-color: var(--pz-red); background: rgba(232,32,10,.12); color: var(--pz-text); }
.pz-size-label { font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; }
.pz-size-price { font-size: 10px; color: var(--pz-gold); font-weight: 600; }
.pz-size-btn.active .pz-size-price { color: var(--pz-gold); }

.pz-card-actions { display: flex; gap: 8px; }
.pz-btn-primary-sm {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  background: var(--pz-red); color: #fff; border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 13px; cursor: pointer; transition: all .2s; text-align: center;
}
.pz-btn-primary-sm:hover { background: var(--pz-red-dark); }
.pz-btn-secondary-sm {
  padding: 10px 14px; border-radius: 10px;
  background: transparent; color: var(--pz-muted);
  border: 1.5px solid rgba(255,255,255,.12);
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 12px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.pz-btn-secondary-sm:hover { border-color: var(--pz-red); color: var(--pz-text); }

/* ── Items list (drinks/desserts) ──────────────────────── */
.pz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 12px; }
.pz-item-row {
  background: var(--pz-card); border-radius: var(--pz-radius);
  border: 1px solid rgba(255,255,255,.06); padding: 16px;
  display: flex; align-items: center; gap: 14px; transition: transform .2s;
}
.pz-item-row:hover { transform: translateY(-2px); }
.pz-item-emoji { font-size: 30px; flex-shrink: 0; }
.pz-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pz-item-name { font-weight: 600; font-size: 14px; }
.pz-item-desc { color: var(--pz-muted); font-size: 11px; }
.pz-item-price { color: var(--pz-gold); font-weight: 700; font-size: 14px; }

/* ── Badges ────────────────────────────────────────────── */
.pz-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.pz-badge-red  { background: rgba(232,32,10,.2); color: #FF4D38; }
.pz-badge-gold { background: rgba(245,166,35,.2); color: var(--pz-gold); }

/* ── Cart drawer ───────────────────────────────────────── */
.pz-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  z-index: 1000; animation: pzFadeIn .2s ease;
}
.pz-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(400px, 100vw); background: var(--pz-card);
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  animation: pzSlideLeft .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pzSlideLeft { from { transform: translateX(100%); } to { transform: none; } }
.pz-drawer-header {
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; align-items: center;
}
.pz-drawer-header h2 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0; }
.pz-close-btn {
  background: none; border: none; color: var(--pz-muted);
  cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px;
  border-radius: 6px; transition: all .15s;
}
.pz-close-btn:hover { background: rgba(255,255,255,.08); color: var(--pz-text); }
.pz-drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.pz-cart-empty { text-align: center; padding: 60px 0; color: var(--pz-muted); }
.pz-cart-empty div { font-size: 48px; margin-bottom: 12px; }
.pz-cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.pz-cart-emoji { font-size: 22px; }
.pz-cart-info { flex: 1; font-size: 14px; }
.pz-cart-price { color: var(--pz-gold); font-weight: 700; display: block; font-size: 13px; }
.pz-cart-remove { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 16px; }
.pz-drawer-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.07); }
.pz-total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.pz-total-row span:first-child { color: var(--pz-muted); }
.pz-total-final { font-weight: 700; font-size: 18px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); margin-top: 6px; }
.pz-total-final span:last-child { color: var(--pz-gold); }
.pz-btn-full { width: 100%; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif; border: none; cursor: pointer; transition: all .2s; margin-top: 14px; }
.pz-btn-full.pz-btn-primary { background: var(--pz-red); color: #fff; }
.pz-btn-full.pz-btn-primary:hover { background: var(--pz-red-dark); }

/* ── Modals ────────────────────────────────────────────── */
.pz-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: pzFadeIn .2s ease;
}
.pz-modal-box {
  background: var(--pz-card); border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08); width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto; padding: 24px;
  animation: pzSlideUp .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pzSlideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
.pz-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pz-modal-header h2 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0; }
.pz-half-first { background: var(--pz-mid); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.pz-muted-label { color: var(--pz-muted); font-size: 13px; margin-bottom: 10px; }
.pz-half-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pz-half-option {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: var(--pz-mid); border: 1.5px solid rgba(255,255,255,.08); transition: all .15s;
}
.pz-half-option.active { border-color: var(--pz-red); background: rgba(232,32,10,.1); }
.pz-half-option:hover:not(.active) { border-color: rgba(232,32,10,.4); }
.pz-half-option span { color: var(--pz-gold); font-weight: 700; }
.pz-half-footer { border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; }
.pz-half-price-note { color: var(--pz-muted); font-size: 12px; margin-bottom: 4px; }
.pz-half-price { color: var(--pz-gold); font-size: 22px; font-weight: 700; margin-bottom: 12px; }

/* ── Chat ──────────────────────────────────────────────── */
.pz-chat-box {
  width: 100%; max-width: 480px; height: 85vh; max-height: 680px;
  display: flex; flex-direction: column; background: var(--pz-card);
  border-radius: 20px; border: 1px solid rgba(255,255,255,.08); overflow: hidden;
  animation: pzSlideUp .35s cubic-bezier(.34,1.56,.64,1);
}
.pz-chat-header { padding: 16px 20px; background: var(--pz-red); display: flex; justify-content: space-between; align-items: center; }
.pz-chat-title { font-weight: 700; font-size: 16px; }
.pz-chat-subtitle { font-size: 11px; opacity: .75; margin-top: 2px; }
.pz-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pz-msg { display: flex; }
.pz-msg-bot { justify-content: flex-start; }
.pz-msg-user { justify-content: flex-end; }
.pz-bubble {
  max-width: 84%; padding: 10px 14px; font-size: 13.5px; line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  animation: pzSlideUp .3s ease;
}
.pz-msg-bot .pz-bubble { background: var(--pz-mid); border-radius: 4px 16px 16px 16px; }
.pz-msg-user .pz-bubble { background: var(--pz-red); border-radius: 16px 4px 16px 16px; }
.pz-typing { display: flex; gap: 4px; padding: 2px 0; }
.pz-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--pz-muted); display: inline-block; animation: pzBounce .9s infinite; }
.pz-typing span:nth-child(2) { animation-delay: .15s; }
.pz-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pzBounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }
.pz-btn-confirm {
  display: inline-block; margin-top: 10px; padding: 8px 16px;
  border-radius: 8px; border: none; cursor: pointer;
  background: var(--pz-green); color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13px;
}
.pz-chat-input-wrap { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); display: flex; gap: 8px; }
.pz-chat-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  background: var(--pz-mid); border: 1.5px solid rgba(255,255,255,.08);
  color: var(--pz-text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
  transition: border .2s;
}
.pz-chat-input:focus { border-color: var(--pz-red); }
.pz-chat-input::placeholder { color: var(--pz-muted); }
.pz-chat-send {
  background: var(--pz-red); color: #fff; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: 18px; cursor: pointer; transition: all .15s;
}
.pz-chat-send:hover { background: var(--pz-red-dark); }

/* ── Toasts ────────────────────────────────────────────── */
.pz-toasts { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.pz-toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: linear-gradient(135deg, #2A1208, #3D1C0E);
  border: 1.5px solid rgba(232,32,10,.4);
  border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  max-width: 300px; min-width: 220px;
  animation: pzToastIn .35s cubic-bezier(.34,1.56,.64,1) forwards;
}
.pz-toast.leaving { animation: pzToastOut .3s ease forwards; }
@keyframes pzToastIn  { from { opacity:0; transform:translateX(110%); } to { opacity:1; transform:none; } }
@keyframes pzToastOut { from { opacity:1; transform:none; } to { opacity:0; transform:translateX(110%); } }
.pz-toast-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(232,32,10,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.pz-toast-added { font-size: 10px; color: var(--pz-green); font-weight: 700; letter-spacing: .5px; }
.pz-toast-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pz-toast-price { font-size: 12px; color: var(--pz-gold); font-weight: 700; }

/* ── Scrollbar ─────────────────────────────────────────── */
.pizzaria-wrap ::-webkit-scrollbar { width: 5px; }
.pizzaria-wrap ::-webkit-scrollbar-track { background: var(--pz-dark); }
.pizzaria-wrap ::-webkit-scrollbar-thumb { background: var(--pz-red-dark); border-radius: 3px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .pz-nav { flex-direction: column; gap: 10px; align-items: stretch; }
  .pz-nav-tabs { overflow-x: auto; }
  .pz-cart-btn { width: 100%; }
  .pz-hero { padding: 32px 16px 24px; }
  .pz-content { padding: 16px 12px; }
}
