/* =========================================================================
   Confitería Ochoa · Tienda (rediseño 2026)
   Ámbito: body.ot (tienda, categorías, ficha, carrito, checkout)
   ========================================================================= */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces/fraunces.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces/fraunces-italic.woff2") format("woff2");
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}

body.ot {
	--ot-cream: #f6f0e4;
	--ot-paper: #fffcf6;
	--ot-ink: #1c2033;
	--ot-muted: #5b5d6b;
	--ot-navy: #17224f;
	--ot-navy-2: #22306a;
	--ot-blue: #3b509d;
	--ot-blue-dark: #2d3f80;
	--ot-gold: #c9a25e;
	--ot-gold-soft: #ead8ac;
	--ot-gold-text: #8a6526;
	--ot-line: #e4d9c4;
	--ot-wa: #1a7f47;
	--ot-radius: 18px;
	--ot-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--ot-sans: "avenir", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	--ot-shadow: 0 1px 2px rgb(23 34 79 / .06), 0 8px 24px -12px rgb(23 34 79 / .18);
	background: var(--ot-cream);
	color: var(--ot-ink);
}

/* Reset dentro del ámbito (el CSS global fuerza fuentes y pesos con !important) */
body.ot .ot-main,
body.ot .ot-main p,
body.ot .ot-main li,
body.ot .ot-main label,
body.ot .ot-main input,
body.ot .ot-main select,
body.ot .ot-main button {
	font-family: var(--ot-sans);
	font-weight: 400 !important;
	color: inherit;
}
body.ot .ot-main h1,
body.ot .ot-main h2,
body.ot .ot-main h3,
body.ot .ot-main h4 {
	font-family: var(--ot-serif);
	font-weight: 500;
	letter-spacing: -.01em;
	color: inherit;
	text-transform: none;
}
body.ot .ot-main p { font-size: 1rem; line-height: 1.6; text-align: left; hyphens: manual; }
body.ot .ot-main a { color: inherit; }
body.ot .ot-main img { max-width: 100%; height: auto; display: block; }
body.ot .ot-main *, body.ot .ot-main *::before, body.ot .ot-main *::after { box-sizing: border-box; }

.ot-wrap { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.ot-visually-hidden,
body.ot .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tipografía */
body.ot .ot-h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.02; margin: .2em 0 .35em; font-weight: 450; }
body.ot .ot-h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; margin: .15em 0 0; }
body.ot .ot-main .ot-eyebrow {
	font-family: var(--ot-sans); font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase;
	color: var(--ot-gold-text); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
body.ot .ot-main .ot-eyebrow--light { color: var(--ot-gold-soft); }
body.ot .ot-main .ot-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.55; max-width: 34em; opacity: .9; }

