/*
 * Zamarla — WooCommerce (catalog, product, cart, checkout, account).
 * Styles the native classic markup; WooCommerce's own stylesheets are off.
 * Author: Dirigible WS — https://dirigiblews.com/
 */

/* ------------------------------------------------------------------ */
/* Notices                                                             */
/* ------------------------------------------------------------------ */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	margin: 0 0 24px;
	padding: 14px 16px;
	list-style: none;
	border: 0;
	border-radius: 0;
	font: 500 14px/1.5 var(--zm-sans);
}
.woocommerce-message { background: var(--zm-ok-bg); color: var(--zm-ok-fg); }
.woocommerce-info { background: var(--zm-paper); color: var(--zm-charcoal); }
.woocommerce-error { display: grid; background: var(--zm-err-bg); color: var(--zm-err-fg); }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 40px; padding: 0 16px; font-size: 14px; background: transparent; color: inherit; border-color: currentColor; }
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a { color: inherit; font-weight: 600; }
.woocommerce-message:focus,
.woocommerce-error:focus,
.woocommerce-info:focus { outline: 2px solid currentColor; outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Star rating (WooCommerce markup, no icon font)                      */
/* ------------------------------------------------------------------ */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1.1em;
	overflow: hidden;
	font-size: 14px;
	line-height: 1;
	letter-spacing: .08em;
	vertical-align: middle;
}
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: var(--zm-sand); }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--zm-terracotta); }

p.stars { margin: 6px 0 0; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a {
	position: relative;
	display: inline-block;
	width: 32px;
	height: 32px;
	overflow: hidden;
	color: transparent;
	text-indent: -999em;
	text-decoration: none;
}
p.stars a::before { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; text-indent: 0; font-size: 24px; color: var(--zm-sand); }
p.stars:hover a::before,
p.stars.selected a::before { color: var(--zm-terracotta); }
p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before { color: var(--zm-sand); }

/* ------------------------------------------------------------------ */
/* Product grid and cards                                              */
/* ------------------------------------------------------------------ */
ul.products,
.zm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 760px) {
	ul.products,
	.zm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
}
@media (min-width: 1240px) {
	ul.products,
	.zm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 20px; }
}
.zm-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 12px; }

ul.products li.product { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; }
ul.products li.product::before,
ul.products::before,
ul.products::after { display: none; }

.woocommerce-LoopProduct-link { display: grid; gap: 6px; color: var(--zm-charcoal); text-decoration: none; }
.woocommerce-LoopProduct-link:hover { color: var(--zm-charcoal); }

.zm-card__media {
	position: relative;
	margin-bottom: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--zm-placeholder);
}
.zm-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--zm-ease), opacity .35s ease; }
.zm-card__img--alt { position: absolute; inset: 0; opacity: 0; }
/* Only shown on hover: without a pointer it is not rendered, so the lazy
   image is never requested on touch screens. Spec 01 R-4. */
@media not (hover: hover) {
	.zm-card__img--alt { display: none; }
}
@media (hover: hover) {
	.woocommerce-LoopProduct-link:hover .zm-card__media.has-alt .zm-card__img--alt { opacity: 1; }
	.woocommerce-LoopProduct-link:hover .zm-card__media:not(.has-alt) .zm-card__img { transform: scale(1.03); }
}

