/* ═══════════════════════════════════════════════════════════════
   XParfum · Tienda — Identidad: marrón humo + dorado
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta marrón humo + dorado */
  --bg:        #120d08;   /* marrón espresso profundo */
  --bg-2:      #1b130c;
  --surface:   rgba(46, 35, 22, 0.44);    /* vidrio */
  --surface-2: rgba(62, 47, 30, 0.38);
  --glass:     rgba(38, 29, 18, 0.52);
  --glass-brd: rgba(212, 173, 84, 0.20);
  --line:      rgba(212, 173, 84, 0.18);
  --line-soft: rgba(212, 173, 84, 0.09);

  --gold:      #d2a84f;   /* dorado principal */
  --gold-2:    #eed394;   /* dorado claro */
  --gold-deep: #a07d34;
  --cream:     #f2e9d8;   /* texto principal */
  --muted:     #b3a284;   /* texto secundario */
  --smoke:     rgba(140, 105, 65, 0.20);

  --ok:        #7fae72;
  --danger:    #c96a5a;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Jost", system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 12px 40px rgba(0, 0, 0, 0.45);
  --header-h:  128px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ═══════ Fondo humo ═══════ */
.bg-deco {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 45% at 15% 8%,  rgba(120, 88, 46, 0.22), transparent 70%),
    radial-gradient(50% 40% at 88% 20%, rgba(160, 120, 60, 0.12), transparent 70%),
    radial-gradient(70% 55% at 50% 110%, rgba(90, 64, 34, 0.28), transparent 72%),
    linear-gradient(175deg, var(--bg-2) 0%, var(--bg) 55%);
}
.halo {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.55;
  animation: humo 26s ease-in-out infinite alternate;
}
.halo-1 { width: 560px; height: 560px; top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(201,162,75,0.16), transparent 65%); }
.halo-2 { width: 640px; height: 640px; top: 32%; right: -240px;
  background: radial-gradient(circle, rgba(140,100,55,0.20), transparent 65%);
  animation-delay: -9s; }
.halo-3 { width: 500px; height: 500px; bottom: -160px; left: 24%;
  background: radial-gradient(circle, rgba(110,80,45,0.22), transparent 65%);
  animation-delay: -17s; }
@keyframes humo {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(46px, -34px) scale(1.10); }
  100% { transform: translate(-38px, 30px) scale(0.94); }
}
.punto {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.28;
  animation: flotar 14s ease-in-out infinite alternate;
}
.punto.anillo { background: transparent; border: 1px solid var(--gold); opacity: 0.22; width: 9px; height: 9px; }
.punto-1  { top: 16%; left: 8%; }             .punto-2  { top: 24%; left: 82%; animation-delay: -2s; }
.punto-3  { top: 42%; left: 16%; animation-delay: -4s; }  .punto-4  { top: 58%; left: 90%; animation-delay: -6s; }
.punto-5  { top: 66%; left: 6%;  animation-delay: -8s; }  .punto-6  { top: 78%; left: 74%; animation-delay: -3s; }
.punto-7  { top: 32%; left: 55%; animation-delay: -5s; }  .punto-8  { top: 88%; left: 34%; animation-delay: -7s; }
.punto-9  { top: 12%; left: 38%; animation-delay: -9s; }  .punto-10 { top: 50%; left: 68%; animation-delay: -11s; }
@keyframes flotar {
  from { transform: translateY(0); }
  to   { transform: translateY(-26px); }
}

/* ═══════ Header ═══════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 13, 8, 0.66);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0 0.55rem;
}
.brand { text-decoration: none; display: inline-flex; align-items: baseline; }
.brand-word {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 700; color: var(--gold-2); letter-spacing: 0.02em;
}
.brand-word em {
  font-style: italic; font-weight: 500; color: var(--cream);
  margin-left: 0.1em;
}
/* Logo transparente (letras doradas extraídas del original) */
.brand-logo {
  height: 48px; width: auto; display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
@media (max-width: 640px) {
  .brand-logo { height: 38px; }
}

/* Toggle Mayor / Detal */
.price-toggle {
  display: inline-flex; border: 1px solid var(--glass-brd);
  border-radius: 999px; overflow: hidden; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.price-toggle-btn {
  padding: 0.5rem 1.15rem; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  transition: all 0.25s ease;
}
.price-toggle-btn.is-active {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #1c1409;
}

/* Búsqueda */
.header-search { padding-bottom: 0.85rem; }
.search-wrap { position: relative; }
.search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--gold); opacity: 0.8; pointer-events: none;
}
.search-input {
  width: 100%; padding: 0.78rem 2.8rem 0.78rem 2.9rem;
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px; color: var(--cream); font-weight: 300;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  appearance: none; -webkit-appearance: none;
}
.search-input::placeholder { color: var(--muted); opacity: 0.75; }
.search-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.14);
}
.search-clear {
  position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; font-size: 1.25rem;
  color: var(--muted); display: grid; place-items: center;
  transition: color 0.2s, background 0.2s;
}
.search-clear:hover { color: var(--gold-2); background: var(--surface-2); }