/* Botones */
body.ot .ot-btn,
body.ot .ot-main .single_add_to_cart_button,
body.ot.ot-pagina-compra .button,
body.ot.ot-pagina-compra button.button,
body.ot.ot-pagina-compra #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: .7em 1.35em; border-radius: 999px; border: 1px solid var(--ot-blue);
	background: var(--ot-blue); color: #fff !important; text-decoration: none !important;
	font-family: var(--ot-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1;
	cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
body.ot .ot-btn:hover,
body.ot .ot-main .single_add_to_cart_button:hover,
body.ot.ot-pagina-compra .button:hover,
body.ot.ot-pagina-compra #place_order:hover { background: var(--ot-navy); border-color: var(--ot-navy); }
body.ot .ot-btn--sm { min-height: 38px; padding: .55em 1em; font-size: .72rem; }
body.ot .ot-btn--lg { min-height: 52px; padding: .85em 1.7em; font-size: .86rem; }
body.ot .ot-btn--gold { background: var(--ot-gold-soft); border-color: var(--ot-gold-soft); color: var(--ot-navy) !important; }
body.ot .ot-btn--gold:hover { background: #fff; border-color: #fff; color: var(--ot-navy) !important; }
body.ot .ot-btn--ghost { background: transparent; color: var(--ot-blue) !important; }
body.ot .ot-btn--ghost:hover { background: var(--ot-blue); color: #fff !important; }
body.ot .ot-btn--wa { background: var(--ot-wa); border-color: var(--ot-wa); }
body.ot .ot-btn--wa:hover { background: #12613a; border-color: #12613a; }
body.ot .ot-ico { flex: none; width: 1.15em; height: 1.15em; }

body.ot .ot-main :where(a, button, input, select, summary):focus-visible,
body.ot .ot-btn:focus-visible {
	outline: 2px solid var(--ot-gold); outline-offset: 3px;
}
body.ot .ot-link { color: var(--ot-blue); text-decoration: underline; text-underline-offset: 3px; }
body.ot .ot-link-light { color: var(--ot-cream) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(234 216 172 / .6); }
body.ot .ot-link-light:hover { text-decoration-color: currentColor; }

/* -------------------------------------------------------------------------
   Hero (azul marino: mantiene legible la cabecera blanca del tema)
   ---------------------------------------------------------------------- */
.ot-hero {
	position: relative; overflow: hidden; color: var(--ot-cream);
	background:
		radial-gradient(70% 90% at 85% 30%, rgb(59 80 157 / .55), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgb(201 162 94 / .14), transparent 70%),
		var(--ot-navy);
	padding: clamp(104px, 11vw, 140px) 0 clamp(72px, 8vw, 110px);
}
.ot-hero::before { /* filete dorado inferior */
	content: ""; position: absolute; inset: auto 0 22px 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgb(201 162 94 / .55) 20%, rgb(201 162 94 / .55) 80%, transparent);
}
.ot-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ot-hero:not(.ot-hero--inicio) .ot-hero__grid { grid-template-columns: 1.4fr .6fr; }
.ot-hero:not(.ot-hero--inicio) .ot-h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.8rem); }
body.ot .ot-hero .ot-h1 { color: #fff; }
body.ot .ot-hero .ot-h1 em { font-style: italic; color: var(--ot-gold-soft); }
.ot-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.ot-hero__trust { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
body.ot .ot-hero__trust li { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ot-gold-soft); display: flex; align-items: center; gap: 10px; }
.ot-hero__trust li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ot-gold); }

.ot-hero__media { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.ot-hero:not(.ot-hero--inicio) .ot-hero__media { width: min(100%, 300px); }
.ot-arch {
	position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6);
}
.ot-hero__media::before { /* arco dorado desplazado */
	content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgb(201 162 94 / .7);
	border-radius: 999px 999px 18px 18px; pointer-events: none;
}
.ot-arch__img { width: 100%; height: 100% !important; object-fit: cover; }
.ot-seal {
	position: absolute; width: clamp(92px, 9vw, 124px); height: auto; left: -34px; bottom: 28px;
	color: var(--ot-gold-soft); background: var(--ot-navy); border-radius: 50%;
	font-family: var(--ot-sans);
}
.ot-seal__year { font-family: var(--ot-serif); font-style: italic; }
.ot-hero:not(.ot-hero--inicio) .ot-seal { width: 88px; left: -26px; bottom: 18px; }
@media (prefers-reduced-motion: no-preference) {
	.ot-seal { animation: ot-girar 40s linear infinite; }
	@keyframes ot-girar { to { rotate: 360deg; } }
}

/* Migas de pan */
body.ot .ot-crumbs { font-size: .8rem; letter-spacing: .04em; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; color: rgb(246 240 228 / .7); }
body.ot .ot-crumbs a { color: rgb(246 240 228 / .85); text-decoration: none; }
body.ot .ot-crumbs a:hover { color: #fff; text-decoration: underline; }
.ot-crumbs__sep { opacity: .5; }

/* -------------------------------------------------------------------------
   Pestañas de secciones
   ---------------------------------------------------------------------- */
.ot-tabs-wrap { position: relative; z-index: 2; margin-top: -42px; }
.ot-tabs { background: var(--ot-paper); border: 1px solid var(--ot-line); border-radius: 22px; box-shadow: var(--ot-shadow); padding: 8px; }
.ot-tabs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ot-tabs ul::-webkit-scrollbar { display: none; }
.ot-tab {
	display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 16px; text-decoration: none !important;
	color: var(--ot-ink) !important; white-space: nowrap; transition: background-color .2s, color .2s; min-height: 44px;
}
.ot-tab:hover { background: #f3ecdd; }
.ot-tab.is-active { background: var(--ot-navy); color: #fff !important; }
.ot-tab__name { font-family: var(--ot-serif); font-size: 1.15rem; line-height: 1.2; }
.ot-tab__tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ot-muted); }
.ot-tab__tag.is-online { color: var(--ot-blue); }
.ot-tab.is-active .ot-tab__tag { color: var(--ot-gold-soft); }

/* -------------------------------------------------------------------------
   Secciones y rejilla de productos
   ---------------------------------------------------------------------- */
.ot-section { padding: clamp(48px, 7vw, 96px) 0 0; scroll-margin-top: 20px; }
.ot-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); padding-bottom: 18px; border-bottom: 1px solid var(--ot-line); }
.ot-section__head--compact { align-items: center; }
body.ot .ot-section__note { max-width: 30em; color: var(--ot-muted); margin: 0; font-size: .95rem; }
body.ot .ot-section__count { margin: 0; font-family: var(--ot-serif); font-size: 1.2rem; }
.ot-section__more { margin: 32px 0 0; text-align: center; }
body.ot .ot-section__more { text-align: center; }

