/* ==========================================================================
   UShop · Tiendas y productos (v2.1)
   Todas las variables (--brand, --bg, --ink, --muted, --line, --deep…) se calculan
   en PHP a partir del color de marca del vendedor (ushop_store_css_vars), así que
   cada tienda tiene su propia atmósfera sin que el vendedor diseñe nada.
   ========================================================================== */

body.ushop-store, .ushop-store { background: var(--bg); color: var(--ink); font-family: var(--font-body); }
.ushop-store a { color: inherit; }
.s-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 900px) { .s-wrap { padding-left: 32px; padding-right: 32px; } }
.s-muted { color: var(--muted); }
.s-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.s-link:hover { color: var(--brand-text); }
.s-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 20px; color: var(--ink); }
.s-lead { font-size: 18px; line-height: 1.6; margin: 0 0 20px; max-width: 60ch; }
.s-section { padding: clamp(56px, 7vw, 96px) 0; }
.s-section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.s-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 24px; }
.s-head .s-h2 { margin: 0; }
.s-head__ctrl { display: flex; gap: 8px; }
.s-count { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; vertical-align: middle; }
.s-only-m { display: inline-flex; }
.s-only-d { display: none !important; }
@media (min-width: 960px) { .s-only-m { display: none !important; } .s-only-d { display: flex !important; } }
html.s-lock { overflow: hidden; }
.ushop-store [hidden] { display: none !important; }

/* ---------- Botones ---------- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center; transition: transform .12s ease, filter .12s ease, background-color .12s ease; }
.s-btn:hover { filter: brightness(1.06); }
.s-btn:active { transform: translateY(1px); }
.s-btn--xl { min-height: 56px; font-size: 17px; padding: 14px 26px; }
.s-btn--block { width: 100%; }
.s-btn--brand { background: var(--brand); color: var(--brand-ink) !important; }
.s-btn--line { border-color: var(--ink); color: var(--ink) !important; background: transparent; }
.s-btn--line:hover { background: var(--ink); color: var(--bg) !important; filter: none; }
.s-btn--light { background: #FFFFFF; color: #141210 !important; }
.s-btn--ghost-light { border-color: rgba(255,255,255,.8); color: #FFFFFF !important; background: transparent; }
.s-btn[disabled] { opacity: .6; pointer-events: none; }
.s-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; position: relative; }
.s-iconbtn:hover { background: var(--brand-soft); }
.s-iconbtn--line { border: 1.5px solid var(--line); }

/* ---------- Aviso + cabecera ---------- */
.s-announce { background: var(--brand); color: var(--brand-ink); text-align: center; font-size: 13px; font-weight: 500; padding: 9px 16px; }
.s-announce p { margin: 0; }
.s-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.s-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 68px; max-width: 1320px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 900px) { .s-header__bar { padding: 0 32px; min-height: 76px; } }
.s-header__left { display: flex; align-items: center; gap: 16px; }
.s-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.s-nav { gap: 26px; font-size: 15px; font-weight: 500; margin-right: 12px; }
.s-header__left .s-nav { margin-right: 0; }
.s-nav a:hover { color: var(--brand-text); }
.s-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.s-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.s-logo span { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 2vw, 24px); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.s-header .u-cart-count { background: var(--brand); color: var(--brand-ink); }
.s-search { display: none; max-width: 720px; margin: 0 auto; padding: 4px 20px 16px; gap: 8px; }
.s-search.is-open { display: flex; }
.s-search input { flex: 1; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--surface); padding: 0 16px; font: inherit; color: var(--ink); }
.s-menu { display: none; padding: 4px 20px 20px; }
.s-menu.is-open { display: block; }
.s-menu a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }

/* ---------- Portada ---------- */
.s-wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, var(--fs, 12vw), 250px); line-height: .84; letter-spacing: -.055em; margin: 0; overflow-wrap: anywhere; }
.s-hero__tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 18px; max-width: 22ch; }
.s-hero__intro { font-size: 17px; line-height: 1.55; margin: 0 0 22px; max-width: 46ch; opacity: .92; }

