/* =========================================================================
   Cosecha Nuestra — sistema visual
   Paleta, tipografía y motivos tomados del manual de marca (002).
   ====================================================================== */

:root {
	/* Colores del manual */
	--cn-green: #6c7862;
	--cn-green-dark: #525c4a;
	--cn-green-deep: #3c4437;
	--cn-gold: #f6b72b;
	--cn-gold-dark: #d1900c;
	--cn-cream: #f8f4ee;
	--cn-cream-2: #f1ebe0;
	--cn-sand: #e5dac6;
	--cn-taupe: #c7b4a6;
	--cn-mocha: #a18878;
	--cn-apricot: #d79159;
	--cn-ink: #5d7189;
	--cn-ink-strong: #3f5066;
	--cn-white: #fff;
	--cn-line: rgba(108, 120, 98, .22);
	--cn-line-soft: rgba(108, 120, 98, .12);

	/* Tipografías */
	--cn-font-display: "Fraunces", "Georgia", "Times New Roman", serif;
	--cn-font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Formas */
	--cn-radius-sm: 10px;
	--cn-radius: 18px;
	--cn-radius-lg: 28px;
	--cn-radius-pill: 999px;
	--cn-shadow-sm: 0 2px 10px rgba(60, 68, 55, .06);
	--cn-shadow: 0 14px 40px rgba(60, 68, 55, .1);
	--cn-shadow-lg: 0 26px 70px rgba(60, 68, 55, .16);

	/* Medidas */
	--cn-wrap: 1360px;
	--cn-gutter: clamp(16px, 4vw, 40px);
	--cn-header-h: 76px;
}

/* ---------- Base ------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.cn-theme {
	margin: 0;
	background: var(--cn-cream);
	color: var(--cn-ink);
	font-family: var(--cn-font-ui);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.cn-drawer-open { overflow: hidden; }

body.cn-theme img { max-width: 100%; height: auto; }

body.cn-theme a { color: var(--cn-green-dark); text-decoration: none; transition: color .2s ease; }
body.cn-theme a:hover { color: var(--cn-gold-dark); }

body.cn-theme h1, body.cn-theme h2, body.cn-theme h3, body.cn-theme h4 {
	font-family: var(--cn-font-display);
	color: var(--cn-ink-strong);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}

body.cn-theme p { margin: 0 0 1em; }

body.cn-theme :focus-visible {
	outline: 3px solid var(--cn-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 200;
	width: auto; height: auto;
	clip-path: none;
	padding: 12px 18px;
	background: var(--cn-green-deep);
	color: var(--cn-cream);
	border-radius: var(--cn-radius-pill);
}

.cn-container {
	width: 100%;
	max-width: var(--cn-wrap);
	margin-inline: auto;
	padding-inline: var(--cn-gutter);
}

.cn-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Botones --------------------------------------------------- */

.cn-btn,
body.cn-theme .button,
body.cn-theme input[type="submit"],
body.cn-theme .woocommerce-button,
body.cn-theme .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--cn-radius-pill);
	background: var(--cn-green);
	color: var(--cn-cream);
	font-family: var(--cn-font-ui);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	text-align: center;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.cn-btn:hover,
body.cn-theme .button:hover,
body.cn-theme input[type="submit"]:hover,
body.cn-theme .woocommerce-button:hover {
	background: var(--cn-green-dark);
	color: var(--cn-white);
	transform: translateY(-2px);
	box-shadow: var(--cn-shadow-sm);
}

.cn-btn--gold,
body.cn-theme .cn-btn--gold,
body.cn-theme .button.alt,
body.cn-theme .checkout-button,
body.cn-theme .single_add_to_cart_button,
body.cn-theme .add_to_cart_button {
	background: var(--cn-gold);
	color: var(--cn-green-deep);
	box-shadow: 0 8px 20px rgba(246, 183, 43, .28);
}

.cn-btn--gold:hover,
body.cn-theme .cn-btn--gold:hover,
body.cn-theme .button.alt:hover,
body.cn-theme .checkout-button:hover,
body.cn-theme .single_add_to_cart_button:hover,
body.cn-theme .add_to_cart_button:hover {
	background: var(--cn-gold-dark);
	color: var(--cn-green-deep);
}

.cn-btn--outline,
body.cn-theme .cn-btn--outline {
	background: transparent;
	border-color: var(--cn-green);
	color: var(--cn-green-dark);
}

.cn-btn--outline:hover,
body.cn-theme .cn-btn--outline:hover { background: var(--cn-green); color: var(--cn-cream); }

.cn-btn--ghost,
body.cn-theme .cn-btn--ghost {
	background: var(--cn-white);
	border-color: var(--cn-line);
	color: var(--cn-ink-strong);
}

.cn-btn--light,
body.cn-theme .cn-btn--light { background: var(--cn-cream); color: var(--cn-green-deep); }
.cn-btn--light:hover,
body.cn-theme .cn-btn--light:hover { background: var(--cn-white); color: var(--cn-green-deep); }

.cn-btn--whatsapp,
body.cn-theme .cn-btn--whatsapp { background: #2f9d5c; color: #fff; width: 100%; }
.cn-btn--whatsapp:hover,
body.cn-theme .cn-btn--whatsapp:hover { background: #27874f; color: #fff; }

.cn-btn--lg,
body.cn-theme .cn-btn--lg { padding: 15px 30px; font-size: 15px; }
.cn-btn--sm,
body.cn-theme .cn-btn--sm { padding: 9px 16px; font-size: 13px; }

.cn-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-weight: 600;
	font-size: 14px;
	color: var(--cn-green-dark);
}

.cn-link-arrow .cn-icon { transition: transform .2s ease; }
.cn-link-arrow:hover .cn-icon { transform: translateX(4px); }

/* ---------- Encabezado ------------------------------------------------ */

.cn-header {
	position: relative;
	z-index: 60;
	background: var(--cn-cream);
}

.cn-topbar {
	background: var(--cn-green-deep);
	color: rgba(248, 244, 238, .84);
	font-size: 12.5px;
}

.cn-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 40px;
	flex-wrap: wrap;
}

.cn-topbar__claim {
	margin: 0;
	font-family: var(--cn-font-display);
	font-size: 14px;
	font-style: italic;
	color: var(--cn-gold);
	letter-spacing: .02em;
}

.cn-topbar__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.cn-topbar__link,
.cn-topbar a {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	color: inherit;
}

.cn-topbar a:hover { color: var(--cn-gold); }
.cn-topbar .cn-icon { width: 15px; height: 15px; opacity: .8; }

.cn-topbar__menu {
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cn-header__main {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(248, 244, 238, .92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--cn-line-soft);
}

.cn-header__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(12px, 3vw, 32px);
	min-height: var(--cn-header-h);
}

.cn-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--cn-line);
	border-radius: 14px;
	background: var(--cn-white);
	color: var(--cn-green-deep);
	cursor: pointer;
}

.cn-logo { display: inline-flex; align-items: center; }
.cn-logo__svg { width: clamp(132px, 15vw, 186px); height: auto; display: block; }
.cn-logo__img { max-height: 62px; width: auto; }

.cn-header__search { min-width: 0; }

.cn-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Buscador */

.cn-search {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--cn-white);
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	padding: 5px 5px 5px 8px;
	box-shadow: var(--cn-shadow-sm);
}

.cn-search__cat select {
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 13px;
	color: var(--cn-ink-strong);
	padding: 8px 10px;
	border-right: 1px solid var(--cn-line-soft);
	max-width: 160px;
	cursor: pointer;
}

.cn-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: var(--cn-ink-strong);
	padding: 10px 6px;
}

.cn-search__input::placeholder { color: rgba(93, 113, 137, .6); }
.cn-search__input:focus { outline: none; }

.cn-search:focus-within { border-color: var(--cn-gold); box-shadow: 0 0 0 4px rgba(246, 183, 43, .18); }

.cn-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: var(--cn-gold);
	color: var(--cn-green-deep);
	cursor: pointer;
	transition: background .2s ease;
}

.cn-search__submit:hover { background: var(--cn-gold-dark); }

/* Cuenta */

.cn-account { position: relative; }

.cn-account__btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 10px 16px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: transparent;
	color: var(--cn-ink-strong);
	font: 600 13px/1 var(--cn-font-ui);
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease;
}

.cn-account__btn:hover { background: var(--cn-white); border-color: var(--cn-green); }

.cn-account__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 220px;
	padding: 8px;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius);
	box-shadow: var(--cn-shadow);
	z-index: 70;
}

.cn-account__menu a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--cn-radius-sm);
	font-size: 14px;
	color: var(--cn-ink-strong);
}

.cn-account__menu a:hover { background: var(--cn-cream); color: var(--cn-green-dark); }

/* Carrito */