.ot-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .ot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ot-card {
	position: relative; display: flex; flex-direction: column; background: var(--ot-paper);
	border: 1px solid var(--ot-line); border-radius: var(--ot-radius); padding: 10px; margin: 0 !important;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}
.ot-card:hover { box-shadow: var(--ot-shadow); border-color: #d8c9ab; }
@media (prefers-reduced-motion: no-preference) { .ot-card:hover { transform: translateY(-3px); } }
.ot-card__media { position: relative; aspect-ratio: 1; border-radius: calc(var(--ot-radius) - 6px); overflow: hidden; background: #efe6d4; }
.ot-card__img { width: 100%; height: 100% !important; object-fit: cover; transition: scale .5s ease; }
@media (prefers-reduced-motion: no-preference) { .ot-card:hover .ot-card__img { scale: 1.05; } }
.ot-badge {
	position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; font-size: .68rem; letter-spacing: .12em;
	text-transform: uppercase; background: rgb(255 252 246 / .94); color: var(--ot-navy); border: 1px solid var(--ot-line);
}
.ot-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 6px 4px; }
body.ot .ot-card__title { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.2; margin: 0 0 4px; font-weight: 500; }
.ot-card__link { text-decoration: none !important; }
.ot-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--ot-radius); }
body.ot .ot-card__meta { font-size: .8rem !important; color: var(--ot-muted); margin: 0 0 12px; letter-spacing: .02em; }
.ot-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.ot-card__foot .ot-btn { position: relative; z-index: 1; } /* por encima del enlace extendido */
.ot-price { font-family: var(--ot-serif); font-size: 1.15rem; color: var(--ot-navy); white-space: nowrap; }
.ot-price .woocommerce-Price-amount { font-weight: 500; }
.ot-price__from { font-family: var(--ot-sans); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ot-muted); }
body.ot .ot-card--encargo .ot-btn--wa { background: transparent; color: var(--ot-wa) !important; border-color: rgb(26 127 71 / .45); }
body.ot .ot-card--encargo .ot-btn--wa:hover { background: var(--ot-wa); color: #fff !important; }
@media (max-width: 480px) {
	.ot-card { padding: 6px; }
	.ot-card__body { padding: 10px 4px 2px; }
	.ot-card__foot { flex-direction: column; align-items: stretch; }
	.ot-card__foot .ot-btn { width: 100%; }
	.ot-price { font-size: 1.05rem; }
}

/* Paginación */
body.ot .ot-main .navigation.pagination { margin: 40px 0 0; }
body.ot .ot-main .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body.ot .ot-main .nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ot-line); background: var(--ot-paper); text-decoration: none; }
body.ot .ot-main .nav-links .page-numbers.current { background: var(--ot-navy); color: #fff; border-color: var(--ot-navy); }

.ot-empty { text-align: center; padding: 40px 0; }
body.ot .ot-empty p { text-align: center; margin: 12px auto 24px; max-width: 32em; }

/* -------------------------------------------------------------------------
   Franja de envío / pago
   ---------------------------------------------------------------------- */
.ot-info { margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 44px) 0; border-block: 1px solid var(--ot-line); background: var(--ot-paper); }
.ot-info__grid { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ot-info__item { display: flex; gap: 16px; align-items: flex-start; }
.ot-info__item svg { flex: none; width: 40px; height: 40px; color: var(--ot-gold-text); padding: 8px; border: 1px solid var(--ot-gold-soft); border-radius: 50%; }
body.ot .ot-info__item h3 { font-size: 1.15rem; margin: 2px 0 4px; }
body.ot .ot-info__item p { margin: 0; color: var(--ot-muted); font-size: .93rem; }

/* -------------------------------------------------------------------------
   Banda de encargos
   ---------------------------------------------------------------------- */
.ot-encargo-band { padding: clamp(48px, 7vw, 96px) 0; }
.ot-encargo-band__inner {
	display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px 48px; align-items: center;
	background: var(--ot-navy); color: var(--ot-cream); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
	background-image: radial-gradient(60% 120% at 100% 0%, rgb(59 80 157 / .6), transparent 70%);
}
body.ot .ot-encargo-band .ot-h2 { color: #fff; margin-bottom: 12px; }
body.ot .ot-encargo-band p { color: rgb(246 240 228 / .88); margin: 0; }
body.ot .ot-encargo-band .ot-eyebrow { color: var(--ot-gold-soft); }
.ot-encargo-band__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.ot-encargo-band__apps { display: flex; gap: 10px; }
.ot-encargo-band__apps a {
	flex: 1; text-align: center; padding: 11px 12px; border-radius: 999px; border: 1px solid rgb(234 216 172 / .45);
	color: var(--ot-cream) !important; text-decoration: none; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.ot-encargo-band__apps a:hover { background: rgb(255 255 255 / .08); border-color: var(--ot-gold-soft); }

/* -------------------------------------------------------------------------
   Ficha de producto
   ---------------------------------------------------------------------- */
.ot-topband { background: var(--ot-navy); padding: clamp(92px, 9vw, 112px) 0 18px; }
body.ot .ot-topband .ot-crumbs { margin: 0; }
.ot-product {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px);
	padding-top: clamp(28px, 4vw, 56px); align-items: start;
}
.ot-product__gallery { position: sticky; top: 24px; }
body.ot .ot-product .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; opacity: 1 !important; }
body.ot .ot-product .woocommerce-product-gallery__wrapper { margin: 0; }
body.ot .ot-product .woocommerce-product-gallery__image img,
body.ot .ot-product .woocommerce-product-gallery .flex-viewport { border-radius: 22px; }
body.ot .ot-product .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #efe6d4; }
body.ot .ot-product .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
body.ot .ot-product .flex-control-thumbs li { width: 72px; }
body.ot .ot-product .flex-control-thumbs img { border-radius: 10px; opacity: .6; cursor: pointer; }
body.ot .ot-product .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--ot-gold); }
body.ot .ot-product .woocommerce-product-gallery__trigger {
	position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
	background: rgb(255 252 246 / .92); display: flex; align-items: center; justify-content: center; font-size: 0; text-decoration: none;
}
body.ot .ot-product .woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 18px; color: var(--ot-navy); }
body.ot .ot-product .woocommerce-product-gallery__trigger img { display: none !important; }

