/* =========================================================================
   Tienda 2.0 — hoja de estilos única
   -------------------------------------------------------------------------
   El CSS por defecto de WooCommerce y el del plugin Farmacia Ecommerce están
   desactivados: este archivo estiliza WooCommerce y los componentes de los
   plugins (pv-*, clat-*, pv-receta-*).

    1  Tokens             12  Ficha de producto
    2  Base               13  Selector de cantidad
    3  Primitivas         14  Carrito
    4  Barra superior     15  Checkout
    5  Masthead           16  Pedido recibido
    6  Menú categorías    17  Cuenta, login, legales
    7  Sub-navegación     18  Avisos de WooCommerce
    8  Cajón móvil        19  Carrito lateral del tema
    9  Home               20  Pie
   10  Carruseles         21  Barra de compra móvil
   11  Tarjeta y catálogo 22  Responsive
   ========================================================================= */

/* 1 ─── Tokens ─────────────────────────────────────────────────────────── */

:root {
	/* Postoverde: verde del logo (oscurecido para contraste AA con texto blanco) y azul del logo */
	--brand: #00853a;
	--brand-ink: #00682d;
	--brand-deep: #004920;
	--brand-soft: #e6f3eb;
	--brand-tint: #f2f9f5;
	--navy: #182a8c;
	--navy-deep: #111d63;

	--sale: #d6245f;
	--sale-soft: #fce8ef;

	--ink: #16211d;
	--ink-2: #46524d;
	--ink-3: #77827d;
	--line: #e1e6e4;
	--line-2: #edf0ef;
	--canvas: #f3f5f4;
	--bg: #ffffff;

	--ok: #157347;
	--ok-soft: #e4f4ea;
	--warn: #9a5800;
	--warn-soft: #fdf1de;
	--info: #1d4f91;
	--info-soft: #e6eefa;

	--font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--r-xs: 6px;
	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 20px;
	--pill: 999px;

	--shell: 1280px;
	--gutter: 20px;
	--header-h: 84px;

	--sh-card: 0 1px 2px rgba(16, 33, 27, .04), 0 2px 6px rgba(16, 33, 27, .04);
	--sh-hover: 0 14px 32px -12px rgba(16, 33, 27, .22);
	--sh-pop: 0 22px 56px -16px rgba(16, 33, 27, .32);

	--ease: cubic-bezier(.2, 0, 0, 1);

	/* El plugin de recetas lee estas variables */
	--pv-receta-verde: var(--brand);
	--pv-receta-verde-suave: var(--brand-tint);
	--pv-receta-ambar: var(--warn);
	--pv-receta-ambar-suave: #fffaf1;
	--pv-receta-borde: var(--line);
	--pv-receta-texto: var(--ink);
	--pv-receta-tenue: var(--ink-3);
}

/* 2 ─── Base ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.has-canvas { background: var(--canvas); }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 18px; height: 18px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: -9999px; z-index: 200;
	padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

body.is-locked { overflow: hidden; }

/* 3 ─── Primitivas ─────────────────────────────────────────────────────── */

.shell {
	width: 100%;
	max-width: calc(var(--shell) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.icon { width: 22px; height: 22px; flex: none; }

.btn,
.button,
button.button,
input.button,
a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--bg);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover,
.button:hover { border-color: var(--ink-3); }

.btn--primary,
.button.alt,
.button.checkout-button,
.woocommerce-button.button {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}
.btn--primary:hover,
.button.alt:hover,
.woocommerce-button.button:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }

.btn--ghost { background: transparent; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

.button:disabled,
.button.disabled,
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 0; border-radius: var(--pill);
	background: none; color: var(--ink);
	cursor: pointer;
}
.icon-btn:hover { background: var(--brand-tint); color: var(--brand-ink); }

.input-text,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
	font-size: 15px;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea,
textarea.input-text { min-height: 96px; padding: 12px 14px; resize: vertical; }
select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346524d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}
.input-text:focus,
input:focus:not([type="checkbox"]):not([type="radio"]),
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px var(--brand-tint);
}

.section { margin-top: 44px; }
.section__title { font-size: 22px; font-weight: 800; margin: 0 0 18px; }