.s-hero--photo { position: relative; min-height: min(88vh, 860px); display: flex; color: #FFFFFF; overflow: hidden; background: var(--deep); }
.s-hero__bg, .s-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%); }
.s-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding-top: 120px; padding-bottom: 36px; }
.s-hero--photo .s-wordmark { color: #FFFFFF; }
@media (max-width: 700px) { .s-hero--photo { min-height: 78vh; } .s-head__ctrl { display: none; } }

.s-hero--split { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .s-hero--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(84vh, 780px); } }
.s-hero__panel { background: var(--brand); color: var(--brand-ink); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 420px; }
.s-wordmark--stack { font-size: clamp(56px, 8vw, 132px); }
.s-hero__photo { background: var(--brand-soft); min-height: 360px; }
.s-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.s-hero--type { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.s-wordmark--brand { color: var(--brand-text); margin: 6px 0 28px; }
.s-collage { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-collage figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--brand-soft); }
.s-collage figure:nth-child(2) { transform: translateY(28px); }
.s-collage img { width: 100%; height: 100%; object-fit: cover; }
.s-collage--1 { grid-template-columns: minmax(0, 1fr); }
.s-collage--1 figure { aspect-ratio: 16 / 9; }
.s-collage--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .s-collage--3 figure:nth-child(3) { display: none; } .s-collage--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cinta de beneficios ---------- */
.s-ribbon { display: flex; gap: 32px; overflow-x: auto; padding: 15px 20px; background: var(--deep); color: #FFFFFF; font-size: 14px; font-weight: 500; scrollbar-width: none; }
.s-ribbon::-webkit-scrollbar { display: none; }
.s-ribbon span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (min-width: 900px) { .s-ribbon { justify-content: center; } }

/* ---------- Tarjetas de producto ---------- */
.s-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.s-card__media { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--brand-soft); }
.s-card__img, .s-card__img2, .s-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-card__img2 { opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) { .s-card:hover .s-card__img2 { opacity: 1; } }
.s-card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.s-card__quick { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px; justify-content: center; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.s-card__quick span { display: none; }
@media (hover: hover) and (min-width: 900px) { .s-card__quick { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; } .s-card:hover .s-card__quick, .s-card__quick:focus-visible { opacity: 1; transform: none; } .s-card__quick span { display: inline; } }
.s-card__quick:hover { background: var(--brand); color: var(--brand-ink); }
.s-card__quick.is-loading { opacity: .6; }
.s-card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.s-card__name { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0; }
.s-card__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.s-card__rating { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.s-card__price { margin: 2px 0 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.s-card__price b { font-size: 16px; font-weight: 600; }
.s-card__price s { font-size: 14px; color: var(--muted); }
.s-card--lg .s-card__name { font-size: 16px; }

/* Estrellas (máscara: se rellenan según --r) */
.s-stars { --size: 14px; display: inline-block; width: calc(var(--size) * 5); height: var(--size); background: linear-gradient(90deg, var(--ink) calc(var(--r, 0) / 5 * 100%), var(--line) 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.2 1.3-6.6L2.5 9.3l6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.2 1.3-6.6L2.5 9.3l6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; vertical-align: -2px; }
.s-stars--lg { --size: 22px; }

/* ---------- Carrusel ---------- */
.s-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none; }
.s-rail::-webkit-scrollbar { display: none; }
.s-rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .s-rail { grid-auto-columns: calc((min(100vw, 1320px) - 64px - 48px) / 4); padding-inline: max(32px, calc((100vw - 1320px) / 2 + 32px)); scroll-padding-inline: max(32px, calc((100vw - 1320px) / 2 + 32px)); } }

/* ---------- Categorías ---------- */
.s-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.s-cat { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--brand-soft); display: block; }
@media (min-width: 900px) { .s-cat { aspect-ratio: 4 / 5; } }
.s-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.s-cat:hover img { transform: scale(1.04); }
.s-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.s-cat__label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #FFFFFF; display: flex; flex-direction: column; }
.s-cat__label b { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.s-cat__label small { font-size: 13px; opacity: .85; }

/* ---------- Historia ---------- */
.s-story { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); }
@media (min-width: 900px) { .s-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; } }
.s-story__img { background: var(--brand-soft); min-height: 320px; }
.s-story__img img { width: 100%; height: 100%; object-fit: cover; }
.s-story__text { padding: clamp(32px, 6vw, 96px); align-self: center; }
.s-checks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.s-checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.s-checks .u-icon { color: var(--brand-text); }
.s-social { display: flex; gap: 8px; margin-top: 16px; }
.s-social a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.s-social a:hover { border-color: var(--ink); }

