/*
Theme Name: CASALU
Theme URI: https://casalu.ingealex.com
Description: Tema de tienda para CASALU (WooCommerce + Dropi). Diseño tipo marketplace, responsive y rápido.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: casalu
WC requires at least: 8.0
*/

/* ============ Tokens ============ */
:root {
	--brand: #7446B8;
	--brand-600: #5F369C;
	--brand-700: #4B2A7D;
	--brand-50: #F5F0FC;
	--brand-100: #E5DAF6;
	--plum: #2A1845;
	--ink: #221D2B;
	--ink-2: #3E3848;
	--muted: #6B6577;
	--line: #E9E5EF;
	--bg: #FAF9FC;
	--white: #fff;
	--ok: #16A34A;
	--hot: #D9304F;
	--r-sm: 10px;
	--r: 14px;
	--r-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(34, 29, 43, .05);
	--shadow: 0 10px 30px -12px rgba(42, 24, 69, .18);
	--shadow-brand: 0 10px 24px -8px rgba(116, 70, 184, .5);
	--f-head: "Space Grotesk", "Inter", system-ui, sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1240px;
	--gutter: 24px;
	--tabbar-h: 0px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.cs-lock { overflow: hidden; }
body { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.6; color: var(--ink-2); background: var(--bg); padding-bottom: var(--tabbar-h); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text, .cs-skip { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cs-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--white); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.cs-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.cs-i { flex: none; }

/* ============ Botones ============ */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.cs-btn:active { transform: translateY(1px); }
.cs-btn--brand { background: var(--brand); color: var(--white); box-shadow: var(--shadow-brand); }
.cs-btn--brand:hover { background: var(--brand-600); color: var(--white); }
.cs-btn--ghost { background: var(--white); color: var(--brand); border-color: var(--brand-100); }
.cs-btn--ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.cs-btn--white { background: var(--white); color: var(--ink); }
.cs-btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.cs-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 12px; color: var(--ink); }
.cs-iconbtn:hover { background: var(--brand-50); color: var(--brand); }
.cs-iconbtn--line { width: 36px; height: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.cs-link__short { display: none; }
.cs-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }

/* ============ Topbar ============ */
.cs-topbar { background: linear-gradient(90deg, #2A1845 0%, #5F369C 50%, #2A1845 100%); color: rgba(255, 255, 255, .92); font-size: 13px; }
.cs-topbar__row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.cs-topbar__l, .cs-topbar__r { display: flex; align-items: center; gap: 16px; }
.cs-topbar b { color: var(--white); font-weight: 600; }
.cs-topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); }
.cs-topbar a { color: rgba(255, 255, 255, .92); display: inline-flex; align-items: center; gap: 6px; }
.cs-topbar a:hover { color: var(--white); }

/* ============ Header ============ */
.cs-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .cs-header { top: 32px; }
.cs-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(34, 29, 43, .25); }
.cs-header__row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.cs-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.cs-logo:hover { color: var(--ink); }
.cs-logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--plum)); color: var(--white); font-family: var(--f-head); font-weight: 700; font-size: 20px; box-shadow: var(--shadow-brand); }
.cs-logo__txt { font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.cs-logo__img, .woocommerce .cs-logo img.cs-logo__img, .woocommerce-page .cs-logo img.cs-logo__img { height: 46px !important; width: auto !important; max-width: 190px !important; object-fit: contain; }
.cs-drawer .cs-logo img.cs-logo__img { height: 36px !important; }
.cs-footer .cs-logo img.cs-logo__img { height: 44px !important; }

.cs-search { flex: 1; display: flex; align-items: stretch; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.cs-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.cs-search__cat { position: relative; display: flex; align-items: center; background: var(--bg); border-right: 1px solid var(--line); }
.cs-search__cat select { appearance: none; border: 0; background: transparent; height: 100%; padding: 0 34px 0 16px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.cs-search__cat .cs-i { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.cs-search__input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 15px; background: transparent; }
.cs-search__input:focus { outline: none; }
.cs-search__btn { width: 54px; border: 0; background: var(--brand); color: var(--white); display: grid; place-items: center; transition: background .2s; }
.cs-search__btn:hover { background: var(--brand-600); }

.cs-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.cs-action { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; color: var(--ink); }
.cs-action:hover { background: var(--bg); color: var(--ink); }
.cs-action__ico { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.cs-action__ico--brand { background: var(--brand); color: var(--white); box-shadow: var(--shadow-brand); }
.cs-action__txt { display: flex; flex-direction: column; line-height: 1.2; }
.cs-action__txt small { font-size: 12px; color: var(--muted); }
.cs-action__txt b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cs-action__txt b .amount { color: inherit; }
.cs-cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--hot); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--white); }
.cs-cart-count.is-empty { background: var(--muted); }
.cs-bump { animation: cs-bump .45s ease; }
@keyframes cs-bump { 40% { transform: scale(1.35); } }

.cs-nav { border-top: 1px solid var(--line); }
.cs-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cs-nav__list::-webkit-scrollbar { display: none; }
.cs-nav__list a { position: relative; display: block; padding: 12px 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.cs-nav__list a:hover { color: var(--brand); }
.cs-nav__list a.is-active { color: var(--brand); }
.cs-nav__list a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); }
.cs-nav__hot { color: var(--hot) !important; font-weight: 600 !important; }
.cs-burger { display: none; }

