/* Casa Whiskey — tienda en línea */

.whk-body {
  --whk-bg: #120c08;
  --whk-card: #1c140e;
  --whk-elev: #271c14;
  --whk-amber: #d4a017;
  --whk-gold: #e8c47a;
  --whk-wood: #6b3e1f;
  --accent: #d4a017;
  --accent-dim: rgba(212, 160, 23, 0.16);
  --bg-dark: #120c08;
  --bg-card: #1c140e;
  --bg-elevated: #271c14;
  --border: #3a2a1c;
  --text: #f4ead8;
  --text-muted: #c4b49a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(212, 160, 23, 0.14), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(107, 62, 31, 0.35), transparent 50%),
    var(--whk-bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.whk-body .header {
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(18, 12, 8, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
}

.whk-logo-mark {
  font-size: 1.45rem;
  line-height: 1;
}

.whk-body .logo-servi { color: var(--whk-gold); }
.whk-body .logo-net { color: var(--text); }

.whk-nav-btn {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.whk-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.whk-cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--whk-amber);
  color: #1a1208;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whk-main.portal-main {
  padding: calc(5.25rem + env(safe-area-inset-top, 0px)) 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.whk-container { max-width: 1120px; }

.whk-page-title,
.whk-page-subtitle {
  text-align: left;
  margin-bottom: 0.2rem;
}

.whk-page-title,
.whk-hero h1,
.whk-age-card h1,
.whk-body .portal-title {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.whk-kicker {
  color: var(--whk-amber);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.whk-hero {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 1.2rem 0 0.4rem;
}

.whk-hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--whk-gold);
  margin-bottom: 0.75rem;
}

.whk-hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.whk-hero-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.whk-body .btn-primary {
  background: var(--whk-amber);
  color: #1a1208;
  border-color: var(--whk-amber);
}

.whk-body .btn-primary:hover {
  filter: brightness(1.06);
}

.whk-promo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.whk-promo-card {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(28, 20, 14, 0.9));
  border: 1px solid rgba(232, 196, 122, 0.28);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}

.whk-promo-card strong {
  display: block;
  color: var(--whk-gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.whk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.whk-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.whk-chip {
  white-space: nowrap;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--whk-card);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.whk-chip.is-on {
  background: var(--accent-dim);
  border-color: var(--whk-amber);
  color: var(--whk-gold);
}

.whk-search {
  min-width: min(100%, 240px);
  flex: 1;
  max-width: 280px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--whk-card);
  color: var(--text);
  font-family: inherit;
}

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

.whk-card {
  background: var(--whk-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.whk-card-art {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.18), transparent 70%),
    var(--whk-elev);
}

.whk-card-art.has-img {
  background: #1a120c;
}

.whk-card-art img,
.whk-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.whk-img-preview {
  height: 140px;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--whk-elev);
}

.whk-td-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.whk-card-art[data-tipo="vasos"] { background: linear-gradient(180deg, rgba(180, 210, 230, 0.16), var(--whk-elev)); }
.whk-card-art[data-tipo="hielo"] { background: linear-gradient(180deg, rgba(160, 200, 230, 0.2), var(--whk-elev)); }
.whk-card-art[data-tipo="accesorios"] { background: linear-gradient(180deg, rgba(200, 170, 120, 0.18), var(--whk-elev)); }
.whk-card-art[data-tipo="pack"] { background: linear-gradient(180deg, rgba(212, 160, 23, 0.28), var(--whk-elev)); }

.whk-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.whk-card-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--whk-amber);
}

.whk-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.whk-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  flex: 1;
}

.whk-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.whk-price {
  color: var(--whk-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

.whk-stock {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.whk-card .btn { width: 100%; margin-top: 0.35rem; }

.whk-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1208;
  background: var(--whk-gold);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.whk-age {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 6, 3, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.whk-age[hidden],
.whk-drawer[hidden],
.whk-modal[hidden] {
  display: none !important;
}

.whk-age-card {
  max-width: 420px;
  background: var(--whk-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.whk-age-card h1 {
  font-size: 2rem;
  color: var(--whk-gold);
  margin-bottom: 0.5rem;
}

.whk-age-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.1rem 0 0.4rem;
}

.whk-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 380px);
  z-index: 60;
  background: var(--whk-card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

.whk-drawer-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.whk-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.whk-drawer-head h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.whk-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.whk-qty {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.whk-qty button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--whk-elev);
  color: var(--text);
  cursor: pointer;
}

.whk-cart-foot { margin-top: auto; padding-top: 0.8rem; }
.whk-cart-promo { color: var(--whk-gold); font-size: 0.85rem; min-height: 1.2em; }
.whk-cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 0.4rem 0 0.8rem; }

.whk-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 5, 2, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.whk-modal-card {
  width: min(100%, 440px);
}

.whk-modal-card h2 {
  font-family: var(--font-display);
  margin-bottom: 0.8rem;
}

.whk-form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.whk-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 0.4rem 0 0.8rem;
}

.whk-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  overflow-x: auto;
}

.whk-tab {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.whk-tab.is-on {
  color: var(--whk-gold);
  border-color: var(--whk-amber);
  background: var(--accent-dim);
}

.whk-table-wrap { overflow-x: auto; }
.whk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.whk-table th,
.whk-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.whk-admin-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .whk-admin-grid { grid-template-columns: 1fr 1.2fr; }
}

.whk-toast {
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 160, 23, 0.35);
}

.whk-top-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.whk-auth-switch { text-align: center; margin: 0.8rem 0; }

.whk-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.whk-stat {
  background: var(--whk-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
}

.whk-stat b {
  display: block;
  font-size: 1.4rem;
  color: var(--whk-gold);
  font-family: var(--font-display);
}

.whk-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(18, 12, 8, 0.96);
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.3rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
}

.whk-bottom button {
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.45rem 0.2rem;
  cursor: pointer;
}

.whk-body .nav-item-dropdown:hover .nav-dropdown-trigger,
.whk-body .nav-item-dropdown:focus-within .nav-dropdown-trigger,
.whk-body .nav-item-dropdown.is-open .nav-dropdown-trigger {
  color: var(--whk-gold);
  background: var(--accent-dim);
  border-color: var(--whk-amber);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.18);
}

.whk-body .nav-dropdown {
  background: var(--whk-card);
  border-color: var(--border);
  min-width: 12rem;
}

.whk-body .nav-dropdown a:hover,
.whk-body .nav-dropdown a:focus {
  color: var(--whk-gold);
  background: var(--accent-dim);
}

.whk-var-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(18, 12, 8, 0.97);
  border-top: 1px solid var(--border);
  padding: 1rem 1rem calc(4.2rem + env(safe-area-inset-bottom, 0px));
}

.whk-var-sheet-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 520px;
  margin: 0 auto;
}

.whk-var-sheet-inner button {
  background: var(--whk-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.whk-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}

.whk-vars:empty { display: none; }

@media (max-width: 760px) {
  .whk-bottom { display: grid; }
  .whk-header .nav-list > li:not(:last-child):not(:nth-last-child(2)):not(.whk-nav-whiskeys) {
    display: none;
  }
}

.whk-empty-row { color: var(--text-muted); padding: 0.8rem 0; }
