/* ==========================================================================
   SebasPeru — estilos del tema
   Los colores se controlan desde Apariencia → Personalizar → Tema SebasPeru
   (variables --sp-* generadas en inc/customizer.php).
   ========================================================================== */

:root {
	--sp-primary: #1a56ff;
	--sp-primary-hover: #003ee3;
	--sp-primary-rgb: 26, 86, 255;
	--sp-primary-soft: rgba(26, 86, 255, .08);
	--sp-primary-dark: #0e3dbf;
	--sp-primary-darker: #0a34a8;
	--sp-footer: #1b3fc9;
	--sp-accent: #ff4300;
	--sp-accent-rgb: 255, 67, 0;
	--sp-highlight: #ffd24d;
	--sp-success: #10b981;
	--sp-wa: #22c55e;
	--sp-wa-rgb: 34, 197, 94;
	--sp-ink: #0f1c2e;
	--sp-bg: #f2f5fa;
	--sp-white: #fff;
	--sp-text: #1f2937;
	--sp-text-2: #5a7090;
	--sp-text-3: #98a2b3;
	--sp-line: #e8ecf3;
	--sp-soft: #f5f7fa;
	--sp-star: #f59e0b;
	--sp-radius: 14px;
	--sp-radius-sm: 10px;
	--sp-maxw: 1280px;
	--sp-gutter: 22px;
	--sp-shadow: 0 10px 26px rgba(15, 23, 42, .08);
	--sp-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
	--sp-logo-h: 44px;
	--sp-font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--sp-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--sp-font);
	font-size: var(--sp-fs, 14px);
	line-height: 1.45;
	color: var(--sp-ink);
	background: var(--sp-bg);
	-webkit-font-smoothing: antialiased;
}
body.sp-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sp-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; color: var(--sp-ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sp-primary); outline-offset: 2px; }
.sp-icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

.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 {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; color: var(--sp-primary); padding: 10px 16px; border-radius: 8px; box-shadow: var(--sp-shadow);
}

/* ---------- Utilidades ---------- */
.sp-container { width: 100%; max-width: var(--sp-maxw); margin: 0 auto; padding: 0 var(--sp-gutter); }
.sp-page { padding-top: 20px; padding-bottom: 10px; } /* como .page de producción (22px 22px 10px) */
.sp-main { min-height: 60vh; overflow-x: clip; } /* F-05: nada ensancha el documento (clip no rompe position: sticky) */
.sp-muted { color: #64748b; font-size: 12px; }
.sp-h2 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 16px; line-height: 1.45; }
.sp-page-title { font-size: 24px; font-weight: 800; color: var(--sp-ink); letter-spacing: -.3px; margin-bottom: 4px; }
.sp-eyebrow { display: block; font-size: 11px; font-weight: 900; color: var(--sp-primary); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; }
.sp-card-box { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 28px; }