/* ============ Drawer ============ */
.cs-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.cs-drawer.is-open { visibility: visible; }
.cs-drawer__backdrop { position: absolute; inset: 0; background: rgba(34, 29, 43, .45); opacity: 0; transition: opacity .25s; }
.cs-drawer.is-open .cs-drawer__backdrop { opacity: 1; }
.cs-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--white); padding: 16px 16px 32px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.cs-drawer.is-open .cs-drawer__panel { transform: none; }
.cs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cs-drawer__label { margin: 20px 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-drawer__cats, .cs-drawer__links { list-style: none; margin: 0; padding: 0; }
.cs-drawer__cats a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.cs-drawer__cats a:hover { background: var(--bg); }
.cs-drawer__cats a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.cs-drawer__cats small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cs-drawer__cats .cs-i { color: var(--muted); }
.cs-drawer__thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--bg); flex: none; }
.cs-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs-drawer__links a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; color: var(--ink-2); }
.cs-drawer__links a:hover { background: var(--bg); color: var(--brand); }

/* ============ Hero ============ */
.cs-hero { margin-top: 24px; }
.cs-hero__track { position: relative; display: grid; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #FFF 0%, var(--brand-50) 45%, #EDE3FA 100%); border: 1px solid var(--brand-100); }
.cs-hero__slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 56px 56px 84px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.cs-hero__slide.is-active { opacity: 1; visibility: visible; }
.cs-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.cs-eyebrow span { width: 28px; height: 2px; background: var(--brand); border-radius: 2px; }
.cs-hero__title { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 18px; }
.cs-hero__text { font-size: 17px; color: var(--muted); max-width: 470px; margin: 0 0 30px; }
.cs-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-hero__nav { position: absolute; left: 56px; right: 32px; bottom: 26px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.cs-hero { position: relative; }
.cs-hero__nav > * { pointer-events: auto; }
.cs-dots { display: flex; gap: 8px; }
.cs-dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: #D5C8E8; transition: width .3s, background .3s; }
.cs-dots button.is-active { width: 28px; background: var(--brand); }
.cs-arrows { display: flex; gap: 8px; }

.cs-collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.15; }
.cs-collage__item { position: relative; border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.cs-collage__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cs-collage__item:hover img { transform: scale(1.05); }
.cs-collage__item--0 { grid-row: 1 / 3; }
.cs-collage__item--3 { display: none; }
.cs-collage__chip { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); box-shadow: var(--shadow); line-height: 1.25; max-width: calc(100% - 28px); }
.cs-collage__chip small { font-size: 12px; color: var(--muted); }
.cs-collage__chip b { font-family: var(--f-head); color: var(--brand); font-size: 17px; }

/* ============ Trust ============ */
.cs-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cs-trust li { display: flex; align-items: center; gap: 12px; padding: 18px 18px; }
.cs-trust li + li { border-left: 1px solid var(--line); }
.cs-trust__ico, .cs-stats__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex: none; }
.cs-trust b { display: block; font-size: 14px; color: var(--ink); line-height: 1.3; }
.cs-trust small { display: block; font-size: 12.5px; color: var(--muted); }

/* ============ Secciones ============ */
.cs-section { margin-top: 56px; }
.cs-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cs-section__head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-tag { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--brand); padding-bottom: 2px; border-bottom: 2px solid var(--brand); }

.cs-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cs-cat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cs-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink); }
.cs-cat__img { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg); display: grid; place-items: center; color: var(--brand); margin-bottom: 12px; }
.cs-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cs-cat:hover .cs-cat__img img { transform: scale(1.06); }
.cs-cat b { font-size: 14.5px; line-height: 1.3; }
.cs-cat small { font-size: 12.5px; color: var(--muted); }

