/* Tienda pública (se apoya en admin.css, area.css y blog.css) */
.sh-wrap { max-width: none; padding: 26px 28px 60px; }
.sh-head { align-items: flex-end; }
.sh-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; flex: 0 1 380px; }
.sh-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sh-search input { border: 0; background: transparent; min-height: 46px; flex: 1; color: var(--text); font: 16px Inter, sans-serif; outline: none; min-width: 0; }
.sh-aviso { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.sh-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.sh-cats a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.sh-cats a.on, .sh-cats a:hover { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.sh-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.sh-card:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.sh-img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-card.agotado .sh-img img { opacity: .5; filter: grayscale(.6); }
.sh-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #111; font: 700 13px Inter, sans-serif; font-style: normal; }
.sh-tag.bad { background: var(--bad); color: #fff; }
.sh-info { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.sh-info b { font-size: 17px; }
.sh-info small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.sh-precio { margin-top: 6px; font: italic 800 24px/1 "Barlow Condensed", sans-serif; color: var(--gold); }
.sh-precio s, .sh-pp s { color: var(--muted); font-size: .7em; font-style: normal; font-weight: 500; margin-left: 4px; }
.sh-cart-btn { position: relative; }
.sh-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #111; font: 700 12px/20px Inter, sans-serif; font-style: normal; text-align: center; }
.sh-crumb a { color: inherit; text-decoration: none; }
.sh-ok { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok, #3fb96b) 14%, transparent); margin: 8px 0 18px; }
/* Ficha */
.sh-prod { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 10px; }
.sh-gal-main { aspect-ratio: 1; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.sh-gal-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sh-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sh-thumbs button { width: 78px; height: 78px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.sh-thumbs button.on { border-color: var(--gold); }
.sh-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sh-buy h1 { font: italic 800 clamp(34px, 4vw, 52px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 0 0 12px; }
.sh-pp { margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sh-pp b { font: italic 800 40px/1 "Barlow Condensed", sans-serif; color: var(--gold); }
.sh-pp small { color: var(--muted); }
.sh-res { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.sh-attr { margin: 0 0 16px; }
.sh-attr > span { display: block; font-weight: 600; margin-bottom: 8px; }
.sh-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-opts button { min-width: 52px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 15px Inter, sans-serif; cursor: pointer; }
.sh-opts button:hover { border-color: var(--line-gold); }
.sh-opts button.on { border-color: var(--gold); background: var(--gold); color: #111; }
.sh-opts button.sin { opacity: .35; text-decoration: line-through; }
.sh-stock { min-height: 22px; margin: 4px 0 12px; font-weight: 600; }
.sh-stock.ok { color: var(--ok, #3fb96b); } .sh-stock.warn { color: #e8a33a; } .sh-stock.bad { color: var(--bad); }
.sh-qty label { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.sh-qty input { width: 96px; min-height: 46px; }
.sh-btns { margin: 16px 0 10px; }
.sh-btns .btn-save { width: 100%; min-height: 54px; font-size: 18px; }
.sh-btns .btn-save:disabled { opacity: .45; cursor: not-allowed; }
.sh-env { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.sh-desc { border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.6; }
/* Carrito */
.sh-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.sh-lines { padding: 8px 18px; }
.sh-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) 92px 100px 44px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sh-line-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #fff; display: block; }
.sh-line-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-line-info a { color: var(--text); text-decoration: none; }
.sh-line-info small { color: var(--muted); }
.sh-line-qty input { width: 84px; min-height: 44px; }
.sh-line-tot { text-align: right; white-space: nowrap; }
.sh-line-x { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.sh-line-x:hover { color: #fff; background: var(--cancel, #d23c3c); border-color: transparent; }
.sh-line-acc { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; }
.sh-sum p { display: flex; justify-content: space-between; margin: 0 0 10px; }
.sh-sum .sh-tot { border-top: 1px solid var(--line); padding-top: 12px; font-size: 20px; }
.sh-sum .sh-tot b { font: italic 800 30px/1 "Barlow Condensed", sans-serif; color: var(--gold); }
.sh-falta { color: var(--gold); font-size: 14px; }
.sh-notas { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; font-weight: 600; color: var(--muted); }
.sh-sum .btn-save.wide { width: 100%; min-height: 54px; font-size: 18px; }
.sh-gracias { max-width: 640px; margin: 20px auto; text-align: center; }
.sh-gracias > svg { width: 64px; height: 64px; color: var(--ok, #3fb96b); }
.sh-gracias h1 { font: italic 800 42px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 10px 0; }
.sh-gracias .list { text-align: left; margin: 18px 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
  .sh-wrap { padding: 18px 16px 40px; }
  .sh-prod, .sh-cart { grid-template-columns: 1fr; gap: 20px; }
  .sh-search { flex-basis: 100%; }
  .pub-nav { display: none; }
}
@media (max-width: 640px) {
  .sh-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sh-info { padding: 10px 12px 12px; }
  .sh-info b { font-size: 15px; }
  .sh-info small { display: none; }
  .sh-line { grid-template-columns: 64px minmax(0, 1fr) 44px; grid-template-areas: "img info x" "img qty tot"; }
  .sh-line-img { grid-area: img; width: 64px; height: 64px; } .sh-line-info { grid-area: info; } .sh-line-x { grid-area: x; }
  .sh-line-qty { grid-area: qty; } .sh-line-tot { grid-area: tot; }
}

/* Descuento de socio (membresía) */
.sh-socio { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ok, #3fb96b) 45%, transparent); background: color-mix(in srgb, var(--ok, #3fb96b) 12%, transparent); }
.sh-socio svg { width: 22px; height: 22px; flex: none; color: var(--ok, #3fb96b); }
.sh-socio a { color: var(--gold); font-weight: 600; }
.sh-socio-p { margin: -6px 0 14px; color: var(--ok, #3fb96b); font-weight: 600; }
.sh-line-info s { color: var(--muted); margin-left: 4px; }
.sh-dto b, .sh-dto span { color: var(--ok, #3fb96b); }