.zm-badge,
.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 4px 8px;
	background: var(--zm-base);
	color: var(--zm-charcoal);
	font: 600 11px/1.3 var(--zm-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.zm-badge--soldout { background: var(--zm-charcoal); color: var(--zm-base); }

.woocommerce-loop-product__title { font: 600 15px/1.35 var(--zm-sans); }
.zm-card__type { order: -1; font-size: 13px; color: var(--zm-muted); }
.woocommerce-LoopProduct-link .zm-card__type { order: 0; }
.woocommerce-LoopProduct-link .price { font: 500 15px/1.3 var(--zm-sans); }
.price del { color: var(--zm-faint); font-weight: 400; margin-right: 6px; }
.price ins { text-decoration: none; }
.zm-card__rating { font-size: 12px; color: var(--zm-terracotta); }
.zm-card__rating-count { color: var(--zm-muted); }
/* V4 card: name and price share the first line from tablet up. */
@media (min-width: 760px) {
	.woocommerce-LoopProduct-link { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
	.woocommerce-LoopProduct-link > * { grid-column: 1 / -1; }
	.woocommerce-LoopProduct-link > .woocommerce-loop-product__title { grid-column: 1; grid-row: 2; }
	.woocommerce-LoopProduct-link > .price { grid-column: 2; grid-row: 2; align-self: start; text-align: right; white-space: nowrap; }
	.woocommerce-LoopProduct-link > .price del { display: block; margin: 0; font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Archive                                                             */
/* ------------------------------------------------------------------ */
.zm-archive { padding-bottom: var(--zm-section); }
.zm-archive__header { display: grid; gap: 32px; padding: clamp(8px, 2vw, 32px) 0 clamp(32px, 4vw, 56px); }
.zm-archive__intro { display: grid; gap: 18px; align-content: end; }
.zm-archive__title { font: 400 clamp(52px, 7.4vw, 120px)/.9 var(--zm-serif); letter-spacing: -.03em; }
.zm-archive__desc { max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--zm-body); }
.zm-archive__desc:empty { display: none; }
.zm-archive__desc .term-description p + p,
.zm-archive__desc .page-description p + p { margin-top: .8em; }
.zm-archive__media { display: none; }
@media (min-width: 760px) {
	.zm-archive__header.has-image { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; }
	.zm-archive__media { display: block; }
	.zm-archive__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
}

.zm-cat-tabs { margin-bottom: 20px; border-bottom: 1px solid var(--zm-divider); overflow-x: auto; scrollbar-width: none; }
.zm-cat-tabs ul { display: flex; gap: 28px; list-style: none; }
.zm-cat-tabs a {
	display: flex;
	gap: 6px;
	align-items: baseline;
	padding: 14px 0 12px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	font: 500 15px var(--zm-sans);
	color: var(--zm-muted);
	text-decoration: none;
	white-space: nowrap;
}
.zm-cat-tabs a:hover { color: var(--zm-charcoal); }
.zm-cat-tabs a[aria-current="page"] { border-color: var(--zm-charcoal); color: var(--zm-charcoal); }
.zm-cat-tabs__count { font-size: 12px; color: var(--zm-faint); }

.zm-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-bottom: clamp(24px, 3vw, 40px);
}
.zm-toolbar__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; flex: 1 1 auto; }
.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--zm-muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 44px; font-size: 14px; }

.zm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zm-filter__label { margin-right: 4px; font: 600 12px var(--zm-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--zm-muted); }
.zm-filter__chip {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--zm-line);
	border-radius: var(--zm-radius);
	font: 500 14px var(--zm-sans);
	text-decoration: none;
}
.zm-filter__chip[aria-current="true"] { background: var(--zm-charcoal); border-color: var(--zm-charcoal); color: var(--zm-base); }
.zm-filter__clear { margin-left: 8px; font-size: 14px; font-weight: 600; }

.woocommerce-pagination { margin-top: clamp(40px, 5vw, 72px); }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: var(--zm-radius);
	font: 500 15px var(--zm-sans);
	text-decoration: none;
}
.woocommerce-pagination .page-numbers a:hover { border-color: var(--zm-line); }
.woocommerce-pagination .page-numbers span.current { background: var(--zm-charcoal); color: var(--zm-base); }

/* ------------------------------------------------------------------ */
/* Single product                                                      */
/* ------------------------------------------------------------------ */
.zm-pdp-wrap { padding-bottom: var(--zm-section); }
.zm-pdp-wrap div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.zm-pdp-wrap div.product > * { min-width: 0; }
/* Gallery + summary: the sticky summary's containing block (spec F-6). */
.zm-pdp-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.zm-pdp-main > * { min-width: 0; }
.zm-pdp-main > .onsale { top: 12px; left: 12px; }
@media (min-width: 1000px) {
	.zm-pdp-wrap div.product { row-gap: 0; }
	.zm-pdp-main { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 0 clamp(40px, 5vw, 96px); align-items: start; }
}