/* ============ Tarjetas de producto ============ */
.cs-grid { display: grid; gap: 16px; }
.cs-grid--5 { grid-template-columns: repeat(5, 1fr); }
.cs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cs-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px; transition: transform .2s, box-shadow .25s, border-color .2s; }
.cs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.cs-card__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.cs-card__img img, .woocommerce .cs-card__img img, .woocommerce-page .cs-card__img img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.cs-card:hover .cs-card__img img { transform: scale(1.05); }
.cs-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 8px; background: var(--ok); color: var(--white); font-size: 12px; font-weight: 700; }
.cs-badge--sale { background: var(--hot); }
.cs-badge--out { left: auto; right: 10px; background: var(--ink); }
.cs-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 6px 4px; }
.cs-card__cat { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cs-card__title { font-family: var(--f-body); font-size: 14.5px; font-weight: 500; letter-spacing: 0; line-height: 1.4; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.cs-card__title a { color: var(--ink); }
.cs-card__title a:hover { color: var(--brand); }
.cs-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-card__price { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.2; }
.cs-card__price del { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.cs-card__price ins { text-decoration: none; color: var(--hot); }
.cs-add, .woocommerce a.cs-add.button { flex: none; display: grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important; margin: 0 !important; border-radius: 12px !important; background: var(--brand-50) !important; color: var(--brand) !important; border: 1px solid var(--brand-100) !important; transition: background .2s, color .2s, transform .15s; }
.cs-add:hover, .woocommerce a.cs-add.button:hover { background: var(--brand) !important; color: var(--white) !important; }
.cs-add.loading { opacity: .6; }
.cs-add.loading::after, .cs-add.added::after { display: none !important; }
.cs-add.is-added { background: var(--ok) !important; color: var(--white) !important; border-color: var(--ok) !important; }
.woocommerce a.added_to_cart { display: none !important; }

/* ============ Promos ============ */
.cs-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cs-promo { position: relative; display: flex; align-items: flex-end; min-height: 200px; padding: 24px; border-radius: 22px; overflow: hidden; color: var(--white); isolation: isolate; }
.cs-promo--rose { background: linear-gradient(135deg, #7446B8, #2A1845); }
.cs-promo--plum { background: linear-gradient(135deg, #D9304F, #5F369C); }
.cs-promo--sand { background: linear-gradient(135deg, #4B2A7D, #221D2B); }
.cs-promo__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 58%; }
.cs-promo__copy small { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cs-promo__copy b { font-family: var(--f-head); font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.cs-promo__img { position: absolute; right: -14px; top: 50%; width: 46%; aspect-ratio: 1; transform: translateY(-50%) rotate(-6deg); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); transition: transform .5s; z-index: 1; }
.cs-promo__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-promo:hover { color: var(--white); }
.cs-promo:hover .cs-promo__img { transform: translateY(-50%) rotate(-2deg) scale(1.04); }

/* ============ Ranking + novedades ============ */
.cs-split { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
.cs-rank { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cs-rank li + li { border-top: 1px solid var(--line); }
.cs-rank a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); }
.cs-rank a:hover { background: var(--bg); }
.cs-rank__n { width: 18px; font-family: var(--f-head); font-weight: 700; color: var(--brand); text-align: center; }
.cs-rank__img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg); flex: none; }
.cs-rank__img img { width: 100%; height: 100%; object-fit: cover; }
.cs-rank__txt { display: flex; flex-direction: column; min-width: 0; }
.cs-rank__txt b { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-rank__txt span { font-family: var(--f-head); font-weight: 700; color: var(--ink); }

/* ============ Stats + comunidad ============ */
.cs-stats { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; background: linear-gradient(135deg, var(--brand-50), #EFE7FA); border: 1px solid var(--brand-100); border-radius: var(--r-lg); }
.cs-stats li { display: flex; align-items: center; gap: 12px; }
.cs-stats__ico { background: var(--white); }
.cs-stats b { display: block; font-family: var(--f-head); font-size: 20px; color: var(--brand); line-height: 1.2; }
.cs-stats small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.cs-community { display: flex; align-items: center; gap: 22px; padding: 28px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cs-community__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #E8F8EE; color: #16A34A; flex: none; }
.cs-community__txt { flex: 1; }
.cs-community h2 { font-size: 21px; margin: 0 0 4px; }
.cs-community p { margin: 0; color: var(--muted); }

/* ============ Footer ============ */
.cs-footer { margin-top: 72px; background: var(--white); border-top: 1px solid var(--line); padding-top: 48px; }
.cs-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.cs-footer__brand p { color: var(--muted); font-size: 14px; margin: 14px 0 16px; max-width: 280px; }
.cs-footer h4 { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; margin: 6px 0 14px; }
.cs-footer ul { list-style: none; margin: 0; padding: 0; }
.cs-footer li { margin-bottom: 10px; }
.cs-footer li a, .cs-footer li span { color: var(--ink-2); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.cs-footer li a:hover { color: var(--brand); }
.cs-social { display: flex; gap: 8px; }
.cs-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg); color: var(--ink); }
.cs-social a:hover { background: var(--brand); color: var(--white); }
.cs-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cs-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-pay__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: var(--ink-2); font-size: 12.5px; }

/* ============ Tabbar móvil ============ */
.cs-tabbar { display: none; }

/* ============ Páginas y WooCommerce ============ */
.cs-page { padding-top: 20px; }
.cs-page--narrow { max-width: 860px; }
.cs-pagehead { padding: 24px 0 8px; }
.cs-pagehead h1 { font-size: clamp(28px, 3.4vw, 40px); }
.cs-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 40px); }
.cs-content > *:first-child { margin-top: 0; }
.cs-content h3 { font-size: 20px; margin-top: 1.6em; }
.cs-content .wp-block-table { margin: 16px 0 8px; overflow-x: auto; }
.cs-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
.cs-content th { background: var(--brand-50); color: var(--ink); text-align: left; font-weight: 600; }
.cs-content th, .cs-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cs-content tr:last-child td { border-bottom: 0; }
.cs-content td:last-child { white-space: nowrap; font-weight: 600; color: var(--brand); }
.cs-breadcrumb { font-size: 13px; color: var(--muted); padding: 4px 0 8px; }
.cs-breadcrumb a { color: var(--muted); }
.cs-breadcrumb a:hover { color: var(--brand); }
.cs-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.cs-shophead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 8px 0 14px; }
.cs-shophead h1 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.cs-shophead__desc { color: var(--muted); margin-top: 6px; }
.cs-shophead__desc p { margin: 0; }
.cs-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.cs-chips::-webkit-scrollbar { display: none; }
.cs-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.cs-chips a small { color: var(--muted); font-size: 12px; }
.cs-chips a:hover { border-color: var(--brand); color: var(--brand); }
.cs-chips a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cs-chips a.is-active small { color: rgba(255, 255, 255, .7); }

.woocommerce .woocommerce-result-count { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 40px; }
.woocommerce .woocommerce-ordering { margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select { height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 32px !important; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product.cs-li { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* Botones WooCommerce */
.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 #payment #place_order {
	background: var(--brand); color: var(--white); border-radius: 12px; padding: 14px 22px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 0; transition: background .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--brand-600); color: var(--white); }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { background: var(--brand); opacity: .5; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 14px; border-top: 0; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.woocommerce-message::before { color: var(--ok); }
.woocommerce-info::before { color: var(--brand); }
.woocommerce-message .button { float: right; }

/* Ficha de producto */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: 16px; overflow: hidden; background: var(--bg); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 10px; opacity: .55; border: 2px solid transparent; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active, .woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--brand); }
.woocommerce div.product .product_title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-family: var(--f-head); font-size: 30px; font-weight: 700; color: var(--brand); margin: 6px 0 16px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 20px 0 0; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 76px; height: 54px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.woocommerce div.product form.cart .button { flex: 1; min-width: 200px; height: 54px; font-size: 16px; float: none; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; }
.woocommerce div.product form.cart .variations select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 180px; background: var(--white); }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
.woocommerce div.product .product_meta { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product section.related, .woocommerce div.product section.upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 6px; font-weight: 600; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.woocommerce div.product .woocommerce-tabs .panel { color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel img { border-radius: 12px; margin: 12px auto; }
.woocommerce div.product section.related > h2, .woocommerce div.product section.upsells > h2 { font-size: 24px; margin: 12px 0 18px; }
.woocommerce div.product section.related ul.products { margin-bottom: 0 !important; }
.casalu-trust { border: 1px solid var(--brand-100); background: var(--brand-50) !important; }

/* Carrito y checkout */
.woocommerce-cart .cs-content, .woocommerce-checkout .cs-content, .woocommerce-account .cs-content { background: transparent; border: 0; padding: 0; }
.woocommerce table.shop_table { border-radius: 16px; border: 1px solid var(--line); background: var(--white); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--f-head); color: var(--ink); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 16px; border-top-color: var(--line); }
.woocommerce table.shop_table img { width: 72px; border-radius: 10px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout .col2-set .col-1 { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.woocommerce-checkout .col2-set .col-2 { display: none; }
.woocommerce-checkout .col2-set .col-1 { width: 100%; float: none; }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.woocommerce-checkout form.checkout > .col2-set { grid-column: 1; width: auto; }
.woocommerce-checkout form.checkout > #order_review_heading { display: none; }
.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 140px; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single {
	height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--white); font-size: 15px;
}
.woocommerce form .form-row textarea { height: 96px; padding: 12px 14px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-50); }
.woocommerce-checkout #payment { background: var(--bg); border-radius: 14px; }
.woocommerce-checkout #payment div.payment_box { background: var(--white); border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--white); }
.woocommerce #payment #place_order { width: 100%; height: 56px; font-size: 16px; float: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 8px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: 24px; }

/* Barra fija de compra (solo celular) */
.cs-buybar { display: none; }

/* Joinchat sobre la tabbar */
html body .joinchat { z-index: 150 !important; --bottom: 24px; --right: 24px; --s: 58px; }
.joinchat .joinchat__button { box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .55) !important; }
html body.cs-admin-banner .joinchat { --bottom: 84px; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
	.cs-grid--5 { grid-template-columns: repeat(4, 1fr); }
	.cs-grid--5 > :nth-child(n+9) { display: none; }
	.cs-trust li { padding: 16px 12px; }
	.cs-trust__ico { width: 38px; height: 38px; }
	.cs-hide-md { display: none !important; }
}

@media (max-width: 1024px) {
	:root { --gutter: 20px; }
	.cs-hero__slide { grid-template-columns: 1fr 1fr; padding: 40px 36px 76px; gap: 28px; }
	.cs-hero__nav { left: 36px; right: 24px; }
	.cs-cats { grid-template-columns: repeat(3, 1fr); }
	.cs-trust { grid-template-columns: repeat(3, 1fr); }
	.cs-trust li:nth-child(4) { border-left: 0; }
	.cs-trust li:nth-child(n+4) { border-top: 1px solid var(--line); }
	.cs-stats { grid-template-columns: repeat(3, 1fr); }
	.cs-split { grid-template-columns: 1fr; }
	.cs-promos { grid-template-columns: 1fr 1fr; }
	.cs-promos .cs-promo:last-child { grid-column: 1 / -1; }
	.cs-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.cs-footer__brand { grid-column: 1 / -1; }
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout form.checkout > #order_review { grid-column: 1; grid-row: auto; position: static; }
}

@media (max-width: 860px) {
	:root { --gutter: 16px; --tabbar-h: 64px; }
	body { font-size: 15px; }
	.admin-bar .cs-header { top: 0; }
	.cs-topbar__r { display: none; }
	.cs-topbar__row { justify-content: center; min-height: 32px; font-size: 12.5px; }
	.cs-hide-sm { display: none !important; }
	.cs-header__row { flex-wrap: wrap; gap: 10px 8px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
	.cs-burger { display: inline-grid; margin-left: -8px; }
	.cs-logo { flex: 1; justify-content: center; }
	.cs-logo__mark { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
	.cs-logo__txt { font-size: 19px; }
	.cs-header .cs-logo img.cs-logo__img { height: 36px !important; max-width: 150px !important; }
	.cs-actions { gap: 0; }
	.cs-action { padding: 0; }
	.cs-action__ico { width: 42px; height: 42px; }
	.cs-search { order: 5; flex-basis: 100%; height: 46px; border-radius: 12px; }
	.cs-search__cat { display: none; }
	.cs-search__btn { width: 48px; }
	.cs-nav__list a { padding: 10px 10px; font-size: 14px; }

	.cs-hero { margin-top: 14px; }
	.cs-hero__track { border-radius: 22px; }
	.cs-hero__slide { grid-template-columns: 1fr; padding: 26px 20px 64px; gap: 22px; }
	.cs-hero__visual { order: -1; }
	.cs-collage { aspect-ratio: 1.45; gap: 10px; }
	.cs-collage__item { border-radius: 14px; }
	.cs-hero__title { font-size: 30px; margin-bottom: 10px; }
	.cs-hero__text { font-size: 15px; margin-bottom: 20px; }
	.cs-hero__ctas .cs-btn { flex: 1; }
	.cs-hero__nav { left: 20px; right: 16px; bottom: 16px; }
	.cs-arrows { display: none; }
	.cs-eyebrow { margin-bottom: 10px; font-size: 11.5px; }

	.cs-trust { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
	.cs-trust::-webkit-scrollbar { display: none; }
	.cs-trust li { flex: 0 0 72%; scroll-snap-align: start; border-top: 0 !important; }
	.cs-trust li:nth-child(4) { border-left: 1px solid var(--line); }

	.cs-section { margin-top: 36px; }
	.cs-section__head { margin-bottom: 14px; }
	.cs-tag { display: none; }
	.cs-cats { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
	.cs-cats::-webkit-scrollbar { display: none; }
	.cs-cat { flex: 0 0 34%; scroll-snap-align: start; padding: 8px 8px 12px; border-radius: 16px; }
	.cs-cat b { font-size: 13.5px; }

	.cs-grid, .woocommerce ul.products { gap: 10px; }
	.cs-grid--5, .cs-grid--4, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.cs-grid--5 > :nth-child(n+9) { display: flex; }
	.cs-card { padding: 8px; border-radius: 16px; }
	.cs-card__body { padding: 10px 4px 2px; }
	.cs-card__title { font-size: 13.5px; }
	.cs-card__price { font-size: 16px; }
	.cs-add, .woocommerce a.cs-add.button { width: 36px; height: 36px; border-radius: 10px !important; }
	.cs-badge { top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; }

	.cs-promos { grid-template-columns: 1fr; gap: 12px; }
	.cs-promos .cs-promo:last-child { grid-column: auto; }
	.cs-promo { min-height: 160px; padding: 20px; }
	.cs-promo__copy b { font-size: 20px; }

	.cs-stats { grid-template-columns: 1fr 1fr; padding: 16px; }
	.cs-stats li:last-child { grid-column: 1 / -1; }
	.cs-stats b { font-size: 17px; }
	.cs-stats__ico { width: 38px; height: 38px; }
	.cs-community { flex-direction: column; text-align: center; padding: 24px 20px; }
	.cs-community .cs-btn { width: 100%; }

	.cs-footer { margin-top: 48px; padding-top: 32px; }
	.cs-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	.cs-footer__bottom { flex-direction: column; align-items: flex-start; }

	.cs-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(34, 29, 43, .35); }
	.cs-tabbar a, .cs-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; padding: 0; }
	.cs-tabbar .is-active { color: var(--brand); }
	.cs-tabbar__cart { position: relative; }
	.cs-tabbar .cs-cart-count { top: -6px; right: -10px; min-width: 18px; height: 18px; font-size: 10px; }

	.cs-link { font-size: 13px; white-space: nowrap; }
	.cs-section__head .cs-link .cs-link__long { display: none; }
	.cs-section__head .cs-link .cs-link__short { display: inline; }
	.cs-buybar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 79; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(34, 29, 43, .35); transform: translateY(120%); transition: transform .3s ease; }
	.cs-buybar.is-visible { transform: none; }
	.cs-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
	.cs-buybar__info small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cs-buybar__info b { font-family: var(--f-head); font-size: 18px; color: var(--brand); }
	.cs-buybar .cs-btn { height: 46px; padding: 0 16px; font-size: 14.5px; }
	html body .joinchat { --bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); --right: 14px; --s: 52px; }
	html body.single-product .joinchat { --bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom)); }
	html body.cs-admin-banner .joinchat { --bottom: calc(var(--tabbar-h) + 74px); }
	html body.cs-admin-banner.single-product .joinchat { --bottom: calc(var(--tabbar-h) + 146px); }
	.cs-page { padding-top: 12px; }
	.cs-shophead { padding-top: 0; }
	.woocommerce .woocommerce-result-count { display: none; }
	.woocommerce .woocommerce-ordering { float: none; width: 100%; }
	.woocommerce .woocommerce-ordering select { width: 100%; }
	.woocommerce div.product { padding: 14px; border-radius: 18px; }
	.woocommerce div.product p.price { font-size: 26px; }
	.woocommerce div.product form.cart .button { min-width: 0; }
	.woocommerce table.shop_table_responsive tr td::before { font-family: var(--f-head); }
	.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout .col2-set .col-1 { padding: 16px; border-radius: 18px; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
}

@media (max-width: 380px) {
	.cs-hero__title { font-size: 26px; }
	.cs-cat { flex-basis: 40%; }
}

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