.cn-cart-btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 8px 18px 8px 12px;
	border: 1px solid transparent;
	border-radius: var(--cn-radius-pill);
	background: var(--cn-green);
	color: var(--cn-cream);
	font-family: var(--cn-font-ui);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.cn-cart-btn:hover { background: var(--cn-green-dark); transform: translateY(-1px); }

.cn-cart-btn__icon { position: relative; display: inline-flex; }

.cn-cart-btn__count {
	position: absolute;
	top: -8px; right: -10px;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border-radius: var(--cn-radius-pill);
	background: var(--cn-gold);
	color: var(--cn-green-deep);
	font-size: 11px;
	font-weight: 700;
}

.cn-cart-btn__text { display: grid; text-align: left; line-height: 1.1; }
.cn-cart-btn__label { font-size: 11px; opacity: .75; }
.cn-cart-btn__total { font-size: 14px; font-weight: 600; }
.cn-cart-btn__total .amount { color: inherit; }

/* Menú principal */

.cn-nav {
	background: var(--cn-white);
	border-bottom: 1px solid var(--cn-line-soft);
}

.cn-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 54px;
}

.cn-menu {
	display: flex;
	align-items: center;
	gap: clamp(10px, 2vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.cn-menu li { position: relative; }

.cn-menu a {
	display: inline-block;
	padding: 14px 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--cn-ink-strong);
	position: relative;
}

.cn-menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--cn-gold);
	transition: right .25s ease;
}

.cn-menu a:hover::after,
.cn-menu .current-menu-item > a::after,
.cn-menu .current_page_item > a::after { right: 0; }

.cn-menu .sub-menu {
	position: absolute;
	left: -14px;
	top: 100%;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius);
	box-shadow: var(--cn-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .2s ease;
	z-index: 70;
}

.cn-menu li:hover > .sub-menu,
.cn-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.cn-menu .sub-menu a { padding: 9px 14px; display: block; border-radius: var(--cn-radius-sm); }
.cn-menu .sub-menu a::after { display: none; }
.cn-menu .sub-menu a:hover { background: var(--cn-cream); }

.cn-nav__wa {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 8px 16px;
	border-radius: var(--cn-radius-pill);
	background: var(--cn-cream);
	color: var(--cn-green-deep);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.cn-nav__wa:hover { background: var(--cn-sand); color: var(--cn-green-deep); }

/* ---------- Paneles laterales ---------------------------------------- */

.cn-drawer {
	position: fixed;
	inset: 0;
	z-index: 120;
	visibility: hidden;
	pointer-events: none;
}

.cn-drawer.is-open { visibility: visible; pointer-events: auto; }

.cn-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(60, 68, 55, .5);
	opacity: 0;
	transition: opacity .28s ease;
}

.cn-drawer.is-open .cn-drawer__backdrop { opacity: 1; }

.cn-drawer__panel {
	position: absolute;
	top: 0; right: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 92vw);
	height: 100%;
	background: var(--cn-cream);
	box-shadow: var(--cn-shadow-lg);
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.32, .72, 0, 1);
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cn-drawer--left .cn-drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
.cn-drawer.is-open .cn-drawer__panel { transform: none; }

.cn-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--cn-line-soft);
}

.cn-drawer__title { margin: 0; font-size: 20px; }
.cn-drawer__iso { width: 64px; color: var(--cn-green); }

.cn-drawer__close {
	display: inline-flex;
	width: 40px; height: 40px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--cn-line);
	border-radius: 50%;
	background: var(--cn-white);
	color: var(--cn-green-deep);
	cursor: pointer;
}

.cn-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 20px; }

.cn-drawer__body .cn-menu--stack { flex-direction: column; align-items: stretch; gap: 0; margin-top: 16px; }
.cn-drawer__body .cn-menu--stack > li { border-bottom: 1px solid var(--cn-line-soft); }
.cn-drawer__body .cn-menu--stack a { display: block; padding: 14px 4px; font-size: 16px; }
.cn-drawer__body .cn-menu--stack a::after { display: none; }
.cn-drawer__body .cn-menu--stack .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	background: transparent;
	padding: 0 0 8px 14px;
}

.cn-drawer__contact {
	margin-top: 22px;
	display: grid;
	gap: 10px;
	font-size: 14px;
}

.cn-drawer__contact a { display: inline-flex; align-items: center; gap: .5em; }

/* Mini carrito */

.cn-drawer__body .woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.cn-drawer__body .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--cn-white);
	border-radius: var(--cn-radius);
	border: 1px solid var(--cn-line-soft);
	position: relative;
}

.cn-drawer__body .woocommerce-mini-cart-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--cn-cream); }
.cn-drawer__body .woocommerce-mini-cart-item a { font-size: 14px; font-weight: 500; color: var(--cn-ink-strong); }
.cn-drawer__body .woocommerce-mini-cart-item .quantity { font-size: 13px; color: var(--cn-ink); }

.cn-drawer__body .woocommerce-mini-cart-item a.remove {
	position: absolute;
	top: 8px; right: 8px;
	width: 22px; height: 22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--cn-cream);
	color: var(--cn-green-deep);
	font-size: 14px;
	line-height: 1;
}

.cn-drawer__body .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 18px 0;
	padding-top: 14px;
	border-top: 1px dashed var(--cn-line);
	font-size: 16px;
}

.cn-drawer__body .woocommerce-mini-cart__buttons { display: grid; gap: 10px; }
.cn-drawer__body .woocommerce-mini-cart__buttons .button { width: 100%; }
.cn-drawer__body .woocommerce-mini-cart__empty-message { text-align: center; padding: 30px 0; }

/* ---------- Cabecera de página --------------------------------------- */

.cn-page-header {
	padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 28px);
	background:
		radial-gradient(120% 140% at 10% 0%, rgba(229, 218, 198, .55) 0%, rgba(248, 244, 238, 0) 60%),
		var(--cn-cream);
}

.cn-page-header__title { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: .2em; }
.cn-page-header__sub { max-width: 62ch; font-size: 16px; margin: 0; }

.cn-breadcrumb,
.woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 12.5px;
	color: rgba(93, 113, 137, .8);
}

.cn-breadcrumb a,
.woocommerce-breadcrumb a { color: var(--cn-green-dark); }
.cn-breadcrumb__sep { opacity: .5; }

.cn-breadcrumb-bar { padding: 22px 0 0; }

.cn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	margin: 0 0 .6em;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cn-green);
}

.cn-section-head { margin-bottom: clamp(22px, 4vw, 40px); max-width: 68ch; }
.cn-section-title { font-size: clamp(26px, 3.4vw, 40px); margin: 0; }

/* ---------- Portada: hero -------------------------------------------- */

.cn-hero {
	position: relative;
	padding: clamp(28px, 5vw, 64px) 0 clamp(30px, 5vw, 70px);
	background:
		radial-gradient(80% 120% at 85% 10%, rgba(229, 218, 198, .75) 0%, rgba(248, 244, 238, 0) 55%),
		radial-gradient(70% 90% at 5% 90%, rgba(199, 180, 166, .35) 0%, rgba(248, 244, 238, 0) 60%),
		var(--cn-cream);
	overflow: hidden;
}

.cn-hero::before {
	content: "";
	position: absolute;
	left: -12%;
	top: -30%;
	width: 52vw;
	height: 52vw;
	border: 1px solid rgba(246, 183, 43, .35);
	border-radius: 50%;
	pointer-events: none;
}

.cn-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
}

.cn-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	margin: 0 0 18px;
	padding: 7px 18px 7px 8px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: rgba(255, 255, 255, .7);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cn-green-dark);
}

.cn-hero__iso { width: 34px; height: auto; color: var(--cn-green); }

.cn-hero__title {
	font-size: clamp(38px, 6vw, 78px);
	line-height: 1.02;
	margin: 0 0 .35em;
	color: var(--cn-green-deep);
}

.cn-hero__text { max-width: 54ch; font-size: clamp(16px, 1.3vw, 18px); }

.cn-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 32px; }

.cn-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(16px, 3vw, 38px);
	margin: 0;
	padding: 22px 0 0;
	list-style: none;
	border-top: 1px solid var(--cn-line-soft);
}

.cn-hero__facts li { display: grid; }
.cn-hero__facts strong { font-family: var(--cn-font-display); font-size: 18px; color: var(--cn-green-deep); }
.cn-hero__facts span { font-size: 13px; color: rgba(93, 113, 137, .85); }

.cn-hero__media { position: relative; }

.cn-hero__frame {
	position: relative;
	border-radius: 260px 260px 32px 32px;
	overflow: hidden;
	border: 6px solid var(--cn-white);
	box-shadow: var(--cn-shadow-lg);
	aspect-ratio: 4 / 3.4;
}

.cn-hero__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cn-hero__seal {
	position: absolute;
	left: clamp(-10px, -1vw, 0px);
	bottom: 24px;
	width: clamp(150px, 17vw, 210px);
	padding: 14px 16px;
	background: rgba(248, 244, 238, .94);
	border-radius: var(--cn-radius-lg);
	box-shadow: var(--cn-shadow);
	backdrop-filter: blur(4px);
}