.woocommerce-product-gallery { position: relative; margin: 0 calc(-1 * var(--zm-gutter)); opacity: 1 !important; }
.woocommerce-product-gallery__wrapper {
	display: flex;
	gap: 0;
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
.woocommerce-product-gallery__image { flex: 0 0 100%; scroll-snap-align: start; background: var(--zm-placeholder); }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(252, 250, 247, .9);
	color: transparent;
	font-size: 0;
	text-decoration: none;
}
.woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; border: 1.6px solid var(--zm-charcoal); border-radius: 50%; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; width: 7px; height: 1.6px; background: var(--zm-charcoal); transform: translate(9px, 9px) rotate(45deg); }
.zm-gallery__dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
.zm-gallery__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--zm-sand); }
.zm-gallery__dot[aria-current="true"] { background: var(--zm-charcoal); }
.zm-gallery__counter {
	position: absolute;
	right: calc(var(--zm-gutter) + 0px);
	bottom: 44px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(252, 250, 247, .9);
	font: 500 12px var(--zm-sans);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 1000px) {
	.woocommerce-product-gallery { margin: 0; }
	.woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; }
	.woocommerce-product-gallery__image { flex: none; }
	.woocommerce-product-gallery__image:nth-child(6n + 1) { grid-column: 1 / span 2; }
	.woocommerce-product-gallery__image:nth-child(6n + 1) img { aspect-ratio: 4 / 3; }
	.woocommerce-product-gallery__image:nth-child(6n + 4) { grid-column: 1 / span 2; }
	.woocommerce-product-gallery__image:nth-child(6n + 4) img { aspect-ratio: 16 / 9; }
	.woocommerce-product-gallery__image:only-child img { aspect-ratio: 1 / 1; }
	.woocommerce-product-gallery__image:last-child:nth-child(6n + 2) { grid-column: 1 / span 2; }
	.zm-gallery__dots,
	.zm-gallery__counter { display: none; }
}

.zm-pdp-wrap .summary { display: grid; gap: 22px; align-content: start; max-width: 520px; }
@media (min-width: 1000px) {
	.zm-pdp-wrap .summary { position: sticky; top: calc(var(--zm-header-h) + 32px); }
	/* Taller than the space under the header: scrolls with the page so no
	   part of it is ever out of reach (set by product.js). */
	.zm-pdp-wrap .summary.is-tall { position: static; }
}
.zm-pdp-wrap .product_title { font: 400 clamp(34px, 3.6vw, 48px)/1.02 var(--zm-serif); letter-spacing: -.015em; }
.zm-pdp-wrap .summary > .price { font: 600 22px/1.2 var(--zm-sans); }
.zm-pdp-wrap .summary > .price del { font-size: 18px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.woocommerce-review-link { color: var(--zm-charcoal); }
.woocommerce-product-details__short-description { font-size: 16px; line-height: 1.6; color: var(--zm-body); }
.woocommerce-product-details__short-description > * + * { margin-top: .8em; }

form.cart { display: grid; gap: 18px; margin: 0; }
form.cart table.variations { width: 100%; border-collapse: collapse; }
form.cart table.variations tr { display: grid; gap: 10px; }
form.cart table.variations th,
form.cart table.variations td { display: block; padding: 0; text-align: left; }
form.cart table.variations th label { font: 600 14px var(--zm-sans); }
form.cart table.variations select { width: 100%; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--zm-muted); }

.zm-sizes { display: none; }
.js .zm-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.js .zm-size-native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.js form.cart .reset_variations { display: none !important; }
.zm-size {
	height: 52px;
	border: 1px solid var(--zm-line);
	border-radius: var(--zm-radius);
	background: #fff;
	font: 500 16px var(--zm-sans);
	color: var(--zm-charcoal);
}
@media (hover: hover) and (pointer: fine) {
	.zm-size:hover { border-color: var(--zm-charcoal); }
}
.zm-size[aria-checked="true"] { background: var(--zm-charcoal); border-color: var(--zm-charcoal); color: var(--zm-base); }
.zm-size.is-out { border-style: dashed; color: var(--zm-faint); text-decoration: line-through; background: transparent; }
.zm-size.is-out[aria-checked="true"] { background: var(--zm-paper); border-color: var(--zm-charcoal); color: var(--zm-muted); }
.zm-size-error { margin-top: 8px; font: 500 13px var(--zm-sans); color: var(--zm-error); }
.zm-size-hint { display: none; }
.js .zm-size-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 13px var(--zm-sans); color: var(--zm-body); }
.js .zm-size-hint::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.js .zm-size-hint[hidden],
.js .zm-size-hint:has(~ .zm-size-error:not([hidden])) { display: none; }
.js form.variations_form { position: relative; }

.single_variation_wrap { display: grid; gap: 16px; }
.woocommerce-variation:empty,
.woocommerce-variation-description:empty,
.woocommerce-variation-price:empty { display: none; }
.woocommerce-variation-price { display: none; }
.woocommerce-variation-availability p.stock,
.summary > p.stock { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 14px var(--zm-sans); }
p.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--zm-success); }
p.stock.out-of-stock { color: var(--zm-error); }
p.stock.out-of-stock::before { background: var(--zm-error); }
p.stock.available-on-backorder::before { background: var(--zm-terracotta); }