.ot-product__summary { float: none !important; width: auto !important; }
body.ot .ot-product .ot-h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); margin: .25em 0 .2em; }
.ot-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ot-line); color: var(--ot-muted); letter-spacing: .1em; font-size: .7rem; }
.ot-chip.is-online { color: var(--ot-blue); border-color: rgb(59 80 157 / .35); background: rgb(59 80 157 / .06); }
body.ot .ot-product__price { font-family: var(--ot-serif) !important; font-size: 1.7rem !important; color: var(--ot-navy) !important; margin: 0 0 18px; }
body.ot .ot-product__price .ot-price__from { font-size: .8rem; }
body.ot .ot-product__excerpt p { font-size: 1.06rem; color: #3a3d4f; margin: 0 0 1em; }

/* Neutralizar reglas globales antiguas (.product .entry-title, .cart 50%, .wp-post-image 70%) */
body.ot .ot-product .ot-h1 { background: none !important; box-shadow: none !important; padding: 0 !important; text-align: left; text-shadow: none !important; color: var(--ot-ink); }
body.ot .ot-product form.cart { width: auto !important; }
body.ot .ot-product img.wp-post-image,
body.ot .ot-product .woocommerce-product-gallery__image img { width: 100% !important; margin: 0 !important; border: 0 !important; }

/* Formulario de compra */
body.ot .ot-product form.cart { margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--ot-line); }
body.ot .ot-product table.variations { border: 0; margin: 0 0 8px; width: 100%; }
body.ot .ot-product table.variations tr,
body.ot .ot-product table.variations th,
body.ot .ot-product table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
body.ot .ot-product table.variations th.label label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ot-muted); margin: 0 0 10px; display: block; }
body.ot .ot-product .reset_variations { display: none !important; }
.ot-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ot-pill__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ot-pill {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px;
	border: 1px solid var(--ot-line); background: var(--ot-paper); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s;
	min-height: 44px;
}
.ot-pill:hover { border-color: #cdb98f; }
.ot-pill__label { font-family: var(--ot-serif); font-size: 1.15rem; line-height: 1.1; }
.ot-pill__price { font-size: .82rem; color: var(--ot-muted); }
.ot-pill__input:checked + .ot-pill { border-color: var(--ot-navy); background: var(--ot-navy); color: #fff; box-shadow: 0 6px 18px -10px rgb(23 34 79 / .7); }
.ot-pill__input:checked + .ot-pill .ot-pill__price { color: var(--ot-gold-soft); }
.ot-pill__input:focus-visible + .ot-pill { outline: 2px solid var(--ot-gold); outline-offset: 3px; }

body.ot .ot-product .single_variation_wrap { margin-top: 16px; }
body.ot .ot-product .woocommerce-variation-price .price { font-family: var(--ot-serif); font-size: 1.4rem; color: var(--ot-navy); }
body.ot .ot-product .woocommerce-variation-description p { margin: 0 0 8px; font-size: .95rem; color: var(--ot-muted); }
body.ot .ot-product .woocommerce-variation-add-to-cart,
body.ot .ot-product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
body.ot .ot-product .quantity { margin: 0 !important; }
.ot-qty { display: inline-flex; align-items: center; border: 1px solid var(--ot-line); border-radius: 999px; background: var(--ot-paper); height: 52px; }
body.ot .ot-qty .ot-qty__btn {
	width: 46px; height: 100%; border: 0; background: none !important; padding: 0; border-radius: 999px; font-size: 1.3rem;
	color: var(--ot-navy); cursor: pointer; text-transform: none;
}
body.ot .ot-qty .ot-qty__btn:hover { background: #f0e8d7 !important; }
body.ot .ot-qty input.qty {
	width: 44px; border: 0 !important; background: none; text-align: center; font-size: 1.05rem; padding: 0; -moz-appearance: textfield; appearance: textfield;
}
body.ot .ot-qty input.qty::-webkit-outer-spin-button,
body.ot .ot-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.ot .ot-main .single_add_to_cart_button { flex: 1; min-height: 52px; height: 52px !important; margin: 0 !important; padding-block: 0 !important; font-size: .86rem; float: none !important; white-space: nowrap; } /* el CSS global fuerza height:10vh y margin-top:20px */
body.ot .ot-main .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
body.ot .ot-product .stock { font-size: .9rem; margin: 0 0 10px; }
body.ot .ot-product .stock.in-stock { display: none; }

/* Tiempo de preparación (campo del tema) */
body.ot .ot-product .tiempo-preparacion { font-size: .95rem; color: var(--ot-muted); margin: 14px 0 0; }

/* Garantías */
.ot-assurance { list-style: none; margin: 24px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--ot-paper); border: 1px solid var(--ot-line); display: grid; gap: 10px; }
body.ot .ot-assurance li { font-size: .92rem; line-height: 1.5; color: #3a3d4f; padding-left: 22px; position: relative; }
.ot-assurance li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ot-gold); }
body.ot .ot-assurance strong { font-weight: 600; color: var(--ot-ink); }

/* Alérgenos */
body.ot .ot-product .alergenos { margin: 24px 0 0; }
body.ot .ot-product .alergenos h3 { font-family: var(--ot-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ot-muted); margin: 0 0 10px; }
body.ot .ot-product .alergenos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.ot .ot-product .alergenos li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--ot-line); border-radius: 999px; background: var(--ot-paper); font-size: .85rem; }
body.ot .ot-product .alergenos img { width: 28px !important; height: 28px !important; object-fit: contain; }