/* ---------- Catálogo ---------- */
.s-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.s-sort select { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; font-size: 15px; }
.s-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 20px; scrollbar-width: none; }
.s-chips::-webkit-scrollbar { display: none; }
.ushop-store .s-chip { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.ushop-store .s-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 720px) { .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1100px) { .s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.s-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.s-pager a, .s-pager span { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); }
.s-pager .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.s-empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 48px 24px; text-align: center; color: var(--muted); }

/* ---------- Reseñas ---------- */
.s-reviews { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.s-reviews__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 48px; margin-bottom: 28px; align-items: end; }
@media (min-width: 900px) { .s-reviews__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.s-reviews__head .s-h2 { margin: 0; max-width: 18ch; }
.s-reviews__score p { margin: 8px 0 12px; color: var(--muted); }
.s-bars li { display: grid; grid-template-columns: 80px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.s-bars__track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.s-bars__track span { display: block; height: 100%; background: var(--ink); }
.s-reviews__list { columns: 3 280px; column-gap: 12px; }
.s-review { break-inside: avoid; margin: 0 0 12px; background: var(--surface); border-radius: 14px; padding: 20px; }
.s-review blockquote { margin: 10px 0 14px; font-size: 16px; line-height: 1.55; }
.s-review figcaption { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.s-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-text); font-weight: 500; }
.s-review__product { color: var(--muted); width: 100%; }

/* ---------- Ayuda / preguntas ---------- */
.s-help { background: var(--surface); }
.s-help__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; }
@media (min-width: 900px) { .s-help__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.s-help__grid > div:first-child p { max-width: 40ch; margin: 0 0 20px; }
.s-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.s-faq details:last-child { border-bottom: 1px solid var(--line); }
.s-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; font-size: 22px; line-height: 1; font-weight: 400; color: var(--muted); }
.s-faq details[open] summary::after { content: '−'; }
.s-faq details p, .s-faq details > div { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.s-content { color: var(--ink) !important; }
.s-content p { color: var(--ink); }

/* ---------- Pie ---------- */
.s-footer { background: var(--deep); color: #FFFFFF; padding-bottom: 88px; }
@media (min-width: 960px) { .s-footer { padding-bottom: 0; } }
.s-footer__brand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 56px; padding-bottom: 40px; }
.s-footer__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.035em; line-height: 1; }
.s-footer__brand p { margin: 10px 0 0; opacity: .8; max-width: 40ch; }
.s-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 40px; align-content: start; font-size: 15px; }
.s-footer__links a:hover, .s-footer__legal a:hover { text-decoration: underline; }
.s-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: rgba(255,255,255,.78); }
.s-footer__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.s-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.s-footer__legal nav a { text-decoration: none; }

/* ---------- Barra fija (tienda, móvil) ---------- */
.s-dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.s-dock a { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; color: var(--bg); font-weight: 600; }
.s-dock__main { background: var(--brand); color: var(--brand-ink) !important; }
.s-dock .s-dock__count { position: static; display: inline-flex; background: var(--brand-ink); color: var(--brand); min-width: 22px; height: 22px; font-size: 12px; }
.s-dock .s-dock__count[data-count="0"] { display: none; }
@media (min-width: 960px) { .s-dock { display: none; } }

/* ==========================================================================
   PRODUCTO
   ========================================================================== */