.woocommerce-variation-add-to-cart,
form.cart:not(.variations_form) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.single_add_to_cart_button { width: 100%; min-height: 56px; font-size: 16px; }
.single_add_to_cart_button.disabled { opacity: .55; }
/* No size yet: the button stays inviting; pressing it explains what is missing. */
.single_add_to_cart_button.disabled.wc-variation-selection-needed { opacity: 1; }
.single_add_to_cart_button.loading { opacity: .75; cursor: progress; }
form.cart:not(.variations_form) > :not(.quantity):not(.single_add_to_cart_button) { grid-column: 1 / -1; }

.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--zm-line); border-radius: var(--zm-radius); background: #fff; }
.quantity .qty {
	width: 52px;
	min-height: 54px;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity .qty:focus { box-shadow: none; }
.quantity:focus-within { border-color: var(--zm-charcoal); box-shadow: var(--zm-focus); }
.zm-qty-btn { display: grid; place-items: center; width: 40px; border: 0; background: none; color: var(--zm-charcoal); }
.zm-qty-btn:disabled { color: var(--zm-sand); cursor: default; }
.quantity input[type="hidden"] + .zm-qty-btn,
.quantity:has(input[type="hidden"]) { display: none; }

.zm-info-rows { margin: 0; border-top: 1px solid var(--zm-divider); }
.zm-info-rows > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--zm-divider); font-size: 14px; line-height: 1.5; }
.zm-info-rows dt { font-weight: 600; }
.zm-info-rows dd { margin: 0; color: var(--zm-body); }

.zm-accordions { border-bottom: 1px solid var(--zm-divider); }
.zm-accordion { border-top: 1px solid var(--zm-charcoal); }
.zm-accordion summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 56px;
	font: 600 15px var(--zm-sans);
	list-style: none;
	cursor: pointer;
}
.zm-accordion summary::-webkit-details-marker { display: none; }
.zm-accordion__icon { position: relative; width: 14px; height: 14px; transition: transform .3s var(--zm-ease); }
.zm-accordion__icon::before,
.zm-accordion__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.zm-accordion__icon::after { transform: rotate(90deg); }
.zm-accordion[open] .zm-accordion__icon { transform: rotate(45deg); }
.zm-accordion__body { padding: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--zm-body); }
.zm-accordion__body > * + * { margin-top: .8em; }
.zm-accordion__body h2:empty { display: none; }
.zm-accordion::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--zm-ease), content-visibility .3s allow-discrete; }
.zm-accordion[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) {
	.zm-accordions { interpolate-size: allow-keywords; }
}

table.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--zm-divider); text-align: left; font-size: 14px; }
table.woocommerce-product-attributes th { width: 40%; font-weight: 600; }
table.woocommerce-product-attributes p { margin: 0; }

/* Reviews section */
.zm-pdp-reviews { padding-top: var(--zm-section); }
.zm-pdp-reviews #reviews { display: grid; gap: 40px; }
@media (min-width: 1000px) {
	.zm-pdp-reviews #reviews { grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
	.zm-pdp-reviews #review_form_wrapper { grid-column: 2; }
}
.woocommerce-Reviews-title { font: 400 clamp(30px, 3.6vw, 52px)/1.04 var(--zm-serif); }
.zm-pdp-reviews .commentlist { list-style: none; display: grid; gap: 0; margin-top: 24px; }
.zm-pdp-reviews .commentlist li { padding: 24px 0; border-top: 1px solid var(--zm-divider); }
.zm-pdp-reviews .comment_container { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.zm-pdp-reviews .comment_container img.avatar { width: 40px; height: 40px; border-radius: 50%; }
.zm-pdp-reviews .comment-text { display: grid; gap: 8px; }
.zm-pdp-reviews .comment-text .meta { font-size: 13px; color: var(--zm-muted); }
.zm-pdp-reviews .woocommerce-review__author { font: 600 15px var(--zm-sans); color: var(--zm-charcoal); }
.zm-pdp-reviews .description { font: 400 18px/1.5 var(--zm-serif); }
.woocommerce-noreviews { color: var(--zm-muted); }
#review_form .comment-reply-title { display: block; margin-bottom: 16px; font: 400 26px/1.2 var(--zm-serif); }
#review_form form { display: grid; gap: 16px; }
#review_form p { display: grid; gap: 6px; margin: 0; }
#review_form label { font: 600 14px var(--zm-sans); }
#review_form textarea { min-height: 140px; }
#review_form .form-submit input { justify-self: start; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--zm-radius); background: var(--zm-charcoal); color: var(--zm-base); font: 600 15px var(--zm-sans); cursor: pointer; }
#review_form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
#review_form .comment-form-cookies-consent label { font-weight: 400; }

/* Related and upsells */
.related.products,
.upsells.products { padding-top: var(--zm-section); }
.related.products > h2,
.upsells.products > h2 { margin-bottom: clamp(24px, 3vw, 40px); font: 400 clamp(30px, 3.6vw, 52px)/1.04 var(--zm-serif); }

/* ------------------------------------------------------------------ */
/* Steps (cart → checkout → confirmation)                              */
/* ------------------------------------------------------------------ */
.zm-steps { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; font: 500 13px var(--zm-sans); color: var(--zm-faint); }
.zm-steps li { display: inline-flex; align-items: center; gap: 10px; }
.zm-steps li + li::before { content: "→"; color: var(--zm-sand); }
.zm-steps .is-current { color: var(--zm-charcoal); font-weight: 600; }
.zm-steps .is-done { color: var(--zm-muted); }
.zm-steps a { color: inherit; }

/* ------------------------------------------------------------------ */
/* Tables (cart, order details, account)                               */
/* ------------------------------------------------------------------ */
table.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.shop_table th,
table.shop_table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--zm-divider); text-align: left; vertical-align: middle; }
table.shop_table thead th { padding-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--zm-charcoal); font: 600 12px var(--zm-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--zm-muted); }
table.shop_table tfoot th { font-weight: 600; }
table.shop_table .product-thumbnail img { width: 88px; aspect-ratio: 1 / 1; object-fit: cover; background: var(--zm-placeholder); }
table.shop_table .product-name a { font-weight: 600; text-decoration: none; }
table.shop_table .product-name a:hover { text-decoration: underline; }
table.shop_table .product-remove a.remove {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: var(--zm-muted);
	text-decoration: none;
}
table.shop_table .product-remove a.remove:hover { background: var(--zm-paper); color: var(--zm-error); }
.wc-item-meta,
dl.variation { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--zm-muted); }
dl.variation dt,
dl.variation dd,
.wc-item-meta li,
.wc-item-meta p { margin: 0; display: inline; }
dl.variation dd p { display: inline; }