/* ═══════ Hero ═══════ */
.hero { padding: 4.2rem 0 2.6rem; text-align: center; }
.hero-title { animation: heroIn 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.hero-subtitle { animation: heroIn 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) 0.15s both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 500; line-height: 1.08; color: var(--cream);
  letter-spacing: 0.012em;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(110deg,
    var(--gold) 20%, var(--gold-2) 40%, #fff3d6 50%, var(--gold-2) 60%, var(--gold) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: brillo 5.5s ease-in-out infinite;
}
@keyframes brillo {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
.hero-subtitle {
  margin-top: 1.05rem; color: var(--muted); letter-spacing: 0.05em;
  font-size: clamp(0.98rem, 2vw, 1.12rem); font-weight: 300;
  max-width: 34rem; margin-inline: auto;
}

/* ═══════ Destacados ═══════ */
.featured { margin-bottom: 2.4rem; animation: heroIn 0.7s ease 0.1s both; }
.featured-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.1rem; }
.featured-title {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; color: var(--gold-2);
}
.featured-sub { color: var(--muted); font-size: 0.88rem; }
.featured-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 68vw);
  gap: 1rem; overflow-x: auto; padding: 0.3rem 0.2rem 0.9rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.featured-track > * { scroll-snap-align: start; }

/* ═══════ Toolbar / filtros ═══════ */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.4rem;
  padding: 1.1rem 0 1rem;
}
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 0.95rem; top: 50%;
  width: 7px; height: 7px; border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.filter-select {
  appearance: none; -webkit-appearance: none;
  min-width: 200px; padding: 0.62rem 2.4rem 0.62rem 1rem;
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm); color: var(--cream); font-weight: 300;
  transition: border-color 0.25s ease;
}
.filter-select:focus { outline: none; border-color: var(--gold); }
.filter-select option { background: var(--surface); color: var(--cream); }
.results-count { margin-left: auto; color: var(--muted); font-size: 0.86rem; }