.panel {
	background: var(--bg);
	border-radius: var(--r-lg);
	padding: 24px 28px;
	box-shadow: var(--sh-card);
}
.panel__head { margin-bottom: 8px; }
.panel__title { font-size: 22px; font-weight: 800; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel__count { font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* 4 ─── Barra superior ─────────────────────────────────────────────────── */

.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__msg { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.topbar__msg .icon { width: 18px; height: 18px; opacity: .9; }
.topbar__msg a { text-decoration: underline; text-underline-offset: 2px; }
.topbar__links { display: flex; gap: 22px; list-style: none; margin-left: auto; }
.topbar__links a { opacity: .85; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* 5 ─── Masthead ───────────────────────────────────────────────────────── */

.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--line-2);
	transition: box-shadow .2s var(--ease);
}
.admin-bar .masthead { top: 32px; }
/* La barra de WordPress mide 46px en tablets y en celulares (<600px) no queda
   fija: se va con el scroll, así que el header debe pegarse arriba del todo. */
@media (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }
.masthead.is-stuck { box-shadow: 0 6px 20px -10px rgba(16, 33, 27, .25); }

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.masthead__burger { display: none; margin-left: -10px; }

.site-brand { flex: none; }
.site-brand img,
.site-brand .custom-logo { max-height: 52px; width: auto; }
.site-brand__text { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }

.catbtn {
	display: inline-flex; align-items: center; gap: 8px;
	flex: none;
	height: 46px;
	padding: 0 16px 0 14px;
	border: 1.5px solid var(--brand);
	border-radius: var(--pill);
	background: var(--bg);
	color: var(--brand-ink);
	font-size: 14px; font-weight: 700;
	cursor: pointer;
	transition: background .15s var(--ease);
}
.catbtn .icon { width: 18px; height: 18px; }
.catbtn__caret { transition: transform .2s var(--ease); }
.catbtn:hover,
.catbtn[aria-expanded="true"] { background: var(--brand-tint); }
.catbtn[aria-expanded="true"] .catbtn__caret { transform: rotate(180deg); }

.masthead__search { flex: 1; min-width: 0; max-width: 680px; }

.searchbar { position: relative; display: flex; align-items: center; }
.searchbar__input {
	height: 50px;
	padding: 0 56px 0 20px;
	border: 1.5px solid transparent;
	border-radius: var(--r-md);
	background: var(--brand-tint);
	font-size: 15px;
}
.searchbar__input::placeholder { color: var(--ink-3); }
.searchbar__input:focus { background: var(--bg); }
.searchbar__input::-webkit-search-cancel-button { display: none; }
.searchbar__submit {
	position: absolute; right: 5px;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border: 0; border-radius: var(--r-sm);
	background: var(--brand); color: #fff;
	cursor: pointer;
}
.searchbar__submit:hover { background: var(--brand-ink); }
.searchbar__submit .icon { width: 20px; height: 20px; }

.masthead__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.account {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 10px 6px 6px;
	border-radius: var(--pill);
	transition: background .15s var(--ease);
}
.account:hover { background: var(--brand-tint); }
.account__icon {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--brand-tint); color: var(--brand);
}
.account__icon .icon { width: 20px; height: 20px; }
.account__text { display: flex; flex-direction: column; line-height: 1.2; }
.account__hello { font-size: 12px; color: var(--ink-3); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.account__action { font-size: 14px; font-weight: 700; white-space: nowrap; }

.cart-toggle {
	position: relative;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	color: var(--ink);
	transition: background .15s var(--ease);
}
.cart-toggle:hover { background: var(--brand-tint); color: var(--brand-ink); }
.cart-toggle .icon { width: 26px; height: 26px; }
.cart-toggle__count {
	position: absolute; top: 3px; right: 2px;
	min-width: 20px; height: 20px; padding: 0 6px;
	display: grid; place-items: center;
	border: 2px solid var(--bg);
	border-radius: var(--pill);
	background: var(--sale); color: #fff;
	font-size: 11px; font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.cart-toggle__count.is-empty { display: none; }

.masthead__secure { display: none; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 14px; font-weight: 600; color: var(--ok); }
.masthead__secure .icon { width: 18px; height: 18px; }

/* Checkout: header reducido */
.checkout-focus .topbar,
.checkout-focus .subnav,
.checkout-focus .catbtn,
.checkout-focus .masthead__search,
.checkout-focus .masthead__actions,
.checkout-focus .masthead__burger { display: none; }
.checkout-focus .masthead__secure { display: flex; }
.checkout-focus .masthead { position: static; }

/* 6 ─── Menú de categorías (escritorio) ────────────────────────────────── */

.catmenu {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--bg);
	border-top: 1px solid var(--line-2);
	box-shadow: var(--sh-pop);
}
.catmenu[hidden] { display: none; }
.catmenu__inner { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 360px; max-height: min(70vh, 560px); }

.catmenu__parents {
	list-style: none;
	padding: 14px 12px 14px 0;
	border-right: 1px solid var(--line-2);
	overflow-y: auto;
}
.catmenu__parent {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 14px;
	border-radius: var(--r-sm);
	font-size: 15px; font-weight: 600; color: var(--ink-2);
	text-decoration: none !important;
}
.catmenu__parent .icon { width: 16px; height: 16px; color: var(--ink-3); }
.catmenu__parent:hover,
.catmenu__parent.is-active { background: var(--brand-tint); color: var(--brand-ink); }
.catmenu__parent.is-active .icon { color: var(--brand); }

.catmenu__panels { padding: 22px 0 22px 32px; overflow-y: auto; }
.catmenu__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.catmenu__title { margin: 0; font-size: 22px; font-weight: 800; }
.catmenu__all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.catmenu__all .icon { width: 16px; height: 16px; }
.catmenu__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.catmenu__children { list-style: none; columns: 3 200px; column-gap: 32px; }
.catmenu__children li { break-inside: avoid; }
.catmenu__children a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.catmenu__count { flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.catmenu__desc { max-width: 62ch; margin: -6px 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.catmenu__children a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.catmenu__empty { color: var(--ink-3); }

/* 7 ─── Sub-navegación ─────────────────────────────────────────────────── */

.subnav { background: var(--bg); border-bottom: 1px solid var(--line-2); }
.subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; }
.subnav__links,
.subnav__chips { display: flex; align-items: center; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav__links::-webkit-scrollbar,
.subnav__chips::-webkit-scrollbar { display: none; }
.subnav__links { gap: 26px; }
.subnav__links a {
	display: block; padding: 15px 0 13px;
	border-bottom: 2px solid transparent;
	font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.subnav__links a:hover,
.subnav__links .current-menu-item > a { color: var(--brand-ink); border-bottom-color: var(--brand); }
.subnav__chips { gap: 8px; margin-left: auto; }
.subnav__chips a {
	display: block; padding: 7px 14px;
	border-radius: var(--pill);
	background: var(--canvas);
	font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.subnav__chips a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.subnav__chips li:first-child a { background: var(--sale-soft); color: var(--sale); }

/* 8 ─── Cajón móvil ────────────────────────────────────────────────────── */

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10, 20, 16, .45); opacity: 0; transition: opacity .25s var(--ease); }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0;
	display: flex; flex-direction: column;
	width: min(370px, 88vw);
	background: var(--bg);
	box-shadow: var(--sh-pop);
	transform: translateX(-100%);
	transition: transform .28s var(--ease);
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 16px; background: var(--brand-tint); }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px 32px; overscroll-behavior: contain; }
.drawer__label { margin: 8px 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.drawer__cats { list-style: none; }
.drawer__cats summary,
.drawer__cat {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 2px;
	border-bottom: 1px solid var(--line-2);
	font-size: 16px; font-weight: 600;
	cursor: pointer; list-style: none;
}
.drawer__cats summary::-webkit-details-marker { display: none; }
.drawer__cats summary .icon { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.drawer__cats details[open] summary { color: var(--brand-ink); }
.drawer__cats details[open] summary .icon { transform: rotate(180deg); }
.drawer__cats details ul { list-style: none; padding: 6px 0 10px 12px; border-bottom: 1px solid var(--line-2); }
.drawer__cats details a { display: block; padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.drawer__cats details a.is-all { color: var(--brand); font-weight: 700; }
.drawer__links { list-style: none; margin-top: 16px; }
.drawer__links a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* 9 ─── Home ───────────────────────────────────────────────────────────── */

.home { padding-bottom: 24px; }

/* Slider */
.hero { position: relative; margin-top: 20px; }
.hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--r-lg);
	background: var(--canvas);
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.hero__slide img { width: 100%; height: auto; aspect-ratio: 1200 / 400; object-fit: cover; }
.hero__arrow {
	position: absolute; top: calc(50% - 16px); transform: translateY(-50%);
	display: grid; place-items: center;
	width: 46px; height: 46px;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .94); color: var(--ink);
	box-shadow: var(--sh-hover);
	cursor: pointer;
	transition: transform .15s var(--ease);
}
.hero__arrow:hover { transform: translateY(-50%) scale(1.06); }
.hero__arrow--prev { left: calc(var(--gutter) + 16px); }
.hero__arrow--next { right: calc(var(--gutter) + 16px); }
.hero__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero__dot {
	width: 8px; height: 8px; padding: 0;
	border: 0; border-radius: var(--pill);
	background: var(--line);
	cursor: pointer;
	transition: width .25s var(--ease), background .25s var(--ease);
}
.hero__dot.is-active { width: 28px; background: var(--brand); }

/* Portada sin banners */
.hero-text { margin-top: 20px; }
.hero-text__inner {
	padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
	border-radius: var(--r-lg);
	background: linear-gradient(120deg, var(--brand-soft), var(--brand-tint) 70%);
}
.hero-text__title { max-width: 16ch; font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--brand-deep); }
.hero-text__lead { max-width: 46ch; font-size: 18px; color: var(--ink-2); margin-bottom: 26px; }

/* Categorías */
.cat-circles {
	display: flex;
	gap: 18px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circles li { flex: 0 0 auto; scroll-snap-align: start; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 112px; text-align: center; }
.cat-circle__img {
	display: grid; place-items: center;
	width: 100px; height: 100px;
	border-radius: 50%;
	background: var(--brand-tint);
	overflow: hidden;
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle__initial { font-size: 34px; font-weight: 800; color: var(--brand); }
.cat-circle:hover .cat-circle__img { box-shadow: 0 0 0 3px var(--brand); transform: translateY(-2px); }
.cat-circle__name {
	max-width: 100%;
	-webkit-hyphens: auto; hyphens: auto;
	font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Banners secundarios */
.promos { display: grid; gap: 16px; list-style: none; }
.promos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.promo { display: block; overflow: hidden; border-radius: var(--r-md); background: var(--canvas); }
.promo img { width: 100%; height: auto; transition: transform .4s var(--ease); }
a.promo:hover img { transform: scale(1.025); }

/* Confianza */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; }
.trust__item {
	display: flex; align-items: center; gap: 14px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--bg);
}
.trust__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.trust__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.trust__text { display: block; font-size: 13px; color: var(--ink-3); }

/* Marcas */
.brand-strip { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.brand-strip a {
	display: block; padding: 11px 20px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--bg);
	font-size: 14.5px; font-weight: 700; color: var(--ink-2);
}
.brand-strip a:hover { border-color: var(--brand); color: var(--brand-ink); }

/* 10 ─── Carruseles (marcado del plugin Farmacia Ecommerce) ─────────────────── */

.pv-seccion { margin: 0; }
.pv-seccion__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pv-seccion__titulo { margin: 0; font-size: 22px; font-weight: 800; }
.pv-seccion__acciones { display: flex; align-items: center; gap: 8px; flex: none; }
.pv-seccion__vertodo { margin-right: 8px; font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.pv-seccion__vertodo:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-carrusel__flecha {
	display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--bg); color: var(--ink);
	cursor: pointer;
	transition: border-color .15s var(--ease), color .15s var(--ease), opacity .15s var(--ease);
}
.pv-carrusel__flecha svg { width: 18px; height: 18px; }
.pv-carrusel__flecha:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.pv-carrusel__flecha[disabled] { opacity: .35; cursor: default; }

.pv-carrusel { position: relative; }
.pv-carrusel ul.products,
.pv-carrusel .pv-pista {
	display: flex !important;
	gap: 16px;
	margin: -6px -6px 0;
	padding: 6px 6px 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	list-style: none;
}
.pv-carrusel ul.products::-webkit-scrollbar,
.pv-carrusel .pv-pista::-webkit-scrollbar { display: none; }
.pv-carrusel ul.products li.product { flex: 0 0 calc((100% - 64px) / 5); min-width: 0; scroll-snap-align: start; }

/* Convenios */
.pv-convenio {
	flex: 0 0 180px;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 20px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--bg);
	text-align: center;
	scroll-snap-align: start;
	transition: border-color .15s var(--ease), box-shadow .2s var(--ease);
}
.pv-convenio:hover { border-color: transparent; box-shadow: var(--sh-hover); }
.pv-convenio__marco { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; }
.pv-convenio__marco img { max-width: 130px; max-height: 56px; width: auto; object-fit: contain; }
.pv-convenio__inicial { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 21px; font-weight: 800; }
.pv-convenio__nombre { font-size: 14px; font-weight: 700; line-height: 1.3; }
.pv-convenio__dscto { padding: 4px 10px; border-radius: var(--pill); background: var(--sale-soft); color: var(--sale); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pv-grilla-convenios .pv-convenios { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }

/* Aviso del plugin para el staff (categoría inexistente, etc.) */
.pv-aviso { padding: 12px 16px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 14px; }

/* 11 ─── Tarjeta y catálogo ────────────────────────────────────────────── */

ul.products {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
}
ul.products.columns-2 { --cols: 2; }
ul.products.columns-3 { --cols: 3; }
ul.products.columns-5 { --cols: 5; }
ul.products.columns-6 { --cols: 6; }

li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--bg);
	overflow: hidden;
	transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
li.product:hover { border-color: transparent; box-shadow: var(--sh-hover); }

.card__media { position: relative; padding: 16px 16px 6px; }
.card__img { display: block; aspect-ratio: 1; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
li.product:hover .card__img img { transform: scale(1.03); }

.badges {
	position: absolute; top: 12px; left: 12px; right: 12px;
	display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap;
	pointer-events: none;
}
.badge {
	display: inline-flex; align-items: center;
	padding: 4px 9px;
	border-radius: var(--pill);
	font-size: 11.5px; font-weight: 800; line-height: 1.2;
}
.badge--sale {
	order: 9;
	margin-left: auto;
	display: grid; place-items: center;
	width: 48px; height: 48px; padding: 0;
	border-radius: 50%;
	background: var(--sale); color: #fff;
	font-size: 14px; letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 4px 12px -4px rgba(214, 36, 95, .55);
}
.badge--new { background: var(--brand); color: #fff; }
.badge--rx { background: var(--warn-soft); color: var(--warn); }

.card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 6px 16px 0; }
.card__brand {
	margin: 0;
	min-height: 1.3em;
	font-size: 12px; font-weight: 800; line-height: 1.3;
	letter-spacing: .03em; text-transform: uppercase;
	color: var(--brand);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__title {
	margin: 0;
	min-height: calc(1.35em * 2);
	font-size: 14.5px; font-weight: 500; line-height: 1.35; letter-spacing: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__title a:hover { color: var(--brand-ink); }
.card__body .pv-receta-badge { align-self: flex-start; margin-top: 2px; }

.stock-hint { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; color: var(--warn); }

.card__cta { padding: 12px 16px 16px; }
.card__cta .button,
.card__cta .pv-card__boton,
.card__cta .pv-card__receta {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; min-height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--brand);
	border-radius: var(--pill);
	background: var(--brand);
	color: #fff;
	font-size: 14.5px; font-weight: 800;
}
.card__cta .button:hover,
.card__cta .pv-card__boton:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.card__cta .pv-btn-in,
.card__cta .tienda-btn-in { display: inline-flex; align-items: center; gap: 8px; }
.card__cta svg,
.card__cta .icon { width: 18px; height: 18px; }
.card__cta .button.loading { opacity: .65; pointer-events: none; }
.card__cta .button.added { background: var(--brand-ink); }
.card__cta .added_to_cart { display: none; }
.card__cta .pv-card__boton--off,
.card__cta .pv-card__boton--off:hover { background: var(--line-2); border-color: var(--line-2); color: var(--ink-3); cursor: not-allowed; }
.card__cta .pv-card__boton--ver,
.card__cta .button.product_type_variable,
.card__cta .button:not(.add_to_cart_button):not(.ajax_add_to_cart) { background: var(--bg); color: var(--brand-ink); }
.card__cta .pv-card__boton--ver:hover,
.card__cta .button:not(.add_to_cart_button):not(.ajax_add_to_cart):hover { background: var(--brand-tint); }
.card__cta .pv-card__receta { background: var(--warn-soft); border-color: var(--warn-soft); color: var(--warn); font-size: 13.5px; }

/* Precio */
.price-block { display: flex; flex-direction: column; gap: 1px; margin-top: auto; padding-top: 8px; }
.price-block__was { font-size: 12.5px; color: var(--ink-3); }
.price-block__was del { text-decoration-thickness: 1px; }
.price-block__label { font-weight: 500; }
.price-block__now { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price-block__now ins { text-decoration: none; }
.price-block__now.is-sale { color: var(--sale); }
.price-block__now del { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.price-block__pct {
	padding: 4px 9px;
	border-radius: var(--pill);
	background: var(--sale); color: #fff;
	font-size: 13px; font-weight: 800;
}
.price-block__conv { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.price-block__conv-tag { padding: 2px 8px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-ink); font-size: 11.5px; font-weight: 800; }
.price-block__conv-val { font-size: 14.5px; font-weight: 800; color: var(--brand-ink); }
.woocommerce-Price-currencySymbol { margin-right: 1px; }

/* Insignia del plugin de recetas */
.pv-receta-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px;
	border-radius: var(--pill);
	background: var(--warn-soft); color: var(--warn);
	font-size: 12px; font-weight: 700;
}
.pv-receta-badge--simple { background: var(--info-soft); color: var(--info); }

/* Catálogo */
.shop-shell { padding-block: 18px 56px; }
.breadcrumb,
.woocommerce-breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin-bottom: 16px;
	font-size: 13.5px; color: var(--ink-3);
}
.breadcrumb a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb__sep { color: var(--line); font-size: 16px; }

.archive-head { margin-bottom: 20px; }
.archive-head__title { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.archive-head .term-description,
.archive-head .page-description { max-width: 72ch; margin-top: 6px; color: var(--ink-2); }

/* Accesos a subcategorías */
.subcats { margin: -4px 0 22px; }
.subcats__list {
	display: flex; gap: 10px;
	margin: 0; padding: 2px 2px 8px;
	list-style: none;
	overflow-x: auto; scrollbar-width: none;
	scroll-snap-type: x proximity;
}
.subcats__list::-webkit-scrollbar { display: none; }
.subcats__list li { flex: none; scroll-snap-align: start; }
.subcat {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 16px 6px 6px;
	border-radius: 999px;
	background: var(--bg);
	box-shadow: var(--sh-card);
	white-space: nowrap;
	transition: box-shadow .15s var(--ease), background .15s var(--ease);
}
.subcat:hover { box-shadow: var(--sh-card), inset 0 0 0 2px var(--line); }
.subcat.is-active { background: var(--brand-tint); box-shadow: inset 0 0 0 2px var(--brand); }
.subcat__img {
	display: grid; place-items: center;
	flex: none; width: 44px; height: 44px;
	border-radius: 50%; overflow: hidden;
	background: var(--brand-tint);
}
.subcat__img img { width: 100%; height: 100%; object-fit: cover; }
.subcat__initial { font-weight: 800; color: var(--brand); }
.subcat__name { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.subcat__count { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-3); }

.shop-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.no-filters .shop-layout { grid-template-columns: minmax(0, 1fr); }

.filters {
	position: sticky; top: calc(var(--header-h) + 16px);
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--bg);
}
.filters__head { display: none; }
.filters__title { margin: 0; font-size: 18px; }
.filter-group { padding-block: 16px; border-top: 1px solid var(--line-2); }
.filter-group:first-child { padding-top: 0; border-top: 0; }
.filter-group__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.filter-group ul { list-style: none; }
.filter-group li { padding-block: 4px; font-size: 14px; color: var(--ink-2); }
.filter-group li a:hover { color: var(--brand-ink); }
.filter-group .count { color: var(--ink-3); font-size: 12.5px; }
.filter-group .children { padding-left: 12px; }
.filter-group .chosen a,
.filter-group .current-cat > a { color: var(--brand-ink); font-weight: 700; }

/* Filtro de precio de WooCommerce (jQuery UI) */
.price_slider { position: relative; height: 4px; margin: 14px 8px 20px; border-radius: var(--pill); background: var(--line); }
.price_slider .ui-slider-range { position: absolute; top: 0; height: 100%; border-radius: var(--pill); background: var(--brand); }
.price_slider .ui-slider-handle {
	position: absolute; top: -8px; z-index: 2;
	width: 20px; height: 20px; margin-left: -10px;
	border: 2px solid var(--brand); border-radius: 50%;
	background: var(--bg); cursor: grab;
}
.price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.price_slider_amount .button { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.price_slider_amount input { display: none; }

.results-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-bottom: 16px;
}
.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--ink-3); }
.results-bar__actions { display: flex; align-items: center; gap: 10px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 42px; min-width: 220px; border-radius: var(--pill); font-size: 14px; font-weight: 600; }
.filters-toggle { display: none; }
.filters-toggle .icon { width: 18px; height: 18px; }

.woocommerce-pagination { margin-top: 36px; }
.woocommerce-pagination ul,
.pagination__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; }
.woocommerce-pagination .page-numbers,
.pagination__item a,
.pagination__item span {
	display: grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--bg);
	font-size: 14px; font-weight: 700;
}
.woocommerce-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-ink); }
.woocommerce-pagination .page-numbers.current,
.pagination__item .current { border-color: var(--brand); background: var(--brand); color: #fff; }

.empty-state {
	padding: 56px 24px;
	border: 1.5px dashed var(--line);
	border-radius: var(--r-lg);
	background: var(--bg);
	text-align: center;
}
.empty-state__title { font-size: 22px; }
.empty-state__text { color: var(--ink-2); }

/* 12 ─── Ficha de producto ─────────────────────────────────────────────── */

.single-product .shop-main { min-width: 0; }

/* La ficha apila tres bloques: .product-hero (galería + resumen), pestañas y
   relacionados. La galería es sticky solo dentro de .product-hero, así se
   detiene donde termina el resumen y no se monta sobre la descripción. */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.product-hero > .woocommerce-product-gallery,
.product-hero > .pv-ficha__galeria {
	grid-column: 1;
	position: sticky;
	top: calc(var(--header-h) + 16px);
	padding: 24px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
}
.product-hero > .summary {
	grid-column: 2;
	padding: 28px 32px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
}
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .upsells { grid-column: 1; min-width: 0; }
.single-product div.product > .clear { display: none; }

/* Galería de WooCommerce */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--r-md); }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 72px; }
.woocommerce-product-gallery .flex-control-thumbs img {
	aspect-ratio: 1; object-fit: contain;
	border: 1.5px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg);
	opacity: .65;
	cursor: pointer;
	transition: opacity .15s var(--ease), border-color .15s var(--ease);
}
.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--brand); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; right: 12px; z-index: 5;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--bg);
	box-shadow: var(--sh-card);
	font-size: 0;
}
.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 20px; height: 20px;
	background: var(--ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-product-gallery__trigger span { display: none; }

/* Galería propia del plugin (si se vuelve a activar con el filtro tienda_use_wc_gallery) */
.pv-galeria { position: relative; }
.pv-galeria__slide { display: none; margin: 0; }
.pv-galeria__slide.is-activa { display: block; }
.pv-galeria__slide img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pv-galeria__flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); box-shadow: var(--sh-card); cursor: pointer; }
.pv-galeria__flecha--prev { left: 0; }
.pv-galeria__flecha--next { right: 0; }
.pv-galeria__contador { position: absolute; bottom: 0; right: 0; padding: 4px 10px; border-radius: var(--pill); background: var(--canvas); font-size: 12px; font-weight: 700; }