@media (max-width: 759px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; }
	table.shop_table_responsive td,
	table.shop_table_responsive tbody th { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 0; text-align: right; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; }
	table.shop_table_responsive td:not([data-title])::before,
	table.shop_table_responsive td.product-remove::before,
	table.shop_table_responsive td.product-thumbnail::before,
	table.shop_table_responsive td.actions::before { display: none; }
	table.shop_table_responsive tr { border-bottom: 1px solid var(--zm-divider); padding: 8px 0; }
}

/* ------------------------------------------------------------------ */
/* Cart                                                                */
/* ------------------------------------------------------------------ */
.zm-commerce .woocommerce { display: grid; gap: 32px; }
.zm-commerce .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
@media (min-width: 1000px) {
	.woocommerce-cart .zm-commerce .woocommerce:has(.cart-collaterals) { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 0 clamp(32px, 4vw, 72px); align-items: start; }
	.woocommerce-cart .cart-collaterals { position: sticky; top: calc(var(--zm-header-h) + 32px); }
}
.woocommerce-cart-form { min-width: 0; }
.woocommerce-cart-form td.actions { padding-top: 20px; border-bottom: 0; text-align: left; }
.woocommerce-cart-form td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.woocommerce-cart-form td.actions .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.woocommerce-cart-form td.actions .coupon .input-text { flex: 1 1 200px; }
.woocommerce-cart-form td.actions .button { min-height: 52px; background: transparent; color: var(--zm-charcoal); }
.woocommerce-cart-form td.actions .button:hover { background: var(--zm-charcoal); color: var(--zm-base); }
.js .woocommerce-cart-form [name="update_cart"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.js .woocommerce-cart-form [name="update_cart"]:focus { position: static; width: auto; height: auto; clip: auto; }
.woocommerce-cart-form .quantity .qty { min-height: 44px; }
.woocommerce-cart-form .zm-qty-btn { width: 36px; }

.cart-collaterals,
.woocommerce-checkout-review-order-wrap,
#order_review { background: var(--zm-paper); padding: clamp(20px, 2.4vw, 32px); }
.cart_totals > h2,
#order_review_heading { font: 400 26px/1.2 var(--zm-serif); margin-bottom: 16px; }
.cart_totals table.shop_table th,
.cart_totals table.shop_table td { padding: 12px 0; vertical-align: top; }
.cart_totals table.shop_table td { text-align: right; }
.cart_totals .order-total th,
.cart_totals .order-total td { border-bottom: 0; font-size: 18px; font-weight: 600; }
.cart_totals .woocommerce-shipping-totals td { font-size: 14px; }
.woocommerce-shipping-methods { list-style: none; display: grid; gap: 6px; }
.woocommerce-shipping-destination { font-size: 13px; color: var(--zm-muted); }
.shipping-calculator-button { font-size: 13px; font-weight: 600; color: var(--zm-charcoal); }
.shipping-calculator-form { display: grid; gap: 10px; margin-top: 12px; text-align: left; }
.shipping-calculator-form p { margin: 0; }
.shipping-calculator-form .input-text,
.shipping-calculator-form select { width: 100%; }
.wc-proceed-to-checkout { display: grid; gap: 12px; margin-top: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 16px; }
.zm-cart-note { font-size: 13px; color: var(--zm-muted); text-align: center; }
.zm-cart-status { margin: 0 0 16px; font: 500 14px/1.5 var(--zm-sans); color: var(--zm-charcoal); }
.zm-cart-status:empty { display: none; }
.cart-empty.woocommerce-info { padding: 0; background: none; font: 400 clamp(26px, 3vw, 38px)/1.15 var(--zm-serif); }
.return-to-shop { margin: 0; }
.cross-sells > h2 { margin: 32px 0 20px; font: 400 26px var(--zm-serif); }

/* ------------------------------------------------------------------ */
/* Forms (checkout, account, login)                                    */
/* ------------------------------------------------------------------ */
.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { font: 600 14px var(--zm-sans); }
.woocommerce form .form-row .required { color: var(--zm-error); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--zm-muted); }
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select { width: 100%; }
/* Openpay's payment template prints `.form-row select { width: 100% !important }`
 * for the whole page; it also widens the selects select2 hides (country,
 * state), which pushed the checkout sideways on phones. Restore select2's
 * hidden size with a more specific rule. */