/* Chips de casas */
.brand-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.brand-chips:empty { display: none; }
.chip {
  padding: 0.38rem 0.95rem; border-radius: 999px; font-size: 0.8rem;
  border: 1px solid var(--line); color: var(--muted); background: transparent;
  transition: all 0.22s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chip.is-active {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border-color: transparent; color: #1c1409; font-weight: 500;
}

/* ═══════ Grid de productos ═══════ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 1.15rem; padding-bottom: 2.5rem;
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(168deg, var(--surface-2), var(--surface) 62%);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 235, 190, 0.07), 0 8px 26px rgba(0, 0, 0, 0.30);
  overflow: hidden; transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  animation: cardIn 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
/* Entrada escalonada de las tarjetas */
.product-grid .card:nth-child(1)  { animation-delay: 0.02s; }
.product-grid .card:nth-child(2)  { animation-delay: 0.06s; }
.product-grid .card:nth-child(3)  { animation-delay: 0.10s; }
.product-grid .card:nth-child(4)  { animation-delay: 0.14s; }
.product-grid .card:nth-child(5)  { animation-delay: 0.18s; }
.product-grid .card:nth-child(6)  { animation-delay: 0.22s; }
.product-grid .card:nth-child(7)  { animation-delay: 0.26s; }
.product-grid .card:nth-child(8)  { animation-delay: 0.30s; }
.product-grid .card:nth-child(n+9) { animation-delay: 0.34s; }
.featured-track .card:nth-child(1) { animation-delay: 0.05s; }
.featured-track .card:nth-child(2) { animation-delay: 0.12s; }
.featured-track .card:nth-child(3) { animation-delay: 0.19s; }
.featured-track .card:nth-child(4) { animation-delay: 0.26s; }
.featured-track .card:nth-child(n+5) { animation-delay: 0.33s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-5px); border-color: rgba(212, 173, 84, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 235, 190, 0.09),
              0 18px 44px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(212, 173, 84, 0.10),
              0 10px 40px -12px rgba(210, 168, 79, 0.22);
}
.card-img {
  aspect-ratio: 1 / 1.05; background: rgba(52, 40, 25, 0.45) center/cover no-repeat;
  display: grid; place-items: center; position: relative;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-img .placeholder {
  font-family: var(--font-serif); font-size: 3rem; font-style: italic;
  color: var(--gold-deep); opacity: 0.55;
}
.card-img.img-error { background-image: none !important; }
.card-img.img-error::after {
  content: "";
  width: 44px; height: 44px; opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a24b' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.card-badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #1c1409; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.65rem; border-radius: 999px;
}
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card-casa {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.card-nombre {
  font-family: var(--font-serif); font-size: 1.14rem; font-weight: 600;
  color: var(--cream); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.14rem * 1.25 * 2);
}
.card-precios {
  margin-top: auto; padding-top: 0.7rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  border-top: 1px solid var(--line-soft);
}
.precio-principal { display: flex; align-items: baseline; gap: 0.55rem; }
.precio-activo {
  font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600;
  color: var(--gold-2); letter-spacing: 0.01em; line-height: 1;
}
.precio-tachado { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; opacity: 0.7; }
.precio-bs { font-size: 0.78rem; color: var(--muted); }
.precio-bs strong { color: var(--cream); font-weight: 500; }

/* Mayor / Detal siempre visibles, el modo activo resaltado */
.precio-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.duo-cell {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.42rem 0.6rem; border-radius: var(--radius-sm);
  background: rgba(20, 14, 9, 0.35);
  border: 1px solid var(--line-soft);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.duo-cell.is-active {
  border-color: rgba(212, 173, 84, 0.45);
  background: rgba(210, 168, 79, 0.10);
}
.duo-label {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); white-space: nowrap;
}
.duo-cell.is-active .duo-label { color: var(--gold); }
.duo-valor { font-size: 0.98rem; font-weight: 500; color: var(--cream); }
.duo-cell.is-active .duo-valor { color: var(--gold-2); font-weight: 600; }
.card-add {
  margin-top: 0.8rem; width: 100%; padding: 0.6rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  color: var(--gold-2); font-size: 0.84rem; font-weight: 500;
  letter-spacing: 0.05em; transition: all 0.22s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.card-add:hover {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border-color: transparent; color: #1c1409;
}
.card-add:disabled { opacity: 0.35; cursor: not-allowed; }
.card-add svg { width: 15px; height: 15px; }
.card-agotado {
  font-size: 0.74rem; color: var(--danger); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 0.5rem;
}

/* ═══════ Paginación ═══════ */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0 3rem; flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 0.6rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem; transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.page-btn.is-active {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border-color: transparent; color: #1c1409; font-weight: 600;
}
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-dots { color: var(--muted); padding: 0 0.2rem; }

/* ═══════ Estado vacío ═══════ */
.empty-state { text-align: center; padding: 4rem 1rem 5rem; }
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 1.5rem; color: var(--gold);
}
.empty-state h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; }
.empty-state p { color: var(--muted); margin-top: 0.6rem; line-height: 1.6; }
.btn-reset {
  margin-top: 1.4rem; padding: 0.68rem 1.7rem; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-2);
  letter-spacing: 0.06em; transition: all 0.25s ease;
}
.btn-reset:hover { background: var(--gold); color: #1c1409; }

/* ═══════ Footer ═══════ */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(16, 11, 7, 0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 2.6rem 0 2.2rem; text-align: center;
}
.footer-brand {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--gold-2);
}
.footer-brand em { font-style: italic; font-weight: 500; color: var(--cream); }
.footer-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.45rem; }
.footer-copy { color: var(--muted); font-size: 0.76rem; margin-top: 1.1rem; opacity: 0.8; }

/* ═══════ Carrito ═══════ */
.cart-fab {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #1c1409; display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s ease;
}
.cart-fab:hover { transform: scale(1.07); }
.cart-fab.pulso { animation: pulso 0.45s ease; }
@keyframes pulso {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.cart-fab svg { width: 24px; height: 24px; }
.cart-fab-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: var(--cream); color: #1c1409;
  font-size: 0.72rem; font-weight: 600; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.cart-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 7, 4, 0.6); backdrop-filter: blur(3px);
  animation: fadeIn 0.28s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 94vw);
  background: rgba(24, 17, 11, 0.82);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  border-left: 1px solid var(--glass-brd);
  display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.45);
  animation: drawerIn 0.3s ease;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-2); }