/* Resumen */
.summary > :last-child { margin-bottom: 0; }

.single-brand,
.pv-ficha__lab {
	margin: 0 0 6px;
	font-size: 13px; font-weight: 800;
	letter-spacing: .03em; text-transform: uppercase;
	color: var(--brand);
}
.summary .product_title { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; }

.pv-ficha__sellos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pv-sello { padding: 5px 11px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; }
.pv-sello--bio { background: var(--info-soft); color: var(--info); }
.pv-sello--receta { background: var(--warn-soft); color: var(--warn); }
.pv-sello--directa { background: var(--ok-soft); color: var(--ok); }
.summary > .pv-receta-badge { margin-bottom: 10px; }

.single-sku { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); }
.single-sku span { font-variant-numeric: tabular-nums; }

.price-block--single { margin: 0 0 18px; padding: 18px 0; border-block: 1px solid var(--line-2); gap: 4px; }
.price-block--single .price-block__was { font-size: 14.5px; }
.price-block--single .price-block__now { font-size: clamp(30px, 3.4vw, 38px); letter-spacing: -.02em; }
.price-block--single .price-block__conv { margin-top: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--brand-tint); align-self: flex-start; }
.price-block--single .price-block__conv-val { font-size: 19px; }

.pv-ficha__datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 18px; }
.pv-ficha__dato { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--canvas); }
.pv-ficha__dato-label { font-size: 12px; color: var(--ink-3); }
.pv-ficha__dato-valor { font-size: 14px; font-weight: 700; }