.cn-hero__seal-logo { width: 100%; height: auto; display: block; }

/* ---------- Portada: pilares y marcas -------------------------------- */

.cn-pilares { padding: clamp(40px, 6vw, 84px) 0 clamp(20px, 3vw, 40px); }

.cn-pilares__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
}

.cn-pilar {
	padding: clamp(22px, 3vw, 34px);
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	box-shadow: var(--cn-shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}

.cn-pilar:hover { transform: translateY(-4px); box-shadow: var(--cn-shadow); }

.cn-pilar__icon {
	display: grid;
	place-items: center;
	width: 58px; height: 58px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--cn-cream);
	border: 1px solid var(--cn-line);
	color: var(--cn-green);
}

.cn-pilar__icon .cn-icon { width: 26px; height: 26px; }
.cn-pilar__title { font-size: 24px; margin-bottom: .3em; }
.cn-pilar__text { margin: 0; font-size: 15px; }

.cn-marcas { padding: clamp(36px, 5vw, 72px) 0; }

.cn-marcas__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(18px, 2.6vw, 32px);
}

.cn-marca {
	position: relative;
	border-radius: var(--cn-radius-lg);
	overflow: hidden;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	box-shadow: var(--cn-shadow-sm);
}

.cn-marca__media { aspect-ratio: 16 / 10; overflow: hidden; }

.cn-marca__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.cn-marca:hover .cn-marca__media img { transform: scale(1.05); }

.cn-marca__body { padding: clamp(20px, 3vw, 32px); }
.cn-marca__logo { display: block; width: clamp(140px, 16vw, 190px); margin-bottom: 16px; }
.cn-marca__logo svg { width: 100%; height: auto; display: block; }
.cn-marca__text { font-size: 15px; }

.cn-marca--verde { border-top: 4px solid var(--cn-green); }
.cn-marca--dorado { border-top: 4px solid var(--cn-gold); }

.cn-cta { padding: 0 0 clamp(40px, 6vw, 80px); }

.cn-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(28px, 4vw, 52px);
	border-radius: var(--cn-radius-lg);
	background:
		radial-gradient(90% 200% at 100% 0%, rgba(246, 183, 43, .28) 0%, rgba(60, 68, 55, 0) 60%),
		var(--cn-green-deep);
	color: var(--cn-cream);
}

.cn-cta__title { color: var(--cn-cream); font-size: clamp(24px, 3vw, 38px); margin-bottom: .25em; }
.cn-cta__text { margin: 0; max-width: 56ch; color: rgba(248, 244, 238, .84); }
.cn-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Catálogo -------------------------------------------------- */

.cn-main--shop { padding-bottom: clamp(40px, 6vw, 80px); }

.cn-cats {
	display: flex;
	gap: clamp(14px, 2.2vw, 30px);
	margin: clamp(18px, 3vw, 34px) 0;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.cn-cat {
	display: grid;
	justify-items: center;
	gap: 8px;
	min-width: 96px;
	text-align: center;
	color: var(--cn-ink-strong);
}

.cn-cat__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(74px, 8vw, 96px);
	aspect-ratio: 1;
	border-radius: 50%;
	padding: 4px;
	background: var(--cn-white);
	box-shadow: 0 0 0 2px var(--cn-line) inset;
	transition: transform .25s ease, box-shadow .25s ease;
	overflow: hidden;
}

.cn-cat__ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cn-cat__ring--verde { box-shadow: 0 0 0 3px var(--cn-green) inset; }
.cn-cat__ring--dorado { box-shadow: 0 0 0 3px var(--cn-gold) inset; }
.cn-cat__ring--arena { box-shadow: 0 0 0 3px var(--cn-sand) inset; }
.cn-cat__ring--terracota { box-shadow: 0 0 0 3px var(--cn-apricot) inset; }
.cn-cat__ring--mocha { box-shadow: 0 0 0 3px var(--cn-mocha) inset; }
.cn-cat__ring--todos { background: var(--cn-cream); color: var(--cn-green); }
.cn-cat__iso { width: 58%; height: auto; }

.cn-cat:hover .cn-cat__ring { transform: translateY(-3px) scale(1.03); }
.cn-cat.is-current .cn-cat__ring { box-shadow: 0 0 0 3px var(--cn-gold) inset, 0 8px 22px rgba(246, 183, 43, .3); }

.cn-cat__name { font-size: 13px; font-weight: 600; }
.cn-cat__count { font-size: 11px; color: rgba(93, 113, 137, .7); }
.cn-cat__initial { font-family: var(--cn-font-display); font-size: 28px; color: var(--cn-green); }

.cn-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	margin-bottom: 22px;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-pill);
	box-shadow: var(--cn-shadow-sm);
}

.cn-toolbar__count { margin: 0; font-size: 14px; }
.cn-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.cn-toolbar select,
.woocommerce-ordering select,
body.cn-theme select {
	appearance: none;
	padding: 10px 38px 10px 16px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background-color: var(--cn-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235d7189' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	font: 500 13px/1 var(--cn-font-ui);
	color: var(--cn-ink-strong);
	cursor: pointer;
}

.woocommerce-ordering { margin: 0; }

.cn-view-switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: var(--cn-cream);
}

.cn-view-switch__btn {
	display: grid;
	place-items: center;
	width: 38px; height: 34px;
	border: 0;
	border-radius: var(--cn-radius-pill);
	background: transparent;
	color: var(--cn-ink);
	cursor: pointer;
}

.cn-view-switch__btn.is-active { background: var(--cn-white); color: var(--cn-green-dark); box-shadow: var(--cn-shadow-sm); }

.cn-filters {
	padding: 22px;
	margin-bottom: 22px;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
}

.cn-filters .widget + .widget { margin-top: 20px; }
.cn-filters .widget-title { font-size: 16px; }

.cn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }

.cn-chip {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 10px 18px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: var(--cn-white);
	font-size: 14px;
	color: var(--cn-ink-strong);
	transition: .2s ease;
}

.cn-chip:hover { border-color: var(--cn-green); transform: translateY(-1px); }
.cn-chip.is-active { background: var(--cn-green); border-color: var(--cn-green); color: var(--cn-cream); }
.cn-chip__count { font-size: 11px; opacity: .7; }

/* Grilla de productos */

.cn-products,
body.cn-theme ul.products {
	display: grid;
	grid-template-columns: repeat(var(--cn-cols, 4), minmax(0, 1fr));
	gap: clamp(14px, 1.8vw, 24px);
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.cn-products--cols-2 { --cn-cols: 2; }
.cn-products--cols-3 { --cn-cols: 3; }
.cn-products--cols-4 { --cn-cols: 4; }
.cn-products--cols-5 { --cn-cols: 5; }

body.cn-theme ul.products::before,
body.cn-theme ul.products::after { content: none; }

/* WooCommerce reparte las tarjetas con float y anchos en porcentaje:
   acá manda la grilla. */
body.cn-theme ul.products li.product,
body.cn-theme .cn-products li.product {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
}

body.cn-theme ul.products li.product::before,
body.cn-theme ul.products li.product::after { content: none; }

.cn-card { list-style: none; }

.cn-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cn-card__inner:hover {
	transform: translateY(-6px);
	box-shadow: var(--cn-shadow);
	border-color: rgba(246, 183, 43, .5);
}

.cn-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	padding: 18px;
	background: var(--cn-cream);
}

.cn-card__media img {
	width: 100%; height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.cn-card__inner:hover .cn-card__media img { transform: scale(1.05); }

.cn-badge {
	position: absolute;
	top: 14px; left: 14px;
	padding: 6px 14px;
	border-radius: var(--cn-radius-pill);
	background: var(--cn-gold);
	color: var(--cn-green-deep);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	z-index: 2;
}

.cn-badge--stock { background: var(--cn-mocha); color: var(--cn-white); left: auto; right: 14px; }

.cn-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	padding: 18px 20px 20px;
}

.cn-card__cat {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cn-green);
}

.cn-card__cat a { color: inherit; }

.cn-card__title { margin: 0; font-size: 18px; line-height: 1.25; }
.cn-card__title a { color: var(--cn-ink-strong); }
.cn-card__title a:hover { color: var(--cn-green-dark); }
.cn-card__excerpt { margin: 0; font-size: 13.5px; color: rgba(93, 113, 137, .9); }

.cn-card__foot { margin-top: auto; padding-top: 14px; display: grid; gap: 12px; }

.cn-card__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--cn-font-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--cn-green-deep);
}

.cn-card__price del { font-size: 16px; opacity: .55; font-weight: 400; }
.cn-card__price ins { text-decoration: none; }
.cn-card__price-note { font-family: var(--cn-font-ui); font-size: 11px; font-weight: 500; color: rgba(93, 113, 137, .75); }

