/* =============================================================================
   ZAPAROOM · app.css — diseño "como una app" de toda la tienda
   Blanco, negro y grises cálidos, un solo acento naranja (ofertas y avisos),
   letra Plus Jakarta Sans y en el móvil el menú abajo, como una app.
   Solo lo carga la parte pública (includes/header.php); el panel de admin
   sigue con style.css.
   ============================================================================= */

:root {
    --ink: #111111; --ink2: #2B2B29; --muted: #6F6F6A; --line: #E2E2DE; --soft: #ECECE8;
    --bg: #F5F5F3; --card: #FFFFFF; --acc: #FF4F00; --ok: #1F7A3D; --bad: #C62828;
    --r: 20px; --r-sm: 14px; --tab: 66px; --top: 64px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Las variables de la web de antes, en claro: así las páginas viejas
       (y los estilos escritos dentro de ellas) se ven con el diseño nuevo */
    --bg-main: var(--bg); --bg-card: var(--card); --bg-elevated: var(--soft); --bg-glass: rgba(245, 245, 243, .9);
    --tile: var(--soft);
    --text-primary: var(--ink); --text-secondary: var(--muted); --text-muted: #8D8D88; --text-main: var(--ink);
    --accent: var(--ink); --accent-hover: var(--acc); --accent-glow: rgba(17, 17, 17, .12); --neon-glow: none;
    --sale: var(--acc); --success: var(--ok); --danger: var(--bad); --warning: #B26A00;
    --border: var(--line); --border-hover: #CFCFCA; --border-glass: var(--line); --border-color: var(--line);
    --font-body: var(--font); --font-display: var(--font);
    --radius-sm: 12px; --radius: 16px; --radius-lg: 20px;
    --zr-gutter: 16px; --zr-ease: var(--ease);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); letter-spacing: -.025em; line-height: 1.15; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
