/* ==========================================================================
   KF Shark Ninja Store — estilos de la sección Ninja dentro de kitchenfactory.pe
   Reglas de aislamiento:
   1) Todo cuelga de .kfsn (nada global salvo body.kfsn-page para evitar scroll horizontal).
   2) Todas las clases llevan prefijo kfsn- ; variables CSS --kfsn-* declaradas en .kfsn.
   3) Se neutralizan estilos heredados de WoodMart/Elementor solo dentro de .kfsn.
   Tokens tomados de sharkninja.pe (tema Shopify Horizon): Nunito Sans, negro, azul petróleo,
   naranja para badges, botones en mayúsculas con radio 3px.
   ========================================================================== */

body.kfsn-page { overflow-x: clip; }

.kfsn {
	--kfsn-ink: #000;
	--kfsn-text: rgba(0, 0, 0, .81);
	--kfsn-muted: rgba(0, 0, 0, .55);
	--kfsn-line: rgba(0, 0, 0, .12);
	--kfsn-bg: #fff;
	--kfsn-soft: #f4f4f2;
	--kfsn-navy: #03232f;
	--kfsn-primary: #05384b;
	--kfsn-accent: #ed4210;
	--kfsn-circle: #efe9e1;
	--kfsn-radius: 3px;
	--kfsn-radius-lg: 12px;
	--kfsn-font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--kfsn-page: 1440px;
	--kfsn-gutter: clamp(16px, 3vw, 40px);

	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--kfsn-bg);
	color: var(--kfsn-text);
	font-family: var(--kfsn-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.kfsn--embed { width: auto; max-width: none; margin-left: 0; margin-right: 0; }

/* ---- reset local (solo dentro de .kfsn) ---- */
.kfsn *, .kfsn *::before, .kfsn *::after { box-sizing: border-box; }
.kfsn :is(h1, h2, h3, h4, p, ul, ol, figure, fieldset) { margin: 0; padding: 0; }
.kfsn :is(ul, ol) { list-style: none; }
.kfsn :is(h1, h2, h3, h4) { font-family: var(--kfsn-font); color: var(--kfsn-ink); text-transform: none; letter-spacing: 0; line-height: 1.2; }
.kfsn img { display: block; max-width: 100%; height: auto; border: 0; }
.kfsn picture { display: block; }
.kfsn a { color: inherit; text-decoration: none; }
.kfsn button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none; text-transform: none; min-height: 0; line-height: inherit; letter-spacing: 0; }
.kfsn :is(input, select) { font: inherit; color: var(--kfsn-ink); }
.kfsn .kfsn-ico { width: 20px; height: 20px; flex: none; }
.kfsn .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kfsn :focus-visible { outline: 2px solid var(--kfsn-primary); outline-offset: 2px; }