.cn-card__cta .button { width: 100%; }
.cn-card__cta .added_to_cart { display: none; }

/* Vista en lista */

.cn-products[data-view="list"] { grid-template-columns: 1fr; }

.cn-products[data-view="list"] .cn-card__inner { flex-direction: row; align-items: stretch; }

.cn-products[data-view="list"] .cn-card__media {
	flex: 0 0 clamp(140px, 22%, 240px);
	aspect-ratio: auto;
}

.cn-products[data-view="list"] .cn-card__body { justify-content: center; }
.cn-products[data-view="list"] .cn-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cn-products[data-view="list"] .cn-card__cta .button { width: auto; }

/* Paginación */

.cn-pagination { display: flex; justify-content: center; margin: 30px 0 10px; }

.cn-pagination .page-numbers,
body.cn-theme .woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.cn-pagination .page-numbers li { border: 0; }

.cn-pagination a.page-numbers,
.cn-pagination span.page-numbers,
body.cn-theme .woocommerce-pagination .page-numbers li a,
body.cn-theme .woocommerce-pagination .page-numbers li span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: var(--cn-white);
	color: var(--cn-ink-strong);
	font-size: 14px;
	font-weight: 500;
}

.cn-pagination .current,
body.cn-theme .woocommerce-pagination .page-numbers li .current {
	background: var(--cn-green);
	border-color: var(--cn-green);
	color: var(--cn-cream);
}

.cn-empty {
	padding: 40px;
	text-align: center;
	background: var(--cn-white);
	border: 1px dashed var(--cn-line);
	border-radius: var(--cn-radius-lg);
}

/* ---------- Ficha de producto ---------------------------------------- */

.cn-main--shop .product,
.cn-single-product { padding-bottom: 20px; }

body.cn-theme.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(24px, 4vw, 60px);
	align-items: start;
	margin-top: 26px;
}

body.cn-theme.single-product div.product > .woocommerce-product-gallery { grid-column: 1; }
body.cn-theme.single-product div.product > .summary { grid-column: 2; }

/* WooCommerce da 48% y float a estas dos columnas: acá manda la grilla. */
body.cn-theme.single-product div.product > .woocommerce-product-gallery,
body.cn-theme.single-product div.product > .summary,
body.cn-theme.single-product div.product > .woocommerce-tabs,
body.cn-theme.single-product div.product > .related,
body.cn-theme.single-product div.product > .up-sells {
	width: 100%;
	max-width: none;
	float: none;
	margin-left: 0;
	margin-right: 0;
}

body.cn-theme.single-product div.product > .woocommerce-tabs,
body.cn-theme.single-product div.product > .related,
body.cn-theme.single-product div.product > .up-sells,
body.cn-theme.single-product div.product > .woocommerce-product-gallery + .clear { grid-column: 1 / -1; }

body.cn-theme .woocommerce-product-gallery {
	position: sticky;
	top: calc(var(--cn-header-h) + 16px);
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	padding: clamp(14px, 2vw, 26px);
	box-shadow: var(--cn-shadow-sm);
}

body.cn-theme .woocommerce-product-gallery__image img { border-radius: var(--cn-radius); }

body.cn-theme .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

body.cn-theme .woocommerce-product-gallery .flex-control-thumbs li { width: 74px; }

body.cn-theme .woocommerce-product-gallery .flex-control-thumbs img {
	border: 1px solid var(--cn-line-soft);
	border-radius: 12px;
	background: var(--cn-cream);
	opacity: .75;
	transition: .2s ease;
}

body.cn-theme .woocommerce-product-gallery .flex-control-thumbs img:hover,
body.cn-theme .woocommerce-product-gallery .flex-control-thumbs .flex-active { opacity: 1; border-color: var(--cn-gold); }

body.cn-theme .product_title,
.cn-summary__title { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: .2em; }

body.cn-theme.single-product .summary .posted_in,
.cn-summary__cat,
body.cn-theme .product_meta {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cn-green);
}

body.cn-theme .product_meta { text-transform: none; letter-spacing: 0; font-size: 13px; color: rgba(93, 113, 137, .85); }
body.cn-theme .product_meta > span { display: block; margin-bottom: 4px; }

body.cn-theme.single-product .summary .price,
.cn-summary__price .price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--cn-font-display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 600;
	color: var(--cn-green-deep);
	margin: 0;
}

.cn-price-note { margin: 4px 0 18px; font-size: 13px; color: rgba(93, 113, 137, .8); }

body.cn-theme .woocommerce-product-details__short-description,
.cn-summary__excerpt { font-size: 15.5px; margin-bottom: 20px; }

.cn-buybox {
	padding: clamp(18px, 2.4vw, 26px);
	background: var(--cn-white);
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-lg);
	box-shadow: var(--cn-shadow-sm);
	display: grid;
	gap: 14px;
}

body.cn-theme form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
}

body.cn-theme form.cart .quantity,
body.cn-theme .woocommerce-cart-form .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: var(--cn-cream);
	overflow: hidden;
}

.cn-qty__btn {
	width: 42px; height: 46px;
	border: 0;
	background: transparent;
	color: var(--cn-green-deep);
	font-size: 18px;
	cursor: pointer;
	transition: background .2s ease;
}

.cn-qty__btn:hover { background: var(--cn-sand); }

body.cn-theme .quantity input.qty {
	width: 56px;
	height: 46px;
	border: 0;
	background: transparent;
	text-align: center;
	font: 600 15px/1 var(--cn-font-ui);
	color: var(--cn-ink-strong);
	appearance: textfield;
}

body.cn-theme .quantity input.qty::-webkit-outer-spin-button,
body.cn-theme .quantity input.qty::-webkit-inner-spin-button { appearance: none; margin: 0; }

body.cn-theme form.cart .single_add_to_cart_button { flex: 1 1 200px; padding: 15px 28px; font-size: 15px; }

.cn-buybox__notes {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px dashed var(--cn-line);
	font-size: 13px;
}

.cn-buybox__notes li { display: flex; align-items: center; gap: .6em; }
.cn-buybox__notes .cn-icon { width: 18px; height: 18px; color: var(--cn-green); }

body.cn-theme .woocommerce-tabs,
.cn-tabs { margin-top: clamp(34px, 5vw, 64px); }

body.cn-theme .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	border: 0;
}

body.cn-theme .woocommerce-tabs ul.tabs::before,
body.cn-theme .woocommerce-tabs ul.tabs li::before,
body.cn-theme .woocommerce-tabs ul.tabs li::after { display: none; }

body.cn-theme .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: var(--cn-white);
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
}

body.cn-theme .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--cn-ink-strong); }
body.cn-theme .woocommerce-tabs ul.tabs li.active { background: var(--cn-green); border-color: var(--cn-green); }
body.cn-theme .woocommerce-tabs ul.tabs li.active a { color: var(--cn-cream); }

body.cn-theme .woocommerce-tabs .panel {
	padding: clamp(20px, 3vw, 34px);
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
}

body.cn-theme .related > h2,
body.cn-theme .up-sells > h2,
body.cn-theme .cross-sells > h2 { font-size: clamp(22px, 2.6vw, 32px); margin: clamp(30px, 4vw, 54px) 0 22px; }

/* Galería propia (plantilla Producto Pro) */

.cn-single-product__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(24px, 4vw, 60px);
	align-items: start;
	margin-top: 22px;
}

.cn-gallery {
	position: sticky;
	top: calc(var(--cn-header-h) + 16px);
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	padding: clamp(14px, 2vw, 26px);
}

.cn-gallery__main { aspect-ratio: 1; display: grid; place-items: center; background: var(--cn-cream); border-radius: var(--cn-radius); overflow: hidden; }
.cn-gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cn-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.cn-gallery__thumb {
	width: 74px; height: 74px;
	padding: 4px;
	border: 1px solid var(--cn-line-soft);
	border-radius: 12px;
	background: var(--cn-cream);
	cursor: pointer;
}

.cn-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cn-gallery__thumb.is-active { border-color: var(--cn-gold); }

/* ---------- Carrito, checkout y cuenta -------------------------------- */

body.cn-theme .woocommerce,
body.cn-theme.woocommerce-page .cn-main--shop { font-size: 15px; }

body.cn-theme table.shop_table,
body.cn-theme table.woocommerce-orders-table,
body.cn-theme table.woocommerce-table {
	width: 100%;
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--cn-white);
	margin-bottom: 26px;
}

body.cn-theme table.shop_table th,
body.cn-theme table.woocommerce-table th {
	padding: 16px 18px;
	background: var(--cn-cream);
	font: 600 12px/1.4 var(--cn-font-ui);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--cn-green-dark);
	text-align: left;
	border: 0;
}

body.cn-theme table.shop_table td,
body.cn-theme table.woocommerce-table td {
	padding: 16px 18px;
	border-top: 1px solid var(--cn-line-soft);
	vertical-align: middle;
}