body.ot .ot-product__help { font-size: .92rem !important; color: var(--ot-muted); margin: 22px 0 0; }
body.ot .ot-product__help a { color: var(--ot-wa); }

/* Bloque "Por encargo" en ficha */
body.ot .ochoa-encargo { margin: 24px 0 0; padding: 22px; border-radius: 18px; background: var(--ot-paper); border: 1px solid var(--ot-line); }
body.ot .ochoa-encargo__title { font-family: var(--ot-serif) !important; font-size: 1.35rem !important; margin: 0 0 6px; color: var(--ot-navy); }
body.ot .ochoa-encargo__text { color: #3a3d4f; margin: 0 0 16px; }
.ochoa-encargo__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.ot .ochoa-encargo__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: .75em 1.3em; border-radius: 999px; text-decoration: none;
	font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ot-navy); color: var(--ot-navy);
}
body.ot .ochoa-encargo__btn--wa { background: var(--ot-wa); border-color: var(--ot-wa); color: #fff; }
body.ot .ochoa-encargo__btn:hover { background: var(--ot-navy); border-color: var(--ot-navy); color: #fff; }
body.ot .ochoa-encargo__small { font-size: .88rem !important; color: var(--ot-muted); margin: 14px 0 0; }
body.ot .ochoa-encargo__small a { color: var(--ot-ink); }

/* Descripción */
.ot-product__story { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--ot-line); display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto 1fr; align-items: start; gap: 8px 56px; }
.ot-product__story .ot-eyebrow { grid-column: 1; }
.ot-product__story .ot-h2 { grid-column: 1; }
.ot-product__story .ot-prose { grid-column: 2; grid-row: 1 / span 2; }
body.ot .ot-prose p { font-size: 1.05rem; line-height: 1.75; color: #3a3d4f; max-width: 62ch; }
body.ot .ot-prose h1, body.ot .ot-prose h2, body.ot .ot-prose h3 { font-size: 1.3rem; margin: 0 0 .6em; }

/* -------------------------------------------------------------------------
   Carrito y checkout
   ---------------------------------------------------------------------- */
body.ot.ot-pagina-compra { background: var(--ot-cream); }
/* Título de página: banda azul como el resto de la tienda (sustituye a la foto antigua) */
body.ot.ot-pagina-compra .entry-title {
	background: radial-gradient(70% 120% at 85% 0%, rgb(59 80 157 / .55), transparent 70%), var(--ot-navy) !important;
	font-family: var(--ot-serif) !important; font-weight: 450; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem) !important;
	color: #fff; text-shadow: none !important; text-align: left !important;
	padding: clamp(100px, 10vw, 130px) max(clamp(16px, 4vw, 40px), (100% - 1240px) / 2) 40px !important; margin: 0 0 clamp(28px, 4vw, 48px);
}
body.ot.ot-pagina-compra .woocommerce-checkout-payment,
body.ot.ot-pagina-compra #payment { background: transparent !important; border-radius: 16px; }
body.ot.ot-pagina-compra #payment ul.payment_methods { border-color: var(--ot-line); padding: 0 0 16px; }
body.ot.ot-pagina-compra #payment div.payment_box { background: #f3ecdd !important; color: var(--ot-ink); border-radius: 12px; }
body.ot.ot-pagina-compra #payment div.payment_box::before { border-bottom-color: #f3ecdd !important; }
body.ot.ot-pagina-compra #payment .place-order { padding: 16px 0 0 !important; }
body.ot.ot-pagina-compra select,
body.ot.ot-pagina-compra .select2-container .select2-selection--single { border: 1px solid #d6cab2 !important; border-radius: 10px !important; min-height: 46px; }
body.ot.ot-pagina-compra .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
body.ot.ot-pagina-compra .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
body.ot.ot-pagina-compra .woocommerce form .form-row label { font-size: .92rem; }
body.ot.ot-pagina-compra .woocommerce-cart-form .quantity { display: inline-flex; }
body.ot.ot-pagina-compra .entry-content { width: min(1180px, 100% - 32px); margin-inline: auto; }
body.ot.ot-pagina-compra .woocommerce,
body.ot.ot-pagina-compra .woocommerce p,
body.ot.ot-pagina-compra .woocommerce td,
body.ot.ot-pagina-compra .woocommerce th,
body.ot.ot-pagina-compra .woocommerce label { font-family: var(--ot-sans); }
body.ot.ot-pagina-compra .woocommerce h2,
body.ot.ot-pagina-compra .woocommerce h3 { font-family: var(--ot-serif); font-weight: 500; }
body.ot.ot-pagina-compra table.shop_table { border: 1px solid var(--ot-line); border-radius: 18px; background: var(--ot-paper); border-collapse: separate; overflow: hidden; }
body.ot.ot-pagina-compra table.shop_table th,
body.ot.ot-pagina-compra table.shop_table td { border-color: var(--ot-line); padding: 14px 16px; }
body.ot.ot-pagina-compra table.shop_table img { border-radius: 10px; width: 64px; }
body.ot.ot-pagina-compra .cart_totals,
body.ot.ot-pagina-compra #order_review,
body.ot.ot-pagina-compra .woocommerce-checkout #customer_details { background: var(--ot-paper); border: 1px solid var(--ot-line); border-radius: 18px; padding: 20px 24px; }
body.ot.ot-pagina-compra .woocommerce-checkout #customer_details { margin-bottom: 24px; }
body.ot.ot-pagina-compra input.input-text,
body.ot.ot-pagina-compra select,
body.ot.ot-pagina-compra textarea {
	border: 1px solid #d6cab2; border-radius: 10px; padding: 12px 14px; background: #fff; font-size: 1rem; min-height: 46px;
}
body.ot.ot-pagina-compra input.input-text:focus,
body.ot.ot-pagina-compra select:focus,
body.ot.ot-pagina-compra textarea:focus { outline: 2px solid var(--ot-gold); outline-offset: 1px; border-color: var(--ot-gold); }
body.ot.ot-pagina-compra #place_order { width: 100%; min-height: 54px; font-size: .9rem; }
body.ot.ot-pagina-compra .woocommerce-info,
body.ot.ot-pagina-compra .woocommerce-message { border-top-color: var(--ot-blue); background: var(--ot-paper); }
body.ot.ot-pagina-compra .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; }
body.ot.ot-pagina-compra .woocommerce-cart-form .ot-qty { height: 44px; }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.ot-hero__grid,
	.ot-hero:not(.ot-hero--inicio) .ot-hero__grid { grid-template-columns: 1fr; }
	.ot-hero__media { width: min(76%, 340px); }
	.ot-hero:not(.ot-hero--inicio) .ot-hero__media { display: none; }
	.ot-seal { left: -18px; }
	.ot-product { grid-template-columns: 1fr; }
	.ot-product__gallery { position: static; }
	.ot-product__story { grid-template-columns: 1fr; }
	.ot-product__story .ot-prose { grid-column: 1; grid-row: auto; }
	.ot-encargo-band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.ot-tabs ul { grid-auto-columns: max-content; }
	.ot-tab { padding: 10px 14px; }
	.ot-tab__name { font-size: 1.02rem; }
	.ot-tabs-wrap { margin-top: -30px; }
}
@media (max-width: 600px) {
	.ot-hero { padding-top: 96px; padding-bottom: 64px; } /* hueco para el menú hamburguesa */
	.ot-hero__media { display: none; } /* en móvil, los productos primero */
	.ot-hero__trust { margin-top: 24px; }
	.ot-topband { padding-top: 92px; }
}