.kfsn .kfsn-container { width: 100%; max-width: var(--kfsn-page); margin: 0 auto; padding: 0 var(--kfsn-gutter); }
.kfsn .kfsn-center { text-align: center; }
.kfsn .kfsn-section { padding: clamp(32px, 5vw, 56px) 0; }
.kfsn .kfsn-h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.kfsn .kfsn-h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; text-transform: uppercase; }
.kfsn .kfsn-family .kfsn-h2, .kfsn .kfsn-essentials .kfsn-h2 { text-transform: none; margin-bottom: 28px; }
.kfsn .kfsn-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---- botones ---- */
.kfsn .kfsn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border-radius: var(--kfsn-radius);
	background: var(--kfsn-navy); color: #fff; border: 1px solid var(--kfsn-navy);
	font-family: var(--kfsn-font); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
	transition: background-color .2s, color .2s, border-color .2s; cursor: pointer; text-decoration: none; box-shadow: none;
}
.kfsn .kfsn-btn:hover { background: var(--kfsn-ink); border-color: var(--kfsn-ink); color: #fff; }
.kfsn .kfsn-btn--dark { background: var(--kfsn-ink); border-color: var(--kfsn-ink); }
.kfsn .kfsn-btn--dark:hover { background: var(--kfsn-primary); border-color: var(--kfsn-primary); }
.kfsn .kfsn-btn--outline { background: transparent; color: var(--kfsn-ink); border-color: var(--kfsn-ink); }
.kfsn .kfsn-btn--outline:hover { background: var(--kfsn-ink); color: #fff; }
.kfsn .kfsn-btn--block { width: 100%; }
.kfsn .kfsn-btn.is-disabled { background: #e6e6e6; border-color: #e6e6e6; color: var(--kfsn-muted); cursor: not-allowed; }
.kfsn .kfsn-btn.loading { opacity: .6; pointer-events: none; }
.kfsn .kfsn-btn.added::after { content: "✓"; margin-left: 6px; }
.kfsn a.added_to_cart { display: block; margin-top: 6px; font-size: 13px; text-align: center; text-decoration: underline; color: var(--kfsn-primary); }

/* ---- barra de anuncios ---- */
.kfsn .kfsn-announce { display: flex; align-items: center; gap: 8px; background: var(--kfsn-navy); color: #fff; padding: 8px var(--kfsn-gutter); min-height: 44px; }
.kfsn .kfsn-announce__viewport { flex: 1; position: relative; min-height: 22px; display: grid; }
.kfsn .kfsn-announce__msg { grid-area: 1 / 1; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.4; opacity: 0; visibility: hidden; transition: opacity .35s; color: #fff; }
.kfsn .kfsn-announce__msg.is-active { opacity: 1; visibility: visible; }
.kfsn .kfsn-announce__msg strong { font-weight: 900; }
.kfsn .kfsn-announce__nav { color: #fff; display: grid; place-items: center; width: 28px; height: 28px; }
.kfsn .kfsn-announce__nav .kfsn-ico { width: 16px; height: 16px; }

/* ---- barra de marca ---- */
.kfsn .kfsn-brandbar { background: #000; color: #fff; position: relative; z-index: 20; }
.kfsn .kfsn-brandbar__inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.kfsn .kfsn-brandbar__logo img { height: 28px; width: auto; }
.kfsn .kfsn-wordmark { display: inline-block; font-weight: 900; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.kfsn .kfsn-brandbar__toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.kfsn .kfsn-brandbar__toggle[aria-expanded="true"] .kfsn-ico { transform: rotate(180deg); }
.kfsn .kfsn-menu { display: none; width: 100%; padding-bottom: 12px; }
.kfsn .kfsn-menu.is-open { display: block; }
.kfsn .kfsn-menu__item > a { display: block; padding: 12px 0; font-weight: 800; font-size: 15px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.kfsn .kfsn-menu__item.is-current > a { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.kfsn .kfsn-mega ul { padding: 4px 0 8px 14px; }
.kfsn .kfsn-mega a { display: block; padding: 6px 0; color: rgba(255,255,255,.8); font-size: 14px; }
.kfsn .kfsn-mega a:hover { color: #fff; }
.kfsn .kfsn-mega__all a { font-weight: 800; color: #fff; text-transform: uppercase; font-size: 12px; }

@media (min-width: 990px) {
	.kfsn .kfsn-brandbar__inner { flex-wrap: nowrap; gap: 40px; }
	.kfsn .kfsn-brandbar__toggle { display: none; }
	.kfsn .kfsn-menu { display: flex !important; width: auto; padding: 0; gap: 4px; }
	.kfsn .kfsn-menu__item { position: relative; }
	.kfsn .kfsn-menu__item > a { border: 0; padding: 20px 14px; font-size: 15px; }
	.kfsn .kfsn-mega { position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; color: var(--kfsn-ink); box-shadow: 0 12px 32px rgba(0,0,0,.14); border-radius: 0 0 var(--kfsn-radius-lg) var(--kfsn-radius-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
	.kfsn .kfsn-menu__item:hover .kfsn-mega, .kfsn .kfsn-menu__item:focus-within .kfsn-mega { opacity: 1; visibility: visible; transform: none; }
	.kfsn .kfsn-mega ul { padding: 14px 20px; }
	.kfsn .kfsn-mega a { color: var(--kfsn-text); font-weight: 600; font-size: 15px; }
	.kfsn .kfsn-mega a:hover { color: var(--kfsn-ink); text-decoration: underline; }
	.kfsn .kfsn-mega__all a { color: var(--kfsn-ink); border-top: 1px solid var(--kfsn-line); margin-top: 6px; padding-top: 10px; }
}

/* ---- hero slider ---- */
.kfsn .kfsn-hero { position: relative; background: var(--kfsn-soft); }
.kfsn .kfsn-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.kfsn .kfsn-hero__track::-webkit-scrollbar { display: none; }
.kfsn .kfsn-hero__slide { flex: 0 0 100%; scroll-snap-align: start; }
.kfsn .kfsn-hero__pic img { width: 100%; aspect-ratio: 2880 / 900; object-fit: cover; }
.kfsn .kfsn-hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.kfsn .kfsn-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transition: width .2s; }
.kfsn .kfsn-dot.is-active { width: 26px; border-radius: 5px; background: #fff; }
@media (max-width: 749px) { .kfsn .kfsn-hero__pic img { aspect-ratio: 750 / 900; } }

/* ---- familia (círculos) ---- */
.kfsn .kfsn-family__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.kfsn .kfsn-family__item a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.kfsn .kfsn-family__circle { width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; background: var(--kfsn-circle); overflow: hidden; display: grid; place-items: center; transition: transform .25s; }
.kfsn .kfsn-family__circle img { width: 100%; height: 100%; object-fit: cover; }
.kfsn .kfsn-family__item a:hover .kfsn-family__circle { transform: scale(1.04); }
.kfsn .kfsn-family__label { font-weight: 800; font-size: 15px; color: var(--kfsn-ink); }
@media (min-width: 750px) { .kfsn .kfsn-family__grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }

/* ---- carruseles ---- */
.kfsn .kfsn-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.kfsn .kfsn-section__tools { display: flex; align-items: center; gap: 8px; }
.kfsn .kfsn-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--kfsn-line); display: grid; place-items: center; background: #fff; color: var(--kfsn-ink); transition: background .2s; }
.kfsn .kfsn-arrow:hover { background: var(--kfsn-ink); color: #fff; }
.kfsn .kfsn-arrow[disabled] { opacity: .35; pointer-events: none; }
.kfsn .kfsn-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.kfsn .kfsn-carousel__track::-webkit-scrollbar { display: none; }
.kfsn .kfsn-carousel__slide { scroll-snap-align: start; min-width: 0; }
.kfsn .kfsn-carousel__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (min-width: 750px) { .kfsn .kfsn-carousel__track { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (min-width: 1100px) { .kfsn .kfsn-row .kfsn-carousel__track { grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; } }

/* ---- cajas promo ---- */
.kfsn .kfsn-promos__track { grid-auto-columns: 86%; }
@media (min-width: 750px) { .kfsn .kfsn-promos__track { grid-auto-columns: calc((100% - 16px) / 2); } }
.kfsn .kfsn-promo { background: var(--kfsn-soft); border-radius: var(--kfsn-radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.kfsn .kfsn-promo__media img { width: 100%; aspect-ratio: 1380 / 820; object-fit: cover; }
.kfsn .kfsn-promo__body { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.kfsn .kfsn-promo__title { font-size: 18px; font-weight: 800; }

/* ---- tarjeta de producto ---- */
.kfsn .kfsn-card { display: flex; flex-direction: column; height: 100%; background: #fff; }
.kfsn .kfsn-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--kfsn-soft); border-radius: var(--kfsn-radius-lg); overflow: hidden; }
.kfsn .kfsn-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: opacity .3s, transform .4s; }
.kfsn .kfsn-card__img--alt { opacity: 0; }
@media (hover: hover) {
	.kfsn .kfsn-card:hover .kfsn-card__img--alt { opacity: 1; }
	.kfsn .kfsn-card:hover .kfsn-card__img:not(.kfsn-card__img--alt):not(:only-of-type) { opacity: 0; }
	.kfsn .kfsn-card:hover .kfsn-card__img:only-of-type { transform: scale(1.04); }
}
.kfsn .kfsn-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--kfsn-accent); color: #fff; font-weight: 800; font-size: 13px; line-height: 1; padding: 6px 9px; border-radius: var(--kfsn-radius); }
.kfsn .kfsn-badge--soldout { left: auto; right: 12px; background: #fff; color: var(--kfsn-ink); border: 1px solid var(--kfsn-line); }
.kfsn .kfsn-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 2px 0; flex: 1; }
.kfsn .kfsn-card__tag { align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--kfsn-accent); }
.kfsn .kfsn-card__title { font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.kfsn .kfsn-card__title a:hover { text-decoration: underline; }
.kfsn .kfsn-card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--kfsn-muted); }
.kfsn .kfsn-stars { --kfsn-star: #108474; position: relative; display: inline-block; width: 80px; height: 15px; background: linear-gradient(90deg, var(--kfsn-star) calc(var(--kfsn-rating, 0) / 5 * 100%), #d6d6d6 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8z'/%3E%3C/svg%3E") 0 0 / 16px 15px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8z'/%3E%3C/svg%3E") 0 0 / 16px 15px repeat-x; }
.kfsn .kfsn-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.kfsn .kfsn-price { font-size: 18px; font-weight: 800; color: var(--kfsn-ink); }
.kfsn .kfsn-price--sale { color: var(--kfsn-accent); }
.kfsn .kfsn-price--old { font-size: 14px; color: var(--kfsn-muted); font-weight: 600; }
.kfsn .kfsn-card__actions { margin-top: auto; padding-top: 10px; }
.kfsn .kfsn-card.is-soldout .kfsn-card__img { opacity: .55; }

/* ---- banner ancho ---- */
.kfsn .kfsn-banner img { width: 100%; }

/* ---- esenciales ---- */
.kfsn .kfsn-essentials__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 600px) { .kfsn .kfsn-essentials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .kfsn .kfsn-essentials__grid { grid-template-columns: repeat(4, 1fr); } }
.kfsn .kfsn-essential { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kfsn .kfsn-essential__media { display: block; width: 100%; border-radius: var(--kfsn-radius-lg); overflow: hidden; background: var(--kfsn-soft); }
.kfsn .kfsn-essential__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s; }
.kfsn .kfsn-essential__media:hover img { transform: scale(1.03); }
.kfsn .kfsn-essential__title { font-size: 17px; font-weight: 800; }
.kfsn .kfsn-essential__text { font-size: 14px; color: var(--kfsn-muted); }

/* ---- beneficios ---- */
.kfsn .kfsn-benefits { background: var(--kfsn-navy); color: #fff; padding: 22px 0; }
.kfsn .kfsn-benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .kfsn .kfsn-benefits__grid { grid-template-columns: repeat(4, 1fr); } }
.kfsn .kfsn-benefits__item { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.kfsn .kfsn-benefits__item .kfsn-ico { width: 28px; height: 28px; }

/* ---- categoría: encabezado ---- */
.kfsn .kfsn-cathead { position: relative; background: var(--kfsn-soft); padding: clamp(28px, 4vw, 48px) 0; overflow: hidden; }
.kfsn .kfsn-cathead.has-banner { color: #fff; min-height: 240px; display: flex; align-items: flex-end; }
.kfsn .kfsn-cathead__bg { position: absolute; inset: 0; }
.kfsn .kfsn-cathead__bg img { width: 100%; height: 100%; object-fit: cover; }
.kfsn .kfsn-cathead.has-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 70%); z-index: 1; }
.kfsn .kfsn-cathead__inner { position: relative; z-index: 2; }
.kfsn .kfsn-cathead.has-banner :is(.kfsn-h1, .kfsn-breadcrumb, .kfsn-cathead__desc) { color: #fff; }
.kfsn .kfsn-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--kfsn-muted); margin-bottom: 10px; }
.kfsn .kfsn-breadcrumb a:hover { text-decoration: underline; }
.kfsn .kfsn-cathead__desc { margin-top: 8px; max-width: 640px; color: var(--kfsn-muted); }

/* ---- chips ---- */
.kfsn .kfsn-chips { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 4px; scrollbar-width: none; }
.kfsn .kfsn-chip { display: inline-flex; white-space: nowrap; padding: 9px 16px; border: 1px solid var(--kfsn-line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--kfsn-ink); transition: background .2s, color .2s; }
.kfsn .kfsn-chip:hover { border-color: var(--kfsn-ink); }
.kfsn .kfsn-chip.is-active { background: var(--kfsn-ink); border-color: var(--kfsn-ink); color: #fff; }

/* ---- categoría: toolbar + layout ---- */
.kfsn .kfsn-skip { position: absolute; left: -9999px; }
.kfsn .kfsn-skip:focus { left: var(--kfsn-gutter); z-index: 5; background: #fff; padding: 8px 12px; }
.kfsn .kfsn-toolbar { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--kfsn-line); margin-bottom: 24px; flex-wrap: wrap; }
.kfsn .kfsn-toolbar__filter { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.kfsn .kfsn-toolbar__count { font-size: 14px; color: var(--kfsn-muted); }
.kfsn .kfsn-toolbar__sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.kfsn .kfsn-toolbar__sort select { height: 40px; min-width: 0; max-width: 240px; padding: 0 32px 0 12px; border: 1px solid var(--kfsn-line); border-radius: var(--kfsn-radius); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-size: 14px; box-shadow: none; }
.kfsn .kfsn-toolbar__cols { display: none; gap: 2px; }
.kfsn .kfsn-toolbar__cols button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--kfsn-muted); border-radius: var(--kfsn-radius); }
.kfsn .kfsn-toolbar__cols button.is-active { color: var(--kfsn-ink); background: var(--kfsn-soft); }
@media (min-width: 990px) { .kfsn .kfsn-toolbar__cols { display: inline-flex; } }

.kfsn .kfsn-collection { position: relative; padding-bottom: 48px; }
.kfsn .kfsn-collection__layout { display: block; }
.kfsn .kfsn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; transition: opacity .2s; }
.kfsn .kfsn-grid.is-loading { opacity: .4; pointer-events: none; }
.kfsn .kfsn-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--kfsn-muted); }
.kfsn .kfsn-more { text-align: center; margin-top: 36px; }
.kfsn .kfsn-more[hidden] { display: none; }

/* filtros: drawer en móvil */
.kfsn .kfsn-filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); background: #fff; z-index: 100000; padding: 0 20px 20px; overflow-y: auto; transform: translateX(-105%); transition: transform .28s ease; display: flex; flex-direction: column; }
.kfsn .kfsn-filters.is-open { transform: none; box-shadow: 8px 0 32px rgba(0,0,0,.2); }
.kfsn .kfsn-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99999; }
.kfsn .kfsn-overlay[hidden] { display: none; }
.kfsn .kfsn-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--kfsn-line); font-size: 16px; position: sticky; top: 0; background: #fff; z-index: 1; }
.kfsn .kfsn-filter { border-bottom: 1px solid var(--kfsn-line); padding: 14px 0; }
.kfsn .kfsn-filter summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 15px; color: var(--kfsn-ink); }
.kfsn .kfsn-filter summary::-webkit-details-marker { display: none; }
.kfsn .kfsn-filter summary::after { content: "+"; font-weight: 400; }
.kfsn .kfsn-filter[open] summary::after { content: "–"; }
.kfsn .kfsn-filter summary + * { margin-top: 12px; }
.kfsn .kfsn-filter__note { font-size: 13px; color: var(--kfsn-muted); margin-bottom: 10px; }
.kfsn .kfsn-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; margin: 0; font-weight: 400; color: var(--kfsn-text); }
.kfsn .kfsn-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--kfsn-ink); }
.kfsn .kfsn-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kfsn .kfsn-price-range label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--kfsn-line); border-radius: var(--kfsn-radius); padding: 0 10px; font-size: 13px; margin: 0; }
.kfsn .kfsn-price-range input { width: 100%; height: 40px; border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 14px; }
.kfsn .kfsn-filters__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; margin-top: auto; }
.kfsn .kfsn-filters__foot .kfsn-btn { padding: 0 10px; font-size: 12px; }