body.cn-theme table.shop_table img { width: 68px; border-radius: 12px; background: var(--cn-cream); }

body.cn-theme .cart_totals,
body.cn-theme .woocommerce-checkout-review-order,
body.cn-theme .woocommerce-order-details,
body.cn-theme .woocommerce-customer-details {
	background: var(--cn-white);
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-lg);
	padding: clamp(18px, 2.6vw, 28px);
}

body.cn-theme .cart_totals table,
body.cn-theme .woocommerce-checkout-review-order table { border: 0; background: transparent; margin: 0; }
body.cn-theme .cart_totals th,
body.cn-theme .woocommerce-checkout-review-order th { background: transparent; }

body.cn-theme .cart-collaterals { display: grid; justify-content: end; }
body.cn-theme .cart-collaterals .cart_totals { width: min(460px, 100%); }

body.cn-theme .order-total .amount,
body.cn-theme .cart-subtotal .amount { font-family: var(--cn-font-display); font-size: 20px; color: var(--cn-green-deep); }

body.cn-theme .col2-set,
body.cn-theme .u-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(18px, 3vw, 32px);
	width: 100%;
	float: none;
}

body.cn-theme .col2-set .col-1,
body.cn-theme .col2-set .col-2,
body.cn-theme .u-columns .u-column1,
body.cn-theme .u-columns .u-column2 { width: 100%; max-width: none; float: none; margin: 0; }

body.cn-theme .woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; }
body.cn-theme .woocommerce form .form-row label { font-size: 13px; font-weight: 500; color: var(--cn-ink-strong); }

body.cn-theme input[type="text"],
body.cn-theme input[type="email"],
body.cn-theme input[type="tel"],
body.cn-theme input[type="password"],
body.cn-theme input[type="number"],
body.cn-theme input[type="search"],
body.cn-theme input[type="url"],
body.cn-theme input[type="date"],
body.cn-theme textarea,
body.cn-theme .select2-container--default .select2-selection--single {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius);
	background: var(--cn-white);
	font: 400 15px/1.4 var(--cn-font-ui);
	color: var(--cn-ink-strong);
	transition: border-color .2s ease, box-shadow .2s ease;
}

body.cn-theme .select2-container--default .select2-selection--single { height: auto; display: flex; align-items: center; }
body.cn-theme .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: inherit; }
body.cn-theme .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 10px; }

body.cn-theme input:focus,
body.cn-theme textarea:focus,
body.cn-theme select:focus {
	outline: none;
	border-color: var(--cn-gold);
	box-shadow: 0 0 0 4px rgba(246, 183, 43, .18);
}

body.cn-theme .woocommerce-form-login,
body.cn-theme .woocommerce-form-register,
body.cn-theme .woocommerce-ResetPassword,
body.cn-theme .checkout_coupon,
body.cn-theme .woocommerce-EditAccountForm {
	background: var(--cn-white);
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-lg);
	padding: clamp(20px, 3vw, 32px);
}

body.cn-theme .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

body.cn-theme .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 20px;
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius-pill);
	background: var(--cn-white);
	font-size: 14px;
	font-weight: 500;
	color: var(--cn-ink-strong);
}

body.cn-theme .woocommerce-MyAccount-navigation li.is-active a { background: var(--cn-green); border-color: var(--cn-green); color: var(--cn-cream); }

body.cn-theme .woocommerce-MyAccount-content {
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	padding: clamp(20px, 3vw, 32px);
}

body.cn-theme #payment,
body.cn-theme.woocommerce-checkout #payment {
	background: var(--cn-cream);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	padding: 18px;
}

body.cn-theme #payment ul.payment_methods {
	border: 0;
	padding: 0;
	margin: 0 0 16px;
	display: grid;
	gap: 10px;
}

body.cn-theme #payment ul.payment_methods li {
	list-style: none;
	padding: 14px 18px;
	background: var(--cn-white);
	border: 1px solid var(--cn-line);
	border-radius: var(--cn-radius);
}

body.cn-theme #payment div.payment_box {
	background: var(--cn-cream);
	border-radius: var(--cn-radius-sm);
	font-size: 13.5px;
	color: var(--cn-ink);
}

body.cn-theme #payment div.payment_box::before { border-bottom-color: var(--cn-cream); }
body.cn-theme #payment .place-order .button { width: 100%; padding: 16px; font-size: 16px; }

/* Avisos */

body.cn-theme .woocommerce-message,
body.cn-theme .woocommerce-info,
body.cn-theme .woocommerce-error,
body.cn-theme .woocommerce-noreviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	margin: 0 0 22px;
	border: 1px solid var(--cn-line);
	border-top: 3px solid var(--cn-green);
	border-radius: var(--cn-radius);
	background: var(--cn-white);
	color: var(--cn-ink-strong);
	font-size: 14.5px;
	list-style: none;
}

body.cn-theme .woocommerce-message::before,
body.cn-theme .woocommerce-info::before,
body.cn-theme .woocommerce-error::before { display: none; }

body.cn-theme .woocommerce-message { border-top-color: var(--cn-green); }
body.cn-theme .woocommerce-info { border-top-color: var(--cn-gold); }
body.cn-theme .woocommerce-error { border-top-color: #c0553c; }
body.cn-theme .woocommerce-message .button,
body.cn-theme .woocommerce-error .button { margin-left: auto; }

/* Aviso "los precios no incluyen IVA": barra fija arriba de todo, con el
   sitio corrido hacia abajo para que no tape el encabezado. */

body.cn-theme p.demo_store,
body.cn-theme .woocommerce-store-notice {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 140;
	margin: 0;
	padding: calc(11px + env(safe-area-inset-top, 0px)) 20px 11px;
	background: var(--cn-green) !important;
	color: var(--cn-cream);
	font-size: 13.5px;
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 2px 14px rgba(60, 68, 55, .22);
}

body.cn-theme p.demo_store a,
body.cn-theme .woocommerce-store-notice a { color: var(--cn-gold); text-decoration: underline; }

body.cn-theme.woocommerce-demo-store { padding-top: var(--cn-notice-h, 44px); }
body.cn-theme.woocommerce-demo-store .cn-header__main { top: var(--cn-notice-h, 44px); }

/* ---------- Blog y contenido ----------------------------------------- */

.cn-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(24px, 4vw, 48px);
	padding-bottom: clamp(40px, 6vw, 80px);
}

.cn-no-sidebar .cn-layout,
.cn-layout--wide,
.cn-layout:has(> .cn-layout__main:only-child) { grid-template-columns: minmax(0, 1fr); }

.cn-prose--wide { max-width: none; }

.cn-layout__side { display: grid; gap: 22px; align-content: start; }

.cn-layout__side .widget,
.cn-filters .widget {
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	padding: 22px;
}

.cn-filters .widget { border: 0; padding: 0; background: transparent; }

.widget-title { font-size: 18px; margin-bottom: 14px; }

body.cn-theme .widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.cn-theme .widget ul li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
body.cn-theme .widget ul li a { color: var(--cn-ink-strong); }
body.cn-theme .widget ul li a:hover { color: var(--cn-green-dark); }

.cn-prose { max-width: 78ch; font-size: 16.5px; }
.cn-prose h2 { font-size: clamp(24px, 2.8vw, 34px); margin-top: 1.4em; }
.cn-prose h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 1.3em; }
.cn-prose img { border-radius: var(--cn-radius); }
.cn-prose ul, .cn-prose ol { padding-left: 1.2em; }

.cn-posts { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.cn-post-card {
	display: flex;
	flex-direction: column;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
	overflow: hidden;
}

.cn-post-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cn-post-card__body { padding: 20px; display: grid; gap: 8px; }
.cn-post-card__date { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cn-green); }
.cn-post-card__title { font-size: 21px; margin: 0; }
.cn-post-card__excerpt p { margin: 0; font-size: 14.5px; }

.cn-single__media img { width: 100%; border-radius: var(--cn-radius-lg); margin-bottom: 26px; }

.cn-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; font-size: 14px; }

.cn-404 { padding: clamp(50px, 9vw, 120px) 0; }
.cn-404__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.cn-404__iso { width: 110px; color: var(--cn-green); margin-bottom: 20px; }
.cn-404__title { font-size: clamp(30px, 4.4vw, 48px); }
.cn-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0; }
.cn-404__search { max-width: 460px; margin: 0 auto; }

/* ---------- Pie ------------------------------------------------------- */

.cn-footer { margin-top: clamp(40px, 6vw, 90px); background: var(--cn-green-deep); color: rgba(248, 244, 238, .78); }

.cn-footer__top { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); }

.cn-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 48px);
}

.cn-footer__logo { width: 210px; height: auto; color: var(--cn-cream); display: block; margin-bottom: 18px; }
.cn-footer__claim { font-family: var(--cn-font-display); font-style: italic; font-size: 18px; color: var(--cn-gold); margin-bottom: .4em; }
.cn-footer__text { font-size: 14.5px; margin-bottom: 1em; }