picture { display: contents; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
::selection { background: var(--ink); color: #fff; }
.zr-wrap, .ap-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.zr-section { padding-block: 28px; }
.zr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-muted { color: var(--muted); }

/* ---------- botones y formularios (también los de la web de antes) ---------- */
.btn, .zr-btn, .ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 1.3rem; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), opacity .2s, background .2s; box-shadow: none; }
.btn:hover, .zr-btn:hover, .ap-btn:hover { background: #2a2a2a; color: #fff; }
.btn:active, .zr-btn:active, .ap-btn:active { transform: scale(.97); }
.btn:disabled, .zr-btn:disabled, .ap-btn:disabled { opacity: .4; cursor: not-allowed; }
.zr-btn--ghost, .ap-btn--ghost, .btn-secondary, .btn-outline { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.zr-btn--ghost:hover, .ap-btn--ghost:hover, .btn-secondary:hover, .btn-outline:hover { background: var(--soft); color: var(--ink); }
.ap-btn--acc { background: var(--acc); }
.ap-btn--acc:hover { background: #E64700; }
.zr-btn--block, .ap-btn--block { width: 100%; }
.ap-btn--sm { min-height: 40px; padding: 0 1rem; border-radius: 12px; font-size: .86rem; }
.zr-link, .ap-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.form-group { margin-bottom: 1rem; }
.form-group label, .ap-label { display: block; margin-bottom: .35rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.form-control, .ap-input, .zr-select, input[type=text].form-control, select.form-control, textarea.form-control {
    width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 16px; outline: none; box-shadow: none; transition: border-color .2s; }
textarea.form-control, textarea.ap-input { min-height: 110px; resize: vertical; }
.form-control:focus, .ap-input:focus, .zr-select:focus { border-color: var(--ink); background: var(--card); color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.form-control::placeholder, .ap-input::placeholder { color: #9A9A95; }
select.form-control, .zr-select, select.ap-input { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; }

table { border-collapse: collapse; width: 100%; }
th, td { border-color: var(--line); }

/* ---------- barra de avisos ---------- */
.ap-promo { position: relative; z-index: 31; height: 32px; overflow: hidden; background: var(--ink); color: #fff; font-size: .76rem; font-weight: 700; text-align: center; }
.ap-promo p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 0; padding: 0 12px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-promo p.is-on { opacity: 1; transform: none; }
.ap-promo i { color: var(--acc); }
.ap-promo a { color: #fff; text-decoration: underline; }
.ap-promo--bf { background: var(--ink); }
.ap-alert { background: var(--acc); color: #fff; text-align: center; font-size: .85rem; font-weight: 700; padding: .55rem 16px; }

/* ---------- cabecera ---------- */
.ap-top { position: sticky; top: 0; z-index: 30; background: rgba(245, 245, 243, .9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.ap-top.is-scrolled { border-bottom-color: var(--line); }
.ap-top__in { max-width: 1240px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: .6rem; padding: 0 16px; }
.ap-logo { font-weight: 800; font-size: 1.22rem; letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.ap-logo span { color: var(--acc); }
.ap-nav { display: none; align-items: center; gap: .1rem; margin-left: 1rem; }
.ap-nav a, .ap-nav button { display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .8rem; border-radius: 999px; border: 0; background: none; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ap-nav a:hover, .ap-nav button:hover { color: var(--ink); }
.ap-nav a.is-on { background: var(--ink); color: #fff; }
.ap-nav a.is-hot { color: var(--acc); }
.ap-act { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.ap-ibtn { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; transition: transform .15s var(--ease); }
.ap-ibtn:active { transform: scale(.94); }
.ap-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: #fff; font-size: .66rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); line-height: 1; }
.ap-hide-m { display: none; }
.ap-menu-btn { border: 0; background: none; width: 38px; margin-left: -8px; }

/* desplegable de marcas */
.ap-mega-wrap { position: relative; }
.ap-mega { position: absolute; top: calc(100% + 8px); left: 0; width: 560px; display: none; grid-template-columns: repeat(3, 1fr); gap: .15rem; padding: .8rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.ap-mega-wrap.is-open .ap-mega { display: grid; }
.ap-mega a { display: flex; justify-content: space-between; gap: .5rem; height: auto; padding: .55rem .7rem; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: .86rem; }
.ap-mega a:hover { background: var(--soft); }
.ap-mega a small { color: var(--muted); font-weight: 600; }
.ap-mega .ap-mega__all { grid-column: 1 / -1; justify-content: center; margin-top: .3rem; background: var(--soft); }

/* buscador */
.ap-search { position: fixed; inset: 0; z-index: 70; display: none; background: rgba(17, 17, 17, .35); }
.ap-search.is-open { display: block; }
.ap-search__panel { background: var(--bg); padding: 12px 16px 16px; max-height: 100%; overflow-y: auto; border-radius: 0 0 24px 24px; }
.ap-search__box { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; }
.ap-search__box label { flex: 1; display: flex; align-items: center; gap: .6rem; height: 52px; padding: 0 1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.ap-search__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.ap-search__box input::-webkit-search-cancel-button { display: none; }
.ap-search__res { max-width: 760px; margin: .8rem auto 0; }
.ap-search__item { display: flex; align-items: center; gap: .8rem; padding: .55rem; border-radius: 14px; }
.ap-search__item:hover { background: var(--card); }
.ap-search__item img { width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--soft); object-fit: contain; }
.ap-search__item span { flex: 1; min-width: 0; font-weight: 700; font-size: .9rem; }
.ap-search__item strong { font-weight: 800; }
.ap-search__all { display: block; margin-top: .4rem; padding: .9rem; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; font-weight: 800; }
.ap-search__empty { padding: 1rem; color: var(--muted); text-align: center; }
.ap-search__tags { display: flex; flex-wrap: wrap; gap: .45rem; max-width: 760px; margin: .9rem auto 0; }
.ap-search__tags a { padding: .45rem .85rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; }

/* menú lateral */
.ap-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.ap-drawer.is-open { visibility: visible; }
.ap-drawer__bg { position: absolute; inset: 0; background: rgba(17, 17, 17, .4); opacity: 0; transition: opacity .3s; }
.ap-drawer.is-open .ap-drawer__bg { opacity: 1; }
.ap-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg); padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--ease); }
.ap-drawer.is-open .ap-drawer__panel { transform: none; }
.ap-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ap-drawer__label { margin: 1.3rem 0 .5rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ap-drawer__list { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.ap-drawer__list a { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.ap-drawer__list a:last-child { border-bottom: 0; }
.ap-drawer__list a i:first-child { width: 22px; text-align: center; color: var(--ink2); }
.ap-drawer__list a .chev { margin-left: auto; color: #B5B5B0; font-size: .75rem; }
.ap-drawer__list a.is-hot { color: var(--acc); }
.ap-drawer__list a.is-hot i:first-child { color: var(--acc); }
.ap-drawer__brands { display: flex; flex-wrap: wrap; gap: .4rem; }
.ap-drawer__brands a { padding: .45rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; }

/* menú de abajo */
.ap-tab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 0 .3rem env(safe-area-inset-bottom); display: flex; align-items: center; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.ap-tab a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; color: #9A9A95; font-size: .64rem; font-weight: 700; }
.ap-tab a i { font-size: 1.15rem; height: 26px; display: inline-flex; align-items: center; }
.ap-tab a.is-on { color: var(--ink); }
.ap-tab .ap-badge { top: -2px; right: calc(50% - 22px); border-color: #fff; }

/* ---------- pie ---------- */
.ap-foot { margin-top: 3rem; background: var(--ink); color: #fff; padding: 2.4rem 0 1.4rem; }
.ap-foot a { color: rgba(255, 255, 255, .78); }
.ap-foot a:hover { color: #fff; }
.ap-foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
.ap-foot__brand { grid-column: 1 / -1; }
.ap-foot .ap-logo { color: #fff; }
.ap-foot__brand p { color: rgba(255, 255, 255, .6); font-size: .86rem; margin: .6rem 0 1rem; max-width: 380px; }
.ap-foot h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; }
.ap-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .88rem; }
.ap-social { display: flex; gap: .5rem; }
.ap-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ap-foot__bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; color: rgba(255, 255, 255, .55); }
.ap-pay { display: flex; gap: .4rem; align-items: center; }
.ap-pay span { min-width: 44px; height: 28px; padding: 0 .4rem; border-radius: 6px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; }
.ap-pay .is-bizum { font-size: .72rem; }

/* ---------- títulos y secciones ---------- */
.ap-h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.ap-sec { margin-top: 2rem; }
.ap-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.ap-sec__h h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.ap-sec__h a { font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ap-crumbs, .zr-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .78rem; color: var(--muted); margin: .9rem 0 .4rem; }
.ap-crumbs a, .zr-crumbs a { color: var(--muted); }
.ap-crumbs a:hover, .zr-crumbs a:hover { color: var(--ink); }
.zr-kicker, .ap-kicker { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ap-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--soft); color: var(--ink); }
.ap-pill--acc { background: var(--acc); color: #fff; }
.ap-pill--ink { background: var(--ink); color: #fff; }
.ap-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ap-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }
.ap-box h2, .ap-box h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- tarjeta de producto (zr_product_card) ---------- */
.zr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem; }
.zr-rail, .ap-rail { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; margin: 0 -16px; padding: .2rem 16px 1rem; }
.zr-rail::-webkit-scrollbar, .ap-rail::-webkit-scrollbar { display: none; }
.zr-rail > *, .ap-rail > * { flex: none; width: 168px; scroll-snap-align: start; }
.zr-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.zr-card__media { position: relative; aspect-ratio: 1 / .92; border-radius: var(--r); background: var(--soft); }
.zr-card__link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.zr-card__media img { width: 88%; height: 88%; object-fit: contain; transform: rotate(-12deg); filter: drop-shadow(0 10px 8px rgba(17, 17, 17, .14)); transition: transform .35s var(--ease); }
.zr-card.is-out .zr-card__media img { opacity: .45; filter: grayscale(.6); }
.zr-card--recta .zr-card__media img { transform: none; width: 80%; height: 80%; filter: none; }
.zr-card--foto .zr-card__media img { transform: none; width: 100%; height: 100%; object-fit: cover; filter: none; border-radius: var(--r); }
.zr-card__tags { position: absolute; left: .55rem; top: .55rem; right: 3rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; pointer-events: none; }
.zr-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .5rem; border-radius: 6px; font-size: .66rem; font-weight: 800; line-height: 1.2; background: var(--ink); color: #fff; }
.zr-tag--sale, .zr-tag--bf { background: var(--acc); color: #fff; }
.zr-tag--timer { background: #fff; color: var(--ink); }
.zr-tag--out { background: #fff; color: var(--muted); }
.zr-tag--low { background: #fff; color: var(--acc); }
.zr-tag--new { background: #fff; color: var(--ink); }
.zr-tag--24 { background: var(--ink); color: #fff; }
.zr-card__fav { position: absolute; right: .5rem; top: .5rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; }
.zr-card__fav.active { color: var(--acc); }
.zr-card__body { padding: .55rem .2rem 0; display: flex; flex-direction: column; gap: .05rem; }
.zr-card__brand { margin: 0; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.zr-card__name { margin: 0; font-size: .86rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.zr-card__name a { color: var(--ink); }
.zr-card__price { margin: .25rem 0 0; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; padding-right: 42px; }
.zr-card__price strong { font-size: 1rem; font-weight: 800; color: var(--ink); }
.zr-card__price strong.is-sale { color: var(--ink); }
.zr-card__price s { font-size: .78rem; color: var(--muted); }
/* "+" de añadir: abre una ventana con las tallas desde abajo */
.zr-quick { position: absolute; right: .2rem; bottom: -3.05rem; z-index: 4; }
.zr-quick:has(.zr-quick__panel:not([hidden])) { z-index: 95; }
.zr-quick__open { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; }
.zr-quick__open span { display: none; }
.zr-quick__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-width: 560px; margin: 0 auto; padding: .7rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--card); box-shadow: 0 -10px 40px rgba(0, 0, 0, .15); animation: apSheet .35s var(--ease); }
.zr-quick__panel[hidden] { display: none; }
.zr-quick__panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto .9rem; }
@keyframes apSheet { from { transform: translateY(100%); } to { transform: none; } }
.zr-quick__head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 1rem; margin-bottom: .8rem; }
.zr-quick__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; }
.zr-quick__sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.zr-quick__sizes button { height: 50px; border-radius: 14px; border: 0; background: var(--soft); font-weight: 800; font-size: .95rem; cursor: pointer; }
.zr-quick__sizes button:hover { background: var(--ink); color: #fff; }
.ap-sheet-bg { position: fixed; inset: 0; z-index: 89; background: rgba(17, 17, 17, .4); }

/* ---------- listados (tienda, marcas, camisetas, ropa, 24 h, ofertas) ---------- */
.zr-shop-head, .ap-shop-head { padding-top: .4rem; }
.zr-shop-title, .zr-cart-title { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: .2rem 0 .3rem; }
.zr-shop-lead { color: var(--muted); margin: 0 0 .6rem; max-width: 640px; }
.zr-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 1.1rem; }
.zr-chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; flex: 1 1 100%; }
.zr-chips::-webkit-scrollbar { display: none; }
.zr-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .86rem; white-space: nowrap; cursor: pointer; }
.zr-chip.is-active, .zr-chip.active, .zr-chip[aria-current], .zr-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.zr-results, .zr-count-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.zr-select { width: auto; min-height: 42px; padding: 0 2.4rem 0 1rem; border-radius: 12px; font-size: .88rem; font-weight: 700; }
.zr-active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.zr-empty { text-align: center; padding: 2.5rem 1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.zr-empty h2, .zr-empty h3 { color: var(--ink); }
.zr-empty > i { display: block; font-size: 2rem; color: var(--ink2); margin-bottom: .8rem; }
.zr-empty h2 { margin: 0 0 .4rem; }
.zr-empty p { margin: 0 auto 1.2rem; max-width: 420px; }
.zr-empty + .zr-section { margin-top: 1.6rem; }
.zr-brand-banner { position: relative; display: grid; gap: .3rem; padding: 1.3rem; border-radius: var(--r); background: var(--ink); color: #fff; margin: .6rem 0 1rem; overflow: hidden; }
.zr-brand-banner h1, .zr-brand-banner h2 { color: #fff; }
.zr-brand-banner__slogan { color: rgba(255, 255, 255, .7); }
.zr-brand-banner__media { display: none; }
.ap-24 { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--ink); color: #fff; }
.ap-24 > i { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--acc); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ap-24 b { display: block; color: #fff; }
.ap-24 small { color: rgba(255, 255, 255, .7); font-size: .82rem; }
.ap-cats { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin: .9rem -16px 0; padding: 0 16px; }
.ap-cats::-webkit-scrollbar { display: none; }
.ap-cats a { flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.ap-cats a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- avisos ---------- */
.ap-toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 18px + env(safe-area-inset-bottom)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .75rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: all .3s var(--ease); }
.ap-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ap-flash { padding: .9rem 1rem; border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; margin: .8rem 0; background: var(--card); border: 1px solid var(--line); }
.ap-flash--ok { border-color: #BFE3CB; background: #EEF8F1; color: var(--ok); }
.ap-flash--err { border-color: #F4C7C3; background: #FDF0EF; color: var(--bad); }


/* ---------- ordenador ---------- */
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .ap-tab { display: none; }
    .ap-nav { display: flex; }
    .ap-hide-m { display: inline-flex; }
    .ap-menu-btn { display: none; }
    .ap-top__in { padding: 0 24px; }
    .zr-wrap, .ap-wrap { padding-inline: 24px; }
    .zr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.2rem; }
    .zr-rail > *, .ap-rail > * { width: 220px; }
    .zr-chips { margin: 0; padding: 0; flex: 1 1 auto; }
    .ap-cats { margin: .9rem 0 0; padding: 0; }
    .ap-foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .ap-foot__brand { grid-column: auto; }
    .ap-search { background: rgba(17, 17, 17, .25); }
    .ap-search__panel { padding: 18px 24px 22px; }
    .ap-toast { bottom: 2rem; }
    .zr-card:hover .zr-card__media img { transform: rotate(-8deg) scale(1.04); }
    .zr-card--recta:hover .zr-card__media img, .zr-card--foto:hover .zr-card__media img { transform: scale(1.04); }
    .zr-quick__panel { bottom: 50%; transform: translateY(50%); border-radius: 26px; animation: none; }
}
@media (min-width: 1200px) { .zr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 360px) { .zr-quick__sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- carruseles: solo se deslizan de lado (antes se movían arriba y abajo) ---------- */
html { touch-action: pan-x pan-y; }
.zr-rail, .ap-rail, .ap-hero__track, .ap-stories, .zr-chips, .ap-cats, .ap-gal { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }

/* ---------- portada ---------- */
.ap-btn--light { background: #fff; color: var(--ink); }
.ap-btn--light:hover { background: #f0f0ee; color: var(--ink); }
.ap-hello { padding-top: .8rem; }
.ap-hello small { color: var(--muted); font-weight: 700; font-size: .86rem; }
.ap-hello h1 { font-size: clamp(1.75rem, 6.6vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; margin: .15rem 0 0; }
.ap-hello h1 span { color: var(--muted); }
.ap-fake-search { display: flex; align-items: center; gap: .7rem; width: 100%; height: 54px; margin-top: 1rem; padding: 0 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: #9A9A95; font-size: 1rem; cursor: pointer; text-align: left; }
.ap-fake-search i { color: var(--ink); }
.ap-stories { display: flex; gap: .85rem; overflow-x: auto; scrollbar-width: none; margin: 1.1rem -16px 0; padding: .2rem 16px .3rem; }
.ap-stories::-webkit-scrollbar { display: none; }
.ap-story { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; text-align: center; }
.ap-story > span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-story__ring { width: 68px; height: 68px; border-radius: 50%; padding: 2px; background: var(--ink); }
.ap-story__in { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ap-story__in img { width: 118%; max-width: none; transform: rotate(-16deg); }
.ap-story__in img.is-straight { width: 82%; transform: none; }
.ap-story__in img.is-photo { width: 100%; height: 100%; object-fit: cover; transform: none; }
.ap-story__in i { font-size: 1.25rem; color: #fff; }
.ap-story__in.is-dark { background: var(--ink); }
.ap-story__in.is-acc { background: var(--acc); }
.ap-hero { margin-top: 1.2rem; }
.ap-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); }
.ap-hero__track::-webkit-scrollbar { display: none; }
.ap-slide { position: relative; flex: none; width: 100%; min-height: 240px; scroll-snap-align: start; padding: 1.3rem; border-radius: var(--r); background: var(--soft); color: var(--ink); overflow: hidden; display: block; }
.ap-slide--dark { background: var(--ink); color: #fff; }
.ap-slide__tx { position: relative; z-index: 2; max-width: 54%; }
.ap-slide h2 { font-size: clamp(1.3rem, 5vw, 2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.07; margin: .7rem 0 .35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-slide--dark h2 { color: #fff; }
.ap-slide p { font-size: .86rem; opacity: .75; margin: 0; }
.ap-slide .ap-btn { margin-top: .9rem; }
.ap-slide .ap-pill { background: var(--card); }
.ap-slide--dark .ap-pill { background: var(--acc); color: #fff; }
.ap-slide__img { position: absolute; z-index: 1; right: 4%; top: 50%; width: 44%; max-width: 300px; max-height: 72%; object-fit: contain; transform: translateY(-55%) rotate(-12deg); filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .18)); }
.ap-slide__price { position: absolute; z-index: 2; right: 1rem; bottom: .9rem; padding: .35rem .75rem; border-radius: 999px; background: var(--card); font-weight: 800; }
.ap-hero__dots { display: flex; justify-content: center; gap: .35rem; margin-top: .7rem; }
.ap-hero__dots i { width: 7px; height: 7px; border-radius: 999px; background: #CFCFCA; transition: all .3s var(--ease); }
.ap-hero__dots i.on { width: 22px; background: var(--ink); }
.ap-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ap-brand { display: flex; flex-direction: column; padding: .6rem .6rem .8rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ap-brand__img { aspect-ratio: 16 / 10; border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; }
.ap-brand__img img { width: 74%; transform: rotate(-12deg); }
.ap-brand b { font-size: .92rem; padding: 0 .2rem; }
.ap-brand small { color: var(--muted); font-size: .76rem; padding: 0 .2rem; }
.ap-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ap-perk { padding: .95rem .6rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; font-size: .74rem; font-weight: 700; line-height: 1.3; }
.ap-perk i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 auto .5rem; border-radius: 13px; background: var(--soft); font-size: 1rem; }
@media (min-width: 900px) {
    .ap-home__top { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; margin-top: .6rem; }
    .ap-home__top > * { min-width: 0; }
    .ap-hero { margin-top: 0; }
    .ap-slide { min-height: 330px; padding: 1.8rem; }
    .ap-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ajustes */
.zr-card__name { padding-right: 40px; }
.zr-tag--bf { background: var(--acc) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
.ap-promo .zbf-bar, .ap-promo .zbf-bar * { text-decoration: none !important; color: #fff !important; }
.ap-promo .zbf-word { border: 0 !important; background: var(--acc) !important; color: #fff !important; padding: .1rem .45rem !important; border-radius: 5px; font-size: .68rem; letter-spacing: .06em; }
.ap-promo .zbf-cd b { color: #fff !important; }
.ap-promo .zbf-cd i { color: var(--acc) !important; }

/* ---------- camisetas de la Selección (includes/spain_jerseys.php) en el diseño nuevo ---------- */
body .esp-sec { max-width: 1240px; margin: 2rem auto 0; padding: 0 16px; }
body .esp-shell { background: var(--card); border: 1px solid var(--line); box-shadow: none; border-radius: var(--r); padding: 1.4rem 0 1rem; }
body .esp-shell::before { height: 3px; }
body .esp-head { padding: 0 1.1rem; }
body .esp-kicker { color: var(--muted); letter-spacing: .08em; }
body .esp-head h2 { color: var(--ink); text-transform: none; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
body .esp-head h2 em { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
body .esp-stars { color: var(--acc); text-shadow: none; }
body .esp-head p { color: var(--muted); }
body .esp-arrow { border-color: var(--line); background: var(--card); color: var(--ink); }
body .esp-arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--soft); color: var(--ink); }
body .esp-strip { margin: 1rem 1.1rem 0; background: var(--soft); border: 0; color: var(--ink); }
body .esp-strip:hover { transform: none; }
body .esp-strip-ico { background: var(--acc); color: #fff; }
body .esp-strip small { color: var(--muted); }
body .esp-strip-go { color: var(--ink); }
body .esp-track { padding: 1.1rem 1.1rem .8rem; scroll-padding-inline: 1.1rem; scrollbar-width: none; }
body .esp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
body .esp-card:hover { transform: none; box-shadow: none; border-color: #CFCFCA; }
body .esp-media, body .esp-media--light { background: var(--soft); }
body .esp-media img { filter: none; }
body .esp-badge { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 6px; }
body .esp-champ { background: #fff; color: var(--ink); border: 0; }
body .esp-label { color: var(--muted); }
body .esp-body h3 a { color: var(--ink); }
body .esp-body h3 a:hover { color: var(--ink); text-decoration: underline; }
body .esp-size span { border-color: var(--line); color: var(--ink); background: var(--card); }
body .esp-size input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
body .esp-price { color: var(--ink); }
body .esp-add { background: var(--ink); box-shadow: none; border-radius: 12px; }
body .esp-add:disabled { background: var(--soft); color: #9A9A95; }
body .esp-more { color: var(--ink); border: 1px dashed var(--line); background: var(--soft); }
body .esp-more i { background: var(--ink); color: #fff; }
@media (max-width: 640px) { body .esp-track { grid-auto-columns: 74%; } }

/* ---------- títulos de bloque de la web de antes (zr-head / zr-title) ---------- */
.zr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.zr-title { font-size: 1.25rem; font-weight: 800; margin: .15rem 0 0; }
.zr-head .zr-link { text-decoration: none; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.zr-section .zr-rail { margin: 0 -16px; }

/* ---------- ficha de producto ---------- */
.pg-product .zr-crumbs { display: none; }
.zr-pdp { display: grid; gap: 1rem; margin-top: .4rem; }
.zr-gallery { position: relative; min-width: 0; }
.zr-gallery__main { position: relative; aspect-ratio: 1 / .95; border-radius: 26px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.zr-gallery__main img { width: 86%; height: 86%; object-fit: contain; transform: rotate(-10deg); filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .16)); user-select: none; -webkit-user-drag: none; }
.zr-gallery__main--photo img { width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; }
.pg-product .zr-gallery__main .zr-card__tags { right: .6rem; }
.ap-gal-dots { position: absolute; left: 0; right: 0; top: calc(100% / 1 - 0px); display: none; }
.zr-gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-top: .6rem; }
.zr-gallery__thumbs::-webkit-scrollbar { display: none; }
.zr-gallery__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 14px; border: 2px solid transparent; background: var(--soft); padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zr-gallery__thumbs button.active { border-color: var(--ink); }
.zr-gallery__thumbs img { width: 86%; height: 86%; object-fit: contain; }
@media (max-width: 899px) {
    .zr-gallery__thumbs { display: none; }
    .ap-gal-dots { display: flex; justify-content: center; gap: .35rem; position: static; margin-top: .65rem; }
    .ap-gal-dots i { width: 7px; height: 7px; border-radius: 999px; background: #CFCFCA; transition: all .3s var(--ease); }
    .ap-gal-dots i.on { width: 22px; background: var(--ink); }
}
.zr-pdp__info { min-width: 0; padding: 1.2rem; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.zr-pdp__brand { display: inline-block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.zr-pdp__title { font-size: clamp(1.4rem, 5.2vw, 2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: .3rem 0 .7rem; }
.zr-pdp__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.zr-pdp__price strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.zr-pdp__price s { color: var(--muted); font-size: 1rem; font-weight: 600; }
.zr-pdp__price .zr-tag { align-self: center; }
.zr-pdp__tax { margin: .25rem 0 0; font-size: .8rem; color: var(--muted); }
.zr-offerline { display: flex; align-items: center; gap: .5rem; margin: .8rem 0 0; padding: .65rem .85rem; border-radius: 12px; background: var(--soft); font-size: .85rem; font-weight: 600; }
.zr-offerline i { color: var(--acc); }
.zr-stockline { display: flex; align-items: center; gap: .45rem; margin: .8rem 0 0; font-size: .85rem; font-weight: 700; color: var(--ok); }
.zr-stockline.is-low { color: var(--acc); }
.zr-stockline.is-out { color: var(--muted); }
.zr-block-label { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: 1.3rem 0 .6rem; font-size: .9rem; font-weight: 800; color: var(--ink); }
.zr-block-label span { font-weight: 600; color: var(--muted); font-size: .8rem; text-align: right; }
.zr-block-label a, .size-guide-link { font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.zr-colors { display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1.2rem; padding: .1rem 1.2rem; }
.zr-colors::-webkit-scrollbar { display: none; }
.zr-colors > * { flex: none; width: 68px; height: 68px; border-radius: 16px; background: var(--soft); border: 2px solid transparent; display: flex; align-items: center; justify-content: center; }
.zr-colors > .is-current { border-color: var(--ink); }
.zr-colors img { width: 86%; height: 86%; object-fit: contain; transform: rotate(-12deg); }
.zr-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.zr-size { position: relative; display: block; }
.zr-size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.zr-size span { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 14px; background: var(--soft); font-weight: 800; font-size: .95rem; transition: all .15s; }
.zr-size input:checked + span { background: var(--ink); color: #fff; }
.zr-size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.zr-size-hint { display: none; margin: .6rem 0 0; font-size: .82rem; font-weight: 700; color: var(--acc); }
.zr-size-hint.is-on { display: block; }
.zr-shake { animation: apShake .4s; }
@keyframes apShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.zr-buy { display: flex; gap: .5rem; margin-top: 1.1rem; align-items: stretch; }
.zr-buy .zr-btn { flex: 1; min-height: 54px; }
.zr-qty { display: flex; align-items: center; border-radius: 14px; background: var(--soft); padding: 3px; }
.zr-qty[hidden] { display: none; }
.zr-qty button { width: 36px; height: 100%; min-height: 46px; border: 0; background: none; cursor: pointer; font-size: .8rem; }
.zr-qty input { width: 32px; border: 0; background: none; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }
.zr-qty input::-webkit-outer-spin-button, .zr-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.zr-fav-lg { width: 54px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; cursor: pointer; }
.zr-fav-lg.active { color: var(--acc); }
.zr-delivery { display: flex; gap: .7rem; margin-top: 1rem; padding: .85rem .95rem; border-radius: 14px; background: var(--soft); font-size: .84rem; line-height: 1.45; }
.zr-delivery > i { margin-top: .15rem; }
.zr-delivery span { color: var(--ink2); }
.zr-gift { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; padding: .85rem .95rem; border-radius: 14px; border: 1px solid var(--line); font-size: .85rem; }
.zr-gift__ico { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--acc); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.zr-gift small { color: var(--muted); }
.zr-perk-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: .84rem; color: var(--ink2); }
.zr-perk-list li { display: flex; gap: .65rem; }
.zr-perk-list i { width: 18px; margin-top: .2rem; color: var(--ink); }
.zr-acc { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.zr-acc details { border-bottom: 1px solid var(--line); }
.zr-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font-weight: 800; cursor: pointer; list-style: none; }
.zr-acc summary::-webkit-details-marker { display: none; }
.zr-acc summary i { font-size: .8rem; transition: transform .25s; }
.zr-acc details[open] summary i { transform: rotate(45deg); }
.zr-acc__body { padding: 0 0 1rem; font-size: .9rem; line-height: 1.65; color: var(--ink2); }
.zr-acc__body p { margin: 0 0 .6rem; }
.zr-acc__body a { color: var(--ink) !important; text-decoration: underline; }
.zr-pay-icons { display: flex; gap: .4rem; }
.zr-pay-icons span { min-width: 44px; height: 28px; border-radius: 6px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
/* barra fija de compra en el móvil */
.zr-sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: .7rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; transform: translateY(110%); transition: transform .3s var(--ease); }
.zr-sticky-buy.visible { transform: none; }
.zr-sticky-buy img { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; object-fit: contain; }
.zr-sticky-buy__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zr-sticky-buy__txt b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-sticky-buy__txt span { font-weight: 800; }
.zr-sticky-buy .zr-btn { background: #fff; color: var(--ink); min-height: 48px; }
body.pg-product .ap-tab { display: none; }
body.pg-product { padding-bottom: 0; }
body.pg-product:has(.zr-sticky-buy.visible) #zapa-chat-widget { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
body.pg-product #zapa-chat-widget { bottom: 16px !important; }
/* guía de tallas */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(17, 17, 17, .45); }
.modal-content { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 1.3rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--card); color: var(--ink); border: 0 !important; box-shadow: none !important; }
.modal-close { float: right; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 1.2rem; }
.size-guide-grid table { width: 100%; font-size: .86rem; }
.size-guide-grid th, .size-guide-grid td { padding: .5rem; border-bottom: 1px solid var(--line); text-align: center; color: var(--ink); background: none !important; }
@media (min-width: 900px) {
    .zr-pdp { grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; margin-top: 1rem; }
    .zr-gallery { position: sticky; top: 88px; }
    .zr-pdp__info { padding: 1.8rem; }
    .zr-sticky-buy { display: none; }
    .modal-overlay { align-items: center; }
    .modal-content { border-radius: 26px; }
    body.pg-product #zapa-chat-widget { bottom: 22px !important; }
}
.zr-offerline, .zr-offerline--bf, .zr-offerline span, .zr-offerline b { color: var(--ink) !important; background: var(--soft) !important; border: 0 !important; }
.zr-offerline b { background: none !important; }
.zr-qty { flex: none; }
.zr-qty button { width: 30px; }
.zr-qty input { width: 24px; }
.zr-buy .zr-btn { white-space: nowrap; padding: 0 .9rem; }

/* ---------- cesta ---------- */
.zr-cart-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .8rem 0 1rem; }
.zr-cart-title h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; margin: 0; }
.zr-cart-title .zr-link { text-decoration: none; color: var(--muted); font-size: .86rem; letter-spacing: 0; }
.zr-cart { display: grid; gap: 1rem; }
.zr-cart > * { min-width: 0; }
.zr-cart-notes { display: grid; gap: .6rem; margin-bottom: .8rem; }
.zr-note { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .9rem 1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; }
.zr-note__ico { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; }
.zr-note__txt { flex: 1; min-width: 180px; }
.zr-note__txt b { display: block; }
.zr-note__txt span { color: var(--muted); }
.zr-note--ok .zr-note__ico { background: #EEF8F1; color: var(--ok); }
.zr-note--gold .zr-note__ico, .zr-note--warn .zr-note__ico { background: var(--acc); color: #fff; }
.zr-note--warn { border-color: #F4D9C9; }
.zr-progress { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-top: .45rem; }
.zr-progress > * { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.zr-btn--sm { min-height: 40px; padding: 0 1rem; border-radius: 12px; font-size: .85rem; }
.zr-lines { display: grid; gap: .7rem; }
.zr-line { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .9rem; padding: .8rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.zr-line__img { width: 96px; height: 96px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zr-line__img img { width: 88%; height: 88%; object-fit: contain; transform: rotate(-12deg); }
.zr-line__name { display: block; font-weight: 700; font-size: .92rem; line-height: 1.3; color: var(--ink); padding-right: 4.5rem; }
.zr-line__meta, .zr-line__unit { margin: .15rem 0 0; font-size: .8rem; color: var(--muted); }
.zr-line__controls { display: flex; align-items: center; gap: .8rem; margin-top: .55rem; }
.zr-line__controls form { margin: 0; }
.zr-line .zr-qty { display: inline-flex; align-items: center; gap: .1rem; padding: 3px; border-radius: 999px; background: var(--soft); }
.zr-line .zr-qty button { width: 30px; height: 30px; min-height: 0; border-radius: 50%; border: 0; background: var(--card); font-size: .75rem; cursor: pointer; }
.zr-line .zr-qty input { width: 26px; border: 0; background: none; text-align: center; font-weight: 800; font: inherit; }
.zr-line__remove { border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.zr-line__total { position: absolute; top: .8rem; right: .9rem; font-weight: 800; }
.zr-summary { padding: 1.2rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); align-self: start; }
.zr-summary h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .8rem; }
.zr-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; color: var(--ink2); }
.zr-sum-row.is-discount { color: var(--acc); font-weight: 700; }
.zr-sum-row .is-free { color: var(--ok); font-weight: 700; }
.zr-wallet { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .6rem 0; padding: .7rem .85rem; border-radius: 14px; background: var(--soft); font-size: .86rem; font-weight: 600; }
.zr-wallet form { margin: 0; }
.zr-wallet button { border: 0; border-radius: 10px; padding: .45rem .8rem; background: var(--ink); color: #fff; font-weight: 800; cursor: pointer; }
.zr-wallet button.is-off { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.zr-coupon { margin: .6rem 0; border-radius: 14px; border: 1px solid var(--line); padding: 0 .9rem; }
.zr-coupon summary { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; cursor: pointer; font-weight: 700; font-size: .88rem; list-style: none; }
.zr-coupon summary::-webkit-details-marker { display: none; }
.zr-coupon form { display: flex; gap: .5rem; padding-bottom: .9rem; }
.zr-coupon .form-control { min-height: 44px; }
.zr-msg-err { color: var(--bad); font-size: .82rem; font-weight: 700; margin: 0 0 .7rem; }
.zr-msg-ok { color: var(--ok); font-size: .85rem; font-weight: 700; }
.zr-sum-total { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); margin: .7rem 0 1rem; padding-top: .9rem; }
.zr-sum-total span { font-weight: 800; font-size: 1.05rem; }
.zr-sum-total div { text-align: right; }
.zr-sum-total strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.zr-sum-total small { color: var(--muted); font-size: .76rem; }
.zr-summary .zr-btn--block { min-height: 56px; }
.zr-safe { text-align: center; color: var(--muted); font-size: .8rem; margin: .8rem 0 .5rem; }
.zr-summary .zr-pay-icons { justify-content: center; }
@media (min-width: 900px) {
    .zr-cart { grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
    .zr-summary { position: sticky; top: 88px; }
}

/* ---------- entrar / crear cuenta (includes/auth_styles.php) ---------- */
body .reg-wrap { min-height: auto; padding: 1.2rem 16px 2rem; align-items: flex-start; }
body .reg-card { box-shadow: none; border-radius: var(--r); }
body .reg-side { background: var(--soft); }
body .reg-logo span { background: none; -webkit-text-fill-color: var(--acc); color: var(--acc); }
body .reg-trust i { color: var(--ok); }
body .reg-error { background: #FDF0EF; color: var(--bad); border-color: #F4C7C3; }
body .reg-ok { background: #EEF8F1; color: var(--ok); border-color: #BFE3CB; }
body .reg-google:hover { box-shadow: none; transform: none; }
body .reg-divider::before, body .reg-divider::after { background: var(--line); }
body .reg-field label b { color: var(--acc); }
body .reg-input input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #fff inset; }
body .reg-meter span { background: var(--line); }
body .reg-submit:hover { transform: none; background: #2a2a2a; }
@media (max-width: 860px) {
    body .reg-side { padding: 1.3rem; gap: 1rem; }
    body .reg-logo, body .reg-perks, body .reg-trust { display: none; }
    body .reg-main { padding: 1.4rem 1.2rem; }
}

/* ---------- botón y ventana de soporte ---------- */
#zapa-chat-trigger { background: var(--ink) !important; color: #fff !important; border: 0 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important; backdrop-filter: none !important; }
#zapa-chat-trigger > span:first-child { background: #fff !important; color: var(--ink) !important; }
#zapa-chat-box { border: 1px solid var(--line) !important; box-shadow: 0 20px 50px rgba(0, 0, 0, .18) !important; color: var(--ink); }
#zapa-chat-box input { color: var(--ink) !important; }
.zx-bubble { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .12) !important; }
.zx-bubble b { color: var(--acc) !important; }

/* ---------- camiseta gratis (ofertas) ---------- */
body .gift-card { background: var(--card); border: 1px solid var(--line); box-shadow: none; border-radius: var(--r); }
body .gift-tag { background: var(--acc); color: #fff; }
body .gift h2 em { color: var(--acc); }
body .gift-free { background: var(--ink); }
body .gift-meter-top .ok { color: var(--ok); }
body .gift-bar span, body .gift-bar span.full { background: var(--ink); }
body .gift-steps b { background: var(--ink); color: #fff; }
body .gift-btn { background: var(--ink); }
body .gift-btn:hover { transform: none; }
body .gift-btn--ghost { background: var(--card); color: var(--ink); }
body .gift-visual::before { display: none; }
body .gift-visual img { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .15)); }
body .gift-stamp { background: var(--acc); color: #fff; box-shadow: none; }
/* 24 h */
body .zl-bolt { background: var(--acc) !important; color: #fff !important; box-shadow: none !important; }

/* ---------- Mi cuenta (dashboard.php) ---------- */
.pg-dashboard .acc { max-width: 1100px; margin: 0 auto; padding: .8rem 16px 2rem; }
.ap-me { padding: 1.3rem; border-radius: 24px; background: var(--ink); color: #fff; }
.ap-me__top { display: flex; align-items: center; gap: 1rem; }
.ap-me__av { width: 58px; height: 58px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; }
.ap-me__t { flex: 1; min-width: 0; }
.ap-me__t small { color: rgba(255, 255, 255, .6); font-weight: 700; font-size: .78rem; }
.ap-me__t h1 { color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-me__edit { width: 42px; height: 42px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ap-lvl { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; padding: .95rem; border-radius: 18px; background: rgba(255, 255, 255, .07); color: #fff; }
.ap-ring { position: relative; width: 64px; height: 64px; flex: none; }
.ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 7; }
.ap-ring .bgc { stroke: rgba(255, 255, 255, .14); }
.ap-ring .fgc { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 188.5; }
.ap-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .86rem; font-weight: 800; }
.ap-lvl__t b { display: block; font-size: .95rem; }
.ap-lvl__t small { color: rgba(255, 255, 255, .7); font-size: .8rem; line-height: 1.4; }
.ap-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: .9rem; }
.ap-quick a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .2rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: .74rem; font-weight: 700; }
.ap-quick i { width: 42px; height: 42px; border-radius: 14px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.ap-quick em { position: absolute; top: .45rem; right: .55rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: #fff; font-style: normal; font-size: .62rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ap-now { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; padding: .9rem 1rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ap-now__ico { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--acc); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ap-now > span:nth-child(2) { flex: 1; min-width: 140px; }
.ap-now small { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; }
.ap-now b { font-size: .95rem; }
.ap-money { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .9rem 0 1.2rem; }
.ap-money a { padding: .95rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.ap-money small { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.ap-money b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; margin-top: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-money span { color: var(--muted); font-size: .74rem; font-weight: 600; }
/* pestañas de Mi cuenta */
body.pg-dashboard .acc-tabs { top: var(--top); background: var(--bg) !important; padding: .55rem 0; margin: 0 -16px 1rem; padding-inline: 16px; }
body.pg-dashboard .acc-tabs button { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
body.pg-dashboard .acc-tabs button.is-on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }
body.pg-dashboard .acc-tabs em { background: var(--acc); }
body.pg-dashboard .acc-box, body.pg-dashboard .acc-panel .acc-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 900px) {
    .pg-dashboard .acc { padding: 1.4rem 24px 3rem; }
    .ap-quick a { flex-direction: row; justify-content: center; font-size: .86rem; }
    .ap-money { grid-template-columns: repeat(2, minmax(0, 260px)); }
}

/* ---------- arreglos de contraste (21-nov, tras verlo en el móvil) ---------- */
body .esp-badge { color: #fff !important; }
/* tarjetas de 24 h */
body .zl-size { background: #fff !important; color: var(--ink) !important; box-shadow: none !important; }
body .zl-size b { color: var(--ink) !important; }
body .zl-cond { color: var(--ink) !important; background: var(--soft) !important; border: 0 !important; }
body .zl-off { background: var(--acc) !important; box-shadow: none !important; }
body .zl-price, body .zl-price.is-off { color: var(--ink) !important; }
body .zl-buy button { background: var(--ink) !important; color: #fff !important; }
body .zl-pdp-badge { background: var(--soft) !important; border: 0 !important; }
body .zl-pdp-badge strong, body .zl-pdp-badge b, body .zl-pdp-badge span strong { color: var(--ink) !important; }
/* ofertas y packs (novedades.php) */
body .promo-hero h1 em, body h1 em { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; }
body .zpk-card, body .promo-points, body .promo-card, body [class*="promo-card--"] { background: var(--card) !important; border: 1px solid var(--line) !important; box-shadow: none !important; color: var(--ink) !important; }
body .zpk-card::before, body .zpk-card::after, body .promo-points::before, body .promo-points::after, body .promo-card::before, body .promo-card::after { display: none !important; }
body .promo-points *, body .promo-card *, body .zpk-card h2, body .zpk-card h3, body .zpk-card strong, body .zpk-card b { color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; }
body .promo-points p, body .promo-card p, body .zpk-card p, body .promo-tier span:not(.promo-tier-n) { color: var(--muted) !important; -webkit-text-fill-color: var(--muted) !important; }
body .promo-tag { background: var(--soft) !important; color: var(--ink) !important; border: 0 !important; }
body .promo-btn { background: var(--ink) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: none !important; }
body .promo-btn * { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body .promo-tier-n { background: var(--ink) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: none !important; }
body .promo-tiers li { background: var(--soft) !important; border: 0 !important; }
body .promo-card > i { background: var(--soft) !important; color: var(--ink) !important; }
body .zpk-flag { background: var(--acc) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
/* 404 */
body .nf-code { background: none !important; -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important; }
body .zpk-big { background: none !important; -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important; }
body .zs-flag { background: #fff !important; color: var(--ink) !important; } body .zs-flag span { color: var(--ink) !important; } body .zs-flag.is-live { background: var(--ink) !important; color: #fff !important; } body .zs-flag.is-live span { color: #fff !important; } body .zs-flag i { color: var(--acc) !important; }

/* pago: dirección guardada */
.ap-ship { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ap-ship > i { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ap-ship > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.ap-ship > div span { color: var(--muted); }
.ap-ship button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: .5rem .8rem; font-weight: 800; cursor: pointer; }
.ap-ship-save { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink2); margin-top: .2rem; cursor: pointer; }
.ap-ship-save input { width: 18px; height: 18px; accent-color: var(--ink); }

/* fotos del pedido y afiliados en Mi cuenta */
body .zog { --zog-bd: var(--line); --zog-card: var(--card); --zog-sub: var(--muted); --zog-acc: var(--ink); }
body .zog-th { background: var(--soft) !important; }
body.pg-dashboard .af-hero, body.pg-dashboard .af-hero.is-on { background: var(--card) !important; border: 1px solid var(--line) !important; }
body.pg-dashboard .af-kick, body.pg-dashboard .af-hero.is-on .af-kick { color: var(--ok) !important; }
body.pg-dashboard .af-gen__box .form-control { padding-left: 2.7rem !important; }
body.pg-dashboard .af-stat.is-main { background: var(--ink) !important; border-color: var(--ink) !important; }
body.pg-dashboard .af-stat.is-main b, body.pg-dashboard .af-stat.is-main small, body.pg-dashboard .af-stat.is-main span { color: #fff !important; }

/* Sneaker Hunter: margen lateral en móvil */
@media (max-width: 840px) { .sourcing-container { margin: 1rem 16px 3rem; padding: 1.4rem; box-shadow: none; } .sourcing-header h1 { font-size: 2rem; } }

/* Estados de pedido en Mi cuenta: sobrios (los colores vienen del admin oscuro) */
.zr-account .status-badge, main .status-badge { background: var(--soft, #ECECE8) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

/* Combo: sin verdes, mismo estilo sobrio que el resto */
body .zc-banner { border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
body .zc-banner__ico { background: var(--ink); color: #fff; }
body .zc-banner strong { color: var(--ink); }
body .zc-item:hover, body .zc-card:hover { border-color: var(--ink); }
body .zc-card__tag { background: var(--acc); color: #fff; }

/* Cesta: los avisos no se salen por la derecha en el móvil */
.zr-cart-notes { grid-template-columns: minmax(0, 1fr); }

/* Pago en el móvil: menos marcos dentro de marcos, dirección legible, cupón dentro */
input[name="coupon_code"] { min-width: 0; }
@media (max-width: 640px) {
    main .order-card { padding: 1.1rem !important; }
    #shipping-form-container, main .order-card > div[style*="padding: 1.4rem 1.6rem"] { padding: 1rem !important; }
    .ap-ship { flex-wrap: wrap; }
    .ap-ship > div { flex-basis: calc(100% - 3.5rem); }
    .ap-ship button { margin-left: 3.2rem; }
}

/* Caja de cartón protectora (cesta y pago): fila que se marca como una casilla */
.zr-caja { margin: .2rem 0; }
.zr-caja__btn { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s; }
.zr-caja__btn:hover { border-color: var(--ink); }
.zr-caja__btn.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.zr-caja__check { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: .7rem; }
.zr-caja__btn.is-on .zr-caja__check { background: var(--ink); border-color: var(--ink); color: #fff; }
.zr-caja__txt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.zr-caja__txt b { font-size: .9rem; }
.zr-caja__txt small { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.zr-caja__precio { font-weight: 800; white-space: nowrap; }

/* Con la ventana de tallas abierta, el botón del chat se esconde (tapaba la X) */
body.zr-sheet-open #zapa-chat-widget { display: none; }
/* Pares de 24 h en la cesta: son fotos reales, sin girar */
.zr-line--foto .zr-line__img img { width: 100%; height: 100%; object-fit: cover; transform: none; }

/* Logo (la Z con suela): las letras toman el color del enlace, la suela va en naranja */
.ap-logo { display: inline-flex; align-items: center; line-height: 0; }
.ap-logo__svg { display: block; height: 19px; width: auto; }
.ap-foot .ap-logo__svg { height: 22px; }
.ap-drawer .ap-logo__svg { height: 18px; }
body .reg-logo { line-height: 0; color: var(--ink); }
body .reg-logo .ap-logo__svg { height: 26px; width: auto; }

/* «Avísame cuando vuelva» (ficha agotada) */
.zr-avisame { margin-top: 1rem; padding: 1rem; border-radius: 16px; background: var(--soft); display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.zr-avisame__txt b { display: block; font-size: .95rem; }
.zr-avisame__txt span { font-size: .84rem; color: var(--muted); }
.zr-avisame__form { display: flex; gap: .5rem; }
.zr-avisame__form input { flex: 1; min-width: 0; height: 48px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; }
.zr-avisame__form .zr-btn { flex: none; width: auto; height: 48px; padding: 0 1.1rem; }
.zr-avisame__ok { margin: 0; font-weight: 700; color: var(--ok); font-size: .9rem; }
.zr-wish-aviso { margin: -.4rem 0 1rem; font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
/* Botón «Instalar la app» del menú: igual que el resto de filas */
.ap-drawer__list .ap-install { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; font: inherit; font-weight: 700; color: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ap-drawer__list .ap-install[hidden] { display: none; }
.ap-drawer__list .ap-install .chev { margin-left: auto; }
.ap-drawer__list .ap-install i:first-child { width: 22px; text-align: center; color: var(--ink2); }
.ap-drawer__list .ap-install .chev { color: #B5B5B0; font-size: .75rem; }
/* Instrucciones para instalar la app en iPhone */
.ap-instala { position: fixed; inset: 0; z-index: 10000; background: rgba(17, 17, 17, .45); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.ap-instala__caja { width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; padding: 1.3rem 1.2rem; display: grid; gap: .8rem; }
.ap-instala__caja b:first-child { font-size: 1.05rem; }
.ap-instala__caja ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .92rem; color: var(--ink2); }
.zr-gift-nota { margin: .1rem 0 .3rem; font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* Tarjetas regalo: canje en Mi cuenta */
.zr-canje { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.zr-canje__txt { margin: 0; color: var(--muted); font-size: .88rem; }
.zr-canje__form { display: flex; gap: .5rem; }
.zr-canje__form input { flex: 1; min-width: 0; height: 48px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; font-family: Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.zr-canje__form .zr-btn { flex: none; width: auto; height: 48px; padding: 0 1.1rem; }
.zr-canje__msg { margin: 0; font-weight: 700; font-size: .9rem; }
.zr-canje__msg.is-ok { color: var(--ok); }
.zr-canje__msg.is-bad { color: var(--bad); }
.zr-canje__sub { margin: .4rem 0 0; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.zr-canje__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.zr-canje__lista li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .6rem .8rem; border-radius: 12px; background: var(--soft); font-size: .86rem; }
.zr-canje__lista code { font-family: Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .05em; }
.zr-canje__lista small { margin-left: auto; color: var(--muted); }

/* Página de tarjeta regalo */
.zr-regalo { padding-top: 1rem; padding-bottom: 3rem; }
.zr-regalo__grid { display: grid; gap: 1.4rem; }
.zr-regalo__vista { display: flex; justify-content: center; padding: 1.6rem 1rem; border-radius: var(--r); background: var(--soft); }
.zr-regalo__tarjeta { position: relative; width: min(340px, 100%); aspect-ratio: 1.6; border-radius: 20px; background: var(--ink); color: #fff; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px -18px rgba(17, 17, 17, .55); overflow: hidden; }
.zr-regalo__tarjeta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--acc); }
.zr-regalo__marca { line-height: 0; color: #fff; }
.zr-regalo__marca .ap-logo__svg { height: 18px; }
.zr-regalo__pone { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.zr-regalo__importe { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: .4rem; }
.zr-regalo__form h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; margin: .2rem 0 .4rem; }
.zr-regalo__intro { color: var(--muted); margin: 0 0 1rem; line-height: 1.5; }
.zr-regalo__label { font-weight: 800; margin: 1.1rem 0 .5rem; }
.zr-regalo__importes, .zr-regalo__para { display: flex; flex-wrap: wrap; gap: .5rem; }
.zr-regalo__importes label, .zr-regalo__para label { cursor: pointer; }
.zr-regalo__importes input, .zr-regalo__para input { position: absolute; opacity: 0; pointer-events: none; }
.zr-regalo__importes span, .zr-regalo__para span { display: inline-flex; align-items: center; gap: .45rem; height: 46px; padding: 0 1.1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 800; }
.zr-regalo__importes input:checked + span, .zr-regalo__para input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.zr-regalo__importes input:focus-visible + span, .zr-regalo__para input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.zr-regalo__otro { display: grid; gap: .7rem; margin-top: 1rem; }
.zr-regalo__otro[hidden] { display: none; }
.zr-regalo__campo { display: grid; gap: .3rem; font-size: .86rem; font-weight: 700; }
.zr-regalo__campo input, .zr-regalo__campo textarea { width: 100%; padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 500; }
.zr-regalo__nota { margin: 0; font-size: .8rem; color: var(--muted); }
.zr-regalo__btn { width: 100%; height: 54px; margin-top: 1.3rem; }
.zr-regalo__puntos { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .86rem; color: var(--ink2); }
.zr-regalo__puntos i { width: 20px; text-align: center; margin-right: .3rem; }
@media (min-width: 900px) {
    .zr-regalo__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 2.5rem; }
    .zr-regalo__vista { position: sticky; top: 90px; min-height: 420px; align-items: center; }
}
.zr-line--regalo .zr-line__img img { transform: none; width: 100%; height: 100%; }

/* Deslizar con ratón en ordenador (ver app.js) */
@media (hover: hover) and (pointer: fine) {
    .is-arrastrable { cursor: grab; }
    .is-arrastrable.is-arrastrando { cursor: grabbing; scroll-behavior: auto; user-select: none; }
    .is-arrastrable.is-arrastrando a { pointer-events: none; }
    .ap-desliza { position: relative; }
    .ap-desliza__btn { position: absolute; top: calc(.2rem + 34px); transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%;
        border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center;
        cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: .85rem; }
    .ap-desliza__btn:hover { transform: translateY(-50%) scale(1.08); }
    .ap-desliza__btn--izq { left: -6px; }
    .ap-desliza__btn--der { right: -6px; }
    .ap-desliza.puede-izq .ap-desliza__btn--izq, .ap-desliza.puede-der .ap-desliza__btn--der { opacity: 1; pointer-events: auto; }
}