@media (min-width: 750px) { .kfsn .kfsn-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (min-width: 990px) {
	.kfsn .kfsn-toolbar__filter { pointer-events: none; }
	.kfsn .kfsn-collection__layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
	.kfsn .kfsn-filters { position: sticky; top: 24px; inset: auto; width: auto; transform: none; padding: 0; z-index: 1; overflow: visible; box-shadow: none !important; }
	.kfsn .kfsn-filters__head { display: none; }
	.kfsn .kfsn-filter:first-of-type { padding-top: 0; }
	.kfsn .kfsn-overlay { display: none !important; }
	.kfsn .kfsn-grid { grid-template-columns: repeat(var(--kfsn-cols, 4), 1fr); }
	.kfsn .kfsn-filters__foot [data-kfsn-apply] { display: none; }
	.kfsn .kfsn-filters__foot { grid-template-columns: 1fr; }
}

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

/* ==========================================================================
   Página de producto (v1.1)
   ========================================================================== */
.kfsn .kfsn-h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.kfsn .kfsn-muted { color: var(--kfsn-muted); }
.kfsn .kfsn-pdp { padding-bottom: 24px; }
.kfsn .kfsn-pdp__crumbs { padding: 18px 0 14px; margin: 0; }
.kfsn .kfsn-pdp__crumbs span[aria-current] { color: var(--kfsn-ink); font-weight: 600; }
.kfsn .kfsn-pdp__main { display: grid; gap: 28px; }
@media (min-width: 990px) { .kfsn .kfsn-pdp__main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } }

