/* ─── FONTS ─────────────────────────────────────── */
@font-face {
  font-family: 'Tan St. Canard';
  src: url('fonts/TANStCanard.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET & BASE ─────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black:   #0d0d0d;
  --white:   #f8f6f2;
  --grey-1:  #1a1a1a;
  --grey-2:  #2a2a2a;
  --grey-3:  #888;
  --grey-4:  #ccc;
  --grey-5:  #eee;
  --accent:  #d40000;  /* rojo del logo NF Burgers */
  --radius:  12px;
  --cart-w:  420px;

  --font-title:    'Tan St. Canard', serif;
  --font-subtitle: 'Oswald', sans-serif;
  --font-body:     'HK Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO / HEADER ────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 40px 24px 36px;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-img {
  width: 360px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* hide h1 since logo already has the name */
.brand-name { display: none; }

.brand-tagline {
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 14px;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--grey-2);
  border: 1px solid var(--grey-1);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(248,246,242,0.7);
  letter-spacing: 0.2px;
}

.badge-status {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  transition: background 0.15s;
}

.badge-status:hover { background: var(--grey-1); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-3);
  flex-shrink: 0;
}

.status-dot.open   { background: #3ec46d; box-shadow: 0 0 0 3px rgba(62,196,109,0.18); }
.status-dot.closed { background: #e5524d; box-shadow: 0 0 0 3px rgba(229,82,77,0.18); }

/* ─── CONTAINER & MENU LABEL ───────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.menu-label {
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 8px;
}

/* ─── BURGER ROW INSIDE ACCORDION (clickeable, abre selector de tamaño) ─── */
.item.item-burger {
  cursor: pointer;
  transition: background 0.15s;
}

.item.item-burger:hover { background: rgba(0,0,0,0.02); }

.price-from {
  font-family: var(--font-subtitle);
  font-size: 13px;
  color: var(--grey-3);
  white-space: nowrap;
}

.burger-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--black);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.item.item-burger:hover .burger-chevron {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ─── BOTTOM SHEETS (tamaño / horarios / checkout) ─ */
#size-sheet,
#schedule-sheet,
#checkout-sheet,
#notes-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: var(--black);
  color: var(--white);
  border-radius: 20px 20px 0 0;
  z-index: 220;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transition: bottom 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

#size-sheet.open,
#schedule-sheet.open,
#checkout-sheet.open,
#notes-sheet.open.open { bottom: 0; }

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.sheet-header {
  padding: 16px 24px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sheet-header h2 {
  font-family: var(--font-title);
  font-size: 30px;
  letter-spacing: 0.5px;
}

.sheet-header p {
  margin-top: 5px;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.sheet-options {
  padding: 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* scrollbar visible — el sheet ya no tapa la del browser en desktop */
}

/* #sheet-options aloja específicamente las opciones de
   tamaño (Simple/Doble/Triple): layout horizontal tipo
   "segmented control" en vez de tarjetas apiladas, así
   se ve liviano tenga 2 o 3 opciones. */
#sheet-options {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.size-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 6px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.size-option:hover {
  border-color: var(--accent);
  background: rgba(212,0,0,0.08);
}

.size-option.selected {
  border-color: var(--accent);
  background: rgba(212,0,0,0.12);
}

.size-option .size-name {
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.size-option .size-price {
  font-family: var(--font-title);
  font-size: 19px;
  color: var(--accent);
  line-height: 1;
}

/* ─── SCHEDULE LIST ─────────────────────────────── */
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.schedule-row.is-today {
  border-color: var(--accent);
  background: rgba(212,0,0,0.1);
}

.schedule-row .day-name {
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 600;
}

.schedule-row .day-hours {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.schedule-row.is-closed .day-hours {
  color: rgba(255,255,255,0.3);
}

.ghost-btn {
  width: 100%;
  padding: 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-family: var(--font-subtitle);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.ghost-btn:hover { background: rgba(255,255,255,0.06); }

/* ─── CHECKOUT FORM ──────────────────────────────── */
.form-group { margin-bottom: 6px; }

.form-label {
  display: block;
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  flex: 1;
  min-width: 130px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  font-family: var(--font-subtitle);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.pill:hover { border-color: rgba(212,0,0,0.6); }

.pill.selected {
  border-color: var(--accent);
  background: rgba(212,0,0,0.15);
}

/* ─── SLOT GRID (turnos de entrega) ─────────────── */
.slot-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.slot-btn {
  flex: 1;
  min-width: 0;          /* permite que se achiquen si es necesario */
  padding: 12px 4px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.slot-btn:hover:not(:disabled) {
  border-color: rgba(212,0,0,0.6);
}

.slot-btn.selected {
  border-color: var(--accent);
  background: rgba(212,0,0,0.15);
}

/* Turnos ya pasados o día cerrado */
.slot-btn:disabled,
.slot-btn.past {
  opacity: 0.32;
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.06);
}

.slot-hint {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus { outline: none; border-color: var(--accent); }

.form-textarea {
  resize: vertical;
  min-height: 64px;
  font-family: var(--font-body);
  line-height: 1.4;
}

.sheet-options-tight {
  padding-top: 0;
  padding-bottom: 4px;
}

.checkout-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: #ff8a85;
  margin-top: 4px;
}

#confirm-checkout {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

#confirm-checkout:hover { opacity: 0.92; }
#confirm-checkout:active { transform: scale(0.98); }

.sheet-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

#add-with-size,
#add-with-notes {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

#add-with-size:hover,
#add-with-notes:hover { opacity: 0.92; }

#add-with-size:active,
#add-with-notes:active { transform: scale(0.98); }

#add-with-size:disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── CATEGORIES ───────────────────────────────── */
.category { border-top: 1px solid var(--grey-5); }
.category:last-child { border-bottom: 1px solid var(--grey-5); }

.category-header {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.category-name {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--black);
  transition: color 0.2s;
}

@media (hover: hover) {
  .category-header:hover .category-name { color: var(--accent); }
}

.category-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grey-5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
  font-size: 14px;
  color: var(--grey-3);
}

.category-header.open .category-chevron {
  background: var(--black);
  color: var(--white);
  transform: rotate(45deg);
}

/* ─── ITEMS ────────────────────────────────────── */
.items { display: none; padding-bottom: 8px; }

.items.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--grey-5);
  gap: 12px;
}

.item-info { flex: 1; }

.item-info h3 {
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}

.item-info p {
  margin-top: 3px;
  font-family: var(--font-body);
  color: var(--grey-3);
  font-size: 13px;
}

.item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.price {
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-4);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  flex-shrink: 0;
}

.add-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.add-btn:active { transform: scale(0.88); }

/* ─── CART ICON (floating) ─────────────────────── */
#cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  z-index: 300;
  transition: transform 0.15s, box-shadow 0.15s;
}

#cart-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

#cart-icon:active { transform: scale(0.96); }

#cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#cart-count.hidden { display: none; }
#cart-count.pop { animation: pop 0.25s ease; }

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ─── OVERLAY ──────────────────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#overlay.show { opacity: 1; pointer-events: all; }

/* ─── CART SIDEBAR ─────────────────────────────── */
#cart-modal {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--cart-w) - 20px);
  width: var(--cart-w);
  max-width: 100vw;
  height: 100dvh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  z-index: 260;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

#cart-modal.open { right: 0; }

.cart-header {
  padding: 24px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cart-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: 0.5px;
}

#close-cart {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--white);
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

#close-cart:hover { background: rgba(255,255,255,0.08); }

#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#cart-items::-webkit-scrollbar { width: 4px; }
#cart-items::-webkit-scrollbar-thumb { background: var(--grey-2); border-radius: 2px; }

.cart-empty {
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-size: 14px;
  margin-top: 8px;
}

/* ─── BOTÓN 🥤 EN FILA DE HAMBURGUESA ──────────── */
.cart-item-drink-btn {
  border: none;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.cart-item-drink-btn:hover,
.cart-item-drink-btn.active {
  background: rgba(212,0,0,0.3);
  color: var(--white);
}

/* ─── SELECTOR INLINE DE BEBIDA ─────────────────── */
.inline-drink-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  animation: fadeIn 0.15s ease;
}

.inline-drink-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--white);
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.inline-drink-btn span {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.inline-drink-btn:hover {
  border-color: var(--accent);
  background: rgba(212,0,0,0.12);
}

.inline-drink-btn:active { transform: scale(0.95); }

/* Wrapper: maneja el padding, borde y contiene el inline-drink-row */
.cart-item-wrap {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Fila flex: qty / info / botones — sin borde ni padding propios */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-qty {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subtitle);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--accent);
}

.cart-item-info { flex: 1; }

.cart-item-info h4 {
  font-family: var(--font-subtitle);
  font-size: 14px;
  font-weight: 500;
}

.cart-item-info p {
  margin-top: 2px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
  font-size: 13px;
}

.cart-item-notes {
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
}

.remove-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.remove-btn:hover { color: var(--accent); }

/* ─── CART FOOTER ──────────────────────────────── */
.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.total-row span:first-child {
  font-family: var(--font-subtitle);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.total-amount {
  font-family: var(--font-title);
  font-size: 32px;
  letter-spacing: 0.5px;
  color: var(--white);
}

#send-order {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: #25D366;
  color: #fff;
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.18s, transform 0.12s;
}

#send-order:hover  { opacity: 0.9; }
#send-order:active { transform: scale(0.98); }

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 500px) {
  .hero { padding: 28px 16px 24px; }
  .hero-inner { gap: 20px; }
  .logo-img { width: 120px; }
  #cart-icon { top: 14px; right: 14px; }
}

/* ─── DESKTOP: sheets centrados con ancho fijo ───
   En pantallas anchas el sheet no ocupa todo el
   ancho del viewport — queda centrado con 520px
   de ancho, así su scrollbar nunca se solapa con
   la scrollbar del navegador.
   ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  #size-sheet,
  #schedule-sheet,
  #checkout-sheet,
  #notes-sheet {
    width: 620px;
    left: calc(50% - 310px);
    right: auto;
    border-radius: 20px 20px 0 0;
  }
}
.item-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-subtitle);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 6px;
}