.summary .stock { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.summary .stock.low-stock { color: var(--warn); }
.summary .stock.out-of-stock { color: var(--sale); }

.summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.summary form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 54px;
	border: 0;
	border-radius: var(--pill);
	background: var(--brand);
	color: #fff;
	font-size: 16.5px; font-weight: 800;
	cursor: pointer;
	transition: background .15s var(--ease), transform .1s var(--ease);
}
.summary form.cart .single_add_to_cart_button:hover { background: var(--brand-ink); }
.summary form.cart .single_add_to_cart_button:active { transform: scale(.99); }
.summary form.cart .single_add_to_cart_button.loading { opacity: .7; }
.summary form.cart .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }

/* Variables */
.summary form.variations_form { display: block; }
.summary table.variations { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.summary table.variations th,
.summary table.variations td { display: block; padding: 0; text-align: left; }
.summary table.variations label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.summary table.variations td { margin-bottom: 12px; }
.summary .reset_variations { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--ink-3); text-decoration: underline; }
.summary .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.summary .woocommerce-variation-price { margin-bottom: 10px; font-size: 22px; font-weight: 800; }

/* Avisos del plugin cuando no se puede comprar */
.pv-ficha__receta,
.pv-ficha__nodisp {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--r-md);
	background: var(--warn-soft);
	color: var(--warn);
	font-size: 14.5px; font-weight: 700;
}

