/* ─── RESET & CSS VARIABLES ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #000000;
  --accent:       #ff7a00;
  --accent-dark:  #cc6200;
  --text:         #ffffff;
  --muted:        #888888;
  --card:         #111111;
  --card-border:  #1e1e1e;
  --radius:       12px;
  --header-h:     72px;
}

html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color:      var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size:   16px;
  line-height: 1.6;
  min-height:  100vh;
  overflow-x:  hidden;
}
body.modal-open { overflow: hidden; }

a       { color: inherit; text-decoration: none; }
button  { cursor: pointer; border: none; font-family: inherit; }
img     { display: block; max-width: 100%; height: auto; }
input   { font-family: inherit; }

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
#site-header.initial {
  background: transparent;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
#site-header.sticky {
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--card-border);
}

/* Initial center content */
.header-initial-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#site-header.sticky .header-initial-content { display: none; }

.header-logo-big {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; letter-spacing: .04em;
}
.header-logo-big span { color: var(--accent); }

.header-sub { display: flex; gap: 20px; align-items: center; font-size: .82rem; color: var(--muted); }
.header-sub a { color: var(--muted); transition: color .2s; }
.header-sub a:hover { color: var(--accent); }

.header-pill {
  background: var(--accent); color: #000;
  font-size: .7rem; font-weight: 700;
  padding: 2px 10px; border-radius: 20px; letter-spacing: .04em;
}

/* Sticky row */
.header-sticky-row {
  display: none; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 100%;
}
#site-header.sticky .header-sticky-row { display: flex; }

.header-logo-small {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: .04em; cursor: pointer;
}
.header-logo-small span { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Language toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--card); border-radius: 20px; overflow: hidden;
}
.lang-btn {
  padding: 5px 12px; background: none; color: var(--muted);
  font-size: .8rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--accent); color: #000; font-weight: 700; }

/* Cart button */
.cart-btn {
  position: relative; background: var(--accent); border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.cart-btn:hover { background: var(--accent-dark); transform: scale(1.05); }
.cart-btn svg { width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: #fff; color: #000;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .65rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.cart-count.visible { display: flex; }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(255,122,0,.13) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 500;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700; line-height: .95;
  margin-bottom: 24px; letter-spacing: -.01em;
}
.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--muted); max-width: 460px; margin: 0 auto 40px; font-weight: 300;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  transition: all .2s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: none; color: var(--text); border: 1px solid #333; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(0) scale(.98); }

/* ─── SECTIONS ───────────────────────────────────────────────────────────────── */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600; margin-bottom: 8px; letter-spacing: .02em;
}
.section-title span { color: var(--accent); }
.section-sub { color: var(--muted); margin-bottom: 40px; font-size: .95rem; }

/* ─── CATEGORY TABS ──────────────────────────────────────────────────────────── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-tab {
  padding: 8px 20px; border-radius: 20px; font-size: .85rem; font-weight: 500;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--card-border);
  transition: all .2s;
}
.cat-tab:hover   { border-color: var(--accent); color: var(--accent); }
.cat-tab.active  { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }

/* ─── MENU GRID ──────────────────────────────────────────────────────────────── */
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px)  { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

/* Pizza card */
.pizza-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.pizza-card:hover {
  border-color: #333; transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,122,0,.08);
}

.pizza-img-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: #0d0d0d; position: relative;
}
.pizza-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pizza-card:hover .pizza-img-wrap img { transform: scale(1.04); }

.pizza-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #000;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
}

.pizza-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pizza-name { font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 600; }
.pizza-size { font-size: .8rem; color: var(--muted); }
.pizza-ingredients {
  font-size: .82rem; color: var(--muted); font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}

.pizza-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; gap: 8px; flex-wrap: wrap;
}
.pizza-price {
  font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--accent);
}
.pizza-price small { font-size: .75rem; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 300; }