.woocommerce form .form-row select.select2-hidden-accessible { width: 1px !important; }
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: var(--zm-error); }
.woocommerce form .form-row.woocommerce-validated .input-text { border-color: var(--zm-line); }
.woocommerce form .form-row .checkbox,
.woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; }
.woocommerce form .form-row input[type="checkbox"],
.woocommerce form .form-row input[type="radio"],
#payment input[type="radio"],
.woocommerce-shipping-methods input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--zm-charcoal); flex-shrink: 0; }
.woocommerce form .form-row .description { font-size: 13px; color: var(--zm-muted); }
.woocommerce form .form-row-wide { grid-column: 1 / -1; }
.woocommerce-input-wrapper { display: block; }
.woocommerce-input-wrapper .description { margin-top: 6px; }
.woocommerce-password-strength { margin-top: 8px; padding: 8px 12px; font-size: 13px; }
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad { background: var(--zm-err-bg); color: var(--zm-err-fg); }
.woocommerce-password-strength.good { background: var(--zm-paper); }
.woocommerce-password-strength.strong { background: var(--zm-ok-bg); color: var(--zm-ok-fg); }
.show-password-input { margin-left: 8px; border: 0; background: none; font-size: 13px; text-decoration: underline; }
.password-input { display: flex; align-items: center; }
.password-input input { flex: 1; }

/* select2 / selectWoo used for country and state */
.select2-container .select2-selection--single {
	height: 52px;
	border: 1px solid var(--zm-line);
	border-radius: var(--zm-radius);
	background: #fff;
}
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0 40px 0 14px; line-height: 50px; color: var(--zm-charcoal); font-size: 16px; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 50px; right: 10px; }
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single { border-color: var(--zm-charcoal); box-shadow: var(--zm-focus); }
.select2-dropdown { border-color: var(--zm-charcoal); border-radius: 0; font-size: 15px; }
.select2-results__option { padding: 10px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--zm-charcoal); }
.select2-search--dropdown .select2-search__field { min-height: 44px; }

/* Checkout */
form.checkout { display: grid; gap: 32px; counter-reset: zmstep; }
@media (min-width: 1000px) {
	form.checkout { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 0 clamp(32px, 4vw, 72px); align-items: start; }
	form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout #order_review_heading,
	form.checkout #order_review { grid-column: 2; }
	form.checkout #order_review_heading { margin: 0; padding: 32px 32px 0; background: var(--zm-paper); }
	form.checkout #order_review { position: sticky; top: calc(var(--zm-header-h) + 32px); padding-top: 16px; }
}
#customer_details .col-1,
#customer_details .col-2 { width: auto; float: none; }
#customer_details h3,
.woocommerce-checkout #order_review_heading {
	display: flex;
	gap: 14px;
	align-items: baseline;
	margin: 0 0 20px;
	font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--zm-serif);
}
#customer_details h3::before,
.woocommerce-checkout #order_review_heading::before {
	counter-increment: zmstep;
	content: counter(zmstep, decimal-leading-zero);
	font: 500 14px var(--zm-sans);
	color: var(--zm-terracotta);
}
#customer_details h3#ship-to-different-address::before { display: none; }
#customer_details .col-2 { margin-top: 24px; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; font: 500 16px var(--zm-sans); }
/* WooCommerce hides this block with JS after load; until then it pushed the
   page (CLS 0.28 on mobile). Hidden from the first paint while the box is
   unchecked; checking it still opens the block as before. Spec 01 R-2. */