/* galería */
.kfsn .kfsn-gallery { display: grid; gap: 12px; min-width: 0; }
.kfsn .kfsn-gallery__stage { position: relative; background: var(--kfsn-soft); border-radius: var(--kfsn-radius-lg); overflow: hidden; }
.kfsn .kfsn-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.kfsn .kfsn-gallery__track::-webkit-scrollbar { display: none; }
.kfsn .kfsn-gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.kfsn .kfsn-gallery__zoom { display: block; width: 100%; cursor: zoom-in; }
.kfsn .kfsn-gallery__zoom img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.kfsn .kfsn-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.kfsn .kfsn-gallery__nav--prev { left: 12px; }
.kfsn .kfsn-gallery__nav--next { right: 12px; }
.kfsn .kfsn-gallery__counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.kfsn .kfsn-badge--lg { font-size: 15px; padding: 8px 12px; top: 16px; left: 16px; }
.kfsn .kfsn-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.kfsn .kfsn-gallery__thumb { width: 76px; height: 76px; flex: none; border-radius: 8px; background: var(--kfsn-soft); border: 2px solid transparent; overflow: hidden; }
.kfsn .kfsn-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.kfsn .kfsn-gallery__thumb.is-active { border-color: var(--kfsn-ink); }
@media (min-width: 990px) {
	.kfsn .kfsn-gallery { grid-template-columns: 84px 1fr; position: sticky; top: 24px; }
	.kfsn .kfsn-gallery__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; max-height: 640px; overflow-y: auto; overflow-x: hidden; }
	.kfsn .kfsn-gallery__stage { grid-column: 2; grid-row: 1; }
	.kfsn .kfsn-gallery:not(:has(.kfsn-gallery__thumbs)) { grid-template-columns: 1fr; }
	.kfsn .kfsn-gallery:not(:has(.kfsn-gallery__thumbs)) .kfsn-gallery__stage { grid-column: 1; }
}

