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

:root {
  --bg:          #0e0c09;
  --bg-card:     #17140f;
  --bg-card-hover: #1f1a13;
  --border:      #3a2e1e;
  --border-light:#5a4830;
  --gold:        #c9922a;
  --gold-light:  #e8b84b;
  --gold-dim:    #7a5a1e;
  --text:        #d4c4a0;
  --text-dim:    #8a7a60;
  --text-bright: #f0e4c0;
  --accent-red:  #8b1a1a;

  /* Rarity colors */
  --common:    #8a9aa0;
  --uncommon:  #4a9e5c;
  --rare:      #3a6eb8;
  --epic:      #8b44c8;
  --legendary: #c9922a;

  --radius: 4px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IM Fell English', Georgia, serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  padding-top: 4rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 12, 9, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold-light);
  filter: drop-shadow(0 0 6px var(--gold));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.logo-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover {
  color: var(--gold-light);
  background: rgba(201, 146, 42, 0.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  gap: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem;
}

.lang-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: transparent;
  border: none;
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover { color: var(--gold-light); }

.lang-btn.active {
  color: var(--bg);
  background: var(--gold);
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  flex-shrink: 0;
}

.header-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 6px 1px var(--gold-dim);
  animation: divider-glow 3s ease-in-out infinite;
}
@keyframes divider-glow {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 2px 0px var(--gold-dim); }
  50%       { opacity: 0.9; box-shadow: 0 0 5px 1px var(--gold-dim); }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  gap: 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(201,146,42,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 50%, rgba(139,26,26,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: normal;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(232,184,75,0.3);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(201,146,42,0.3);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Ornament */
.hero-ornament {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ornament-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  animation: spin-slow linear infinite;
}

.ornament-ring.outer  { width: 240px; height: 240px; animation-duration: 40s; opacity: 0.4; }
.ornament-ring.middle { width: 180px; height: 180px; animation-duration: 28s; animation-direction: reverse; opacity: 0.6; }
.ornament-ring.inner  { width: 120px; height: 120px; animation-duration: 18s; opacity: 0.8;
  border-color: var(--gold); box-shadow: 0 0 20px rgba(201,146,42,0.2); }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ornament-symbol {
  font-size: 3.5rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 16px var(--gold));
  z-index: 1;
}

/* ── Exchange Banner ── */
.exchange-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(201,146,42,0.06);
  border-top: 1px solid rgba(201,146,42,0.25);
  border-bottom: 1px solid rgba(201,146,42,0.25);
  box-shadow: 0 2px 20px rgba(201,146,42,0.05);
}
.exchange-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.exchange-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
}
.exchange-rate {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.exchange-item {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.exchange-item strong { font-size: 1rem; }
.exchange-item--energy { color: #7ecfff; }
.exchange-eq {
  font-size: 1rem;
  color: var(--text-dim);
}
.exchange-hint {
  font-size: 0.58rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ── Catalog Section ── */
.catalog-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201,146,42,0.08);
}

/* ── Material Block ── */
.material-block {
  margin-bottom: 2.5rem;
}

.material-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.material-icon { font-size: 1rem; }

.material-name {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.material-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

/* Material accent colors */
.material-block[data-material="wood"]       .material-name { color: #a0784a; }
.material-block[data-material="wood"]       .material-rule { background: linear-gradient(90deg, #a0784a55, transparent); }
.material-block[data-material="iron"]       .material-name { color: #8a9aa0; }
.material-block[data-material="iron"]       .material-rule { background: linear-gradient(90deg, #8a9aa055, transparent); }
.material-block[data-material="copper"]     .material-name { color: #b87333; }
.material-block[data-material="copper"]     .material-rule { background: linear-gradient(90deg, #b8733355, transparent); }
.material-block[data-material="orichalcum"] .material-name { color: #d4813a; }
.material-block[data-material="orichalcum"] .material-rule { background: linear-gradient(90deg, #d4813a55, transparent); }
.material-block[data-material="silver"]     .material-name { color: #c0c8d0; }
.material-block[data-material="silver"]     .material-rule { background: linear-gradient(90deg, #c0c8d055, transparent); }
.material-block[data-material="gold"]       .material-name { color: var(--gold-light); }
.material-block[data-material="gold"]       .material-rule { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.material-block[data-material="mithril"]    .material-name { color: #7ab8e8; }
.material-block[data-material="mithril"]    .material-rule { background: linear-gradient(90deg, #7ab8e855, transparent); }

/* ── Category Block ── */
.category-block {
  margin-bottom: 3.5rem;
}

.category-block.hidden { display: none; }

.category-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.category-title i { font-size: 1.1rem; color: var(--gold); }
.material-icon { font-size: 1rem; color: inherit; }

/* ── Item Grid ── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

/* ── Item Card ── */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.item-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Rarity color bar at top */
.item-rarity-bar {
  height: 3px;
  width: 100%;
}

.item-card[data-rarity="common"]    .item-rarity-bar { background: var(--common); }
.item-card[data-rarity="uncommon"]  .item-rarity-bar { background: var(--uncommon); }
.item-card[data-rarity="rare"]      .item-rarity-bar { background: var(--rare); }
.item-card[data-rarity="epic"]      .item-rarity-bar { background: var(--epic); }
.item-card[data-rarity="legendary"] .item-rarity-bar {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold-dim));
}

.item-card[data-rarity="common"]    { border-color: rgba(138,154,160,0.3); }
.item-card[data-rarity="uncommon"]  { border-color: rgba(74,158,92,0.3); }
.item-card[data-rarity="rare"]      { border-color: rgba(58,110,184,0.3); }
.item-card[data-rarity="epic"]      { border-color: rgba(139,68,200,0.3); }
.item-card[data-rarity="legendary"] { border-color: rgba(201,146,42,0.45); }

.item-card[data-rarity="legendary"]:hover {
  box-shadow: 0 8px 30px rgba(201,146,42,0.15);
}

.item-img-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}

.item-placeholder {
  font-size: 3.5rem;
  opacity: 0.6;
  transition: opacity var(--transition), transform var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.item-card:hover .item-placeholder {
  opacity: 0.9;
  transform: scale(1.1);
}

.item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-rarity-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.item-card[data-rarity="common"]    .item-rarity-label { color: var(--common); }
.item-card[data-rarity="uncommon"]  .item-rarity-label { color: var(--uncommon); }
.item-card[data-rarity="rare"]      .item-rarity-label { color: var(--rare); }
.item-card[data-rarity="epic"]      .item-rarity-label { color: var(--epic); }
.item-card[data-rarity="legendary"] .item-rarity-label { color: var(--gold-light); }

.item-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.item-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  font-style: italic;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.item-footer--dual { flex-direction: column; align-items: stretch; }
.price-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.price-col {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.price-col--gold .btn-details { margin-top: 0.25rem; }
.price-col .item-price { font-size: 0.85rem; }
.price-mode {
  font-size: 0.55rem;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-extra {
  font-size: 0.78rem;
  color: var(--gold-dim);
}

.item-price {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.btn-details {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-details:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201,146,42,0.08);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.9rem;
  color: var(--gold);
}

.footer-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--border-light);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.modal-close:hover { color: var(--text-bright); border-color: var(--border-light); }

.modal-img-wrap {
  height: 200px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.modal-placeholder {
  font-size: 6rem;
  opacity: 0.7;
}

.modal-content {
  padding: 1.5rem;
}

.modal-rarity {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.modal-name {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.modal-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.modal-stats:empty { display: none; }

/* Daño / Durabilidad */
.stat-main {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.stat-main-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.6rem;
  gap: 0.15rem;
  background: rgba(255,255,255,0.02);
}
.stat-main-divider {
  width: 1px;
  background: var(--border);
}
.stat-main-label {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-main-value {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-light);
}

/* Requisitos */
.stat-reqs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.stat-reqs-title {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.2rem;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--text-dim);
}
.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold-light);
}
.modal-price-row {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal-price {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
}
.modal-price-dual {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.modal-price-option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.modal-price-label {
  font-size: 0.55rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'Cinzel', serif;
}
.modal-price-option--borax { color: var(--gold-light); }
.modal-price-sep {
  color: var(--border-light);
  font-size: 1rem;
  align-self: center;
}

/* ── Hamburger button (header, top-right) ── */
.hamburger-fab {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--transition);
}
.hamburger-fab:hover,
.hamburger-fab:active { background: var(--bg-card-hover); border-color: var(--gold); }

/* ── Mobile Drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 75vw;
  max-width: 280px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.2rem;
  gap: 0.3rem;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
}
.mobile-drawer.open {
  visibility: visible;
  pointer-events: all;
}
.mobile-drawer.open .drawer-backdrop { opacity: 1; }
.mobile-drawer.open .drawer-panel    { transform: translateX(0); }
.drawer-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.drawer-link {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.7rem 0.6rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all var(--transition);
}
.drawer-link i { font-size: 1.1rem; color: var(--gold-dim); }
.drawer-link:hover { color: var(--gold-light); background: rgba(201,146,42,0.08); }
.drawer-link:hover i { color: var(--gold); }

/* ── Bottom Nav ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14,12,9,0.97);
  border-top: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--text-dim) !important;
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: color var(--transition);
  text-decoration: none !important;
}
.bottom-nav-btn i { font-size: 1.3rem; }
.bottom-nav-btn:hover,
.bottom-nav-btn.active { color: var(--gold-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Header */
  .main-nav         { display: none !important; }
  .hamburger-fab    { display: flex; align-items: center; justify-content: center; }
  .header-inner     { padding: 0.65rem 0.5rem 0.65rem 1rem; gap: 0.6rem; flex-wrap: nowrap; position: relative; }
  .header-right     { margin-left: auto; gap: 0.3rem; flex-shrink: 0; }
  .hamburger-fab    { position: static; transform: none; width: 40px; height: 40px; }
  .logo             { flex-shrink: 0; }
  .logo-title       { font-size: 0.75rem; white-space: nowrap; }
  .logo-subtitle    { font-size: 0.6rem; white-space: nowrap; }
  .currency-display { display: none; }
  .lang-switcher    { padding: 0.15rem; }
  .lang-btn         { padding: 0.2rem 0.4rem; font-size: 0.6rem; }

  /* Hero — vertical, compact */
  .hero {
    flex-direction: column;
    padding: 1.8rem 1rem 1.5rem;
    min-height: auto;
    gap: 0;
    text-align: center;
  }
  .hero-ornament    { display: none; }
  .hero-eyebrow     { font-size: 0.65rem; margin-bottom: 0.5rem; }
  .hero-title       { font-size: 1.9rem; margin-bottom: 0.7rem; }
  .hero-desc        { font-size: 0.82rem; margin-bottom: 1.2rem; line-height: 1.6; }
  .btn-primary      { font-size: 0.72rem; padding: 0.65rem 1.5rem; }

  /* Catalog */
  .catalog-section  { padding: 1rem 0.8rem calc(5.5rem + env(safe-area-inset-bottom)); }
  .section-header   { gap: 0.8rem; margin-bottom: 1.2rem; }
  .section-title    { font-size: 0.9rem; white-space: normal; text-align: center; }
  .section-rule     { display: none; }

  /* Filter bar — horizontal scroll */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 0.5rem;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0;
    font-size: 0.62rem;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
  }

  /* Category & material headers */
  .category-block   { margin-bottom: 2rem; }
  .category-title   { font-size: 0.72rem; margin-bottom: 0.8rem; }
  .material-block   { margin-bottom: 1.5rem; }
  .material-name    { font-size: 0.65rem; }

  /* Grid — 2 columns */
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  /* Cards */
  .item-card        { min-width: 0; }
  .item-img-wrap    { height: 90px; }
  .item-placeholder { font-size: 2.2rem; }
  .item-info        { padding: 0.6rem; }
  .item-rarity-label{ font-size: 0.55rem; }
  .item-name        { font-size: 0.75rem; margin-bottom: 0.3rem; }
  .item-desc        { font-size: 0.68rem; line-height: 1.4;
                      display: -webkit-box; -webkit-line-clamp: 2;
                      -webkit-box-orient: vertical; overflow: hidden; }
  .item-footer      { margin-top: 0.5rem; padding-top: 0.45rem; }
  .item-price       { font-size: 0.75rem; }
  .btn-details      { font-size: 0.55rem; padding: 0.22rem 0.45rem; }

  /* Modal — sube desde abajo */
  .modal-overlay    { padding: 0; align-items: flex-end; }
  .modal-box        {
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 88vh;
    overflow-y: auto;
  }
  .modal-img-wrap   { height: 150px; }
  .modal-placeholder{ font-size: 4rem; }
  .modal-name       { font-size: 1.1rem; }

  /* Bottom nav */
  .bottom-nav       { display: block; }

  /* Footer */
  .site-footer      { padding-bottom: 0; }
  .footer-inner     { padding: 1.2rem 1rem calc(5.5rem + env(safe-area-inset-bottom)); }
}