.sp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--sp-primary); color: #fff; font-weight: 700; font-size: 14px;
	padding: 12px 22px; border-radius: var(--sp-radius-sm); border: 0; transition: background .15s;
}
.sp-btn:hover { background: var(--sp-primary-hover); color: #fff; }
.sp-btn--light { background: #fff; color: var(--sp-primary-dark); }
.sp-btn--light:hover { background: #eef3ff; color: var(--sp-primary-dark); }

.sp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; padding: 4px 12px; border-radius: 20px; color: #fff; }
.sp-pill--success { background: var(--sp-success); }

.sp-link-all { display: inline-flex; align-items: center; gap: 4px; color: var(--sp-primary); font-weight: 700; font-size: 14px; }
.sp-link-all:hover { color: var(--sp-primary-hover); }

.sp-stars { display: inline-flex; gap: 1px; color: var(--sp-star); }
.sp-stars .is-off { color: #d5dbe5; }

/* ==========================================================================
   Barra superior
   ========================================================================== */
.sp-topbar { background: var(--sp-primary-dark); color: #dbe3f4; font-size: 12.5px; }
.sp-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.sp-topbar__left, .sp-topbar__right { display: flex; align-items: center; gap: 18px; }
.sp-topbar__item { display: inline-flex; align-items: center; gap: 6px; color: #cdd8ef; white-space: nowrap; }
a.sp-topbar__item:hover { color: #fff; }
.sp-topbar__left .sp-icon { color: #9fb4e0; }
.sp-topbar__right .sp-icon { color: var(--sp-highlight); }
.sp-topbar__divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .16); }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.sp-header { background: var(--sp-primary); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sp-header__inner { display: flex; align-items: center; gap: 26px; min-height: 88px; }

.sp-burger { display: none; color: #fff; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.sp-burger:hover { background: rgba(255, 255, 255, .12); }

.sp-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #fff; }
.sp-logo:hover { color: #fff; }
.sp-logo--header { padding-right: 26px; border-right: 1px solid rgba(255, 255, 255, .22); }
.sp-logo .sp-logo__img { height: var(--sp-logo-h); width: auto; max-width: 240px; object-fit: contain; }
.sp-logo.is-white .sp-logo__img, .sp-logo__img.is-white { filter: brightness(0) invert(1); }
.sp-logo__mark {
	width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--sp-primary); font-weight: 900; font-size: 22px;
}
.sp-logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.sp-logo__txt strong { font-size: 21px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; }
.sp-logo__txt small { font-size: 10px; font-weight: 600; opacity: .85; letter-spacing: .3px; margin-top: 3px; }
.sp-logo--drawer, .sp-logo--drawer:hover { color: var(--sp-ink); }
.sp-logo--drawer .sp-logo__mark { background: var(--sp-primary); color: #fff; }
.sp-logo--drawer .sp-logo__img { height: 36px; }

.sp-search {
	position: relative; display: flex; align-items: center; flex: 1; max-width: 720px; height: 48px;
	background: #fff; border: 2px solid rgba(255, 255, 255, .35); border-radius: var(--sp-radius-input, 10px);
}
.sp-search:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15); }
.sp-search__input {
	flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
	padding: 0 18px; font-family: Arial, sans-serif; font-size: 14px; color: #1f2937; border-radius: var(--sp-radius-input, 10px) 0 0 var(--sp-radius-input, 10px);
}
.sp-search__input::placeholder { color: #9aa3b2; }
.sp-search__input::-webkit-search-cancel-button { cursor: pointer; }
.sp-search__btn {
	height: 100%; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
	background: var(--sp-primary-dark); color: #fff; font-weight: 700; font-size: 14px; padding: 0 24px;
	border-radius: 0 max(0px, calc(var(--sp-radius-input, 10px) - 1px)) max(0px, calc(var(--sp-radius-input, 10px) - 1px)) 0;
}
.sp-search__btn:hover { background: var(--sp-primary-darker); }
.sp-search--inline { border-color: var(--sp-line); max-width: 560px; margin: 18px auto; }
.sp-search--inline .sp-search__btn { background: var(--sp-primary); }

/* Búsqueda en vivo */
.sp-live {
	position: absolute; top: calc(100% + 6px); left: -2px; right: -2px; z-index: 120; max-height: 70vh; overflow-y: auto;
	background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); padding: 6px;
}
.sp-live[hidden] { display: none; }
.sp-live__item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--sp-ink); }
.sp-live__item:hover, .sp-live__item.is-active, .sp-live__all:hover, .sp-live__all.is-active { background: var(--sp-primary-soft); color: var(--sp-ink); }
.sp-live__img { width: 42px; height: 42px; object-fit: contain; object-position: 50% 50%; border-radius: 8px; background: #f6f8fb; }
.sp-live__info { display: flex; flex-direction: column; min-width: 0; }
.sp-live__name { font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-live__name mark { background: transparent; color: var(--sp-primary); }
.sp-live__cat, .sp-live__sku { font-size: 11.5px; color: var(--sp-text-2); }
.sp-live__price { font-size: 14px; font-weight: 800; color: var(--sp-ink); white-space: nowrap; }
.sp-live__all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--sp-line); text-align: center; font-weight: 700; font-size: 13px; color: var(--sp-primary); border-radius: 0 0 8px 8px; }
.sp-live__loading, .sp-live__empty { padding: 14px 12px; font-size: 13px; color: var(--sp-text-2); }

/* Sin resultados */
.sp-empty { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 40px 24px; text-align: center; color: var(--sp-text-2); }
.sp-empty p { margin: 0 0 16px; font-size: 15px; color: var(--sp-ink); font-weight: 700; }

.sp-header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.sp-acc { display: flex; align-items: center; gap: 8px; color: #fff; text-align: right; }
.sp-acc:hover { color: #fff; }
.sp-acc__ic { display: none; }
.sp-acc__col { display: flex; flex-direction: column; line-height: 1.25; }
.sp-acc__col small { font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.sp-acc__col b { font-size: 14px; font-weight: 800; }
.sp-btn-register {
	border: 1.6px solid rgba(255, 255, 255, .6); color: #fff; font-weight: 700; font-size: 13.5px;
	padding: 10px 18px; border-radius: 8px; white-space: nowrap; transition: .15s;
}
.sp-btn-register:hover { background: #fff; color: var(--sp-primary); }

.sp-cart-btn {
	display: flex; align-items: center; color: #fff; border-radius: 8px; padding: 9px 16px;
	background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); transition: background .15s;
}
.sp-cart-btn:hover { background: rgba(255, 255, 255, .25); }
.sp-cart-data { display: flex; align-items: center; gap: 10px; }
.sp-cart-btn__ic { position: relative; display: flex; }
.sp-cart-count {
	position: absolute; top: -9px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 9px; background: var(--sp-accent); color: #fff; font-size: 10px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.sp-cart-count.is-empty { display: none; }
.sp-cart-btn__col { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.sp-cart-btn__col small { font-size: 10px; letter-spacing: .4px; opacity: .85; }
.sp-cart-btn__col b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.sp-cart-btn__col .woocommerce-Price-amount { color: inherit; }

/* ==========================================================================
   Menú principal + megamenú
   ========================================================================== */
.sp-nav { background: var(--sp-primary); position: relative; z-index: 40; overflow-x: clip; } /* F-05: el megamenú oculto no ensancha el documento */
.sp-nav__head, .sp-nav__account, .sp-nav__toggle { display: none; }
.sp-nav__inner { display: flex; align-items: center; min-height: 48px; }
.sp-nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sp-nav__item { position: relative; display: flex; align-items: center; }
.sp-nav__link {
	display: flex; align-items: center; gap: 5px; height: 48px; padding: 0 14px;
	color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.sp-nav__link:hover, .sp-nav__item:hover > .sp-nav__link, .sp-nav__item.is-current > .sp-nav__link { color: #fff; background: rgba(255, 255, 255, .12); }
.sp-nav__chev { opacity: .8; transition: transform .2s; }
.sp-nav__item:hover .sp-nav__chev { transform: rotate(180deg); }
.sp-nav__offers {
	margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
	color: var(--sp-highlight); font-weight: 800; font-size: 14px; letter-spacing: .3px;
}
.sp-nav__offers:hover { color: #fff; }

.sp-mega {
	position: absolute; top: 100%; left: 0; z-index: 50;
	background: #fff; color: var(--sp-ink); border-radius: 0 0 12px 12px; border: 1px solid var(--sp-line); border-top: 0;
	box-shadow: 0 20px 44px rgba(0, 0, 0, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.sp-nav__item:hover > .sp-mega, .sp-nav__item:focus-within > .sp-mega { opacity: 1; visibility: visible; transform: none; }
.sp-mega__inner { display: flex; }
.sp-mega__col { padding: 16px 18px; min-width: 170px; border-right: 1px solid var(--sp-line); }
.sp-mega__col:last-child { border-right: 0; }
.sp-mega__title {
	display: block; font-size: 10px; font-weight: 900; color: var(--sp-primary);
	text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px;
}
.sp-mega__list { display: flex; flex-direction: column; gap: 3px; }
.sp-mega__title a { color: inherit; }
.sp-mega__list a { display: block; font-size: 12.5px; color: #45536b; padding: 2px 0; }
.sp-mega__list a:hover { color: var(--sp-primary); font-weight: 600; }

/* ==========================================================================
   Portada
   ========================================================================== */
.sp-hero__viewport { position: relative; overflow: hidden; aspect-ratio: var(--sp-hero-ratio, 4 / 1); background: #eef1f6; }
.sp-hero__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.sp-hero__slide { flex: 0 0 100%; height: 100%; display: block; }
.sp-hero__slide picture, .sp-hero__slide img { width: 100%; height: 100%; }
.sp-hero__slide img { object-fit: cover; }
.sp-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .75); color: #111;
}
.sp-hero__arrow:hover { background: #fff; }
.sp-hero__arrow.is-prev { left: 14px; }
.sp-hero__arrow.is-next { right: 14px; }
.sp-hero__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.sp-hero__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.sp-hero__dots button.is-on { width: 26px; border-radius: 5px; background: #fff; }

.sp-hero__placeholder {
	color: #fff;
	background:
		radial-gradient(700px 320px at 85% 40%, rgba(255, 255, 255, .16), transparent 60%),
		linear-gradient(120deg, var(--sp-primary-dark), var(--sp-primary));
}
.sp-hero__placeholder-inner { min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-top: 40px; padding-bottom: 40px; }
.sp-hero__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.sp-hero__title { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 900; max-width: 640px; margin: 8px 0 10px; }
.sp-hero__text { max-width: 520px; opacity: .9; font-size: 15px; margin-bottom: 20px; }
.sp-hero__hint { align-self: flex-start; font-size: 12px; background: rgba(0, 0, 0, .18); padding: 6px 12px; border-radius: 8px; color: #fff; }
.sp-hero__hint:hover { color: #fff; background: rgba(0, 0, 0, .3); }

.sp-features { background: #fff; border-bottom: 1px solid var(--sp-line); }
.sp-features__grid { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); }
.sp-feature { display: flex; align-items: center; gap: 12px; padding: 16px; }
.sp-feature__ic { display: flex; color: var(--sp-primary); }
.sp-feature__ic--2 { color: #16a34a; }
.sp-feature__ic--3 { color: #f59e0b; }
.sp-feature__ic--4 { color: #7c3aed; }
.sp-feature__ic--5 { color: #0ea5e9; }
.sp-feature__ic { width: 40px; height: 40px; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-feature__txt { display: block; font-size: 14px; line-height: 1.45; }
.sp-feature__txt b { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.sp-feature__txt small { font-size: 12px; color: #64748b; }

.sp-section { padding: 22px 0; }
.sp-section--white { background: #fff; border-bottom: 1px solid var(--sp-line); }
.sp-section--promos { padding: 28px 0; }
.sp-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sp-section__head .sp-h2 { margin: 0 0 16px; line-height: 1.45; } /* como .psec-head > .home-h2 (47,9 px) */

/* Carrusel genérico */
.sp-carousel { position: relative; }
.sp-carousel__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
	padding: 4px 2px 8px; margin: 0; scrollbar-width: none;
}
.sp-carousel__track::-webkit-scrollbar { display: none; }
.sp-carousel__track > * { scroll-snap-align: start; }
.sp-carousel__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: #fff; color: #334155; box-shadow: var(--sp-shadow);
	transition: opacity .2s;
}
.sp-carousel__arrow:hover { color: var(--sp-primary); }
.sp-carousel__arrow.is-prev { left: -14px; }
.sp-carousel__arrow.is-next { right: -14px; }
.sp-carousel__arrow[disabled] { cursor: default; }

/* Categorías */
.sp-cat-track { gap: 20px; }
.sp-cat-tile { flex: 0 0 176px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sp-cat-tile__thumb {
	width: 100%; height: 170px; border-radius: 12px; overflow: hidden; border: 1px solid var(--sp-line);
	background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #b4c0d3; transition: box-shadow .2s, transform .2s;
}
.sp-cat-tile__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-cat-tile b { font-size: 14px; font-weight: 700; color: #1f2937; text-align: center; }
.sp-cat-tile:hover .sp-cat-tile__thumb { box-shadow: var(--sp-shadow); transform: translateY(-2px); }
.sp-cat-tile:hover b { color: var(--sp-primary); }

/* Ofertas flash */
.sp-flash { background: linear-gradient(#fff7f0, #fff); border-bottom: 1px solid var(--sp-line); padding: 22px 0; }
.sp-flash__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.sp-flash__pill {
	display: inline-flex; align-items: center; gap: 7px; background: var(--sp-accent); color: #fff; font-weight: 800; font-size: 15px;
	padding: 9px 16px; border-radius: 9px; box-shadow: 0 2px 8px rgba(var(--sp-accent-rgb), .3);
}
.sp-flash__timer { display: inline-flex; align-items: center; gap: 6px; color: var(--sp-text-2); font-size: 13px; font-weight: 600; }
.sp-flash__timer b {
	background: var(--sp-accent); color: #fff; padding: 3px 7px; border-radius: 5px; min-width: 28px; text-align: center;
	font-family: var(--sp-mono); font-size: 13px;
}
.sp-flash__timer i { color: var(--sp-accent); font-style: normal; font-weight: 900; }
.sp-flash__head .sp-link-all { margin-left: auto; }

/* Banners */
.sp-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sp-promos--1 { grid-template-columns: 1fr; }
.sp-promo { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 6; background: #eef1f6; transition: transform .2s, box-shadow .2s; }
.sp-promos--1 .sp-promo { aspect-ratio: 32 / 6; }
.sp-promo img { width: 100%; height: 100%; object-fit: contain; }
a.sp-promo:hover { transform: translateY(-2px); box-shadow: var(--sp-shadow); }

/* ==========================================================================
   Tarjeta de producto
   ========================================================================== */
.sp-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden; list-style: none;
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); transition: box-shadow .2s;
}
.sp-card:hover { box-shadow: var(--sp-shadow); }
.sp-carousel__track > .sp-card { flex: 0 0 244px; }
.sp-carousel__track > .sp-card--flash { flex: 0 0 250px; }
[data-home-block=flash] .sp-carousel__track { gap: 18px; padding-bottom: 4px; }

.sp-card__badge {
	position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
	background: var(--sp-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px;
}
.sp-card__badge.is-new { background: #16a34a; }
.sp-card__fav {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sp-line); color: #94a3b8;
	transition: color .15s, transform .15s;
}
.sp-card__fav:hover { color: #f43f5e; }
.sp-card__fav.is-on, .sp-card__fav.is-fav { color: #f43f5e; }
.sp-card__fav.is-on svg, .sp-card__fav.is-fav svg { fill: currentColor; }
.sp-card__fav:active { transform: scale(.9); }

.sp-card__thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 180px; background: #f5f7fa; overflow: hidden; }
.sp-card__thumb img, .woocommerce ul.products li.product .sp-card__thumb img { width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: 50% 50%; }
.sp-card__soldout {
	position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(15, 28, 46, .8); color: #fff;
	font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}

.sp-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.sp-card__brand { font-size: 11px; font-weight: 700; color: var(--sp-primary); letter-spacing: .4px; }
.sp-card__name {
	font-size: 13px; font-weight: 700; color: #1f2937; line-height: 1.4; margin-top: 6px; min-height: 36px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-card__name:hover { color: var(--sp-primary); }
.sp-card__rating { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.sp-card__rating span { font-size: 12px; color: #94a3b8; }
.sp-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; }
.sp-card__price__now { font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.45; }
.sp-card__price__now del { font-size: 13px; color: var(--sp-text-3); font-weight: 600; }
.sp-card__price__now ins { text-decoration: none; }
.sp-card__price__old { font-size: 13px; color: var(--sp-text-3); }
.sp-card__cuota { font-size: 11px; color: #5a7090; margin-top: 2px; }
ul.products li.product .sp-card__name { display: -webkit-box !important; }
.sp-card__cuota b { color: var(--sp-primary); font-weight: 800; }
.sp-card__actions { margin-top: auto; padding-top: 12px; }
.sp-card__actions .button,
.sp-card__actions a.sp-card__add {
	display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 !important;
	background: var(--sp-primary) !important; color: #fff !important; font-weight: 700 !important; font-size: 14.5px !important;
	line-height: 1.25 !important; padding: 13px 0 !important; border-radius: var(--sp-radius-btn, 9px) !important; border: 0 !important; text-align: center;
	white-space: nowrap;
}
.sp-card__actions .button:hover { background: var(--sp-primary-hover) !important; }
.sp-card__actions .button.loading { opacity: .7; }
.sp-card__actions .button.added::after { display: none !important; }
.sp-card__actions .added_to_cart { display: none !important; }

/* Tarjeta flash */
.sp-card__media { position: relative; display: block; height: 180px; background: transparent; overflow: hidden; }
.sp-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6)); }
.sp-card__img { position: absolute; inset: 0; background: #fff; }
.sp-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sp-card--flash .sp-card__badge { z-index: 2; font-weight: 800; }
.sp-card__stockbar { position: absolute; left: 14px; right: 14px; bottom: 30px; z-index: 2; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.sp-card__stockbar i { display: block; height: 100%; border-radius: 3px; background: var(--sp-accent); }
.sp-card__stock { position: absolute; left: 14px; bottom: 9px; z-index: 2; font-size: 11.5px; color: #fff; font-weight: 700; }

/* Rejilla de productos (categorías, relacionados) */
ul.products.sp-grid, .sp-cat__main ul.products, .sp-pdp section.products ul.products {
	display: grid !important; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; margin: 0 !important; padding: 0;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products.columns-3 { --cols: 3; }
ul.products.columns-5 { --cols: 5; }
ul.products li.product.sp-card {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important; padding: 0 !important; text-align: left;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
.sp-footer { background: var(--sp-footer); color: rgba(255, 255, 255, .82); font-size: 13px; }
.sp-footer__trust { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sp-footer__trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sp-footer__trust-card {
	display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 14px; text-align: center;
	border-right: 1px solid rgba(255, 255, 255, .1);
}
.sp-footer__trust-card svg { color: #cdd8ef; }
.sp-footer__trust-card:last-child { border-right: 0; }
.sp-footer__trust-card span { color: #cdd8ef; font-size: 12px; font-weight: 700; letter-spacing: .6px; }

.sp-footer > .sp-container { padding-top: 40px; }
.sp-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 28px; padding: 0 0 34px; }
.sp-logo--footer { margin-bottom: 18px; border: 0; padding: 0; }
.sp-logo--footer .sp-logo__img, .sp-logo--footer img { height: 40px; width: auto; }
.sp-logo--footer.is-white .sp-logo__img { filter: brightness(0) invert(1); }
.sp-footer h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; line-height: 1.45; }
.sp-footer__news h4 { font-size: 15px; margin-bottom: 10px; }
.sp-footer__news > p { color: rgba(255, 255, 255, .72); line-height: 1.6; margin-bottom: 16px; max-width: 280px; font-size: 12.5px; }
.sp-news { display: flex; align-items: center; gap: 8px; max-width: 320px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 2px; }
.sp-news__ic { color: rgba(255, 255, 255, .45); }
.sp-news input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 5px 0; font-size: 13px; line-height: 15px; }
@media (max-width: 880px) { .sp-news { max-width: 100%; } }
.sp-news input::placeholder { color: rgba(255, 255, 255, .3); }
.sp-news button { color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 12px; white-space: nowrap; padding-left: 8px; }
.sp-news button:hover { color: #fff; }
.sp-news__check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, .4); line-height: 1.45; cursor: pointer; }
.sp-news__check input { accent-color: #fff; margin: 2px 0 0; flex-shrink: 0; }
.sp-news__check a { color: rgba(255, 255, 255, .6); text-decoration: underline; }
.sp-news__msg { font-size: 12.5px; margin-top: 8px; font-weight: 700; }
.sp-news__msg:empty { display: none; }
.sp-news__msg.is-error { color: #fecaca; }
.sp-news__msg.is-ok { color: #bbf7d0; }
.sp-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.sp-footer__social a { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #cbd5e1; }
.sp-footer__social a:hover { background: #fff; color: var(--sp-footer); }
.sp-footer__col ul li { margin-bottom: 10px; }
.sp-footer__col a { color: rgba(255, 255, 255, .8); font-size: 12.5px; }
.sp-footer__col a:hover { color: #fff; text-decoration: underline; }
.sp-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; }
.sp-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sp-footer__copy { color: rgba(255, 255, 255, .75); font-size: 12.5px; }

/* Insignias de medios de pago */
.sp-paycards { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-pc {
	height: 28px; min-width: 42px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--sp-line); border-radius: 5px; background: #fff; font-size: 10px; font-weight: 900; letter-spacing: .3px; color: #1a1f71;
}
.sp-pc--visa { font-style: italic; font-size: 11px; }
.sp-pc--mc i { width: 15px; height: 15px; border-radius: 50%; background: #eb001b; }
.sp-pc--mc i + i { background: #f79e1b; margin-left: -6px; opacity: .9; }
.sp-pc--amex { background: #2671b9; color: #fff; border-color: #2671b9; }
.sp-pc--diners { color: #004a97; }
.sp-pc--bcp { background: #003da5; color: #fff; border-color: #003da5; }
.sp-pc--yape { background: #6c1cd1; color: #fff; border-color: #6c1cd1; }
.sp-pc--plin { background: #00b1d2; color: #fff; border-color: #00b1d2; }
.sp-pc--bbva { background: #004481; color: #fff; border-color: #004481; }
.sp-pc--interbank { background: #00a94f; color: #fff; border-color: #00a94f; }
.sp-paycards--footer .sp-pc { border: 0; }
.sp-paycards--footer { gap: 8px; }
.sp-pm { width: 42px; height: 26px; display: block; }
.sp-paycards--mini .sp-pc { height: 22px; min-width: 34px; }

/* ==========================================================================
   WhatsApp, capa y carrito lateral
   ========================================================================== */
.sp-wa {
	position: fixed; right: var(--sp-wa-x, 20px); bottom: var(--sp-wa-y, 20px); z-index: 90; display: flex; align-items: center; gap: 10px;
	background: var(--sp-wa); color: #fff; padding: 11px 18px 11px 14px; border-radius: 30px;
	box-shadow: 0 10px 26px rgba(var(--sp-wa-rgb), .5); transition: transform .2s;
}
.sp-wa:hover { color: #fff; transform: translateY(-2px); }
.sp-wa__col { display: flex; flex-direction: column; line-height: 1.15; }
.sp-wa__col b { font-size: 13px; font-weight: 800; }
.sp-wa__col small { font-size: 12px; opacity: .95; }
.sp-wa:hover { background: var(--sp-wa-hover); }
.sp-wa--right { right: var(--sp-wa-x, 20px); left: auto; }
.sp-wa--left { left: var(--sp-wa-x, 20px); right: auto; }
.sp-wa--icon { padding: 14px; border-radius: 50%; }
.sp-wa--icon .sp-wa__col { display: none; }
@media (max-width: 767px) { .sp-wa--no-mobile { display: none; } }
@media (min-width: 768px) { .sp-wa--no-desktop { display: none; } }
@media (max-width: 767px) { .sp-hero__viewport { aspect-ratio: var(--sp-hero-ratio-m, 4 / 1); } }

.sp-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .25s; }
.sp-overlay.is-on { opacity: 1; }

/* Carrito lateral: medidas de producción (.cart-drawer / .cd-*) */
.sp-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: 384px; max-width: 90vw; height: 100vh; visibility: hidden;
	background: #fff; display: flex; flex-direction: column; transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s; box-shadow: -12px 0 44px rgba(0, 0, 0, .18);
}
.sp-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.sp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--sp-line); flex-shrink: 0; }
.sp-drawer__head h3 { font-size: 17px; font-weight: 800; color: #0f172a; line-height: 1.45; }
.sp-drawer__count { color: var(--sp-text-2); font-weight: 700; font-size: 14px; }
.sp-drawer__close { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; font-weight: 600; line-height: 1.45; }
.sp-drawer__close:hover { color: #0f172a; }
.sp-drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.sp-mc { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sp-mc__body { flex: 1 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.sp-mc__list, .sp-drawer ul.sp-mc__list { list-style: none; margin: 0 !important; padding: 0 !important; }
.sp-mc__item, .sp-drawer ul.product_list_widget li.sp-mc__item {
	display: flex !important; gap: 12px; padding: 16px 22px !important; margin: 0 !important; border-bottom: 1px solid var(--sp-line); position: relative; list-style: none;
}
.sp-mc__item::before, .sp-mc__item::after, .sp-mc__list::before, .sp-mc__list::after { display: none !important; content: none !important; }
.sp-mc__thumb { width: 64px; height: 64px; flex-shrink: 0; background: var(--sp-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.sp-drawer .sp-mc__thumb img { max-width: 100% !important; max-height: 100%; width: auto !important; height: auto; object-fit: contain; margin: 0 !important; float: none !important; box-shadow: none !important; }
.sp-mc__info { flex: 1 1; min-width: 0; padding-right: 22px; }
.sp-mc__name, .sp-drawer ul.product_list_widget li a.sp-mc__name { display: block; font-size: 13.5px; font-weight: 600; color: #1e293b; line-height: 1.35; margin-bottom: 8px; }
.sp-mc__name:hover { color: var(--sp-primary); }
.sp-mc__info dl.variation { margin: -4px 0 6px; font-size: 11.5px; color: var(--sp-text-2); }
.sp-mc__info dl.variation dt, .sp-mc__info dl.variation dd { display: inline; margin: 0; }
.sp-mc__qty { display: inline-flex; align-items: center; border: 1.5px solid var(--sp-line); border-radius: 8px; overflow: hidden; margin-bottom: 6px; vertical-align: top; }
.sp-mc__qty button { width: 28px; height: 28px; font-size: 16px; color: #334155; background: var(--sp-soft); border: 0; padding: 0; line-height: 1; cursor: pointer; }
.sp-mc__qty button:disabled { cursor: default; }
.sp-mc__qty-input {
	width: 34px; min-width: 34px; height: 28px; border: 0; padding: 0; margin: 0; text-align: center; font: inherit; font-size: 13px; font-weight: 600;
	color: inherit; background: transparent; outline: none; -moz-appearance: textfield; appearance: textfield;
}
.sp-mc__qty-input::-webkit-outer-spin-button, .sp-mc__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-mc__price { display: block; font-size: 13px; color: #475569; }
.sp-mc__price .amount { color: inherit; font-weight: inherit; }
.sp-drawer a.remove.sp-mc__remove, .sp-mc a.remove.sp-mc__remove {
	position: absolute !important; top: 15px; right: 18px; width: auto !important; height: auto !important; display: flex !important; align-items: center;
	justify-content: center; color: #94a3b8 !important; font-size: 0 !important; line-height: 1; background: none !important; border-radius: 0;
}
.sp-drawer a.remove.sp-mc__remove:hover { color: #ef4444 !important; background: none !important; }
.sp-mc__msg { margin: 0; padding: 10px 22px; font-size: 12.5px; font-weight: 600; color: #b45309; background: #fffbeb; border-bottom: 1px solid #fde68a; }
.sp-mc__foot { border-top: 1px solid var(--sp-line); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; background: #fff; }
.sp-mc__total { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: #334155; margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; }
.sp-mc__total b, .sp-mc__total b .amount { font-size: 21px; font-weight: 800; color: #0f172a; }
.sp-mc__note { margin: 0; font-size: 12.5px; color: var(--sp-text-2); }
.sp-mc__buttons { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; }
.sp-mc__btn { display: block; width: 100%; text-align: center; padding: 13px; border-radius: 9px; font-weight: 700; font-size: 14px; line-height: 1.45; }
.sp-mc__btn--cart { background: #eef1f6; color: #334155; }
.sp-mc__btn--cart:hover { background: #e2e7ef; color: #334155; }
.sp-mc__btn--checkout { background: var(--sp-primary); color: #fff; }
.sp-mc__btn--checkout:hover { background: var(--sp-primary-hover); color: #fff; }
.sp-mc__btn--checkout.is-disabled { opacity: .5; pointer-events: none; }
.sp-mc__empty { padding: 70px 20px; text-align: center; color: var(--sp-text-2); }
.sp-mc__empty .sp-icon { color: #cbd5e1; margin-bottom: 12px; }
.sp-mc__empty p { margin: 0; }
.sp-mc__empty-cta { margin-top: 14px; }
.sp-drawer .blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* Barra de envío gratis (carrito lateral y página de carrito) */
.sp-freebar { padding: 12px 22px; background: #f5f8ff; border-bottom: 1px solid var(--sp-line); font-size: 12.5px; color: #334155; }
.sp-freebar__text { margin: 0 0 8px; }
.sp-freebar__track { height: 6px; border-radius: 6px; background: #e2e8f0; overflow: hidden; }
.sp-freebar__fill { display: block; height: 100%; background: var(--sp-primary); border-radius: 6px; transition: width .3s; }
.sp-freebar.is-done .sp-freebar__fill { background: var(--sp-success); }

/* ==========================================================================
   Migas de pan
   ========================================================================== */
.sp-crumb, .woocommerce .sp-crumb {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--sp-text-2); margin: 0 0 16px;
}
.sp-crumb a { color: var(--sp-text-2); }
.sp-crumb > span:last-child { color: var(--sp-ink); font-weight: 600; }
.sp-crumb a:hover { color: var(--sp-primary); }
.sp-crumb__sep { color: #b6c0cf; }

/* ==========================================================================
   Categoría / tienda
   ========================================================================== */
.sp-cat__layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
.sp-filters-toggle { display: none; }
.sp-filters { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); overflow: hidden; position: sticky; top: 16px; }
.admin-bar .sp-filters { top: 48px; }
.sp-filters__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--sp-line); }
.sp-filters__head h3 { font-size: 14px; font-weight: 800; }
.sp-filters__clear { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--sp-primary); }
.sp-filters__close { display: none; }
.sp-fbox { padding: 14px 16px; border-bottom: 1px solid var(--sp-line); }
.sp-filters__form .sp-fbox:last-of-type { border-bottom: 0; }
.sp-fbox__t { font-size: 11px; font-weight: 800; color: var(--sp-ink); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.sp-fbox__list { max-height: 240px; overflow-y: auto; }
.sp-fsearch { position: relative; display: flex; align-items: center; }
.sp-fsearch .sp-icon { position: absolute; left: 10px; color: #8a97ab; }
.sp-fsearch input[type=search] { width: 100%; border: 1px solid var(--sp-line); border-radius: 8px; padding: 8px 10px 8px 30px; font-size: 12.5px; outline: 0; }
.sp-fsearch input:focus { border-color: var(--sp-primary); }
.sp-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #45536b; margin-bottom: 8px; cursor: pointer; }
.sp-check:hover { color: var(--sp-primary); }
.sp-check input { accent-color: var(--sp-primary); width: 15px; height: 15px; margin: 0; }
.sp-check em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--sp-text-2); background: #eef2f8; padding: 1px 7px; border-radius: 10px; }
.sp-check em.is-text { margin-left: 2px; background: none; padding: 0; font-size: 11.5px; }
.sp-fprice { display: flex; gap: 8px; }
.sp-fprice label { flex: 1; font-size: 10px; color: var(--sp-text-2); display: block; }
.sp-fprice input { width: 100%; border: 1px solid var(--sp-line); border-radius: 6px; padding: 6px 8px; font-size: 12.5px; margin-top: 3px; outline: 0; }
.sp-fprice input:focus { border-color: var(--sp-primary); }
.sp-fprice__ends { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--sp-text-2); margin-top: 6px; }
.sp-fprice__apply { display: none; width: 100%; margin-top: 10px; padding: 7px; border-radius: 7px; font-size: 12.5px; font-weight: 800; color: var(--sp-primary); background: var(--sp-primary-soft); }
.sp-fprice__apply:hover { background: var(--sp-primary); color: #fff; }

.sp-cat__head {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 14px 18px; margin-bottom: 16px;
}
.sp-cat__head .sp-page-title { font-size: 20px; line-height: 1.45; }
.sp-cat__head--plain { margin-bottom: 20px; }
.sp-sort { display: flex; align-items: center; gap: 8px; }
.sp-sort .woocommerce-ordering { margin: 0 !important; float: none !important; }
.sp-sort select.orderby {
	border: 1px solid var(--sp-line); border-radius: 9px; padding: 7px 32px 7px 12px; font-size: 12.5px; font-weight: 600; background-color: #fff;
	outline: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7090' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center;
}

.sp-cat-info { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e9edf3; border-radius: 16px; overflow: hidden; }
.sp-cat-info.no-image { grid-template-columns: 1fr; }
.sp-cat-info__body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.sp-cat-info__kicker { font-size: 11px; font-weight: 900; color: #0055ff; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 8px; line-height: 1.45; }
.sp-cat-info__title { font-size: 24px; font-weight: 900; color: #0f1c2e; margin: 0 0 12px; line-height: 1.2; }
.sp-cat-info__text p { font-size: 14px; color: #5a7090; line-height: 1.6; margin: 0 0 18px; }
.sp-cat-info__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-cat-info__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #334155; line-height: 1.45; }
.sp-cat-info__list li i { width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 85, 255, .12); position: relative; flex-shrink: 0; margin-top: 2px; }
.sp-cat-info__list li i::after { content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: #0055ff; }
.sp-cat-info__media { position: relative; min-height: 280px; margin: 0; }
.sp-cat-info__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 920px) {
	.sp-cat-info { grid-template-columns: 1fr; }
	.sp-cat-info__media { display: none; }
}

.woocommerce-info.woocommerce-no-products-found, .woocommerce .woocommerce-no-products-found { margin: 0; }

/* Paginación */
.woocommerce nav.woocommerce-pagination, .sp-pagination { margin-top: 26px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0 !important; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; float: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.sp-pagination .page-numbers {
	display: inline-flex !important; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px !important;
	border-radius: 9px; background: #fff; border: 1px solid var(--sp-line); font-weight: 800; color: var(--sp-ink); font-size: 13.5px;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .sp-pagination .page-numbers.current { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus { background: var(--sp-primary-soft); color: var(--sp-primary); }
.sp-pagination .nav-links { display: inline-flex; gap: 6px; }

/* ==========================================================================
   Cantidad, punto de stock y estrellas (compartidos; la ficha de producto está en pdp.css)
   ========================================================================== */
.sp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-success); display: inline-block; }
/* Cantidad con botones */
div.quantity { display: inline-flex !important; align-items: stretch; border: 2px solid var(--sp-line); border-radius: 9px; overflow: hidden; background: #fff; float: none !important; margin: 0 !important; }
.quantity .qty {
	width: 52px !important; flex: 1; border: 0 !important; text-align: center; font-weight: 900; font-size: 14px; padding: 8px 4px !important;
	background: transparent; outline: 0; -moz-appearance: textfield; appearance: textfield; min-height: 0 !important;
}
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-qty-btn { width: 40px; flex-shrink: 0; font-size: 18px; font-weight: 900; color: var(--sp-text-2); background: #f7f9fc; }
.sp-qty-btn:hover { color: var(--sp-primary); background: var(--sp-primary-soft); }
div.quantity:has(input[type=hidden]) { display: none !important; }
.woocommerce .star-rating span, .woocommerce p.stars a { color: var(--sp-star); }

/* ==========================================================================
   Páginas de WooCommerce (carrito, checkout, cuenta) y avisos
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	border-radius: 12px !important; border-top-width: 3px !important; background: #fff !important; box-shadow: var(--sp-shadow-sm);
	font-size: 13.5px; margin-bottom: 16px !important;
}
.woocommerce-message { border-top-color: var(--sp-success) !important; }
.woocommerce-message::before { color: var(--sp-success) !important; }
.woocommerce-info { border-top-color: var(--sp-primary) !important; }
/* Ícono propio (círculo con "i", como los de error y éxito) en lugar del glifo nativo "\e028" que se ve como un recuadro. */
.woocommerce-info::before {
	content: "i" !important; font-family: var(--sp-font) !important; font-weight: 900; font-style: normal;
	width: 1.05em; height: 1.05em; line-height: 1.05em; margin-top: .25em; text-align: center; border-radius: 50%;
	background: var(--sp-primary); color: #fff !important;
}
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .button {
	background: var(--sp-primary); color: #fff; border-radius: 10px; font-weight: 800; padding: 12px 20px; font-family: inherit;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: var(--sp-primary-hover); color: #fff;
}
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { background: var(--sp-primary); color: #fff; opacity: .5; }

.sp-page--wc .sp-wc-page { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 28px; }
.sp-page--wc .sp-page-title { margin-bottom: 20px; }

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
	border: 1px solid #d6dde8; border-radius: 9px; padding: 10px 12px; font-size: 14px; background: #fff; min-height: 44px;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 22px; padding: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 9px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--sp-primary); outline: 0; box-shadow: 0 0 0 3px var(--sp-primary-soft); }
.woocommerce form .form-row label { font-weight: 700; font-size: 13px; color: var(--sp-ink); }
.woocommerce form.login:not(.sp-auth__form), .woocommerce form.register:not(.sp-auth__form), .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password:not(.sp-auth__form) {
	border: 1px solid var(--sp-line) !important; border-radius: var(--sp-radius) !important; padding: 24px !important;
}


/* Carrito y checkout clásicos */
.woocommerce table.shop_table { border-radius: 12px; border-color: var(--sp-line); }
.woocommerce table.shop_table th { font-weight: 800; }
.woocommerce-cart table.cart img { width: 64px; }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment { background: #f6f8fb; border-radius: 12px; }

/* Bloques de carrito / checkout */
.wc-block-components-button:not(.is-link), .wp-block-button__link.wc-block-components-button {
	background: var(--sp-primary) !important; color: #fff !important; border-radius: 10px !important; font-weight: 800 !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--sp-primary-hover) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control input, .wc-blocks-components-select__select {
	border-radius: 9px !important;
}
.wc-block-cart, .wc-block-checkout { font-family: inherit; }

/* ==========================================================================
   Blog y páginas
   ========================================================================== */
.sp-entry-box { max-width: 900px; margin: 0 auto; }
.sp-entry-box .sp-page-title { font-size: 28px; margin-bottom: 18px; }
.sp-entry:not(:where(.sp-account-entry)) { font-size: 15px; line-height: 1.75; color: #334155; }
.sp-entry:not(:where(.sp-account-entry)) > * + * { margin-top: 1em; }
.sp-entry:not(:where(.sp-account-entry)) h2, .sp-entry:not(:where(.sp-account-entry)) h3, .sp-entry:not(:where(.sp-account-entry)) h4 { margin-top: 1.4em; font-weight: 800; }
.sp-entry:not(:where(.sp-account-entry)) h2 { font-size: 22px; }
.sp-entry:not(:where(.sp-account-entry)) h3 { font-size: 18px; }
.sp-entry:not(:where(.sp-account-entry)) ul { list-style: disc; padding-left: 22px; }
.sp-entry:not(:where(.sp-account-entry)) ol { list-style: decimal; padding-left: 22px; }
.sp-entry:not(:where(.sp-account-entry)) a { color: var(--sp-primary); text-decoration: underline; }
.sp-entry:not(:where(.sp-account-entry)) img { border-radius: 10px; height: auto; }
.sp-entry:not(:where(.sp-account-entry)) blockquote { border-left: 4px solid var(--sp-primary); margin-left: 0; padding: 4px 0 4px 18px; color: var(--sp-text-2); font-style: italic; }
.sp-entry:not(:where(.sp-account-entry)) .wp-block-button__link { background: var(--sp-primary); border-radius: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.sp-entry:not(:where(.sp-account-entry)) table { width: 100%; border-collapse: collapse; }
.sp-entry:not(:where(.sp-account-entry)) td, .sp-entry:not(:where(.sp-account-entry)) th { border: 1px solid var(--sp-line); padding: 8px 10px; }
.alignwide { margin-left: -40px; margin-right: -40px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.has-sp-primary-color { color: var(--sp-primary); } .has-sp-primary-background-color { background-color: var(--sp-primary); }
.has-sp-primary-dark-color { color: var(--sp-primary-dark); } .has-sp-primary-dark-background-color { background-color: var(--sp-primary-dark); }
.has-sp-accent-color { color: var(--sp-accent); } .has-sp-accent-background-color { background-color: var(--sp-accent); }
.has-sp-text-color { color: var(--sp-ink); } .has-sp-text-background-color { background-color: var(--sp-ink); }

.sp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-post-card { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.sp-post-card:hover { box-shadow: var(--sp-shadow); }
.sp-post-card__thumb { aspect-ratio: 16 / 9; background: #eef2f8; display: flex; align-items: center; justify-content: center; color: #b4c0d3; overflow: hidden; }
.sp-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sp-post-card__meta { font-size: 12px; color: var(--sp-text-2); }
.sp-post-card__title { font-size: 17px; font-weight: 800; }
.sp-post-card__excerpt { color: #475569; font-size: 13.5px; flex: 1; }
.sp-single__thumb { margin: 0 0 22px; border-radius: 12px; overflow: hidden; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.sp-tags a { background: #eef2f8; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.sp-post-nav { max-width: 900px; margin: 18px auto; }
.sp-post-nav .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.sp-post-nav a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; padding: 12px 16px; }
.sp-post-nav small { font-size: 11px; color: var(--sp-text-2); }
.sp-comments { max-width: 900px; margin: 18px auto 0; }
.sp-comment-list { margin-bottom: 20px; }
.sp-comment-list .comment-body { border-bottom: 1px solid var(--sp-line); padding: 14px 0; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 1px solid #d6dde8; border-radius: 9px; padding: 10px 12px;
}
.comment-form .submit { background: var(--sp-primary); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 800; cursor: pointer; }

.sp-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #b4c0d3; padding: 48px 24px; }
.sp-empty h2 { color: var(--sp-ink); font-size: 20px; }
.sp-404__code { font-size: 84px; font-weight: 900; line-height: 1; color: var(--sp-primary); }
.sp-404 .sp-search { width: 100%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.sp-header__inner { gap: 18px; }
	.sp-logo--header { padding-right: 18px; }
	.sp-btn-register { display: none; }
	.sp-cat__main ul.products.columns-4, .sp-cat__main ul.products.columns-5 { --cols: 3; }
}

@media (max-width: 1080px) {
	.sp-nav__link { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 1023px) {
	/* Cabecera en dos filas (como producción ≤ 900 px) */
	.sp-header__inner { flex-wrap: wrap; min-height: 0; gap: 12px 14px; padding-top: 12px; padding-bottom: 12px; }
	.sp-burger {
		display: inline-flex; width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
		background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .28);
	}
	.sp-logo--header { border: 0; padding: 0; }
	.sp-logo--header .sp-logo__img { height: 34px; }
	.sp-search { order: 5; flex-basis: 100%; max-width: none; height: 44px; }
	.sp-acc, .sp-btn-register, .sp-cart-btn__col { display: none; }
	.sp-header__actions { margin-left: auto; gap: 10px; }
	.sp-cart-btn { padding: 9px 12px; }

	/* Menú lateral */
	.sp-nav {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 160; width: 320px; max-width: 86vw; background: #fff;
		display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
		box-shadow: 10px 0 40px rgba(15, 23, 42, .15); visibility: hidden;
	}
	.sp-nav.is-open { transform: none; visibility: visible; }
	.sp-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sp-line); }
	.sp-nav__close { color: var(--sp-text-2); }
	.sp-nav__inner { flex: 1; overflow-y: auto; display: block; padding: 6px 16px; }
	.sp-nav__links { display: block; margin: 0; }
	.sp-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--sp-line); }
	.sp-nav__link { flex: 1; color: var(--sp-ink); height: auto; padding: 14px 4px; font-size: 15px; }
	.sp-nav__link:hover, .sp-nav__item:hover > .sp-nav__link, .sp-nav__item.is-current > .sp-nav__link { background: none; color: var(--sp-primary); }
	.sp-nav__chev { display: none; }
	.sp-nav__toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--sp-text-2); transition: transform .2s; }
	.sp-nav__item.is-open > .sp-nav__toggle { transform: rotate(180deg); color: var(--sp-primary); }
	.sp-mega { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: var(--sp-soft); transition: none; }
	.sp-nav__item.is-open > .sp-mega { display: block; }
	.sp-mega__inner { flex-direction: column; }
	.sp-mega__col { border-right: 0; border-bottom: 1px solid var(--sp-line); padding: 12px 14px; min-width: 0; }
	.sp-mega__col:last-child { border-bottom: 0; }
	.sp-nav__offers { margin: 14px 0 0; padding: 12px 4px; color: var(--sp-accent); }
	.sp-nav__account { display: flex; flex-direction: column; border-top: 1px solid var(--sp-line); padding: 8px 16px 16px; }
	.sp-nav__account a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 700; color: #45536b; }

	.sp-features__grid { grid-template-columns: repeat(2, 1fr); }

	/* Filtros en línea, encima de la grilla (como producción ≤ 920 px) */
	.sp-cat__layout { grid-template-columns: minmax(0, 1fr); }
	.sp-filters { position: static; }
	.sp-filters-toggle, .sp-filters__close { display: none !important; }

	.sp-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
	.sp-footer__news { grid-column: 1 / -1; }
	.sp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.sp-topbar__right { display: none; }
	.sp-promos { grid-template-columns: 1fr; }
	.sp-cat__main ul.products.columns-3, .sp-cat__main ul.products.columns-4, .sp-cat__main ul.products.columns-5, .sp-pdp section.products ul.products { --cols: 2; }
	.sp-cat__head { flex-direction: column; align-items: flex-start; }

	.sp-footer__trust-grid { grid-template-columns: 1fr 1fr; }
	.sp-footer__trust-card:nth-child(2) { border-right: 0; }
	.sp-posts { grid-template-columns: 1fr; }
	.sp-card-box, .sp-page--wc .sp-wc-page { padding: 20px; }
}

@media (max-width: 640px) {
	:root { --sp-gutter: 12px; }
	.sp-header .sp-header__inner { padding: 8px 0; gap: 8px 12px; }
	.sp-header .sp-search { height: 40px; }
	.sp-logo--header .sp-logo__img { height: 30px; }
	.sp-burger { width: 38px; height: 38px; }
	.single-product .sp-page { padding-top: 10px; }
	.single-product .sp-crumb { margin-bottom: 10px; }
	.sp-hero__arrow { width: 32px; height: 32px; }
	.sp-hero__arrow.is-prev { left: 8px; }
	.sp-hero__arrow.is-next { right: 8px; }
}

@media (max-width: 600px) {
	.sp-topbar { display: none; }
	.sp-search__btn span { display: none; }
	.sp-search__btn { padding: 0 16px; }
}

@media (max-width: 560px) {
	.sp-carousel__track > .sp-card:not(.sp-card--flash) { flex: 0 0 72%; }
	.sp-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 520px) {
	.sp-wa { padding: 14px; border-radius: 50%; }
	.sp-wa__col { display: none; }
}

@media (max-width: 380px) {
	.sp-cat__main ul.products.columns-3, .sp-cat__main ul.products.columns-4, .sp-cat__main ul.products.columns-5 { --cols: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Cabecera y pie reducidos del checkout (opción checkout_header = minimal) */
.sp-site-header--checkout .sp-header__inner { min-height: 72px; }
.sp-header__secure { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; margin-left: auto; }
.sp-header__back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 9px; }
.sp-header__back:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.sp-footer--minimal { margin-top: 30px; }

/* ==========================================================================
   Lightbox de la ficha (#sp-lightbox, assets/js/gallery.js)
   ========================================================================== */
html.sp-lb-lock, html.sp-lb-lock body { overflow: hidden; }
.sp-lightbox { position: fixed; inset: 0; z-index: 100000; opacity: 0; transition: opacity .2s; touch-action: none; overscroll-behavior: contain; color: #fff; }
.sp-lightbox[hidden] { display: none; }
.sp-lightbox.is-open { opacity: 1; }
.sp-lightbox__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .92); }
.sp-lightbox__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.sp-lightbox__counter { color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.sp-lightbox__counter[hidden] { display: none; }
.sp-lightbox__close { width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.sp-lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.sp-lightbox__close .sp-icon { width: 22px; height: 22px; }
.sp-lightbox__stage { position: absolute; top: 64px; bottom: 64px; left: 88px; right: 88px; z-index: 1; margin: 0; display: flex; align-items: center; justify-content: center; }
.sp-lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.sp-lightbox__img:not([src]), .sp-lightbox__img[src=""] { visibility: hidden; }
.sp-lightbox__spinner { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; display: none; animation: sp-lb-spin .8s linear infinite; }
.sp-lightbox.is-loading .sp-lightbox__spinner { display: block; }
@keyframes sp-lb-spin { to { transform: rotate(360deg); } }
.sp-lightbox__nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.sp-lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.sp-lightbox__nav[hidden] { display: none; }
.sp-lightbox__nav .sp-icon { width: 24px; height: 24px; }
.sp-lightbox__prev { left: 20px; }
.sp-lightbox__next { right: 20px; }
.sp-lightbox__close:focus-visible, .sp-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
	.sp-lightbox__bar { height: 56px; }
	.sp-lightbox__stage { top: 56px; bottom: 56px; left: 12px; right: 12px; }
	.sp-lightbox__nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(15, 23, 42, .55); }
	.sp-lightbox__nav:hover { background: rgba(15, 23, 42, .7); }
	.sp-lightbox__prev { left: 8px; }
	.sp-lightbox__next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.sp-lightbox { transition: none; }
}

/* ==========================================================================
   Contenido enriquecido del editor (fase 8)
   Descripción corta y larga de la ficha v2 y de la ficha "c" (.sp-rich). Todas las reglas de
   descendientes usan :where() (especificidad 0,1,0) y ninguna lleva !important: ganan al reset
   global de listas, pero el style en línea que maqueta el cliente siempre manda.
   ========================================================================== */
.sp-rich { overflow-wrap: anywhere; }
.sp-rich :where(p, ul, ol, blockquote, figure, pre) { margin: 0 0 var(--sp-rich-gap, 12px); }
.sp-rich :where(ul, ol) { padding-left: 1.5em; list-style-position: outside; }
.sp-rich :where(ul) { list-style-type: disc; }
.sp-rich :where(ol) { list-style-type: decimal; }
.sp-rich :where(ul ul) { list-style-type: circle; }
.sp-rich :where(ul ul ul) { list-style-type: square; }
.sp-rich :where(ol ol) { list-style-type: lower-alpha; }
.sp-rich :where(li) { display: list-item; margin: 0 0 4px; }
.sp-rich :where(li > ul, li > ol) { margin: 4px 0 0; }
.sp-rich :where(li > p) { margin: 0; }
.sp-rich :where(li > p + p) { margin-top: 6px; }
.sp-rich :where(b, strong) { font-weight: 700; }
.sp-rich :where(a) { color: var(--sp-primary); text-decoration: underline; text-underline-offset: 2px; }
.sp-rich :where(img, video, iframe, embed, object) { max-width: 100%; height: auto; }
.sp-rich :where(pre) { white-space: pre-wrap; overflow-x: auto; }
.sp-rich :where(blockquote) { padding: 8px 14px; border-left: 3px solid #d5dce8; color: #334155; }
.sp-rich__table { max-width: 100%; overflow-x: auto; overflow-wrap: normal; margin: 0 0 var(--sp-rich-gap, 12px); -webkit-overflow-scrolling: touch; }
.sp-rich :where(table) { width: 100%; border-collapse: collapse; margin: 0; }
.sp-rich :where(th, td) { border: 1px solid #e1e7f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.sp-rich :where(th) { background: #f5f7fa; font-weight: 700; color: var(--sp-ink); }
.sp-rich > :where(:last-child) { margin-bottom: 0; }