.s-pdp { padding-top: 12px; }
.s-admin { margin: 8px 0 12px; background: #FFF7D6; color: #3D3300; border: 1px solid #E5C04B; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.s-admin summary { cursor: pointer; font-weight: 600; }
.s-admin ul { margin: 8px 0 0; padding-left: 18px; }
.s-crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin: 4px 0 16px; }
.s-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.s-pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1000px) { .s-pdp__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; } }

.s-pdp__media { display: grid; gap: 12px; }
@media (min-width: 1000px) { .s-pdp__media { position: sticky; top: 96px; grid-template-columns: 76px minmax(0, 1fr); align-items: start; } .s-pdp__media:not(:has(.s-thumbs)) { grid-template-columns: minmax(0, 1fr); } }
.s-pdp__stage { position: relative; min-width: 0; }
@media (max-width: 999px) { .s-pdp__stage { margin-left: -20px; margin-right: -20px; } .s-pdp .s-gallery, .s-pdp .s-gallery figure { border-radius: 0 !important; } }
.s-pdp .u-gallery figure { background: var(--brand-soft); border-radius: 16px; }
.s-pdp .u-gallery { border-radius: 16px; }
.s-pdp .u-thumbs.s-thumbs { display: none; }
@media (min-width: 1000px) { .s-pdp .u-thumbs.s-thumbs { display: flex; flex-direction: column; gap: 10px; margin: 0; } .s-pdp .s-dots { display: none; } }
.s-thumbs button { width: 76px; height: 95px; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; background: var(--brand-soft); }
.s-thumbs button.is-active { border-color: var(--ink); }
.s-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.s-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; margin: 0; }
.s-dots button { background: rgba(255,255,255,.6); }
.s-dots button.is-active { background: #FFFFFF; }
.s-pdp__counter { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.92); color: #141210; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.s-pdp__flag { position: absolute; top: 14px; left: 14px; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
@media (max-width: 999px) { .s-pdp__flag { left: 20px; } .s-pdp__counter { right: 20px; } }

.s-pdp__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 10px; }
.s-pdp__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.s-pdp__rating:hover { color: var(--ink); }
.s-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 6px 0 0; }
.s-price b { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.s-price s { color: var(--muted); font-size: 18px; }
.s-save { background: var(--brand-soft); color: var(--brand-text); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.s-signals { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 0; font-size: 14px; }
.s-signals li { display: flex; align-items: center; gap: 8px; }
.s-signals li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.s-signals li.is-hot::before { background: #C2410C; box-shadow: 0 0 0 4px rgba(194,65,12,.15); }
.s-countdown { font-variant-numeric: tabular-nums; }
.s-excerpt { margin-top: 18px; line-height: 1.6; }
.s-excerpt p { margin: 0 0 10px; }
.s-excerpt ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.s-excerpt li { display: flex; gap: 10px; }
.s-excerpt li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }

.s-buy { margin-top: 24px; }
.s-packs { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.s-packs legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.s-pack { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.s-pack input { position: absolute; opacity: 0; pointer-events: none; }
.s-pack:has(input:checked) { border: 2px solid var(--brand-text); background: var(--brand-soft); }
.s-pack:has(input:focus-visible) { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.s-pack__main { display: flex; flex-direction: column; }
.s-pack__main small { color: var(--muted); font-size: 13px; }
.s-pack__off { background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.s-pack__price { font-weight: 700; font-size: 17px; }

.s-eta label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.s-eta label .u-icon { color: var(--brand-text); }
.s-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.s-input:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft); }
.s-input--cp { max-width: 220px; font-size: 19px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.s-zone { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; border: 1.5px solid transparent; }
.s-zone strong { color: var(--ink); font-size: 15px; }
.s-zone[data-type] { background: var(--brand-soft); color: var(--ink); }
.s-zone.is-warn { border-color: #C2410C; background: #FFF4EC; color: #7A2A08; }
.s-zone[aria-busy="true"] { opacity: .6; }

.s-ctas { display: grid; gap: 10px; margin-top: 18px; }
.s-assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.s-assure li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 600; line-height: 1.25; }
.s-assure small { font-weight: 400; color: var(--muted); }
.s-assure .u-icon { color: var(--brand-text); }
.s-buy--native .quantity input { min-height: 50px; border-radius: 10px; border: 1.5px solid var(--line); }
.s-buy--native .single_add_to_cart_button { background: var(--brand) !important; color: var(--brand-ink) !important; border-radius: 12px !important; min-height: 54px; }
.s-pdp__acc { margin-top: 28px; }

/* Panel de compra */
.s-sheet { position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; background: var(--bg); color: var(--ink); box-shadow: 0 -20px 60px rgba(0,0,0,.25); }
.s-sheet[open] { display: flex; flex-direction: column; animation: s-up .28s cubic-bezier(.2,.8,.2,1); }
.s-sheet::backdrop { background: rgba(10,10,10,.5); }
@media (min-width: 760px) { .s-sheet { inset: 0 0 0 auto; width: 480px; height: 100vh; max-height: 100vh; border-radius: 0; } .s-sheet[open] { animation-name: s-left; } }
@keyframes s-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s-left { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.s-sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.s-sheet__head h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin: 0; }
.s-sheet__body { flex: 1; overflow-y: auto; padding: 16px 20px 8px; overscroll-behavior: contain; }
.s-sheet__foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.s-sheet__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--surface); }
.s-sheet__item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.s-sheet__item div { display: flex; flex-direction: column; font-size: 14px; }
.s-fs { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.s-fs legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 10px; }
.s-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s-field--full { grid-column: 1 / -1; }
.s-field label { font-size: 13px; font-weight: 600; }
.s-field small { font-size: 12px; }
.s-pays { display: flex; flex-direction: column; gap: 8px; }
.s-pay { position: relative; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.s-pay[hidden] { display: none; }
.s-pay input { position: absolute; opacity: 0; pointer-events: none; }
.s-pay:has(input:checked) { border: 2px solid var(--brand-text); background: var(--brand-soft); }
.s-pay:has(input:focus-visible) { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.s-pay span { display: flex; flex-direction: column; }
.s-pay small { color: var(--muted); font-size: 13px; }
.s-pay .u-icon { color: var(--brand-text); }
.s-summary { margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.s-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.s-summary__total { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 4px; }
.s-error { color: #B42318; font-size: 14px; margin: 0 0 8px; min-height: 0; }
.s-error:empty { display: none; }
.s-fine { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.s-fine a { text-decoration: underline; }

/* Cómo llega */
.s-howto { background: var(--deep); color: #FFFFFF; padding: clamp(48px, 6vw, 80px) 0; margin-top: clamp(48px, 6vw, 80px); }
.s-howto .s-h2 { color: #FFFFFF; }
.s-howto__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.s-howto__steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.s-howto__steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.s-howto__steps b { font-size: 18px; }
.s-howto__steps p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.55; }

/* Barra fija de compra */
.s-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.s-sticky.is-visible { transform: none; }
.s-sticky__info { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
.s-sticky__info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-sticky__info b { color: var(--ink); font-size: 18px; }
@media (min-width: 1000px) { .s-sticky { left: auto; right: 24px; bottom: 24px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.14); width: 420px; } }

/* ---------- Carrito, checkout y gracias con la marca ---------- */
.ushop-store .woocommerce a.button.alt, .ushop-store .woocommerce button.button.alt, .ushop-store #place_order, .ushop-store .checkout-button { background: var(--brand) !important; color: var(--brand-ink) !important; border-radius: 12px !important; }
.ushop-store .woocommerce a.button, .ushop-store .woocommerce button.button { border-radius: 12px !important; }
.ushop-store .u-receipt, .ushop-store .woocommerce table.shop_table, .ushop-store .woocommerce .cart_totals, .ushop-store #order_review { background: var(--surface); }
.ushop-store .u-woo h1 { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	.s-sheet[open] { animation: none; }
	.s-card__img2, .s-cat img, .s-sticky { transition: none; }
}