/* lightbox */
.kfsn-lightbox { position: fixed; inset: 0; z-index: 100001; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.kfsn-lightbox[hidden] { display: none; }
.kfsn-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 8px; }
.kfsn-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #000; border: 0; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.kfsn-lightbox .kfsn-lb-close { top: 16px; right: 16px; }
.kfsn-lightbox .kfsn-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.kfsn-lightbox .kfsn-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* resumen */
.kfsn .kfsn-summary { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kfsn .kfsn-summary__model { font-size: 13px; font-weight: 700; color: var(--kfsn-muted); letter-spacing: .04em; text-transform: uppercase; }
.kfsn .kfsn-summary__title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.15; }
.kfsn .kfsn-summary__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--kfsn-muted); align-self: flex-start; }
.kfsn .kfsn-summary__rating:hover span:last-child { text-decoration: underline; }
.kfsn .kfsn-summary__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 12px; padding: 4px 0; }
.kfsn .kfsn-price--lg { font-size: clamp(28px, 3.2vw, 36px); font-weight: 900; }
.kfsn .kfsn-summary__price .kfsn-price--old { font-size: 18px; }
.kfsn .kfsn-badge--inline { position: static; align-self: center; }
.kfsn .kfsn-summary__save { width: 100%; font-size: 14px; font-weight: 700; color: var(--kfsn-accent); }
.kfsn .kfsn-summary__cuotas { display: flex; align-items: center; gap: 10px; font-size: 14px; background: var(--kfsn-soft); border-radius: 8px; padding: 10px 14px; }
.kfsn .kfsn-summary__short { font-size: 15px; color: var(--kfsn-text); }
.kfsn .kfsn-summary__short p { margin: 0; }
.kfsn .kfsn-summary__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.kfsn .kfsn-summary__stock i { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.15); }
.kfsn .kfsn-summary__stock.is-out i { background: #b42318; box-shadow: 0 0 0 4px rgba(180,35,24,.15); }
.kfsn .kfsn-buy { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.kfsn .kfsn-buy .single_add_to_cart_button { flex: 1; }
.kfsn .kfsn-btn--lg { min-height: 54px; font-size: 15px; }
.kfsn .kfsn-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--kfsn-ink); border-radius: var(--kfsn-radius); overflow: hidden; }
.kfsn .kfsn-qty button { width: 42px; font-size: 20px; font-weight: 700; }
.kfsn .kfsn-qty button:hover { background: var(--kfsn-soft); }
.kfsn .kfsn-qty input { width: 48px; text-align: center; border: 0; padding: 0; font-weight: 800; background: transparent; box-shadow: none; -moz-appearance: textfield; height: auto; min-height: 0; margin: 0; }
.kfsn .kfsn-qty input::-webkit-outer-spin-button, .kfsn .kfsn-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kfsn .kfsn-buy--wc { display: block; }
.kfsn .kfsn-summary__trust { display: grid; gap: 10px; border-top: 1px solid var(--kfsn-line); padding-top: 16px; margin-top: 4px; }
.kfsn .kfsn-summary__trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }

