/*
 * Spiegel 2026 · estilos del tema.
 * Colores de Spiegel: rojo, negro carbón, blanco y gris concreto. Precios en rojo Spiegel.
 */

:root {
	--spg-red: #b50001;
	--spg-red-deep: #8e0001;
	--spg-ink: #1d2329;
	--spg-muted: #5f6670;
	--spg-line: #e3e6ea;
	--spg-line-strong: #cdd2d8;
	--spg-paper: #ffffff;
	--spg-concrete: #f2f3f5;
	--spg-red-soft: #fdecec;
	--spg-green: #1f8f4e;
	--spg-amber: #8a5a00;
	--spg-fic: #003b7b;
	--spg-radius: 10px;
	--spg-wrap: 1240px;
	--spg-font: "Archivo", "Arial Narrow", Arial, Helvetica, sans-serif;
	--spg-head-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--spg-paper); color: var(--spg-ink); font: 400 15px/1.5 var(--spg-font); font-stretch: 100%; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--spg-red); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; }
.spg-wrap { max-width: var(--spg-wrap); margin: 0 auto; padding: 0 16px; }
.spg-narrow { max-width: 800px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--spg-ink); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.spg-icon { width: 20px; height: 20px; flex: none; }
.spg-linklike { padding: 0; border: 0; background: none; color: var(--spg-red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Botones ---------- */
.spg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; line-height: 1.1; }
.spg-btn.is-red { background: var(--spg-red); color: #fff; }
.spg-btn.is-red:hover { background: var(--spg-red-deep); color: #fff; }
.spg-btn.is-dark { background: var(--spg-ink); color: #fff; }
.spg-btn.is-light { background: #fff; color: var(--spg-fic); }
.spg-btn.is-ghost { background: transparent; border: 1px solid var(--spg-line-strong); color: var(--spg-ink); }
.spg-btn.is-ghost:hover { border-color: var(--spg-ink); color: var(--spg-ink); }

/* ---------- Promesas ---------- */
.spg-promises { background: var(--spg-red-deep); color: #fff; font-size: 13px; }
.spg-promises .spg-wrap { display: flex; align-items: center; gap: 22px; min-height: 36px; overflow-x: auto; scrollbar-width: none; }
.spg-promises .spg-wrap::-webkit-scrollbar { display: none; }
.spg-promises span, .spg-promises a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.spg-promises .spg-icon { width: 17px; height: 17px; }
.spg-promises a { margin-left: auto; text-decoration: none; font-weight: 700; color: #fff; }

/* ---------- Cabecera ---------- */
.spg-masthead { background: var(--spg-red); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .spg-masthead { top: 32px; }
.spg-masthead .spg-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: var(--spg-head-h); }
.spg-logo { display: block; color: #fff; text-decoration: none; }
.spg-logo img { display: block; height: 46px; width: auto; }
.spg-logo__text { font-size: 24px; font-weight: 900; font-stretch: 80%; }
.spg-search { position: relative; }
.spg-search__form { display: flex; height: 48px; background: #fff; border-radius: var(--spg-radius); overflow: hidden; }
.spg-search__form input[type=search] { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 16px; color: var(--spg-ink); outline: none; background: #fff; -webkit-appearance: none; appearance: none; }
.spg-search__form input[type=search]:focus-visible { box-shadow: inset 0 0 0 3px #1a73e8; }
.spg-search__form button { border: 0; background: var(--spg-ink); color: #fff; padding: 0 18px; display: flex; align-items: center; cursor: pointer; }
.spg-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--spg-ink); border-radius: var(--spg-radius); box-shadow: 0 18px 40px rgba(20, 24, 28, .22); overflow: hidden; z-index: 60; max-height: min(70vh, 560px); overflow-y: auto; }
.spg-suggest[hidden] { display: none; }
.spg-suggest h3 { margin: 0; padding: 10px 14px 4px; font-size: 12px; font-weight: 600; color: var(--spg-muted); }
.spg-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; text-decoration: none; color: var(--spg-ink); }
.spg-suggest a:hover, .spg-suggest a:focus, .spg-suggest a[aria-selected="true"] { background: var(--spg-concrete); color: var(--spg-ink); }
.spg-suggest img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.spg-suggest .s-name { font-size: 13.5px; flex: 1; min-width: 0; }
.spg-suggest .s-price { font-weight: 800; font-stretch: 75%; font-size: 16px; white-space: nowrap; }
.spg-suggest .s-all { font-weight: 700; color: var(--spg-red); border-top: 1px solid var(--spg-line); }
.spg-suggest p { margin: 0; padding: 14px; font-size: 13.5px; color: var(--spg-muted); }
/* FiboSearch dentro de la cabecera, con el mismo aspecto que la búsqueda del tema. */
.spg-search .dgwt-wcas-search-wrapp { max-width: none !important; width: 100%; margin: 0; }
.spg-search .dgwt-wcas-sf-wrapp { height: 48px; padding: 0 !important; background: #fff !important; border-radius: var(--spg-radius) !important; overflow: hidden; }
.spg-search .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { height: 48px !important; padding: 0 64px 0 16px !important; border: 0 !important; border-radius: var(--spg-radius) !important; background: #fff !important; color: var(--spg-ink) !important; font-size: 16px !important; box-shadow: none !important; }
.spg-search .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input:focus { box-shadow: inset 0 0 0 3px #1a73e8 !important; }
.spg-search .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit { top: 0 !important; right: 0 !important; left: auto !important; bottom: auto !important; display: flex !important; pointer-events: auto !important; cursor: pointer; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; opacity: 1 !important; height: 48px !important; min-height: 48px !important; min-width: 56px !important; border-radius: 0 var(--spg-radius) var(--spg-radius) 0 !important; background: var(--spg-ink) !important; color: #fff !important; text-shadow: none !important; }
.spg-search .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit::before { display: none !important; }
.spg-search .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit .dgwt-wcas-ico-magnifier { position: static !important; top: auto !important; left: auto !important; width: 18px !important; height: 18px !important; margin: 0 !important; opacity: 1 !important; }
.spg-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { padding-left: 16px !important; }
.spg-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp { padding: 0 !important; background: #fff !important; }
.spg-search .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit path { fill: #fff !important; }
.spg-search .dgwt-wcas-ico-magnifier-handler, .spg-search .dgwt-wcas-search-icon { color: #fff; }
.spg-search .dgwt-wcas-search-icon path { fill: #fff !important; }
.dgwt-wcas-suggestions-wrapp { border-radius: 0 0 var(--spg-radius) var(--spg-radius) !important; font-family: var(--spg-font) !important; box-shadow: 0 18px 40px rgba(20, 24, 28, .22) !important; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp, .dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .woocommerce-Price-amount { color: var(--spg-red) !important; font-weight: 800; }
.spg-tools { display: flex; align-items: center; gap: 6px; }
.spg-tool { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; border-radius: var(--spg-radius); cursor: pointer; text-decoration: none; color: #fff; line-height: 1.15; text-align: left; }
.spg-tool:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.spg-tool small { display: block; font-size: 11.5px; opacity: .85; white-space: nowrap; }
.spg-tool b { font-size: 13.5px; white-space: nowrap; }
.spg-tool .spg-icon { width: 24px; height: 24px; }
.spg-tool--cart { background: #fff; color: var(--spg-ink); }
.spg-tool--cart:hover { background: #f4f4f4; color: var(--spg-ink); }
.spg-tool--cart b .amount, .spg-tool--cart b bdi { font-weight: 700; }
.spg-cart-count { position: absolute; top: -4px; left: 22px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--spg-red); color: #fff; box-shadow: 0 0 0 2px #fff; font-size: 11.5px; font-weight: 800; line-height: 19px; text-align: center; }
.spg-cart-count[data-count="0"] { display: none; }
.spg-cart-count.is-bump { animation: spg-bump .45s ease-out; }
@keyframes spg-bump { 40% { transform: scale(1.35); } }

/* ---------- Departamentos ---------- */
.spg-deptnav { background: #fff; border-bottom: 1px solid var(--spg-line); position: relative; z-index: 40; }
.spg-deptnav > .spg-wrap { display: flex; align-items: center; gap: 4px; min-height: 50px; overflow-x: auto; scrollbar-width: none; }
.spg-deptnav > .spg-wrap::-webkit-scrollbar { display: none; }
.spg-deptnav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.spg-deptnav__list a, .spg-deptnav__all, .spg-deptnav__fic { flex: none; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--spg-ink); }
.spg-deptnav__list a:hover { background: var(--spg-concrete); color: var(--spg-ink); }
.spg-deptnav__list .current-menu-item a, .spg-deptnav__list .current-product_cat-ancestor a { color: var(--spg-red); }
.spg-deptnav__list .is-deals a { color: var(--spg-red); }
.spg-deptnav__all { background: var(--spg-concrete); }
.spg-deptnav__all[aria-expanded="true"] { background: var(--spg-ink); color: #fff; }
.spg-deptnav__fic { color: var(--spg-fic); margin-left: auto; }
.spg-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--spg-line); box-shadow: 0 24px 40px rgba(20, 24, 28, .16); max-height: calc(100vh - 180px); overflow-y: auto; }
.spg-mega[hidden] { display: none; }
.spg-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 28px; padding: 24px 0 28px; }
.spg-mega__head { font-weight: 800; font-size: 15px; text-decoration: none; }
.spg-mega ul { margin: 6px 0 0; padding: 0; list-style: none; }
.spg-mega li a { display: block; padding: 3px 0; font-size: 13.5px; color: var(--spg-muted); text-decoration: none; }
.spg-mega li a:hover { color: var(--spg-red); }

/* ---------- Etiqueta de góndola ---------- */
.spg-tag { display: inline-flex; align-items: flex-start; gap: 1px; color: var(--spg-red); line-height: .9; font-stretch: 72%; }
.spg-tag__cur { font-size: 15px; font-weight: 800; padding-top: 3px; }
.spg-tag__amt { font-size: 32px; font-weight: 900; letter-spacing: -.01em; }
.spg-tag__amt sup { font-size: 15px; vertical-align: top; position: relative; top: 3px; margin-left: 2px; line-height: 1; }
.spg-tag.is-big .spg-tag__cur { font-size: 22px; padding-top: 6px; }
.spg-tag.is-big .spg-tag__amt { font-size: 64px; }
.spg-tag.is-big .spg-tag__amt sup { font-size: 26px; top: 7px; }
.spg-was { display: flex; flex-wrap: wrap; column-gap: 6px; margin: 0 0 4px; font-size: 13px; color: var(--spg-muted); }
.spg-was s { text-decoration-thickness: 1.5px; }
.spg-save { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--spg-red-soft); color: var(--spg-red-deep); font-weight: 700; }
.spg-ask { display: inline-block; font-weight: 700; color: var(--spg-muted); padding: 10px 0; }

/* ---------- Tarjeta de producto ---------- */
.spg-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; height: 100%; background: #fff; border-radius: var(--spg-radius); border: 1px solid var(--spg-line); padding: 14px; scroll-snap-align: start; }
.spg-card > * { min-width: 0; }
.spg-card:hover { border-color: #bfc5cc; }
.spg-card__ph { position: relative; display: block; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; }
.spg-card__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; margin: 0 !important; }
.spg-card__name { margin: 0 0 12px; font-size: 13.5px; line-height: 1.35; font-weight: 400; }
.spg-card__name a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.spg-card__name a:hover { text-decoration: underline; color: var(--spg-ink); }
.spg-card__price { min-height: 64px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.spg-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--spg-red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.spg-card__meta { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 12px; padding: 0; list-style: none; font-size: 12.5px; color: var(--spg-muted); min-height: 2.9em; }
.spg-card__meta .is-ok { color: var(--spg-green); font-weight: 600; }
.spg-card__meta .is-fic { color: var(--spg-fic); font-weight: 600; }
.spg-card__meta .is-store { color: var(--spg-amber); font-weight: 600; }
.spg-card.is-out .spg-card__ph img { opacity: .55; }
a.spg-add, .woocommerce a.spg-add.button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; background: var(--spg-red); color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer; }
a.spg-add:hover, .woocommerce a.spg-add.button:hover { background: var(--spg-red-deep); color: #fff; }
a.spg-add.is-ghost, .woocommerce a.spg-add.is-ghost { background: #fff; color: var(--spg-ink); border: 1px solid var(--spg-line-strong); }
a.spg-add.is-ghost:hover { border-color: var(--spg-ink); background: #fff; color: var(--spg-ink); }
a.spg-add.added, .woocommerce a.spg-add.button.added { background: var(--spg-green); }
a.spg-add.loading, .woocommerce a.spg-add.button.loading { opacity: .7; pointer-events: none; }
a.spg-add.loading::after, .woocommerce a.spg-add.button.loading::after { position: static; content: ""; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spg-spin .7s linear infinite; font-family: inherit; }
a.spg-add.added::after, .woocommerce a.spg-add.button.added::after { content: none; }
@keyframes spg-spin { to { transform: rotate(360deg); } }
.spg-card .added_to_cart, .spg-pricelist .added_to_cart, .spg-card .spg-icon { width: 18px; height: 18px; }

/* Cuadrícula de productos (catálogo, relacionados) */
ul.products, .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; display: none; }
ul.products li.spg-grid__item, .woocommerce ul.products li.spg-grid__item { width: auto; float: none; margin: 0; padding: 0; min-width: 0; }
.spg-catalog ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1180px) { .spg-catalog ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Inicio ---------- */
.spg-main { display: block; min-height: 50vh; }
.spg-hero { background: #fff; border-bottom: 1px solid var(--spg-line); }
.spg-hero .spg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 30px; padding-bottom: 32px; }
.spg-hero h1, .spg-hero .spg-hero__title { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04; font-weight: 850; font-stretch: 78%; letter-spacing: -.01em; max-width: 20ch; }
.spg-lead { margin: 0; font-size: 17px; color: #3a4048; max-width: 50ch; }
.spg-chips__title { margin: 16px 0 0; font-size: 13px; font-weight: 700; color: var(--spg-muted); }
.spg-hero .spg-chips { margin-top: 8px; }

/* ---------- Banner principal ---------- */
.spg-banner { background: var(--spg-concrete); padding: 20px 0; }
.spg-banner__frame { position: relative; border-radius: 16px; overflow: hidden; background: var(--spg-ink); }
.spg-banner__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.spg-banner__track::-webkit-scrollbar { display: none; }
.spg-slide { position: relative; scroll-snap-align: start; min-width: 0; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 28px; padding: 40px 72px; color: #fff; overflow: hidden; }
.spg-slide.is-offers { background: var(--spg-red); background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12) 0 22%, transparent 22.2%), linear-gradient(120deg, var(--spg-red) 0 55%, var(--spg-red-deep) 55%); }
.spg-slide.is-pickup { background: var(--spg-ink); background-image: linear-gradient(120deg, var(--spg-ink) 0 58%, #2a323a 58%); }
.spg-slide.is-ficisa { background: var(--spg-fic); background-image: linear-gradient(120deg, var(--spg-fic) 0 58%, #002c5e 58%); }
.spg-slide.is-image { display: block; padding: 0; min-height: 0; background: #fff; }
.spg-slide__link, .spg-slide__link picture { display: block; }
.spg-slide__img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 520; object-fit: cover; }
.spg-slide__eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.spg-slide.is-pickup .spg-slide__eyebrow { background: var(--spg-red); }
.spg-slide__title { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1; font-weight: 900; font-stretch: 75%; letter-spacing: -.01em; max-width: 14ch; }
.spg-slide__lead { margin: 0 0 22px; font-size: 16.5px; color: rgba(255, 255, 255, .86); max-width: 42ch; }
.spg-btn.is-white { background: #fff; color: var(--spg-ink); }
.spg-btn.is-white:hover { background: var(--spg-concrete); color: var(--spg-ink); }
.spg-slide__products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.spg-slide__products a { display: grid; gap: 4px; height: 100%; padding: 12px; border-radius: 12px; background: #fff; color: var(--spg-ink); text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.spg-slide__products a:hover { color: var(--spg-ink); transform: translateY(-2px); }
.spg-slide__ph { position: relative; display: block; aspect-ratio: 1; }
.spg-slide__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.spg-slide__pname { max-height: 2.6em; font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.spg-slide__price { color: var(--spg-red); font-size: 24px; font-weight: 900; font-stretch: 72%; line-height: 1; }
.spg-slide__was { font-size: 12px; color: var(--spg-muted); }
.spg-slide__stores { display: flex; align-items: center; justify-content: center; gap: 28px; }
.spg-slide__bigicon { width: 120px; height: 120px; color: #fff; opacity: .9; stroke-width: 1.2; }
.spg-slide__stores ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.spg-slide__stores li { display: flex; align-items: center; gap: 8px; }
.spg-slide__stores li .spg-icon { width: 18px; height: 18px; color: #ff8a8a; }
.spg-slide__fic { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.spg-slide__ficlogo { background: #fff; border-radius: 14px; padding: 16px 22px; }
.spg-slide__ficlogo img { display: block; height: 72px; width: auto; }
.spg-slide__fic ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 0; padding: 0; list-style: none; counter-reset: f; font-size: 14px; }
.spg-slide__fic li { counter-increment: f; display: flex; align-items: center; gap: 8px; }
.spg-slide__fic li::before { content: counter(f); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--spg-fic); font-weight: 800; font-size: 13px; }
.spg-banner__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--spg-ink); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.spg-banner__arrow:hover { background: #fff; }
.spg-banner__arrow.is-prev { left: 14px; }
.spg-banner__arrow.is-prev .spg-icon { transform: rotate(180deg); }
.spg-banner__arrow.is-next { right: 14px; }
.spg-banner__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 6px; }
.spg-banner__dots button { width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 6px; background: transparent; cursor: pointer; transition: width .2s; }
.spg-banner__dots button[aria-current="true"] { width: 26px; background: #fff; }
.spg-banner__dots .spg-banner__pause { width: 22px; height: 22px; margin-left: 6px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); position: relative; }
.spg-banner__pause::before, .spg-banner__pause::after { content: ""; position: absolute; top: 6px; width: 3px; height: 10px; background: #fff; }
.spg-banner__pause::before { left: 7px; }
.spg-banner__pause::after { left: 12px; }
.spg-banner__pause[aria-pressed="true"]::before { left: 8px; top: 6px; width: 0; height: 0; background: none; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.spg-banner__pause[aria-pressed="true"]::after { display: none; }
.spg-storecard { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--spg-line); border-left: 5px solid var(--spg-green); border-radius: var(--spg-radius); padding: 14px 16px; max-width: 520px; }
.spg-storecard__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--spg-green); margin-top: 7px; flex: none; box-shadow: 0 0 0 4px rgba(31, 143, 78, .15); }
.spg-storecard strong { display: block; font-size: 16px; }
.spg-storecard span { display: block; color: var(--spg-muted); font-size: 14px; }
.spg-storecard .spg-linklike { margin-top: 6px; font-size: 14px; }
.spg-storecard__label { display: block; font-size: 12px; font-weight: 700; color: var(--spg-muted); text-transform: uppercase; letter-spacing: .03em; }
.spg-storecard .spg-storecard__hours { margin-top: 2px; font-size: 13px; }
.spg-embed { display: block; width: 100%; }
.spg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.spg-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--spg-line-strong); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; color: var(--spg-ink); }
.spg-chip:hover { border-color: var(--spg-ink); color: var(--spg-ink); }
.spg-chip small { color: var(--spg-muted); font-weight: 400; margin-left: 4px; }
.spg-chip.is-back { background: var(--spg-concrete); }
.spg-fic-note { margin: 4px 0 0; font-size: 13.5px; color: var(--spg-fic); font-weight: 600; }

.spg-section { padding: 48px 0; }
.spg-section.is-alt { background: var(--spg-concrete); }
.spg-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.spg-sechead h2 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 850; font-stretch: 78%; }
.spg-sechead p { margin: 4px 0 0; color: var(--spg-muted); }
.spg-sechead > a { font-weight: 700; color: var(--spg-red); white-space: nowrap; }

.spg-depts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.spg-dept { display: grid; gap: 4px; height: 100%; padding: 12px 12px 14px; border-radius: var(--spg-radius); text-decoration: none; background: #fff; border: 1px solid var(--spg-line); }
.spg-dept:hover { border-color: var(--spg-ink); color: var(--spg-ink); }
.spg-dept__ph { position: relative; display: block; aspect-ratio: 1; background: var(--spg-concrete); border-radius: 8px; margin-bottom: 4px; overflow: hidden; }
.spg-dept__ph img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; mix-blend-mode: multiply; }
.spg-dept b { font-size: 15px; font-weight: 700; line-height: 1.2; }
.spg-dept small { color: var(--spg-muted); font-size: 12.5px; }

.spg-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }

.spg-ficband { background: var(--spg-fic); color: #fff; }
.spg-ficband .spg-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
.spg-ficband__logo { background: #fff; border-radius: 12px; padding: 14px 18px; }
.spg-ficband__logo img { display: block; height: 54px; width: auto; }
.spg-ficband h2 { margin: 0 0 6px; font-size: 30px; font-weight: 850; font-stretch: 78%; line-height: 1.05; }
.spg-ficband p { margin: 0; color: #d6e2f2; max-width: 60ch; }
.spg-ficband ol { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; font-size: 14px; }
.spg-ficband ol li { counter-increment: s; display: flex; gap: 8px; align-items: center; }
.spg-ficband ol li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--spg-fic); font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.spg-ficband .spg-btn.is-light:hover { background: #e9f0f9; color: var(--spg-fic); }

.spg-pricelist { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--spg-radius); overflow: hidden; border: 1px solid var(--spg-line); }
.spg-pricelist th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--spg-muted); padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--spg-line); }
.spg-pricelist td { padding: 10px 14px; border-bottom: 1px solid var(--spg-line); vertical-align: middle; }
.spg-pricelist tr:last-child td { border-bottom: 0; }
.spg-pricelist__item { display: flex; align-items: center; gap: 12px; }
.spg-pricelist__item img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.spg-pricelist__item a { font-size: 14px; text-decoration: none; }
.spg-pricelist__unit { display: block; font-size: 12.5px; color: var(--spg-muted); }
.spg-pricelist__price { font-weight: 800; font-stretch: 72%; font-size: 22px; white-space: nowrap; }
.spg-pricelist a.spg-add { width: auto; padding: 0 18px; min-height: 40px; }
.spg-qty { display: inline-flex; border: 1px solid var(--spg-line-strong); border-radius: 8px; overflow: hidden; height: 40px; }
.spg-qty button { width: 36px; border: 0; background: #fff; cursor: pointer; font-size: 18px; }
.spg-qty button:hover { background: var(--spg-concrete); }
.spg-qty input { width: 52px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.spg-qty input::-webkit-inner-spin-button, .spg-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.spg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.spg-steps li { counter-increment: st; background: #fff; border: 1px solid var(--spg-line); border-radius: var(--spg-radius); padding: 18px; }
.spg-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--spg-ink); color: #fff; font-weight: 800; margin-bottom: 10px; }
.spg-steps h3 { margin: 0 0 6px; font-size: 18px; }
.spg-steps p { margin: 0; color: var(--spg-muted); font-size: 14.5px; }

.spg-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.spg-store { background: #fff; border: 1px solid var(--spg-line); border-radius: var(--spg-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.spg-store.is-current { border-color: var(--spg-green); box-shadow: inset 4px 0 0 var(--spg-green); }
.spg-store b { font-size: 15.5px; }
.spg-store span { color: var(--spg-muted); font-size: 13.5px; }
.spg-store em { font-style: normal; color: var(--spg-amber); font-size: 13px; font-weight: 600; }
.spg-store__links { display: flex !important; gap: 16px; margin-top: 6px; }
.spg-store__links a { color: var(--spg-ink); font-size: 14px; }
.spg-store .spg-linklike { font-size: 14px; }

/* ---------- Catálogo ---------- */
.spg-crumbs, .woocommerce .spg-crumbs { font-size: 13px; color: var(--spg-muted); padding: 16px 0 6px; margin: 0; }
.spg-crumbs a { color: var(--spg-ink); text-decoration: none; }
.spg-crumbs a:hover { text-decoration: underline; }
.spg-cathead { margin-bottom: 8px; }
.spg-cathead__title { margin: 0 0 6px; font-size: clamp(30px, 4vw, 46px); font-weight: 850; font-stretch: 78%; line-height: 1.05; }
.spg-cathead .term-description, .spg-cathead .page-description { color: var(--spg-muted); max-width: 75ch; }
.spg-cathead .term-description p { margin: 0 0 8px; }
.spg-chips--subs { margin-top: 12px; }
.spg-catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 14px 0 48px; }
.spg-filters__head { display: flex; justify-content: space-between; align-items: center; }
.spg-filters__head h2 { margin: 0 0 8px; font-size: 16px; }
.spg-filters__done { display: none; min-height: 38px; padding: 0 14px; }
.spg-filter { border-top: 1px solid var(--spg-line); padding: 14px 0; }
.spg-filter__title { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.spg-filter ul { margin: 0; padding: 0; list-style: none; }
.spg-filter li { padding: 4px 0; font-size: 14px; }
.spg-filter li a { text-decoration: none; }
.spg-filter li.chosen a { color: var(--spg-red); font-weight: 700; }
.spg-filter .count { color: var(--spg-muted); font-size: 12.5px; margin-left: 4px; }
.spg-filter .price_slider_wrapper .ui-widget-content { background: var(--spg-line); }
.spg-filter .price_slider_wrapper .ui-slider .ui-slider-range, .spg-filter .price_slider_wrapper .ui-slider .ui-slider-handle { background: var(--spg-red); }
.spg-filter .price_slider_amount .button { background: var(--spg-ink); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 13.5px; }
.spg-filter .price_slider_amount { font-size: 13.5px; }
.spg-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.spg-toolbar__count { margin: 0 auto 0 0; font-size: 14px; color: var(--spg-muted); }
.spg-toolbar__filter { display: none; min-height: 40px; padding: 0 14px; }
.spg-toolbar .woocommerce-ordering, .woocommerce .spg-toolbar .woocommerce-ordering { margin: 0; float: none; }
.spg-toolbar select { height: 40px; border: 1px solid var(--spg-line-strong); border-radius: 8px; padding: 0 10px; background: #fff; }
.spg-empty { padding: 24px; text-align: center; border: 1px dashed var(--spg-line-strong); border-radius: var(--spg-radius); color: var(--spg-muted); }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--spg-line-strong); border-radius: 8px; font-weight: 600; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--spg-ink); border-color: var(--spg-ink); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--spg-concrete); color: var(--spg-ink); }

/* ---------- Producto ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 44px; position: relative; padding: 10px 0 40px; }
.single-product div.product > * { grid-column: 1 / -1; min-width: 0; }
.woocommerce.single-product div.product div.images, .single-product div.product .woocommerce-product-gallery { grid-column: 1; grid-row: 1; width: auto; float: none; margin: 0; }
.woocommerce.single-product div.product div.summary, .single-product div.product .summary { grid-column: 2; grid-row: 1; width: auto; float: none; margin: 0; }
.single-product div.product > .onsale, .woocommerce span.onsale { position: absolute; top: 18px; left: 8px; z-index: 5; min-width: 0; min-height: 0; margin: 0; padding: 4px 10px; border-radius: 4px; background: var(--spg-red); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.single-product .woocommerce-product-gallery { background: #fff; border: 1px solid var(--spg-line); border-radius: 14px; padding: 18px; }
.single-product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 8px; margin-top: 12px !important; }
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; float: none !important; border: 1px solid var(--spg-line); border-radius: 8px; overflow: hidden; }
.single-product .product_title { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; font-stretch: 85%; line-height: 1.12; }
.spg-sku { margin: 0 0 12px; font-size: 13px; color: var(--spg-muted); }
.single-product div.product .summary .price { color: var(--spg-ink); font-size: 34px; font-weight: 900; font-stretch: 72%; margin: 0 0 10px; }
.single-product div.product .summary .price del { font-size: 18px; font-weight: 400; color: var(--spg-muted); opacity: 1; }
.single-product div.product .summary .price ins { text-decoration: none; }
.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 16px 0; }
.single-product div.product form.cart::before, .single-product div.product form.cart::after { content: none; }
.single-product div.product form.cart .quantity { float: none; margin: 0; }
.single-product div.product form.cart .quantity .qty { height: 52px; width: 76px; border: 1px solid var(--spg-line-strong); border-radius: 8px; text-align: center; font-weight: 700; font-size: 16px; }
.single-product div.product form.cart .single_add_to_cart_button, .woocommerce div.product form.cart .button { float: none; min-height: 52px; padding: 0 26px; border-radius: 8px; background: var(--spg-red); color: #fff; font-size: 16px; font-weight: 700; }
.single-product div.product form.cart .single_add_to_cart_button:hover { background: var(--spg-red-deep); color: #fff; }
.single-product div.product form.cart .single_add_to_cart_button.loading { opacity: .7; }
.single-product div.product form.variations_form { display: block; }
.single-product div.product table.variations { margin-bottom: 10px; }
.single-product div.product table.variations select { height: 44px; border: 1px solid var(--spg-line-strong); border-radius: 8px; padding: 0 10px; min-width: 200px; background: #fff; }
.single-product .woocommerce-product-details__short-description { color: #3a4048; }
.single-product .woocommerce-tabs { margin-top: 10px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--spg-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 8px 8px 0 0; background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 16px; font-weight: 700; color: var(--spg-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: none; box-shadow: inset 0 -3px 0 var(--spg-red); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--spg-ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 80ch; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.single-product .related > h2, .single-product .upsells > h2, .cross-sells > h2 { font-size: 26px; font-weight: 850; font-stretch: 78%; margin: 20px 0 14px; }
.spiegel-metodos-pago img { display: block; max-width: 100%; height: auto; margin: 12px 0; }
.alertasp { padding: 10px 14px; border-radius: 8px; background: #fff4e0; color: #6b4600; font-weight: 600; margin: 0 0 12px; }

/* ---------- Avisos y formularios de WooCommerce ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 8px; border-top-width: 0; border-left: 5px solid var(--spg-green); background: #f1f8f4; color: var(--spg-ink); padding: 14px 16px 14px 48px; }
.woocommerce-info { border-left-color: var(--spg-fic); background: #eef3fa; }
.woocommerce-error { border-left-color: var(--spg-red); background: #fdf0f0; }
.woocommerce-message .button, .woocommerce-info .button { background: var(--spg-ink) !important; color: #fff !important; border-radius: 8px !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 8px; font-weight: 700; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--spg-red); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--spg-red-deep); color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; border: 1px solid var(--spg-line-strong); border-radius: 8px; padding: 8px 12px; background: #fff; }

/* ---------- Páginas y entradas ---------- */
.spg-page { padding: 24px 0 48px; }
.spg-page__head { padding: 24px 0 8px; }
.spg-page__title { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 850; font-stretch: 80%; }
.spg-page__ph img { border-radius: var(--spg-radius); }
.spg-content { font-size: 16px; line-height: 1.65; }
.spg-content > * { max-width: 100%; }
:where(.spg-content) a { color: var(--spg-red); }
:where(.spg-embed) a { color: inherit; }
.spg-content .spg-embed .spg-wrap { padding-left: 0; padding-right: 0; }
.spg-content .spg-embed .spg-banner { background: none; }
.spg-content table { border-collapse: collapse; width: 100%; }
.spg-content td, .spg-content th { border: 1px solid var(--spg-line); padding: 8px 10px; }
.spg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 32px; }
.spg-post { border: 1px solid var(--spg-line); border-radius: var(--spg-radius); overflow: hidden; background: #fff; }
.spg-post__ph img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spg-post__body { padding: 14px 16px; }
.spg-post__title { margin: 0 0 4px; font-size: 19px; }
.spg-post__title a { text-decoration: none; }
.spg-post__meta { margin: 0 0 8px; font-size: 13px; color: var(--spg-muted); }
.spg-elementor { min-height: 0; }
.spg-404 { padding: 48px 16px; }
.spg-404 .spg-searchform { margin: 18px 0; }
.spg-searchform { display: flex; gap: 8px; max-width: 560px; }
.spg-searchform input[type=search] { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--spg-line-strong); border-radius: 8px; padding: 0 14px; font-size: 16px; }
.spg-comments { padding-bottom: 40px; }
.spg-comments textarea, .spg-comments input[type=text], .spg-comments input[type=email], .spg-comments input[type=url] { width: 100%; max-width: 100%; border: 1px solid var(--spg-line-strong); border-radius: 8px; padding: 10px 12px; }
.spg-comments .submit { min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--spg-ink); color: #fff; font-weight: 700; cursor: pointer; }
.nav-links { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; }

/* ---------- Pie ---------- */
.spg-footer { background: var(--spg-ink); color: #c9ced4; font-size: 14px; margin-top: 0; }
.spg-footer .spg-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.spg-footer__title { color: #fff; font-size: 15px; margin: 0 0 10px; }
.spg-footer__about p { margin: 0; max-width: 34ch; }
.spg-footer ul { margin: 0; padding: 0; list-style: none; }
.spg-footer a, .spg-footer .spg-linklike { display: inline-block; padding: 3px 0; color: #c9ced4; text-decoration: none; font-weight: 400; }
.spg-footer a:hover, .spg-footer .spg-linklike:hover { color: #fff; }
.spg-footer__fine { grid-column: 1 / -1; margin: 0; border-top: 1px solid #343b43; padding-top: 16px; font-size: 12.5px; }

/* ---------- Carrito lateral y selector de tienda ---------- */
.spg-drawer { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 1fr minmax(0, 420px); }
.spg-drawer[hidden] { display: none; }
.spg-drawer__shade { display: block; width: 100%; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: rgba(20, 24, 28, .45) !important; cursor: pointer; }
.spg-drawer__panel { background: #fff; display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; height: 100dvh; animation: spg-slide .22s ease-out; }
@keyframes spg-slide { from { transform: translateX(24px); } to { transform: none; } }
.spg-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--spg-line); }
.spg-drawer__head h2 { margin: 0; font-size: 20px; }
.spg-drawer button, .spg-drawer input { font-family: inherit; letter-spacing: normal; text-transform: none; }
.spg-x { display: grid; place-items: center; border: 0; background: var(--spg-concrete); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }
.spg-drawer__promise, .spg-drawer__note { margin: 12px 18px 0; padding: 10px 12px; background: #eaf6ef; color: #155e34; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.spg-drawer__promise:empty { display: none; }
.spg-drawer__note { background: var(--spg-concrete); color: var(--spg-muted); font-weight: 400; }
.spg-drawer__body { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.spg-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.spg-drawer__head h2 .spg-mc-count { font-size: 14px; font-weight: 600; color: var(--spg-muted); }
.spg-mc { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.spg-mc__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 12px; }
.spg-mc__list { margin: 0; padding: 0; list-style: none; }
.spg-mc__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--spg-line); transition: opacity .2s; }
.spg-mc__item.is-updating { opacity: .55; }
.spg-mc__item.is-leaving { opacity: .25; }
.spg-mc__ph { display: block; width: 64px; height: 64px; border: 1px solid var(--spg-line); border-radius: 8px; padding: 4px; background: #fff; }
.spg-mc__ph img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; float: none !important; }
.spg-mc__info { min-width: 0; }
.spg-mc__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.3; text-decoration: none; color: var(--spg-ink); }
.spg-mc__name:hover { color: var(--spg-red); }
.spg-mc__info dl.variation { margin: 3px 0 0; font-size: 12px; color: var(--spg-muted); }
.spg-mc__info dl.variation dt, .spg-mc__info dl.variation dd { display: inline; margin: 0; }
.spg-mc__info dl.variation p { display: inline; margin: 0; }
.spg-mc__unit { display: block; margin-top: 2px; font-size: 12px; color: var(--spg-muted); }
.spg-mc__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.spg-qty.is-sm { height: 34px; }
.spg-qty.is-sm button { width: 32px; font-size: 17px; }
.spg-qty.is-sm button:disabled { color: #b8bec5; cursor: default; background: #fff; }
.spg-qty.is-sm input { width: 40px; font-size: 14px; }
.spg-mc__remove { padding: 0; border: 0; background: none; color: var(--spg-muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.spg-mc__remove:hover { color: var(--spg-red); }
.spg-mc__qtyfixed { font-size: 12.5px; color: var(--spg-muted); }
.spg-mc__line { font-size: 17px; font-weight: 900; font-stretch: 75%; color: var(--spg-ink); white-space: nowrap; }
.spg-mc__suggest { margin-top: 16px; }
.spg-mc__suggesttitle { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--spg-muted); text-transform: uppercase; letter-spacing: .03em; }
.spg-mc__suggest ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spg-mc__suggest li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--spg-line); border-radius: 10px; background: var(--spg-concrete); }
.spg-mc__sph { display: block; width: 44px; height: 44px; border-radius: 6px; background: #fff; padding: 3px; }
.spg-mc__sph img { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; }
.spg-mc__sname { font-size: 12.5px; line-height: 1.25; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spg-mc__sprice { font-weight: 900; font-stretch: 75%; color: var(--spg-red); font-size: 15px; }
a.spg-mc__sadd { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--spg-red); color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; line-height: 1; }
a.spg-mc__sadd:hover { background: var(--spg-red-deep); color: #fff; }
a.spg-mc__sadd.loading { opacity: .6; }
a.spg-mc__sadd.added { background: var(--spg-green); }
.spg-mc__suggest .added_to_cart { display: none !important; }
.spg-mc__foot { flex: none; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--spg-line); background: #fff; box-shadow: 0 -8px 20px rgba(20, 24, 28, .06); }
.spg-mc__totals { display: grid; gap: 4px; margin: 0 0 10px; font-size: 13.5px; }
.spg-mc__totals > div { display: flex; justify-content: space-between; gap: 12px; }
.spg-mc__totals dt { color: var(--spg-muted); }
.spg-mc__totals dd { margin: 0; text-align: right; }
.spg-mc__totals dd.is-ok { color: var(--spg-green); font-weight: 600; }
.spg-mc__totals .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--spg-line-strong); font-size: 18px; }
.spg-mc__totals .is-total dt { color: var(--spg-ink); font-weight: 800; }
.spg-mc__totals .is-total dd { color: var(--spg-red); font-weight: 900; font-stretch: 75%; font-size: 24px; line-height: 1; }
.spg-mc__totals .is-note { font-size: 12px; }
.spg-mc__fic { margin: 0 0 10px; padding: 7px 10px; border-radius: 8px; background: #eef3fa; color: var(--spg-fic); font-size: 13px; }
.spg-mc__pay { width: 100%; min-height: 52px; justify-content: space-between; padding: 0 20px; font-size: 16.5px; }
.spg-mc__pay span { font-weight: 900; font-stretch: 80%; font-size: 18px; }
.spg-mc__links { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13.5px; }
.spg-mc__links a { color: var(--spg-ink); }
.spg-mc__links .spg-linklike { color: var(--spg-ink); font-weight: 600; }
.spg-mc__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--spg-muted); }
.spg-mc__secure .spg-icon { width: 15px; height: 15px; color: var(--spg-green); }
.spg-mc.is-empty { justify-content: center; }
.spg-mc__empty { display: grid; justify-items: center; gap: 12px; padding: 40px 24px; text-align: center; color: var(--spg-muted); }
.spg-mc__empty p { margin: 0; }
.spg-mc__empty strong { color: var(--spg-ink); font-size: 16px; }
.spg-mc__emptyicon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--spg-concrete); color: var(--spg-muted); }
.spg-mc__emptyicon .spg-icon { width: 34px; height: 34px; }
.spg-mc__empty .spg-btn { width: 100%; max-width: 280px; }
.spg-drawer:has(.spg-mc.is-empty) .spg-drawer__promise { display: none; }
/* Si otro plugin pinta su propio mini carrito, al menos que no se desborde. */
.spg-drawer .widget_shopping_cart_content > :not(.spg-mc) { overflow-y: auto; padding: 8px 18px; }
.spg-drawer .widget_shopping_cart_content > :not(.spg-mc) img { width: 64px !important; height: 64px !important; object-fit: contain; }
@media (max-height: 760px), (max-width: 640px) {
	.spg-mc__secure { display: none; }
	.spg-mc__totals { gap: 2px; font-size: 13px; }
	.spg-mc__totals .is-total dd { font-size: 21px; }
	.spg-mc__fic { margin-bottom: 8px; padding: 5px 10px; }
	.spg-mc__pay { min-height: 48px; }
}
.spg-drawer.is-loading .spg-mc__foot { opacity: .7; pointer-events: none; }
.spg-storelist { margin: 0; padding: 8px 18px 18px; list-style: none; overflow-y: auto; }
.spg-storelist li { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--spg-line); }
.spg-storelist li > a { flex: none; padding: 14px 0; font-size: 13.5px; }
.spg-storepick { flex: 1; display: grid; gap: 2px; padding: 14px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.spg-storepick b { font-size: 15px; }
.spg-storepick span { font-size: 13.5px; color: var(--spg-muted); }
.spg-storepick em { font-style: normal; font-size: 13px; color: var(--spg-amber); font-weight: 600; }
.spg-storepick[aria-pressed="true"] b::after { content: " · elegida"; color: var(--spg-green); font-size: 13px; }
.spg-storepick:hover b { color: var(--spg-red); }

.spg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--spg-ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 1100; transition: transform .25s, visibility .25s; max-width: 92vw; }
.spg-toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Barra inferior (celular) ---------- */
.spg-tabbar { display: none; }

/* ---------- Checkout: sin distracciones ---------- */
.woocommerce-checkout .spg-deptnav, .woocommerce-checkout .spg-tools .spg-tool--store { display: none; }
.woocommerce-checkout .spg-masthead { position: relative; top: auto; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
	.spg-depts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	ul.products, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.spg-tool__txt { display: none; }
	.spg-tool--cart .spg-tool__txt { display: block; }
}
@media (max-width: 860px) {
	.spg-hero .spg-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 22px; padding-bottom: 24px; }
	.spg-slide { grid-template-columns: minmax(0, 1fr); padding: 30px 28px 48px; gap: 20px; min-height: 0; }
	.spg-slide__stores .spg-slide__bigicon { display: none; }
	.spg-banner__arrow { display: none; }
	.spg-ficband .spg-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.spg-steps { grid-template-columns: 1fr; }
	.spg-catalog { grid-template-columns: minmax(0, 1fr); }
	.spg-filters { display: none; }
	.spg-filters.is-open { display: block; position: fixed; inset: 0; z-index: 1000; background: #fff; overflow-y: auto; padding: 18px; }
	.spg-filters.is-open .spg-filters__done { display: inline-flex; }
	.spg-toolbar__filter { display: inline-flex; }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.woocommerce.single-product div.product div.summary, .single-product div.product .summary { grid-column: 1; grid-row: 2; }
	.spg-footer .spg-wrap { grid-template-columns: 1fr 1fr; }
	.spg-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .spg-masthead { top: 46px; }
}
@media (max-width: 640px) {
	:root { --spg-tabbar-h: 58px; }
	body { padding-bottom: calc(var(--spg-tabbar-h) + env(safe-area-inset-bottom)); }
	.spg-masthead .spg-wrap { grid-template-columns: auto 1fr; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.spg-logo img { height: 36px; }
	.spg-search { grid-column: 1 / -1; grid-row: 2; }
	.spg-tools { justify-self: end; }
	.spg-tool--store, .spg-tool--acct { display: none; }
	.spg-promises a { display: none; }
	.spg-deptnav__all, .spg-deptnav__fic { display: none; }
	.spg-chips--subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	.spg-chips--subs::-webkit-scrollbar { display: none; }
	.spg-chips--subs .spg-chip { white-space: nowrap; }
	.spg-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.spg-dept { padding: 8px; }
	.spg-dept b { font-size: 13px; }
	ul.products, .woocommerce ul.products, .spg-catalog ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.spg-card { padding: 10px; }
	.spg-card__badge { top: 8px; left: 8px; }
	.spg-banner { padding: 12px 0; }
	.spg-banner__frame { border-radius: 12px; }
	.spg-slide { padding: 24px 18px 46px; }
	.spg-slide__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.spg-slide__products li:nth-child(3) { display: none; }
	.spg-slide__products a { padding: 8px; }
	.spg-slide__price { font-size: 21px; }
	.spg-slide__ficlogo img { height: 54px; }
	.spg-slide__stores ul { grid-template-columns: 1fr 1fr; font-size: 13.5px; }
	.spg-tag__amt { font-size: 26px; }
	.spg-tag.is-big .spg-tag__amt { font-size: 52px; }
	.spg-sechead { flex-wrap: wrap; }
	.spg-sechead h2, .spg-ficband h2 { font-size: 25px; }
	.spg-section { padding: 34px 0; }
		.spg-pricelist thead { display: none; }
	.spg-pricelist tr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--spg-line); }
	.spg-pricelist tr:last-child { border-bottom: 0; }
	.spg-pricelist td { padding: 0; border: 0; }
	.spg-pricelist td:nth-child(1) { grid-column: 1 / -1; }
	.spg-pricelist td:nth-child(2) { align-self: center; }
	.spg-pricelist td:nth-child(3) { justify-self: end; }
	.spg-pricelist td:nth-child(4) { grid-column: 1 / -1; }
	.spg-pricelist a.spg-add { width: 100%; }
	.spg-drawer { grid-template-columns: minmax(0, 1fr); }
	.spg-drawer__shade { display: none !important; }
	.spg-drawer__panel { width: 100%; max-width: 100vw; }
	.spg-drawer__head { padding: 10px 16px; }
	.spg-drawer__promise, .spg-drawer__note { margin: 8px 16px 0; padding: 8px 10px; font-size: 13px; }
	.spg-mc__scroll { padding: 2px 16px 10px; }
	.spg-mc__item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; }
	.spg-mc__ph { width: 56px; height: 56px; }
	.spg-mc__foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
	.spg-mc__links { margin-top: 8px; }
	.spg-mega { position: fixed; inset: 0 0 calc(var(--spg-tabbar-h) + env(safe-area-inset-bottom)) 0; top: 0; max-height: none; z-index: 900; }
	.spg-mega__grid { grid-template-columns: 1fr; gap: 16px; padding-top: 18px; }
	.spg-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: #fff; border-top: 1px solid var(--spg-line); padding-bottom: env(safe-area-inset-bottom); }
	.spg-tabbar a, .spg-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border: 0; background: none; font-size: 11px; color: var(--spg-ink); text-decoration: none; cursor: pointer; }
	.spg-tabbar [aria-current="page"], .spg-tabbar [aria-expanded="true"] { color: var(--spg-red); font-weight: 700; }
	.spg-tabbar .spg-icon { width: 22px; height: 22px; }
	.spg-tabbar .spg-cart-count { top: 3px; left: 54%; min-width: 17px; height: 17px; line-height: 17px; font-size: 10.5px; background: var(--spg-red); color: #fff; }
	.spg-footer .spg-wrap { grid-template-columns: 1fr; }
	.spg-toast { bottom: calc(var(--spg-tabbar-h) + 14px + env(safe-area-inset-bottom)); }
	/* Lo que flota abajo (WhatsApp, barra de compra del producto) sube sobre la barra. */
	.wa__btn_popup, .joinchat, .spc-pdp-bar { bottom: calc(var(--spg-tabbar-h) + env(safe-area-inset-bottom)) !important; }
	.woocommerce-checkout .spg-tabbar { display: none; }
	body.woocommerce-checkout { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.spg-promises, .spg-masthead, .spg-deptnav, .spg-footer, .spg-tabbar, .spg-drawer, .spg-toast { display: none !important; }
	body { padding: 0; }
}

/* ---------- Blindaje: estilos globales de botones de otros plugins (Elementor, kits) no deforman los del tema ---------- */
.spg-drawer .spg-x { width: 38px !important; height: 38px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--spg-concrete) !important; color: var(--spg-ink) !important; min-height: 0 !important; }
.spg-qty button { display: grid !important; place-items: center; padding: 0 !important; border: 0 !important; border-radius: 0 !important; min-height: 0 !important; line-height: 1 !important; background: #fff !important; color: var(--spg-ink) !important; box-shadow: none !important; }
.spg-qty button:disabled { color: #b8bec5 !important; }
.spg-qty input { padding: 0 !important; border: 0 !important; border-radius: 0 !important; min-height: 0 !important; height: auto !important; box-shadow: none !important; background: #fff !important; }
.spg-mc__remove, .spg-linklike { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; min-height: 0 !important; box-shadow: none !important; }
.spg-storepick { padding: 14px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--spg-ink) !important; }
.spg-tabbar button { padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--spg-ink) !important; }
.spg-banner__arrow { padding: 0 !important; border: 0 !important; min-height: 0 !important; }
.spg-banner__dots button { padding: 0 !important; min-height: 0 !important; }
.spg-deptnav__all { border: 0 !important; padding: 8px 12px !important; border-radius: 8px !important; }
button.spg-tool { border: 0 !important; padding: 8px 10px !important; border-radius: var(--spg-radius) !important; background: transparent !important; color: #fff !important; }
.spg-search__form button { padding: 0 18px !important; border: 0 !important; border-radius: 0 !important; background: var(--spg-ink) !important; color: #fff !important; min-height: 0 !important; }

/* WooCommerce añade «clearfix» (::before/::after) a los artículos del mini carrito; en una cuadrícula ocupan celdas y desordenan la fila. */
.spg-mc__item::before, .spg-mc__item::after, .spg-mc__list::before, .spg-mc__list::after, .spg-mc__suggest li::before, .spg-mc__suggest li::after { content: none !important; display: none !important; }
.spg-mc__item, .spg-mc__suggest li { margin: 0 !important; list-style: none !important; }
.spg-mc__item a, .spg-mc__suggest a { font-weight: inherit; }
.spg-mc__ph img, .spg-mc__sph img { float: none !important; box-shadow: none !important; }

/* Con un panel abierto, el botón flotante de WhatsApp no tapa «Ir a pagar». */
html.spg-lock .wa__btn_popup, html.spg-lock .wa__popup_chat_box, html.spg-lock .joinchat, html.spg-lock #omnisend-form-container { display: none !important; }
