:root {
  --bg: #14110F;
  --surface: #1F1B17;
  --surface-2: #262019;
  --gold: #C9A227;
  --gold-light: #E8C468;
  --cream: #EDE6D6;
  --muted: #8A8175;
  --line: #33291d;

  --display: 'Cormorant Garamond', serif;
  --body: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,162,39,0.14), transparent 70%),
    var(--surface);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__texture {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 18px, var(--gold) 18px 19px, transparent 19px 60px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black, transparent 75%);
}

.hero__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero__logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: var(--gold-light);
}

.hero__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
  font-family: var(--display);
  letter-spacing: 0.02em;
}

/* ---------- Tabs ---------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 1.25rem;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: none;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
}

.tab.is-active {
  color: var(--gold-light);
}
.tab.is-active::after {
  right: 0;
}

/* ---------- Menu grid ---------- */
.menu {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.category-block {
  margin-bottom: 2.5rem;
}

.category-title {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.product-card__img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}

.product-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.4rem;
}

.product-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-card__top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.product-card__price {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold-light);
  white-space: nowrap;
}

.product-card__description {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
  margin: 0;
}

.product-card__addons {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-card__addons li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--cream);
}

.product-card__addons strong {
  color: var(--gold-light);
  font-family: var(--mono);
}

.empty-state, .error-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-style: italic;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

.credit-footer {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.65;
}


/* ---------- Barras de desplazamiento con los colores del Estilo ----------
   La barra toma el color base (--gold) y el carril por donde se desliza el
   color de superficie (--surface). Siguen solos los cambios hechos en la
   pestaña Estilo del admin. */
html,
* {
  scrollbar-color: var(--gold) var(--surface);
}
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: var(--surface); }
*::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 8px;
  border: 2px solid var(--surface);
}
*::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
*::-webkit-scrollbar-corner { background: var(--surface); }