.woocommerce-shipping-fields:has(#ship-to-different-address-checkbox:not(:checked)) .shipping_address { display: none; }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
@media (min-width: 600px) {
	.woocommerce-billing-fields__field-wrapper > .form-row-first,
	.woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
	.woocommerce-billing-fields__field-wrapper > .form-row-last,
	.woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
}
.woocommerce-additional-fields { margin-top: 24px; }
.woocommerce-additional-fields h3::before { display: none; }

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 12px 0; vertical-align: top; }
.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; font-size: 18px; font-weight: 600; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; color: var(--zm-muted); }

#payment { margin-top: 20px; background: none; }
#payment ul.payment_methods { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--zm-charcoal); }
#payment ul.payment_methods > li { padding: 14px 0; border-bottom: 1px solid var(--zm-divider); }
#payment ul.payment_methods > li > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 10px; font: 600 15px var(--zm-sans); cursor: pointer; vertical-align: top; }
#payment ul.payment_methods > li > label img { display: inline-block; max-height: 24px; width: auto; }
#payment ul.payment_methods > li > input { vertical-align: top; }
#payment .payment_box { margin-top: 12px; padding: 14px 16px; background: #fff; font-size: 14px; line-height: 1.55; color: var(--zm-body); }
#payment .payment_box p:last-child { margin-bottom: 0; }
#payment .payment_box fieldset { margin: 0; padding: 0; border: 0; }
#payment .payment_box .form-row { margin-bottom: 12px; }
/* Openpay CVV: the plugin sets the reference image with !important but its
 * repeat/position/size without it, so the shared `background: #fff` input
 * rule reset them and the image tiled across the field. Restore one image
 * on the right, vertically centred, and keep the typed text clear of it.
 * Spec 01 OP-1. */
#payment .payment_box input.openpay-card-input-cvc {
	padding-right: 58px;
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 32px 20px;
}
#payment .place-order { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; }
#payment .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--zm-muted); }
#payment .woocommerce-privacy-policy-text p { margin: 0; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info { background: var(--zm-paper); }
form.checkout_coupon,
form.woocommerce-form-login { margin: 0 0 24px; padding: 20px; border: 1px solid var(--zm-divider); }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
form.checkout_coupon p { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1 1 220px; }