.pizza-actions { display: flex; gap: 6px; }
.btn-sm { padding: 7px 14px; border-radius: 8px; font-size: .8rem; font-weight: 600; transition: all .2s; }
.btn-quick     { background: var(--accent); color: #000; }
.btn-quick:hover     { background: var(--accent-dark); }
.btn-customize { background: var(--card-border); color: var(--text); }
.btn-customize:hover { background: #2a2a2a; }
.btn-quick:active, .btn-customize:active { transform: scale(.95); }

/* ─── CONTACTS ────────────────────────────────────────────────────────────────── */
#contacts { background: #070707; border-top: 1px solid var(--card-border); }

.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .contacts-grid { grid-template-columns: 1fr 1.3fr; } }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item  { display: flex; align-items: flex-start; gap: 14px; }

.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-value { font-size: .95rem; font-weight: 500; }
.contact-value a { transition: color .2s; }
.contact-value a:hover { color: var(--accent); }

.map-wrap { border-radius: var(--radius); overflow: hidden; height: 280px; border: 1px solid var(--card-border); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

.socials { display: flex; gap: 10px; margin-top: 28px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.social-btn:hover { border-color: var(--accent); background: #1a1a1a; }
.social-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  text-align: center; padding: 24px;
  font-size: .8rem; color: #444;
  border-top: 1px solid var(--card-border);
}
footer span { color: var(--accent); }

/* ─── FLOATING BUTTONS ───────────────────────────────────────────────────────── */
.float-group {
  position: fixed; bottom: 24px; right: 20px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  z-index: 90;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.float-btn:hover { transform: scale(1.1); }
.float-call  { background: #25d366; }
.float-wa    { background: #25d366; }
.float-top   { background: var(--card); border: 1px solid #333; }
.float-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* View cart bar */
.view-cart-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 89;
  background: var(--accent); color: #000;
  padding: 13px 28px; border-radius: 30px;
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 24px rgba(255,122,0,.4);
  display: flex; align-items: center; gap: 10px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1); cursor: pointer;
}
.view-cart-bar.show { transform: translateX(-50%) translateY(0); }
.view-cart-bar svg { width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── TOAST ──────────────────────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; top: 90px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-left: 3px solid var(--accent);
  padding: 12px 18px; border-radius: 10px; font-size: .87rem; font-weight: 500;
  transform: translateX(120%); opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s;
  pointer-events: all; max-width: 280px;
}
.toast.show { transform: translateX(0); opacity: 1; }

/* ─── MODAL BASE ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: #0c0c0c; border: 1px solid #222;
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 500px; max-height: 92vh;
  overflow-y: auto; padding: 28px 24px 32px;
  transform: translateY(60px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
@media (min-width: 600px) { .modal-box { border-radius: 20px; transform: scale(.95); } }
.modal-overlay.open .modal-box { transform: translateY(0); }
@media (min-width: 600px) { .modal-overlay.open .modal-box { transform: scale(1); } }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 600; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: #1e1e1e; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background .2s;
}
.modal-close:hover { background: #2a2a2a; }

/* ─── CUSTOMIZE MODAL ────────────────────────────────────────────────────────── */
.ingredient-list  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ingredient-item  {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--card-border);
  transition: opacity .2s;
}
.ingredient-item.removed { opacity: .35; }
.ingredient-name { font-size: .9rem; }
.ingredient-toggle {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--card-border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: background .2s;
}
.ingredient-toggle.active { background: var(--accent); color: #000; }

.extras-section h4 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 12px;
}
.extras-list   { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.extra-item    {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--card-border);
}
.extra-info    { display: flex; align-items: center; gap: 8px; }
.extra-price   { font-size: .8rem; color: var(--accent); font-weight: 600; }
.extra-toggle  {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--card-border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; transition: background .2s;
}
.extra-toggle.active        { background: var(--accent); color: #000; }
.extra-toggle.active:hover  { background: var(--accent-dark); }

.customize-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--card-border);
}
.customize-price { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--accent); }

/* ─── CART MODAL ─────────────────────────────────────────────────────────────── */
#cart-modal .modal-box { max-width: 540px; }

.cart-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: .3; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.cart-items-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 12px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 2px; font-size: .95rem; }
.cart-item-mods { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.cart-item-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-item-price { font-family: 'Oswald', sans-serif; color: var(--accent); font-size: 1rem; font-weight: 700; }

.qty-ctrl  { display: flex; align-items: center; gap: 6px; }
.qty-btn   {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--card-border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; transition: background .2s;
}
.qty-btn:hover { background: #333; }
.qty-val       { font-size: .9rem; font-weight: 600; min-width: 18px; text-align: center; }

.cart-item-actions { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.btn-edit-cart {
  font-size: .72rem; color: var(--muted); background: none;
  text-decoration: underline; padding: 2px; transition: color .2s;
}
.btn-edit-cart:hover { color: var(--accent); }
.btn-remove {
  width: 28px; height: 28px; border-radius: 6px;
  background: #1a0000; color: #ff4444;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  transition: background .2s;
}
.btn-remove:hover { background: #2a0000; }

/* Order settings */
.order-settings {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 16px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.settings-row  { display: flex; flex-direction: column; gap: 8px; }
.settings-label {
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 500;
}
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-btn {
  flex: 1; min-width: 80px; padding: 9px 14px; border-radius: 8px;
  background: var(--card-border); color: var(--muted);
  font-size: .85rem; font-weight: 500; text-align: center;
  border: 1px solid transparent; transition: all .2s; cursor: pointer;
}
.radio-btn.active {
  background: rgba(255,122,0,.15); color: var(--accent);
  border-color: rgba(255,122,0,.4); font-weight: 700;
}

.cart-address {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  background: #0a0a0a; border: 1px solid var(--card-border);
  color: var(--text); font-size: .88rem; outline: none;
  transition: border-color .2s;
}
.cart-address:focus         { border-color: var(--accent); }
.cart-address::placeholder  { color: #444; }

/* Totals */
.cart-totals {
  margin-bottom: 20px; padding: 16px;
  background: var(--card); border-radius: 12px; border: 1px solid var(--card-border);
}
.total-row {
  display: flex; justify-content: space-between;
  font-size: .88rem; color: var(--muted); margin-bottom: 8px;
}
.total-row.grand {
  color: var(--text); font-weight: 700; font-size: 1.05rem;
  border-top: 1px solid var(--card-border);
  padding-top: 10px; margin-top: 4px; margin-bottom: 0;
}
.total-row.grand span:last-child { color: var(--accent); font-family: 'Oswald', sans-serif; font-size: 1.2rem; }

.btn-whatsapp {
  width: 100%; padding: 16px; border-radius: 12px;
  background: #25d366; color: #fff;
  font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover  { background: #1ebe5b; transform: translateY(-1px); }
.btn-whatsapp:active { transform: scale(.98); }
.btn-whatsapp svg    { width: 22px; height: 22px; fill: #fff; }

.validation-msg {
  font-size: .82rem; color: #ff5555; text-align: center;
  margin-top: 10px; min-height: 1.2em;
}
/* ── Size buttons on card ── */
.card-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
}

.size-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #333;
  background: transparent;
  color: #777;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .3px;
}

.size-btn:hover {
  border-color: #ff7a00;
  color: #ff7a00;
}

.size-btn.active {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #000;
  font-weight: 700;
}

.card-price {
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff7a00;
}

.card-price small {
  font-size: .75rem;
  font-weight: 500;
  color: #aaa;
}

/* ── Size buttons in modal ── */
.modal-size-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-size-row .size-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: .85rem;
  border-radius: 12px;
  text-align: center;
}