/* destacados */
.kfsn .kfsn-highlights { border-top: 1px solid var(--kfsn-line); margin-top: 40px; }
.kfsn .kfsn-highlights .kfsn-h2 { margin-bottom: 22px; }
.kfsn .kfsn-highlights__grid { display: grid; gap: 12px; }
@media (min-width: 750px) { .kfsn .kfsn-highlights__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 28px; } }
.kfsn .kfsn-highlights__grid li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; background: var(--kfsn-soft); border-radius: 10px; padding: 14px 16px; }
.kfsn .kfsn-check-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--kfsn-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 1px; }
.kfsn .kfsn-functions { margin-top: 28px; }
.kfsn .kfsn-functions__list { display: flex; flex-wrap: wrap; gap: 8px; }
.kfsn .kfsn-functions__list li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--kfsn-line); font-size: 14px; font-weight: 700; }

/* bloques con imagen */
.kfsn .kfsn-blocks { display: grid; gap: 40px; padding: 24px 0 40px; }
.kfsn .kfsn-block { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .kfsn .kfsn-block { grid-template-columns: 1fr 1fr; gap: 56px; } .kfsn .kfsn-block.is-reverse .kfsn-block__media { order: 2; } }
.kfsn .kfsn-block__media img { width: 100%; border-radius: var(--kfsn-radius-lg); object-fit: cover; aspect-ratio: 9 / 7; }
.kfsn .kfsn-block__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; margin-bottom: 10px; }