/* Order received */
.woocommerce-order { display: grid; gap: 32px; }
.woocommerce-thankyou-order-received {
	font: 400 clamp(28px, 3.4vw, 46px)/1.1 var(--zm-serif);
	color: var(--zm-charcoal);
}
.woocommerce-thankyou-order-received::before {
	content: "✓ Pedido recibido";
	display: block;
	margin-bottom: 14px;
	font: 600 12px var(--zm-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--zm-success);
}
ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0;
	list-style: none;
	border-top: 1px solid var(--zm-charcoal);
}
ul.woocommerce-order-overview li { display: grid; gap: 4px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--zm-divider); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--zm-muted); }
ul.woocommerce-order-overview li strong { font: 600 16px var(--zm-sans); letter-spacing: 0; text-transform: none; color: var(--zm-charcoal); }
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2 { margin-bottom: 16px; font: 400 26px/1.2 var(--zm-serif); }
.woocommerce-order-details table.shop_table td:last-child,
.woocommerce-order-details table.shop_table th:last-child { text-align: right; }
.woocommerce-customer-details .col2-set,
.woocommerce-columns--addresses { display: grid; gap: 24px; }
@media (min-width: 760px) {
	.woocommerce-customer-details .col2-set,
	.woocommerce-columns--addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.woocommerce-customer-details address,
.woocommerce-Address address { padding: 16px 0 0; border-top: 1px solid var(--zm-divider); font-style: normal; line-height: 1.7; }
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email { margin: 4px 0 0; }
.zm-thankyou-help { display: grid; gap: 10px; justify-items: start; padding-top: 24px; border-top: 1px solid var(--zm-charcoal); font-size: 15px; }
.zm-thankyou-help a:not(.zm-button) { font-weight: 600; }
.woocommerce-bacs-bank-details { padding: 20px; background: var(--zm-paper); }

/* ------------------------------------------------------------------ */
/* My account                                                          */
/* ------------------------------------------------------------------ */
.woocommerce-account .zm-commerce .woocommerce { gap: 32px; }
@media (min-width: 1000px) {
	.woocommerce-account.logged-in .zm-commerce .woocommerce { grid-template-columns: 220px minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 112px); align-items: start; padding-top: 28px; border-top: 1px solid var(--zm-charcoal); }
}
.woocommerce-MyAccount-navigation ul { display: flex; gap: 24px; list-style: none; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--zm-divider); }
.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 48px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	font: 500 15px var(--zm-sans);
	color: var(--zm-muted);
	text-decoration: none;
	white-space: nowrap;
}
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--zm-charcoal); color: var(--zm-charcoal); }
@media (min-width: 1000px) {
	.woocommerce-MyAccount-navigation ul { flex-direction: column; gap: 0; border: 0; }
	.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--zm-divider); }
	.woocommerce-MyAccount-navigation a { min-height: 52px; margin: 0; border: 0; }
	.woocommerce-MyAccount-navigation .is-active a { font-weight: 600; }
	.woocommerce-MyAccount-navigation .is-active a::after { content: "→"; margin-left: auto; color: var(--zm-terracotta); }
}
.woocommerce-MyAccount-content { display: grid; gap: 20px; min-width: 0; font-size: 16px; line-height: 1.65; }
.woocommerce-MyAccount-content > p { max-width: 640px; }
.woocommerce-MyAccount-content mark { background: var(--zm-ivory); padding: 2px 6px; color: inherit; }
.woocommerce-orders-table .button,
.woocommerce-MyAccount-content .button { min-height: 40px; padding: 0 16px; font-size: 14px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 { font: 400 24px var(--zm-serif); }
.woocommerce-Address-title a.edit { font-size: 14px; font-weight: 600; }
.woocommerce-EditAccountForm,
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.woocommerce-EditAccountForm > *,
.woocommerce-address-fields__field-wrapper > * { grid-column: 1 / -1; }
@media (min-width: 600px) {
	.woocommerce-EditAccountForm > .form-row-first,
	.woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }
	.woocommerce-EditAccountForm > .form-row-last,
	.woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }
}
.woocommerce-EditAccountForm fieldset { margin: 16px 0; padding: 20px; border: 1px solid var(--zm-divider); }
.woocommerce-EditAccountForm legend { padding: 0 8px; font: 600 15px var(--zm-sans); }

/* Login / register */
.woocommerce-account:not(.logged-in) .zm-commerce .woocommerce { max-width: 1100px; }
#customer_login { display: grid; gap: 48px; }
@media (min-width: 760px) { #customer_login.col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); } }
#customer_login h2,
.woocommerce-form-login + h2 { margin-bottom: 20px; font: 400 30px var(--zm-serif); }
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword { display: grid; gap: 4px; max-width: 520px; }
.woocommerce-form-login__rememberme { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 15px; }
.woocommerce-form-login .button,
.woocommerce-form-register .button,
.woocommerce-ResetPassword .button { justify-self: start; }
.woocommerce-LostPassword { margin-top: 12px; font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Mobile buy bar (product page, V4)                                   */
/* ------------------------------------------------------------------ */
.zm-buybar { display: none; }
@media (max-width: 999px) {
	.zm-buybar {
		position: fixed;
		inset: auto 0 0;
		z-index: 40;
		display: flex;
		align-items: center;
		gap: 16px;
		padding: 10px var(--zm-gutter) calc(10px + env(safe-area-inset-bottom));
		background: var(--zm-paper);
		border-top: 1px solid var(--zm-divider);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .28s var(--zm-ease), visibility 0s linear .28s;
	}
	.zm-buybar.is-visible { transform: none; visibility: visible; transition: transform .28s var(--zm-ease), visibility 0s; }
	.zm-buybar__info { display: grid; min-width: 0; margin: 0; line-height: 1.3; }
	.zm-buybar__name { overflow: hidden; font: 600 14px var(--zm-sans); white-space: nowrap; text-overflow: ellipsis; }
	.zm-buybar__price { font-size: 13px; color: var(--zm-muted); }
	.zm-buybar__btn { flex: 1 0 auto; max-width: 60%; min-height: 48px; margin-left: auto; }
	html.zm-has-buybar body { padding-bottom: 76px; }
	/* Keyboard focus and in-page jumps stop above the bar. */
	html.zm-has-buybar { scroll-padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
	.zm-buybar, .zm-buybar.is-visible { transition: none; }
}