.cn-footer__brands { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(248, 244, 238, .16); }
.cn-footer__sub { width: 96px; height: auto; color: var(--cn-gold); }
.cn-footer__sublabel { font-size: 12.5px; }

.cn-footer__title { font-size: 17px; color: var(--cn-cream); margin-bottom: 16px; }

.cn-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.cn-footer__list li { display: flex; align-items: flex-start; gap: .6em; }
.cn-footer__list .cn-icon { width: 17px; height: 17px; margin-top: 3px; color: var(--cn-gold); }
.cn-footer a { color: rgba(248, 244, 238, .84); }
.cn-footer a:hover { color: var(--cn-gold); }

.cn-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid rgba(248, 244, 238, .16);
}

.cn-footer__widgets .widget { background: transparent; border: 0; padding: 0; }
.cn-footer__widgets .widget-title { color: var(--cn-cream); }
.cn-footer__widgets .widget ul li a { color: rgba(248, 244, 238, .84); }

.cn-footer__bottom { border-top: 1px solid rgba(248, 244, 238, .16); font-size: 13px; }

.cn-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
}

.cn-footer__bottom p { margin: 0; }
.cn-footer__legal { opacity: .7; }

/* WhatsApp flotante */

.cn-wa-float {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #2f9d5c;
	color: #fff;
	box-shadow: 0 12px 30px rgba(47, 157, 92, .38);
	transition: transform .2s ease;
}

.cn-wa-float:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.cn-wa-float .cn-icon { width: 28px; height: 28px; }

/* ---------- Adaptación a pantallas ----------------------------------- */

@media (max-width: 1180px) {
	.cn-products { --cn-cols: 3; }
	.cn-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
	.cn-header__inner { grid-template-columns: auto auto auto; grid-template-areas: "burger brand actions" "search search search"; row-gap: 12px; padding-bottom: 14px; }
	.cn-burger { display: inline-flex; grid-area: burger; }
	.cn-header__brand { grid-area: brand; justify-self: center; }
	.cn-header__search { grid-area: search; }
	.cn-header__actions { grid-area: actions; }
	.cn-nav { display: none; }
	.cn-account__label { display: none; }
	.cn-account__btn { padding: 12px; }

	.cn-hero__inner { grid-template-columns: 1fr; }
	.cn-hero__media { order: -1; }
	.cn-hero__frame { aspect-ratio: 16/11; border-radius: 180px 180px 28px 28px; }

	body.cn-theme.single-product div.product,
	.cn-single-product__grid { grid-template-columns: 1fr; }

	body.cn-theme .woocommerce-product-gallery,
	.cn-gallery { position: static; }

	.cn-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.cn-topbar__link--address { display: none; }
	.cn-products { --cn-cols: 2; }
	.cn-cart-btn__text { display: none; }
	.cn-cart-btn { padding: 10px 14px; }
}