/* -------------------------------------------------------------------------
   Carrito lateral (plugin Side Cart)
   ---------------------------------------------------------------------- */
body.ot .xoo-wsc-container,
body.ot .xoo-wsc-container * { font-family: var(--ot-sans); }
body.ot .xoo-wsc-container { background: var(--ot-cream); }
body.ot .xoo-wsc-header { background: var(--ot-navy); color: #fff; border: 0; }
body.ot .xoo-wsc-header .xoo-wsch-text { font-family: var(--ot-serif) !important; font-size: 1.4rem; color: #fff; }
body.ot .xoo-wsc-header .xoo-wsch-close,
body.ot .xoo-wsc-header .xoo-wsch-basket { color: #fff; }
body.ot .xoo-wsc-body .xoo-wsc-product, body.ot .xoo-wsc-body .xoo-wsc-product-cont { background: var(--ot-paper); border: 1px solid var(--ot-line); border-radius: 14px; }
body.ot .xoo-wsc-body .xoo-wsc-pname,
body.ot .xoo-wsc-body .xoo-wsc-pname a { font-family: var(--ot-serif) !important; font-size: 1.1rem; color: var(--ot-ink); }
body.ot .xoo-wsc-body .xoo-wsc-img-col img { border-radius: 10px; }
body.ot .xoo-wsc-footer { background: var(--ot-paper); border-top: 1px solid var(--ot-line); }
body.ot .xoo-wsc-footer .xoo-wsc-ft-totals { font-family: var(--ot-serif); }
body.ot .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn {
	border-radius: 999px !important; min-height: 48px; display: flex; align-items: center; justify-content: center;
	background: transparent !important; color: var(--ot-blue) !important; border: 1px solid var(--ot-blue) !important;
	font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
body.ot .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn-checkout { background: var(--ot-blue) !important; color: #fff !important; }
body.ot .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn:hover { background: var(--ot-navy) !important; border-color: var(--ot-navy) !important; color: #fff !important; }
body.ot .xoo-wsc-basket { background: var(--ot-navy) !important; color: #fff !important; }
body.ot .xoo-wsc-basket .xoo-wscb-count,
body.ot .xoo-wsc-basket .xoo-wsc-items-count { background: var(--ot-gold) !important; color: var(--ot-navy) !important; }

/* Widgets flotantes del tema: en móvil el sello de Tripadvisor tapa las tarjetas de producto */
@media (max-width: 760px) {
	body.ot .logos-fixed { display: none; }
}

/* -------------------------------------------------------------------------
   Selector de tienda para encargos (dialog)
   ---------------------------------------------------------------------- */
body.ot .ot-dialog {
	width: min(520px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px;
	background: var(--ot-paper); color: var(--ot-ink); box-shadow: 0 30px 80px -20px rgb(23 34 79 / .5);
	overscroll-behavior: contain;
}
body.ot .ot-dialog::backdrop { background: rgb(23 34 79 / .55); overflow: hidden; overscroll-behavior: contain; }
body.ot .ot-dialog__inner { position: relative; padding: 32px 28px 24px; margin: 0; }
body.ot .ot-dialog .ot-h2 { font-family: var(--ot-serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin: 4px 0 6px; }
body.ot .ot-dialog .ot-eyebrow { font-family: var(--ot-sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ot-gold-text); margin: 0; }
body.ot .ot-dialog__producto { font-family: var(--ot-serif); font-size: 1.1rem; color: var(--ot-blue); margin: 0 0 16px; }
body.ot .ot-dialog__opts { display: grid; gap: 10px; margin-top: 14px; }
body.ot .ot-dialog__opt {
	display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--ot-line);
	background: #fff; text-decoration: none; color: var(--ot-ink); transition: border-color .2s, background-color .2s;
	position: relative; padding-right: 48px;
}
body.ot .ot-dialog__opt::after { content: "→"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; color: var(--ot-wa); font-size: 1.2rem; }
body.ot .ot-dialog__opt:hover { border-color: var(--ot-wa); background: #f3faf6; }
body.ot .ot-dialog__opt:focus-visible { outline: 2px solid var(--ot-gold); outline-offset: 2px; }
body.ot .ot-dialog__name { font-family: var(--ot-serif); font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
body.ot .ot-dialog__sub { font-family: var(--ot-sans); font-size: .88rem; color: var(--ot-muted); }
body.ot .ot-dialog__note { font-family: var(--ot-sans); font-size: .85rem; color: var(--ot-muted); margin: 14px 0 0; text-align: left !important; hyphens: manual; }
body.ot .ot-dialog__close {
	position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	background: transparent; font-size: 1.6rem; line-height: 1; color: var(--ot-muted); cursor: pointer; text-transform: none;
}
body.ot .ot-dialog__close:hover { background: #f0e8d7; color: var(--ot-ink); }
body.ot .ot-dialog__close:focus-visible { outline: 2px solid var(--ot-gold); outline-offset: 2px; }