/* acordeones e información */
.kfsn .kfsn-info { padding-top: 8px; }
.kfsn .kfsn-info__grid { display: grid; gap: 0 40px; }
@media (min-width: 990px) { .kfsn .kfsn-info__grid { grid-template-columns: 1.3fr 1fr; } }
.kfsn .kfsn-acc { border-bottom: 1px solid var(--kfsn-line); }
.kfsn .kfsn-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 18px; font-weight: 800; color: var(--kfsn-ink); }
.kfsn .kfsn-acc summary::-webkit-details-marker { display: none; }
.kfsn .kfsn-acc summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; }
.kfsn .kfsn-acc[open] summary::after { content: "–"; }
.kfsn .kfsn-acc > :not(summary) { margin-bottom: 20px; }
.kfsn .kfsn-specs { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: 0; }
.kfsn .kfsn-specs tr:nth-child(odd) { background: var(--kfsn-soft); }
.kfsn .kfsn-specs th, .kfsn .kfsn-specs td { padding: 11px 14px; text-align: left; vertical-align: top; border: 0; }
.kfsn .kfsn-specs th { width: 42%; font-weight: 700; color: var(--kfsn-ink); }
.kfsn .kfsn-inbox li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--kfsn-line); font-size: 14px; }
.kfsn .kfsn-inbox li:last-child { border-bottom: 0; }
.kfsn .kfsn-warranty { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.kfsn .kfsn-richtext :is(p, ul, table) { margin: 0 0 12px; }
.kfsn .kfsn-richtext ul { list-style: disc; padding-left: 20px; }
.kfsn .kfsn-video__frame { position: relative; aspect-ratio: 16 / 9; margin-top: 20px; border-radius: var(--kfsn-radius-lg); overflow: hidden; }
.kfsn .kfsn-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* reseñas */
.kfsn .kfsn-reviews { border-top: 1px solid var(--kfsn-line); margin-top: 24px; }
.kfsn .kfsn-reviews .kfsn-h2 { margin-bottom: 24px; }
.kfsn .kfsn-reviews__layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .kfsn .kfsn-reviews__layout { grid-template-columns: 300px 1fr; gap: 56px; } }
.kfsn .kfsn-reviews__summary { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.kfsn .kfsn-reviews__avg { font-size: 48px; font-weight: 900; line-height: 1; color: var(--kfsn-ink); }
.kfsn .kfsn-stars--lg { width: 120px; height: 22px; -webkit-mask-size: 24px 22px; mask-size: 24px 22px; }
.kfsn .kfsn-reviews__total { font-size: 14px; color: var(--kfsn-muted); }
.kfsn .kfsn-reviews__bars { width: 100%; display: grid; gap: 6px; margin: 6px 0 10px; }
.kfsn .kfsn-reviews__bars li { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: 13px; }
.kfsn .kfsn-bar { height: 8px; border-radius: 4px; background: #e5e5e5; overflow: hidden; }
.kfsn .kfsn-bar i { display: block; height: 100%; background: #108474; }
.kfsn .kfsn-review { padding: 18px 0; border-bottom: 1px solid var(--kfsn-line); }
.kfsn .kfsn-review__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.kfsn .kfsn-review__head em { font-style: normal; font-size: 12px; color: #108474; font-weight: 700; }
.kfsn .kfsn-review__head time { margin-left: auto; color: var(--kfsn-muted); font-size: 13px; }
.kfsn .kfsn-review-form { background: var(--kfsn-soft); border-radius: var(--kfsn-radius-lg); padding: 20px; margin-bottom: 20px; }
.kfsn .kfsn-review-form[hidden] { display: none; }
.kfsn .kfsn-review-form :is(input[type=text], input[type=email], textarea, select) { width: 100%; border: 1px solid var(--kfsn-line); border-radius: var(--kfsn-radius); padding: 10px 12px; background: #fff; font-size: 14px; box-shadow: none; }
.kfsn .kfsn-review-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.kfsn .kfsn-review-form p { margin: 0 0 14px; }

/* barra fija de compra */
.kfsn .kfsn-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .25s ease; }
.kfsn .kfsn-sticky.is-visible { transform: none; }
.kfsn .kfsn-sticky__inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.kfsn .kfsn-sticky img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--kfsn-soft); }
.kfsn .kfsn-sticky__name { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--kfsn-ink); }
.kfsn .kfsn-sticky__price { display: flex; gap: 8px; align-items: baseline; font-size: 18px; color: var(--kfsn-ink); }
.kfsn .kfsn-sticky__price s { font-size: 13px; color: var(--kfsn-muted); }
@media (max-width: 749px) {
	.kfsn .kfsn-sticky img, .kfsn .kfsn-sticky__name { display: none; }
	.kfsn .kfsn-sticky__inner { justify-content: space-between; }
}
body.kfsn-product-page { padding-bottom: 0; }

/* Los contenedores con scroll deben ser bloque contenedor de sus hijos absolutos
   (p. ej. .screen-reader-text de WordPress) para que no generen scroll horizontal en la página. */
.kfsn :is(.kfsn-carousel__track, .kfsn-hero__track, .kfsn-gallery__track, .kfsn-chips, .kfsn-gallery__thumbs) { position: relative; }
.kfsn .kfsn-card { position: relative; }
.kfsn .kfsn-section__head .kfsn-h2 { min-width: 0; overflow-wrap: anywhere; }
.kfsn .kfsn-section__tools { flex: none; }
@media (max-width: 749px) { .kfsn .kfsn-section__tools .kfsn-arrow { display: none; } }

/* Compatibilidad WoodMart (probado con WoodMart 8.3.8 + WooCommerce 11.1):
   woocommerce-base.css aplica  form.cart{flex-wrap:wrap}  y  form.cart>*{flex:1 1 100%} */
.kfsn form.kfsn-buy { flex-wrap: nowrap; }
.kfsn form.kfsn-buy > .kfsn-qty { display: inline-flex; flex: 0 0 auto; width: auto; }
.kfsn form.kfsn-buy > .single_add_to_cart_button { flex: 1 1 auto; width: auto; }
/* Tarjetas a la misma altura dentro de grillas y carruseles (botón alineado abajo) */
.kfsn .kfsn-grid > li, .kfsn .kfsn-carousel__slide { display: flex; }
.kfsn .kfsn-grid > li > .kfsn-card, .kfsn .kfsn-carousel__slide > .kfsn-card { width: 100%; }