@media (max-width: 720px) {
	:root { --cn-header-h: 68px; }

	.cn-topbar__inner { justify-content: center; text-align: center; padding-block: 8px; }
	.cn-topbar__meta { justify-content: center; gap: 14px; }

	.cn-toolbar { border-radius: var(--cn-radius-lg); }
	.cn-toolbar__actions { width: 100%; justify-content: space-between; }
	.cn-toolbar select { flex: 1 1 auto; }

	.cn-footer__grid { grid-template-columns: 1fr; }
	.cn-products[data-view="list"] .cn-card__inner { flex-direction: column; }
	.cn-products[data-view="list"] .cn-card__media { flex: none; aspect-ratio: 1; }

	body.cn-theme table.shop_table thead { display: none; }
	body.cn-theme table.shop_table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid var(--cn-line-soft); }
	body.cn-theme table.shop_table tbody td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
	body.cn-theme table.shop_table tbody td::before { content: attr(data-title); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cn-green); }
	body.cn-theme table.shop_table tbody td.product-remove::before,
	body.cn-theme table.shop_table tbody td.product-thumbnail::before { content: none; }
	body.cn-theme table.shop_table tbody tr td.product-thumbnail { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	.cn-products { --cn-cols: 1; }
	.cn-hero__actions .cn-btn { width: 100%; }
	.cn-search__cat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	body.cn-theme *,
	body.cn-theme *::before,
	body.cn-theme *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Impresión: dejamos solo el contenido */
@media print {
	.cn-header, .cn-footer, .cn-wa-float, .cn-drawer, .cn-toolbar { display: none !important; }
}

/* ---------- Ajustes finales de WooCommerce ---------------------------- */

body.cn-theme .cn-prose--wide { max-width: none; }
body.cn-theme .cn-layout--wide { grid-template-columns: minmax(0, 1fr); }

body.cn-theme .u-columns.col2-set,
body.cn-theme .woocommerce-checkout .col2-set {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(18px, 3vw, 32px);
	width: 100%;
	float: none;
}

body.cn-theme .u-columns.col2-set > div,
body.cn-theme .woocommerce-checkout .col2-set > div {
	flex: 1 1 320px;
	width: auto;
	max-width: none;
	float: none;
	margin: 0;
}

/* Colores de enlace por componente (el color base del sitio es más específico
   desde que las reglas cuelgan de body). */

body.cn-theme .cn-topbar a { color: rgba(248, 244, 238, .84); }
body.cn-theme .cn-topbar a:hover { color: var(--cn-gold); }

body.cn-theme .cn-menu a { color: var(--cn-ink-strong); }
body.cn-theme .cn-menu a:hover { color: var(--cn-green-dark); }
body.cn-theme .cn-nav__wa { color: var(--cn-green-deep); }

body.cn-theme .cn-account__menu a,
body.cn-theme .cn-drawer__contact a { color: var(--cn-ink-strong); }

body.cn-theme .cn-card__title a,
body.cn-theme .cn-post-card__title a { color: var(--cn-ink-strong); }
body.cn-theme .cn-card__title a:hover,
body.cn-theme .cn-post-card__title a:hover { color: var(--cn-green-dark); }
body.cn-theme .cn-card__cat a { color: inherit; }

body.cn-theme .cn-footer a { color: rgba(248, 244, 238, .84); }
body.cn-theme .cn-footer a:hover { color: var(--cn-gold); }
body.cn-theme .cn-footer .cn-btn--gold { color: var(--cn-green-deep); }

body.cn-theme .cn-hero__facts strong { color: var(--cn-green-deep); }

/* Cupón del carrito */
body.cn-theme .woocommerce-cart-form .coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
body.cn-theme .woocommerce-cart-form .coupon #coupon_code { width: min(260px, 60vw); }

/* El enlace "Descartar" vive dentro del aviso: no debe heredar su posición. */
body.cn-theme .woocommerce-store-notice__dismiss-link {
	position: static;
	display: inline;
	padding: 0;
	background: none;
	box-shadow: none;
	font-size: inherit;
}

/* ---------- Mini carrito del panel lateral --------------------------- */

body.cn-theme .cn-drawer__panel { padding-top: calc(var(--cn-notice-h, 0px) + env(safe-area-inset-top, 0px)); }

body.cn-theme .cn-drawer__body .woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item {
	position: relative;
	display: block;
	padding: 12px 40px 12px 12px;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius);
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item::after { content: ""; display: block; clear: both; }

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item img {
	float: left;
	width: 62px;
	height: 62px;
	margin: 0 12px 0 0;
	object-fit: contain;
	border-radius: 12px;
	background: var(--cn-cream);
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item a {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cn-ink-strong);
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item .quantity {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--cn-ink);
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item a.remove {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--cn-cream);
	color: var(--cn-green-deep);
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart-item a.remove:hover { background: var(--cn-sand); }

body.cn-theme .cn-drawer__body .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 18px 0;
	padding-top: 14px;
	border-top: 1px dashed var(--cn-line);
	font-size: 15px;
}

body.cn-theme .cn-drawer__body .woocommerce-mini-cart__total strong { font-weight: 600; }
body.cn-theme .cn-drawer__body .woocommerce-mini-cart__total .amount { font-family: var(--cn-font-display); font-size: 20px; color: var(--cn-green-deep); }

body.cn-theme .cn-drawer__body .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
body.cn-theme .cn-drawer__body .woocommerce-mini-cart__buttons .button { width: 100%; }

body.cn-theme .cn-drawer__panel { padding-top: calc(var(--cn-notice-h, 0px) + env(safe-area-inset-top, 0px) + 6px); }
body.cn-theme .cn-drawer__body .woocommerce-mini-cart__buttons .checkout {
	background: var(--cn-gold);
	color: var(--cn-green-deep);
}
body.cn-theme .cn-drawer__body .woocommerce-mini-cart__buttons .checkout:hover { background: var(--cn-gold-dark); color: var(--cn-green-deep); }

/* Títulos sobre fondos oscuros (la regla general de encabezados usa tinta). */
body.cn-theme .cn-cta__title,
body.cn-theme .cn-footer__title,
body.cn-theme .cn-footer h1,
body.cn-theme .cn-footer h2,
body.cn-theme .cn-footer h3,
body.cn-theme .cn-footer .widget-title { color: var(--cn-cream); }

body.cn-theme .cn-footer__claim { color: var(--cn-gold); }

/* ---------- Ajustes pedidos --------------------------------------------
   1) Barra superior clara (sin banda oscura arriba del menú).
   2) Padding del panel de descripción (WooCommerce lo deja en cero con un
      selector muy específico).
   ---------------------------------------------------------------------- */

body.cn-theme .cn-topbar {
	background: var(--cn-cream-2);
	color: var(--cn-ink);
	border-bottom: 1px solid var(--cn-line-soft);
}

body.cn-theme .cn-topbar__inner { justify-content: flex-end; }
body.cn-theme .cn-topbar a,
body.cn-theme .cn-topbar__link { color: var(--cn-ink-strong); }
body.cn-theme .cn-topbar a:hover { color: var(--cn-green-dark); }
body.cn-theme .cn-topbar .cn-icon { color: var(--cn-green); opacity: 1; }

body.cn-theme.woocommerce div.product .woocommerce-tabs .panel,
body.cn-theme .cn-tabs .woocommerce-Tabs-panel {
	padding: clamp(20px, 3vw, 34px);
	margin: 0;
	background: var(--cn-white);
	border: 1px solid var(--cn-line-soft);
	border-radius: var(--cn-radius-lg);
}

body.cn-theme .woocommerce-Tabs-panel > h2 { margin-top: 0; font-size: clamp(22px, 2.4vw, 28px); }

@media (max-width: 720px) {
	body.cn-theme .cn-topbar__inner { justify-content: center; }
}

/* ---------- Responsive: ficha de producto en una sola columna ---------- */

@media (max-width: 1024px) {
	/* En pantallas chicas apilamos con flex: evita las columnas implícitas
	   que dejaba grid-column y los solapes por los márgenes de WooCommerce. */
	body.cn-theme.single-product div.product,
	body.cn-theme .cn-single-product__grid {
		display: flex;
		flex-direction: column;
		gap: clamp(18px, 4vw, 30px);
	}

	body.cn-theme.single-product div.product > *,
	body.cn-theme .cn-single-product__grid > * {
		flex: 0 0 auto;   /* sin esto los bloques se comprimen y se solapan */
		width: 100%;
		max-width: 100%;
		min-height: 0;
		float: none;
		margin-left: 0;
		margin-right: 0;
	}

	body.cn-theme.single-product div.product > .woocommerce-product-gallery,
	body.cn-theme.single-product div.product > .summary { margin-bottom: 0; }

	body.cn-theme.single-product div.product > .clear { display: none; }

	/* La galería deja de ser pegajosa: hay que anular también el desplazamiento
	   (con position: relative de WooCommerce, "top" la corría sobre el título). */
	body.cn-theme .woocommerce-product-gallery,
	body.cn-theme .cn-gallery {
		position: static;
		top: auto;
	}
}

/* ---------- Catálogo en teléfonos: dos columnas compactas -------------- */

@media (max-width: 720px) {
	body.cn-theme .cn-products,
	body.cn-theme ul.products { --cn-cols: 2; gap: 12px; }

	body.cn-theme .cn-card__media { padding: 10px; }
	body.cn-theme .cn-card__body { padding: 12px 12px 14px; gap: 6px; }
	body.cn-theme .cn-card__cat { font-size: 10px; letter-spacing: .08em; }
	body.cn-theme .cn-card__title { font-size: 15px; line-height: 1.2; }
	body.cn-theme .cn-card__excerpt { display: none; }
	body.cn-theme .cn-card__price { font-size: 18px; gap: 4px; }
	body.cn-theme .cn-card__price-note { font-size: 10px; }
	body.cn-theme .cn-card__foot { padding-top: 10px; gap: 8px; }
	body.cn-theme .cn-card__cta .button { padding: 10px 12px; font-size: 13px; }

	/* La vista en lista sí ocupa todo el ancho */
	body.cn-theme .cn-products[data-view="list"] { --cn-cols: 1; }
}

@media (max-width: 360px) {
	body.cn-theme .cn-products,
	body.cn-theme ul.products { --cn-cols: 1; }
}

/* ---------- Tablas de WooCommerce en teléfonos ------------------------- */

@media (max-width: 720px) {
	/* Carrito, pedidos y descargas: cada fila pasa a ser una tarjeta. */
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table),
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) tbody,
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) tfoot,
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) tr,
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td,
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) th {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) thead { display: none; }

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) tr {
		position: relative;
		padding: 14px 44px 14px 14px;
		border-top: 1px solid var(--cn-line-soft);
	}

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) tr:first-child { border-top: 0; }

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 5px 0;
		border: 0;
		text-align: right;
		overflow-wrap: anywhere;
	}

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td::before {
		content: attr(data-title);
		flex: none;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--cn-green);
		text-align: left;
	}

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-thumbnail { justify-content: flex-start; }
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-thumbnail::before,
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-remove::before,
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.actions::before { content: none; }
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-thumbnail img { width: 72px; }

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-remove {
		position: absolute;
		top: 12px;
		right: 12px;
		width: auto;
		padding: 0;
	}

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-name { display: block; text-align: left; font-weight: 600; }
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.product-name::before { display: none; }

	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.actions { display: grid; gap: 10px; text-align: left; }
	body.cn-theme table.shop_table:not(.woocommerce-checkout-review-order-table) td.actions .button { width: 100%; }
	body.cn-theme .woocommerce-cart-form .coupon { flex-wrap: wrap; }
	body.cn-theme .woocommerce-cart-form .coupon #coupon_code { width: 100%; }
	body.cn-theme .woocommerce-cart-form .coupon .button { width: 100%; }

	body.cn-theme .woocommerce-cart-form .quantity { margin-left: auto; }

	/* Resumen del pedido en el checkout: tabla fluida, sin mínimos. */
	body.cn-theme table.woocommerce-checkout-review-order-table { table-layout: fixed; width: 100%; }
	body.cn-theme table.woocommerce-checkout-review-order-table th,
	body.cn-theme table.woocommerce-checkout-review-order-table td {
		padding: 12px 10px;
		overflow-wrap: anywhere;
		word-break: break-word;
	}
	body.cn-theme table.woocommerce-checkout-review-order-table td { text-align: right; }
	body.cn-theme table.woocommerce-checkout-review-order-table .product-name { text-align: left; }
	body.cn-theme .order-total .amount,
	body.cn-theme .cart-subtotal .amount { font-size: 17px; }

	body.cn-theme .cart-collaterals .cart_totals { width: 100%; }
}

@media (max-width: 720px) {
	/* Totales del carrito: etiqueta a la izquierda, importe a la derecha,
	   sin repetir el rótulo (th + data-title). */
	body.cn-theme .cart_totals table tr {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 0;
		border-top: 1px solid var(--cn-line-soft);
	}

	body.cn-theme .cart_totals table tr:first-child { border-top: 0; }

	body.cn-theme .cart_totals table th {
		width: auto;
		padding: 0;
		background: transparent;
		text-align: left;
	}

	body.cn-theme .cart_totals table td {
		width: auto;
		padding: 0;
		text-align: right;
	}

	body.cn-theme .cart_totals table td::before { content: none; }
	body.cn-theme .cart_totals .wc-proceed-to-checkout .button { width: 100%; }

	/* Cupón y acciones del carrito */
	body.cn-theme .woocommerce-cart-form td.actions { padding: 14px; background: var(--cn-cream); border-radius: var(--cn-radius); }
	body.cn-theme .woocommerce-cart-form .coupon { gap: 8px; margin: 0 0 10px; }
	body.cn-theme .woocommerce-cart-form .coupon .button,
	body.cn-theme .woocommerce-cart-form td.actions > .button { white-space: nowrap; }
	body.cn-theme .woocommerce-cart-form td.actions > .button[disabled] { opacity: .5; }
}

/* WooCommerce aplica sus propias reglas de "tabla responsive" con mucha
   especificidad: acá las ganamos sumando la clase woocommerce del body. */