/* Disponible para */
.delivery { margin-top: 2px; }
.delivery__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.delivery__list { display: grid; gap: 10px; list-style: none; }
.delivery__item {
	display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
}
.delivery__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.delivery__text { display: flex; flex-direction: column; line-height: 1.3; }
.delivery__text strong { font-size: 14.5px; }
.delivery__text span { font-size: 13px; color: var(--ink-3); }
.delivery__status { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 8px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.delivery__status .icon { width: 15px; height: 15px; }
.delivery__status.is-ok { background: var(--ok-soft); color: var(--ok); }
.delivery__status.is-off { background: var(--canvas); color: var(--ink-3); }
.delivery__secure { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.delivery__secure .icon { width: 16px; height: 16px; color: var(--ok); }

.single-cats { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.single-cats a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* Pestañas */
.woocommerce-tabs {
	margin-top: 8px;
	padding: 6px 32px 28px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
}
.woocommerce-tabs ul.tabs { display: flex; gap: 28px; margin: 0 0 20px; padding: 0; border-bottom: 1px solid var(--line); list-style: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li a {
	display: block; padding: 18px 0 14px;
	border-bottom: 2.5px solid transparent;
	margin-bottom: -1px;
	font-size: 15.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--brand); }
.woocommerce-Tabs-panel { max-width: 82ch; color: var(--ink-2); line-height: 1.7; }
/* WooCommerce le pone la clase .panel a cada pestaña: se anula el estilo de tarjeta del tema */
.woocommerce-tabs .woocommerce-Tabs-panel.panel { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce-Tabs-panel h3 { margin-top: 1.4em; color: var(--ink); font-size: 17px; }
.woocommerce-Tabs-panel ul { padding-left: 1.2em; margin-bottom: 1em; }
.pv-sin-desc { color: var(--ink-3); }
table.shop_attributes { width: 100%; border-collapse: collapse; }
table.shop_attributes th,
table.shop_attributes td { padding: 12px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.shop_attributes th { width: 32%; font-weight: 600; color: var(--ink-3); }
table.shop_attributes td p { margin: 0; }

/* Relacionados y sugeridos */
.related,
.upsells,
.cross-sells { margin-top: 32px; }
.related > h2,
.upsells > h2,
.cross-sells > h2 { margin: 0 0 16px; font-size: 22px; font-weight: 800; }

/* 13 ─── Selector de cantidad ──────────────────────────────────────────── */

.qty {
	display: inline-flex; align-items: center;
	height: 54px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--bg);
	overflow: hidden;
}
.qty__btn {
	display: grid; place-items: center;
	width: 46px; height: 100%;
	padding: 0; border: 0;
	background: none; color: var(--ink-2);
	cursor: pointer;
	transition: background .12s var(--ease), color .12s var(--ease);
}
.qty__btn:hover { background: var(--brand-tint); color: var(--brand); }
.qty__btn .icon { width: 18px; height: 18px; }
.qty .qty__input {
	width: 42px; min-height: 0; height: 100%;
	padding: 0; border: 0; border-radius: 0;
	background: none; box-shadow: none !important;
	text-align: center;
	font-size: 16px; font-weight: 800;
	-moz-appearance: textfield; appearance: textfield;
}
.qty .qty__input::-webkit-outer-spin-button,
.qty .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 14 ─── Carrito ───────────────────────────────────────────────────────── */

.steps { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 26px; list-style: none; counter-reset: none; }
.steps__item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.steps__item:not(:last-child)::after { content: ""; width: clamp(24px, 6vw, 72px); height: 2px; margin: 0 8px; border-radius: 2px; background: var(--line); }
.steps__item.is-done:not(:last-child)::after { background: var(--brand); }
.steps__num { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 13px; }
.steps__num .icon { width: 15px; height: 15px; }
.steps__item.is-current { color: var(--ink); }
.steps__item.is-current .steps__num { border-color: var(--brand); background: var(--brand); color: #fff; }
.steps__item.is-done .steps__num { border-color: var(--brand-soft); background: var(--brand-soft); color: var(--brand-ink); }

.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cart-page__main { min-width: 0; }
.cart-page__main > .pv-receta-aviso { margin-bottom: 16px; }

.freeship { margin-bottom: 16px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-card); }
.freeship__text { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; color: var(--ink-2); }
.freeship__text strong { color: var(--ink); }
.freeship__text .icon { color: var(--brand); }
.freeship__track { height: 8px; margin-top: 10px; border-radius: var(--pill); background: var(--brand-tint); overflow: hidden; }
.freeship__fill { display: block; height: 100%; border-radius: var(--pill); background: var(--brand); transition: width .5s var(--ease); }
.freeship.is-done { background: var(--ok-soft); box-shadow: none; }
.freeship.is-done .freeship__text,
.freeship.is-done .freeship__text strong,
.freeship.is-done .icon { color: var(--ok); }
.freeship.is-done .freeship__track { background: rgba(21, 115, 71, .15); }
.freeship.is-done .freeship__fill { background: var(--ok); }

.cart-items { list-style: none; }
.cart-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto 104px 40px;
	grid-template-areas: "media info qty total remove";
	align-items: center;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line-2);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__media { grid-area: media; }
.cart-item__media img { width: 92px; height: 92px; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg); padding: 6px; }
.cart-item__info { grid-area: info; min-width: 0; }
.cart-item__brand { margin: 0 0 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); }
.cart-item__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; }
.cart-item__name:hover { color: var(--brand-ink); }
.cart-item__info .pv-receta-badge { margin-top: 6px; }
.cart-item__info dl.variation { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.cart-item__info dl.variation dd { margin: 0; }
.cart-item__info dl.variation p { margin: 0; }
.cart-item__unit { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.cart-item__qty { grid-area: qty; }
.cart-item__qty .qty { height: 42px; }
.cart-item__qty .qty__btn { width: 38px; }
.cart-item__total { grid-area: total; text-align: right; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-item__remove { grid-area: remove; }
.cart-item__remove a {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	color: var(--ink-3);
	transition: background .15s var(--ease), color .15s var(--ease);
}
.cart-item__remove a:hover { background: var(--sale-soft); color: var(--sale); }
.cart-item__remove .icon { width: 19px; height: 19px; }

.woocommerce-cart-form.processing,
.cart_totals.processing { opacity: .6; pointer-events: none; }

.cart-actions { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.coupon-box summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--brand); cursor: pointer; list-style: none; }
.coupon-box summary::-webkit-details-marker { display: none; }
.coupon-box summary .icon { width: 18px; height: 18px; }
.coupon { display: flex; gap: 8px; margin-top: 12px; max-width: 420px; }
.coupon .input-text { min-height: 46px; }
.js .cart-update { display: none; }

.cart-collaterals { position: sticky; top: calc(var(--header-h) + 16px); }
.cart_totals { padding: 24px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-card); }
.cart_totals > h2 { margin: 0 0 12px; font-size: 19px; font-weight: 800; }

table.shop_table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cart_totals table.shop_table th { padding: 10px 0; font-weight: 500; color: var(--ink-2); text-align: left; vertical-align: top; }
.cart_totals table.shop_table td { padding: 10px 0; font-weight: 700; text-align: right; }
.cart_totals .order-total th,
.cart_totals .order-total td { padding-top: 16px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; color: var(--ink); }
.cart_totals .order-total small,
.cart_totals .includes_tax { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.cart_totals .cart-discount td,
.cart_totals .cart-discount th { color: var(--ok); }
.woocommerce-remove-coupon { margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-decoration: underline; }

/* Métodos de despacho: el título arriba y las opciones como lista, no apretadas en una columna */
tr.woocommerce-shipping-totals { display: flex; flex-direction: column; }
tr.woocommerce-shipping-totals th,
tr.woocommerce-shipping-totals td { display: block; width: 100%; text-align: left !important; }
tr.woocommerce-shipping-totals th { padding-bottom: 4px !important; }
#shipping_method { display: grid; gap: 6px; list-style: none; }
#shipping_method li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 600; }
#shipping_method li:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
#shipping_method li label { flex: 1; display: flex; justify-content: space-between; gap: 8px; cursor: pointer; }
#shipping_method input { flex: none; margin: 0; }
.woocommerce-shipping-destination,
.woocommerce-shipping-contents { margin: 6px 0 0; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.shipping-calculator-button { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: underline; }
.shipping-calculator-form { margin-top: 10px; text-align: left; }
.shipping-calculator-form p { margin-bottom: 8px; }

.wc-proceed-to-checkout { margin-top: 18px; }
.cart-continue { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--brand); }
.cart-continue .icon { width: 18px; height: 18px; }
.cart-continue:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cart-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.cart-secure .icon { width: 15px; height: 15px; color: var(--ok); }

.cart-crosssells { margin-top: 12px; }

.cart-empty-state {
	display: flex; flex-direction: column; align-items: center;
	padding: 56px 24px;
	margin-bottom: 40px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
	text-align: center;
}
.cart-empty-state__icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 16px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.cart-empty-state__icon .icon { width: 38px; height: 38px; }
.cart-empty-state__title { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.cart-empty-state__text { color: var(--ink-2); margin-bottom: 22px; }

/* 15 ─── Checkout ──────────────────────────────────────────────────────── */

.woocommerce-checkout .shop-main > .woocommerce,
.woocommerce-cart .shop-main > .woocommerce { min-width: 0; }

.checkout-login { margin: 0 0 16px; padding: 12px 18px; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--sh-card); font-size: 14.5px; color: var(--ink-2); }
.checkout-login a { font-weight: 800; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.checkout-main { min-width: 0; }

#customer_details { display: grid; gap: 16px; }
#customer_details .col-1,
#customer_details .col-2 { display: grid; gap: 16px; width: auto; float: none; }

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-account-fields {
	padding: 24px 28px 10px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
}
.woocommerce-shipping-fields:empty,
.woocommerce-account-fields:empty { display: none; }
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 { margin: 0 0 18px; font-size: 19px; font-weight: 800; }
#ship-to-different-address { margin-bottom: 14px; font-size: 16px; }
#ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-account-fields .create-account label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}
.form-row { grid-column: 1 / -1; margin: 0 0 16px; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.form-row label.checkbox,
.form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-2); }
abbr.required,
.form-row .required { color: var(--sale); text-decoration: none; border: 0; }
.form-row .optional { font-weight: 500; color: var(--ink-3); }
.form-row .woocommerce-input-wrapper { display: block; }
.woocommerce-invalid .input-text,
.woocommerce-invalid select,
.woocommerce-invalid .select2-selection { border-color: var(--sale) !important; }
.checkout-inline-error-message { margin: 6px 0 0; font-size: 13px; color: var(--sale); }
.form-row .description { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* select2 / selectWoo (región y país) */
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single {
	display: flex; align-items: center;
	height: 48px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--bg);
	cursor: pointer;
}
.select2-container .select2-selection__rendered { padding: 0 40px 0 14px; font-size: 15px; line-height: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select2-container .select2-selection__arrow { position: absolute; top: 0; right: 10px; width: 24px; height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346524d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.select2-container .select2-selection__arrow b { display: none; }
.select2-container--open .select2-selection--single,
.select2-container--focus .select2-selection--single { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); outline: none; }
.select2-dropdown { position: absolute; z-index: 1051; display: block; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: var(--sh-pop); overflow: hidden; }
.select2-container--open .select2-dropdown--below { margin-top: 4px; }
.select2-search--dropdown { padding: 8px; }
.select2-search--dropdown .select2-search__field { min-height: 40px; }
.select2-results__options { max-height: 260px; overflow-y: auto; list-style: none; padding: 4px; }
.select2-results__option { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.select2-results__option--highlighted,
.select2-results__option[aria-selected="true"],
.select2-results__option[data-selected="true"] { background: var(--brand-tint); color: var(--brand-ink); }
.select2-hidden-accessible { position: absolute !important; width: 1px !important; height: 1px !important; clip: rect(0 0 0 0) !important; overflow: hidden !important; border: 0 !important; padding: 0 !important; }

/* Resumen fijo */
.checkout-aside__inner {
	position: sticky; top: 24px;
	padding: 24px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
}
#order_review_heading { margin: 0 0 14px; font-size: 19px; font-weight: 800; }

.woocommerce-checkout-review-order-table thead th { padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-align: left; }
.woocommerce-checkout-review-order-table thead th.product-total { text-align: right; }
.woocommerce-checkout-review-order-table tbody td { padding: 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.woocommerce-checkout-review-order-table td.product-name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.woocommerce-checkout-review-order-table td.product-total { text-align: right; font-weight: 700; white-space: nowrap; }
.woocommerce-checkout-review-order-table .product-quantity { font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.woocommerce-checkout-review-order-table tfoot th { padding: 10px 0; font-weight: 500; color: var(--ink-2); text-align: left; }
.woocommerce-checkout-review-order-table tfoot td { padding: 10px 0; font-weight: 700; text-align: right; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { padding-top: 16px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 800; color: var(--ink); }
.woocommerce-checkout-review-order-table .order-total small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }

.review-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.review-item__thumb { flex: none; }
.review-item__thumb img { max-width: none; width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); padding: 3px; }
.review-item__name { font-weight: 600; line-height: 1.3; }

.coupon-toggle { margin: 14px 0 4px; }
.coupon-toggle__btn { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.coupon-toggle__panel { padding-top: 10px; }
.coupon-toggle__panel form.checkout_coupon { display: flex; gap: 8px; margin: 0; }
.coupon-toggle__panel form.checkout_coupon p { margin: 0; }
.coupon-toggle__panel form.checkout_coupon .form-row-first { flex: 1; }

#payment { margin-top: 14px; }
#payment ul.payment_methods { margin: 0 0 14px; padding: 0; list-style: none; }
#payment li.wc_payment_method {
	position: relative;
	margin-bottom: 10px;
	padding: 14px 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--r-md);
	transition: border-color .15s var(--ease), background .15s var(--ease);
}
#payment li.wc_payment_method:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
#payment li.wc_payment_method > input { margin: 0 10px 0 0; vertical-align: middle; }
#payment li.wc_payment_method > label { font-size: 15px; font-weight: 700; cursor: pointer; }
#payment li.wc_payment_method > label img { display: inline-block; max-height: 22px; margin-left: 8px; vertical-align: middle; }
#payment .payment_box { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
#payment .payment_box p:last-child { margin: 0; }
#payment li.woocommerce-notice { padding: 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--ink-3); }
.woocommerce-privacy-policy-text p { margin-bottom: 10px; }
.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-link { color: var(--ink-2); text-decoration: underline; }
#place_order {
	width: 100%;
	min-height: 58px;
	margin-top: 6px;
	border: 0;
	border-radius: var(--pill);
	background: var(--brand);
	color: #fff;
	font-size: 17px; font-weight: 800;
	cursor: pointer;
}
#place_order:hover { background: var(--brand-ink); }
.blockUI.blockOverlay { border-radius: inherit; }

/* Bloque de receta (recetas-medicas): se integra como una tarjeta más */
html body .pv-receta-box { margin: 6px 0 18px; padding: 20px 22px; border-radius: var(--r-md); }
html body .pv-receta-box .pv-receta-box__title { font-size: 16.5px; }
html body .pv-receta-box .pv-receta-drop { border-radius: var(--r-md); }
html body .pv-receta-box .pv-receta-drop:hover { border-color: var(--brand); }
.pv-receta-aviso.woocommerce-info { background: var(--warn-soft); border-color: transparent; color: var(--warn); }

/* 16 ─── Pedido recibido ───────────────────────────────────────────────── */

.woocommerce-order { max-width: 860px; margin-inline: auto; }
.woocommerce-order > * + * { margin-top: 16px; }
.woocommerce-thankyou-order-received {
	padding: 26px 28px;
	border-radius: var(--r-lg);
	background: var(--ok-soft);
	color: var(--ok);
	font-size: 20px; font-weight: 800;
}
ul.woocommerce-order-overview {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
	padding: 20px 24px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
	list-style: none;
}
ul.woocommerce-order-overview li { font-size: 13px; color: var(--ink-3); }
ul.woocommerce-order-overview strong { display: block; margin-top: 2px; font-size: 15px; color: var(--ink); }
.woocommerce-order-details,
.woocommerce-customer-details,
.woocommerce-bacs-bank-details {
	padding: 24px 28px;
	border-radius: var(--r-lg);
	background: var(--bg);
	box-shadow: var(--sh-card);
}
.woocommerce-order-details__title,
.woocommerce-column__title,
.wc-bacs-bank-details-heading { font-size: 18px; font-weight: 800; }
.woocommerce-table--order-details th,
.woocommerce-table--order-details td { padding: 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; }
.woocommerce-table--order-details td:last-child,
.woocommerce-table--order-details tfoot td { text-align: right; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; color: var(--ink-2); }
.woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* 17 ─── Cuenta, login, legales ────────────────────────────────────────── */

.woocommerce-account .shop-main > .woocommerce {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.woocommerce-account:not(.logged-in) .shop-main > .woocommerce { display: block; }
.woocommerce-MyAccount-content { min-width: 0; padding: 28px 32px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-card); }
.woocommerce-account.is-shop { background: var(--canvas); }

.auth { display: grid; gap: 20px; max-width: 480px; margin: 12px auto 24px; }
.auth--split { max-width: 940px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth__card { padding: 28px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-card); }
.auth__title { font-size: 22px; font-weight: 800; }
.auth__lead,
.auth__hint { font-size: 14px; color: var(--ink-2); }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.auth__link { font-weight: 700; color: var(--brand); }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }

.account-nav { position: sticky; top: calc(var(--header-h) + 16px); overflow: hidden; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-card); }
.account-nav__user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line-2); background: var(--brand-tint); }
.account-nav__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 18px; font-weight: 800; }
.account-nav__name { margin: 0; font-weight: 800; }
.account-nav__mail { margin: 0; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.account-nav__list { list-style: none; padding: 8px; }
.account-nav__item a { display: block; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.account-nav__item a:hover { background: var(--canvas); color: var(--ink); }
.account-nav__item.is-active a { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }

.account__title { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.account-block { margin-bottom: 28px; }
.account-block__title { margin: 0; font-size: 17px; font-weight: 800; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section__more { font-size: 14px; font-weight: 700; color: var(--brand); }

.order-list { display: grid; gap: 12px; list-style: none; }
.order-row { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.order-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.order-row__number { margin: 0; font-weight: 800; }
.order-row__date { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.order-status { padding: 4px 11px; border-radius: var(--pill); background: var(--canvas); color: var(--ink-2); font-size: 12px; font-weight: 800; }
.order-status--completed { background: var(--ok-soft); color: var(--ok); }
.order-status--processing { background: var(--brand-soft); color: var(--brand-ink); }
.order-status--cancelled,
.order-status--failed { background: var(--sale-soft); color: var(--sale); }
.order-status--on-hold,
.order-status--pending { background: var(--warn-soft); color: var(--warn); }
.order-row__items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.order-row__thumb img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); padding: 3px; }
.order-row__more { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); font-size: 14px; font-weight: 700; color: var(--ink-3); }
.order-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.order-row__total { margin: 0; font-weight: 800; font-size: 17px; }
.order-row__count { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.order-row__actions { display: flex; gap: 8px; }
.order-row__actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.account-addresses .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce-Address { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 { margin: 0 0 8px; font-size: 15px; }
.woocommerce-Address-title .edit { font-size: 13px; font-weight: 700; color: var(--brand); }
.woocommerce-Address address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

.woocommerce-MyAccount-content form .button,
.woocommerce-MyAccount-content .woocommerce-Button { background: var(--brand); border-color: var(--brand); color: #fff; }
.woocommerce-MyAccount-content fieldset { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.woocommerce-MyAccount-content legend { padding: 0 6px; font-weight: 800; }
.woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td { padding: 10px 0; border-bottom: 1px solid var(--line-2); text-align: left; }

.content { padding-block: 32px 56px; }
.content--narrow { max-width: 76ch; }
.page-title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.entry { padding-block: 16px; border-bottom: 1px solid var(--line-2); }
.entry--single { border: 0; }
.entry__title { font-size: 22px; }
.entry__content { color: var(--ink-2); line-height: 1.7; }
.entry__content h2,
.entry__content h3 { color: var(--ink); margin-top: 1.6em; }
.notfound__title { font-size: clamp(28px, 4vw, 40px); }

.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 32px 56px; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; border-radius: var(--r-md); background: var(--canvas); font-size: 14px; }
.legal__toc-title { margin-bottom: 8px; font-weight: 800; }
.legal__toc ul { list-style: none; }
.legal__toc li { padding-block: 4px; }
.legal__toc a { color: var(--ink-2); }
.legal__toc a:hover { color: var(--brand-ink); text-decoration: underline; }
.legal__body { max-width: 74ch; }
.legal__updated { margin-bottom: 24px; font-size: 14px; color: var(--ink-3); }
.legal__content { line-height: 1.75; }
.legal__content h2 { margin-top: 2em; font-size: 19px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__content ul,
.legal__content ol { padding-left: 1.3em; margin-bottom: 1em; }

/* 18 ─── Avisos de WooCommerce ─────────────────────────────────────────── */

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
	margin: 0 0 16px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: var(--r-md);
	font-size: 14.5px;
	list-style: none;
}
.woocommerce-message { background: var(--ok-soft); color: #0f5234; }
.woocommerce-info { background: var(--info-soft); color: #173f73; }
.woocommerce-error { flex-direction: column; align-items: flex-start; background: var(--sale-soft); color: #8a1340; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a { font-weight: 700; text-decoration: underline; }

/* 19 ─── Carrito lateral del tema (solo sin plugin de carrito) ────────── */

.cart-drawer { position: fixed; inset: 0; z-index: 95; }
.cart-drawer[hidden] { display: none; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(10, 20, 16, .45); opacity: 0; transition: opacity .25s var(--ease); }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
	position: absolute; top: 0; right: 0;
	display: flex; flex-direction: column;
	width: min(430px, 100%); height: 100%;
	background: var(--bg);
	box-shadow: var(--sh-pop);
	transform: translateX(100%);
	transition: transform .28s var(--ease);
}
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 22px; border-bottom: 1px solid var(--line-2); }
.cart-drawer__title { margin: 0; font-size: 18px; font-weight: 800; }
.cart-drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.cart-lines { display: grid; gap: 16px; padding: 18px 22px; list-style: none; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
.cart-line__media img { border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.cart-line__name { font-size: 14px; font-weight: 700; }
.cart-line__qty { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line__total { font-size: 14px; font-weight: 800; }
.cart-line__remove { color: var(--ink-3); }
.cart-line__remove .icon { width: 18px; height: 18px; }
.cart-empty { padding: 56px 22px; text-align: center; color: var(--ink-2); }
.cart-drawer__foot { margin-top: auto; padding: 18px 22px; border-top: 1px solid var(--line-2); }
.cart-totals { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.cart-drawer__actions { display: grid; gap: 8px; }

/* 20 ─── Pie ───────────────────────────────────────────────────────────── */

.site-footer { margin-top: 56px; padding-top: 48px; background: var(--navy-deep); color: rgba(255, 255, 255, .78); font-size: 14px; }
.has-canvas .site-footer { margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 40px; padding-bottom: 36px; }
.site-brand--footer .site-brand__text { color: #fff; }
.site-brand--footer img { max-height: 48px; filter: brightness(0) invert(1); }
.footer__about { margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.footer__contact { display: grid; gap: 8px; margin-top: 16px; list-style: none; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; color: rgba(255, 255, 255, .6); }
.footer__contact a:hover { color: #fff; text-decoration: underline; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.footer__title { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #fff; }
.footer__col ul { list-style: none; }
.footer__col li { padding-block: 5px; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer__copy { margin: 0; }
.footer__legaltext { display: block; margin-top: 2px; opacity: .7; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }

/* 21 ─── Barra de compra móvil ─────────────────────────────────────────── */

.buy-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
	display: none; align-items: center; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--bg);
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -12px rgba(16, 33, 27, .25);
}
.buy-bar__info { flex: 1; min-width: 0; }
.buy-bar__name { margin: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar .price-block { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; }
.buy-bar .price-block__was { display: none; }
.buy-bar .price-block__now { font-size: 18px; }
.buy-bar .price-block__conv { display: none; }
.buy-bar .btn { flex: none; min-height: 48px; }

/* 22 ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
	.pv-carrusel ul.products li.product { flex-basis: calc((100% - 48px) / 4); }
	ul.products.columns-5,
	ul.products.columns-6 { --cols: 4; }
	.trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.account__hello { display: none; }
}

@media (max-width: 1024px) {
	:root { --header-h: 68px; }

	.masthead__inner { flex-wrap: wrap; row-gap: 0; gap: 8px 12px; padding-block: 10px 12px; min-height: 0; }
	.masthead__burger { display: inline-flex; }
	.catbtn { display: none; }
	.site-brand img,
	.site-brand .custom-logo { max-height: 40px; }
	.site-brand__text { font-size: 21px; }
	.masthead__search { order: 9; flex-basis: 100%; max-width: none; }
	.searchbar__input { height: 46px; }
	.account { padding: 0; }
	.account__text { display: none; }
	.account--drawer .account__text { display: flex; }
	.account--drawer .account__icon { background: var(--bg); color: var(--brand); width: 40px; height: 40px; }
	.account--drawer { padding: 4px 10px 4px 4px; }
	.account__icon { background: none; color: var(--ink); width: 44px; height: 44px; }
	.account__icon .icon { width: 24px; height: 24px; }
	.catmenu { display: none !important; }

	.subnav__links { display: none; }
	.subnav__inner { min-height: 0; padding-block: 10px; }
	.subnav__chips { margin-left: 0; }

	.shop-layout { grid-template-columns: minmax(0, 1fr); }
	.filters {
		position: fixed; inset: 0 auto 0 0; z-index: 95;
		display: none;
		width: min(340px, 88vw);
		border: 0; border-radius: 0;
		overflow-y: auto;
		box-shadow: var(--sh-pop);
	}
	.filters.is-open { display: block; }
	.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
	.filters-toggle { display: inline-flex; }

	.single-product div.product,
	.product-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.product-hero > .woocommerce-product-gallery,
	.product-hero > .pv-ficha__galeria,
	.product-hero > .summary { grid-column: 1; position: relative; top: auto; }

	.cart-page,
	.checkout-layout { grid-template-columns: minmax(0, 1fr); }
	.cart-collaterals,
	.checkout-aside__inner { position: static; }

	.woocommerce-account .shop-main > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.account-nav { position: static; }
	.account-nav__list { display: flex; overflow-x: auto; }
	.account-nav__item a { white-space: nowrap; }

	.legal { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.legal__toc { position: static; }

	.footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 860px) {
	.pv-carrusel ul.products li.product { flex-basis: calc((100% - 32px) / 3); }
	ul.products,
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6 { --cols: 3; }
	.promos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.promos--3 li:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
	:root { --gutter: 16px; }

	.topbar__links { display: none; }
	.topbar__inner { justify-content: center; text-align: center; min-height: 34px; }
	.topbar { font-size: 12.5px; }

	.hero { margin-top: 12px; }
	.hero__track { border-radius: var(--r-md); }
	.hero__slide img { aspect-ratio: auto; }
	.hero__arrow { display: none; }

	.section { margin-top: 32px; }
	.section__title,
	.pv-seccion__titulo { font-size: 19px; }
	.pv-seccion__acciones .pv-carrusel__flecha { display: none; }

	.cat-circles { gap: 12px; }
	.cat-circle { width: 92px; gap: 8px; }
	.cat-circle__img { width: 76px; height: 76px; }
	.cat-circle__name { font-size: 12px; }

	.promos--2,
	.promos--3 { grid-template-columns: minmax(0, 1fr); }
	.trust { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.trust__item { padding: 14px; }

	ul.products,
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6 { --cols: 2; gap: 10px; }
	.pv-carrusel ul.products { gap: 10px; }
	.pv-carrusel ul.products li.product { flex-basis: calc((100% - 10px) / 2.2); }
	li.product { border-radius: var(--r-md); }
	.card__media { padding: 10px 10px 4px; }
	.card__body { padding: 4px 10px 0; }
	.card__title { font-size: 13.5px; }
	.card__cta { padding: 10px; }
	.card__cta .button,
	.card__cta .pv-card__boton,
	.card__cta .pv-card__receta { min-height: 40px; font-size: 13.5px; }
	.price-block__now { font-size: 18px; }
	.badge--sale { width: 42px; height: 42px; font-size: 12.5px; }
	.badges { top: 8px; left: 8px; right: 8px; }

	.results-bar { flex-wrap: wrap; }
	.results-bar__actions { width: 100%; }
	.woocommerce-ordering { flex: 1; }
	.woocommerce-ordering select { min-width: 0; }

	.product-hero > .woocommerce-product-gallery,
	.product-hero > .pv-ficha__galeria,
	.product-hero > .summary { padding: 18px; border-radius: var(--r-md); }
	.woocommerce-tabs { padding: 0 18px 20px; border-radius: var(--r-md); }
	.delivery__item { grid-template-columns: 38px minmax(0, 1fr); }
	.delivery__icon { width: 38px; height: 38px; }
	.delivery__status { grid-column: 2; justify-self: start; }

	.buy-bar.is-visible { display: flex; }
	body.single-product { padding-bottom: 80px; }

	.steps__label { display: none; }
	.steps__item.is-current .steps__label { display: inline; }

	.panel { padding: 18px; border-radius: var(--r-md); }
	.cart-item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"media info remove"
			"media qty total";
		gap: 10px 12px;
	}
	.cart-item__media img { width: 72px; height: 72px; }
	.cart-item__total { align-self: center; }
	.cart-item__remove a { width: 36px; height: 36px; }

	.woocommerce-billing-fields,
	.woocommerce-shipping-fields,
	.woocommerce-additional-fields,
	.woocommerce-account-fields,
	.checkout-aside__inner,
	.cart_totals { padding: 18px; border-radius: var(--r-md); }
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.form-row-first,
	.form-row-last { grid-column: 1; }

	.auth--split { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-MyAccount-content { padding: 18px; }
	.account-addresses .woocommerce-Addresses,
	.woocommerce-columns--addresses { grid-template-columns: minmax(0, 1fr); }
	.order-row__foot { flex-direction: column; align-items: stretch; }
	.order-row__actions .btn { flex: 1; }
}

@media (max-width: 380px) {
	.pv-carrusel ul.products li.product { flex-basis: 78%; }
}

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

/* ─── Checkout Chile (plugin Farmacia Ecommerce) ────────────────────────── */

/* Boleta o factura: dos tarjetas, igual que los medios de pago */
.pv-documento .woocommerce-input-wrapper {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.pv-documento input.input-radio { position: absolute; opacity: 0; pointer-events: none; }
.pv-documento label.radio {
	display: flex; align-items: center; justify-content: center;
	min-height: 48px; margin: 0; padding: 10px 14px;
	border: 1.5px solid var(--line); border-radius: var(--r-md);
	background: var(--bg);
	font-size: 15px; font-weight: 700; color: var(--ink-2);
	cursor: pointer;
	transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.pv-documento label.radio:hover { border-color: var(--ink-3); }
.pv-documento input.input-radio:checked + label.radio { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.pv-documento input.input-radio:focus-visible + label.radio { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Campos de factura: aparecen al elegir factura */
.pv-factura-oculto { display: none !important; }
.pv-es-factura .pv-documento { margin-bottom: 8px; }
.pv-rut-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--sale); }

/* Comuna sin región elegida */
select.pv-comuna:disabled { opacity: .6; cursor: not-allowed; }

/* Documento en la página de gracias y en Mi cuenta */
.pv-documento-detalle { margin-top: 24px; }
.pv-documento-tabla th { width: 38%; font-weight: 600; color: var(--ink-2); }

/* País oculto: la tienda vende solo en Chile */
.pv-pais-oculto { display: none !important; }

/* Datos por completar en las páginas base (términos, reclamos…) */
mark.por-completar {
	padding: .05em .35em;
	border-radius: 4px;
	background: #fff1a8;
	box-shadow: inset 0 0 0 1px #f0d75a;
	font-weight: 600;
	color: #5c4500;
}