.cart-close {
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem;
  color: var(--muted); display: grid; place-items: center; transition: all 0.2s;
}
.cart-close:hover { color: var(--gold-2); background: var(--surface); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.9rem 1.3rem; }
.cart-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-casa { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cart-item-nombre {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-precio { font-size: 0.8rem; color: var(--muted); }
.cart-qty { display: inline-flex; align-items: center; gap: 0.15rem; border: 1px solid var(--line); border-radius: 999px; }
.cart-qty button {
  width: 27px; height: 27px; display: grid; place-items: center;
  color: var(--gold-2); font-size: 1rem; border-radius: 50%;
}
.cart-qty button:hover { background: var(--surface); }
.cart-qty span { min-width: 22px; text-align: center; font-size: 0.88rem; }
.cart-item-total { font-weight: 500; color: var(--gold-2); font-size: 0.92rem; min-width: 3.2rem; text-align: right; }
.cart-item-remove { color: var(--muted); font-size: 1.05rem; padding: 0.2rem 0.35rem; transition: color 0.2s; }
.cart-item-remove:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.cart-empty-hint { font-size: 0.82rem; margin-top: 0.4rem; opacity: 0.8; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.05rem 1.3rem 1.25rem; display: grid; gap: 0.65rem; }
.cart-datos { display: grid; gap: 0.55rem; }
.cart-input {
  width: 100%; padding: 0.66rem 0.95rem;
  background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm); color: var(--cream);
}
.cart-input:focus { outline: none; border-color: var(--gold); }
.cart-input::placeholder { color: var(--muted); opacity: 0.75; }
.cart-datos-error { color: var(--danger); font-size: 0.8rem; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.3rem 0.1rem; color: var(--muted);
}
.cart-total-row strong { font-size: 1.45rem; color: var(--gold-2); font-weight: 600; }
.cart-btn {
  width: 100%; padding: 0.78rem; border-radius: var(--radius-sm);
  font-weight: 500; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  transition: all 0.22s ease;
}
.cart-btn svg { width: 19px; height: 19px; }
.cart-btn-wa { background: #24803c; color: #f4fbf4; }
.cart-btn-wa:hover { background: #2e9c4b; }
.cart-btn-copy { border: 1px solid var(--line); color: var(--gold-2); }
.cart-btn-copy:hover { border-color: var(--gold); background: var(--surface); }
.cart-clear {
  color: var(--muted); font-size: 0.8rem; text-decoration: underline;
  text-underline-offset: 3px; justify-self: center; transition: color 0.2s;
}
.cart-clear:hover { color: var(--danger); }

/* ═══════ Responsive ═══════ */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .toolbar { gap: 0.8rem; }
  .filter-select { min-width: 150px; }
  .results-count { width: 100%; margin-left: 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
  .card-nombre { font-size: 1.05rem; }
  .hero { padding: 2.8rem 0 1.8rem; }
}

/* ═══════ Accesibilidad: reducir movimiento ═══════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════ Feedback al presionar (ningún botón parece muerto) ═══════ */
button, .btn, .card-add, .price-toggle-btn, .page-btn, .chip,
.cart-btn, .cart-clear, .btn-reset, .cart-fab, .cart-item-remove,
.qty-btn, .search-clear {
  transition: transform 0.12s ease, filter 0.15s ease,
              background-color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
button:active, .btn:active, .card-add:active, .price-toggle-btn:active,
.page-btn:active, .chip:active, .cart-btn:active, .cart-clear:active,
.btn-reset:active, .cart-item-remove:active, .qty-btn:active {
  transform: scale(0.94);
  filter: brightness(1.15);
}
.cart-fab:active { transform: scale(0.9); }
button:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* ═══════ Pulido fino ═══════ */
/* Sin la X nativa del buscador (usamos la nuestra) */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* Checkbox y radio en dorado */
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); }

/* Foco visible elegante */
:focus-visible { outline: 2px solid rgba(212, 173, 84, 0.55); outline-offset: 2px; border-radius: 4px; }

/* Scrollbars acordes al diseño */
* { scrollbar-width: thin; scrollbar-color: rgba(212, 173, 84, 0.28) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(212, 173, 84, 0.25); border-radius: 99px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(212, 173, 84, 0.45); }

/* Selección de texto dorada */
::selection { background: rgba(210, 168, 79, 0.35); color: #fff6e6; }

/* Botón de tarjeta siempre en una línea */
.card-add { white-space: nowrap; }

/* Móvil: celdas de precio y botón compactos, sin cortes */
@media (max-width: 520px) {
  .precio-duo { gap: 0.35rem; }
  .duo-cell { padding: 0.34rem 0.45rem; min-width: 0; }
  .duo-label { font-size: 0.55rem; letter-spacing: 0.07em; }
  .duo-valor { font-size: 0.88rem; }
  .precio-activo { font-size: 1.38rem; }
  .card-add { font-size: 0.78rem; padding: 0.55rem 0.4rem; gap: 0.35rem; }
  .card-body { padding: 0.85rem 0.8rem 0.95rem; }
}