@media (max-width: 720px) {
	body.cn-theme.woocommerce .cart_totals table.shop_table tr,
	body.cn-theme.woocommerce-page .cart_totals table.shop_table tr {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 0;
		border-top: 1px solid var(--cn-line-soft);
	}

	body.cn-theme.woocommerce .cart_totals table.shop_table tr:first-child,
	body.cn-theme.woocommerce-page .cart_totals table.shop_table tr:first-child { border-top: 0; }

	body.cn-theme.woocommerce .cart_totals table.shop_table th,
	body.cn-theme.woocommerce-page .cart_totals table.shop_table th {
		display: block;
		width: auto;
		padding: 0;
		background: transparent;
		text-align: left;
	}

	body.cn-theme.woocommerce .cart_totals table.shop_table td,
	body.cn-theme.woocommerce-page .cart_totals table.shop_table td {
		display: block;
		width: auto;
		padding: 0;
		text-align: right;
		background: transparent;
	}

	body.cn-theme.woocommerce .cart_totals table.shop_table tr td::before,
	body.cn-theme.woocommerce-page .cart_totals table.shop_table tr td::before { content: none; }

	/* Acciones del carrito: cupón y actualizar, uno debajo del otro */
	body.cn-theme.woocommerce table.cart td.actions,
	body.cn-theme.woocommerce-page table.cart td.actions {
		display: grid;
		gap: 10px;
		padding: 14px;
	}

	body.cn-theme.woocommerce table.cart td.actions .coupon,
	body.cn-theme.woocommerce-page table.cart td.actions .coupon {
		display: grid;
		gap: 8px;
		width: 100%;
		float: none;
		padding: 0;
	}

	body.cn-theme.woocommerce table.cart td.actions .coupon .input-text,
	body.cn-theme.woocommerce table.cart td.actions .coupon .button,
	body.cn-theme.woocommerce table.cart td.actions > .button,
	body.cn-theme.woocommerce-page table.cart td.actions > .button {
		width: 100%;
		float: none;
		margin: 0;
	}
}

@media (max-width: 720px) {
	/* La celda de acciones es una grilla de una sola columna fluida. */
	body.cn-theme.woocommerce table.cart td.actions,
	body.cn-theme.woocommerce-page table.cart td.actions { grid-template-columns: minmax(0, 1fr); }

	body.cn-theme.woocommerce table.cart td.actions .coupon,
	body.cn-theme.woocommerce-page table.cart td.actions .coupon { grid-template-columns: minmax(0, 1fr); }

	body.cn-theme.woocommerce table.cart td.actions .coupon .input-text,
	body.cn-theme.woocommerce-page table.cart td.actions .coupon .input-text {
		width: 100%;
		float: none;
		padding: 13px 16px;
	}

	body.cn-theme.woocommerce table.cart td.actions .coupon .button,
	body.cn-theme.woocommerce-page table.cart td.actions .coupon .button,
	body.cn-theme.woocommerce table.cart td.actions > .button,
	body.cn-theme.woocommerce-page table.cart td.actions > .button { width: 100%; float: none; }
}

/* Botones deshabilitados (por ejemplo "Actualizar carrito" sin cambios) */
body.cn-theme .button[disabled],
body.cn-theme .button:disabled,
body.cn-theme button[disabled] {
	background: var(--cn-cream-2);
	color: rgba(93, 113, 137, .7);
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

@media (max-width: 720px) {
	/* Resumen "Tu pedido": dos columnas con ancho definido para que el
	   nombre del producto no se parta letra por letra. */
	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table { table-layout: auto; }

	body.cn-theme table.woocommerce-checkout-review-order-table th:first-child,
	body.cn-theme table.woocommerce-checkout-review-order-table td:first-child { width: 62%; }

	body.cn-theme table.woocommerce-checkout-review-order-table th:last-child,
	body.cn-theme table.woocommerce-checkout-review-order-table td:last-child { width: 38%; white-space: nowrap; }

	body.cn-theme table.woocommerce-checkout-review-order-table th,
	body.cn-theme table.woocommerce-checkout-review-order-table td {
		overflow-wrap: break-word;
		word-break: normal;
		hyphens: auto;
	}
}

@media (max-width: 720px) {
	/* Resumen del pedido: filas simples (concepto a la izquierda, importe a la
	   derecha) en lugar de una tabla con columnas apretadas. */
	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table,
	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table tbody,
	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table tfoot,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table tbody,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table tfoot {
		display: block;
		width: 100%;
	}

	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table thead,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table thead { display: none; }

	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table tr,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table tr {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 14px;
		width: 100%;
		padding: 12px 0;
		border-top: 1px solid var(--cn-line-soft);
	}

	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table tr:first-child,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table tr:first-child { border-top: 0; }

	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table th,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table th {
		display: block;
		width: auto;
		padding: 0;
		background: transparent;
		text-align: left;
	}

	body.cn-theme.woocommerce table.woocommerce-checkout-review-order-table td,
	body.cn-theme.woocommerce-page table.woocommerce-checkout-review-order-table td {
		display: block;
		width: auto;
		padding: 0;
		text-align: right;
		white-space: nowrap;
	}

	body.cn-theme table.woocommerce-checkout-review-order-table td.product-name,
	body.cn-theme table.woocommerce-checkout-review-order-table th.product-name {
		flex: 1 1 auto;
		text-align: left;
		white-space: normal;
	}
}

/* ---------- Paneles laterales: por encima del aviso y menú apilado ----- */

body.cn-theme .cn-drawer { z-index: 150; }
body.cn-theme .cn-drawer__panel { padding-top: calc(env(safe-area-inset-top, 0px) + 6px); }

body.cn-theme .cn-drawer__body .cn-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin-top: 16px;
}

body.cn-theme .cn-drawer__body .cn-menu > li { border-bottom: 1px solid var(--cn-line-soft); }

body.cn-theme .cn-drawer__body .cn-menu a {
	display: block;
	padding: 14px 4px;
	font-size: 16px;
}

body.cn-theme .cn-drawer__body .cn-menu a::after { display: none; }

body.cn-theme .cn-drawer__body .cn-menu .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	border: 0;
	background: transparent;
	padding: 0 0 8px 14px;
}

/* ---------- Detalles finos para teléfonos ----------------------------- */

body.cn-theme .cn-cats {
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.cn-theme .cn-cats::-webkit-scrollbar { display: none; }
body.cn-theme .cn-cat { scroll-snap-align: start; }

/* El ancla del catálogo no queda tapada por la cabecera pegajosa */
body.cn-theme #catalogo { scroll-margin-top: calc(var(--cn-header-h) + var(--cn-notice-h, 0px) + 12px); }

@media (max-width: 720px) {
	/* El carrusel de categorías se sale del contenedor para poder deslizarse
	   de borde a borde, pero conserva el margen visual. */
	body.cn-theme .cn-cats {
		margin-inline: calc(var(--cn-gutter) * -1);
		padding-inline: var(--cn-gutter);
		gap: 16px;
	}

	body.cn-theme .cn-wa-float {
		width: 50px;
		height: 50px;
		right: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	}

	body.cn-theme .cn-wa-float .cn-icon { width: 24px; height: 24px; }

	/* Espacio para que el botón flotante no tape el final del contenido */
	body.cn-theme .cn-footer__bottom-inner { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }

	body.cn-theme .cn-page-header { padding-top: 22px; }
	body.cn-theme .cn-toolbar { padding: 14px; }
	body.cn-theme .cn-buybox { padding: 16px; }
	body.cn-theme .cn-hero__frame { border-radius: 150px 150px 24px 24px; }
}

/* Imágenes que llenan su marco. `body.cn-theme img` y `.woocommerce img`
   fijan `height: auto` con más especificidad que estas reglas, y la foto
   quedaba corta dentro del marco (la portada mostraba una franja vacía). */
body.cn-theme .cn-hero__frame img,
body.cn-theme .cn-marca__media img,
body.cn-theme .cn-cat__ring img,
body.cn-theme .cn-card__media img,
body.cn-theme .cn-gallery__main img,
body.cn-theme .cn-gallery__thumb img { height: 100%; }

/* El selector de categoría del buscador cortaba "Todo el catálogo": el
   relleno para la flecha (54px) dejaba 106px de texto dentro de los 160px. */
body.cn-theme .cn-search__cat select { max-width: 190px; }

/* Aviso de precios sin IVA en el flujo de la página (antes era fixed y el
   sitio se corría con JS al cargar: eso era el CLS de categorías y productos). */
:root { --cn-notice-h: 0px !important; }
body.cn-theme p.demo_store,
body.cn-theme .woocommerce-store-notice { position: relative; top: auto; display: block; }
body.cn-theme.woocommerce-demo-store { padding-top: 0; }
body.cn-theme.woocommerce-demo-store .cn-header__main { top: 0; }
html.cn-notice-off .woocommerce-store-notice { display: none !important; }

/* Botón de compra deshabilitado (producto con variantes sin elegir): con los
   colores de la marca en vez del lila por defecto de WooCommerce. */
body.cn-theme .single_add_to_cart_button.disabled,
body.cn-theme .single_add_to_cart_button:disabled {
	background: var(--cn-gold) !important;
	color: var(--cn-green-deep) !important;
	opacity: .45;
	cursor: not-allowed;
}

/* Respaldo con las mismas medidas que Poppins y Fraunces (size-adjust y
   overrides en inc/performance.php): si la fuente llega después del primer
   pintado, el texto no cambia de tamaño y la página no salta. */
:root {
	--cn-font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
	--cn-font-ui: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
