/* ============================================================
   VASARO — component CSS for the standard WooCommerce blocks.
   Tokens come from theme.json presets; this file covers only what
   theme.json cannot express: WC React component internals, the
   card/summary looks, and pattern layout details from the design
   direction (Claude Design project VasaGroup).
   ============================================================ */

/* ---------- header ---------- */
.vasaro-topbar { border-bottom: 1px solid var(--wp--preset--color--line); }
.vasaro-topbar .wp-block-search { flex: 1 1 auto; max-width: 640px; }
.vasaro-topbar .wp-block-search__inside-wrapper {
	border: 1.5px solid var(--wp--preset--color--line-2);
	border-radius: 999px;
	background: #fff;
	padding: 4px 4px 4px 20px;
}
.vasaro-topbar .wp-block-search__input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 15px;
	font-family: var(--wp--preset--font-family--plex-sans);
}
.vasaro-topbar .wp-block-search__button {
	background: var(--wp--preset--color--maroon);
	color: #fff;
	border: none;
	border-radius: 999px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
}
.vasaro-topbar .wp-block-search__button:hover { background: var(--wp--preset--color--maroon-dark); }

.vasaro-nav { min-height: 56px; }
.vasaro-nav .wp-block-navigation a {
	color: #fff;
	font-weight: 600;
	font-size: 14.5px;
	padding: 6px 4px;
}
.vasaro-nav .wp-block-navigation a:hover { color: #fff; opacity: 0.82; }
.vasaro-nav .wc-block-mini-cart__button,
.vasaro-nav .wc-block-mini-cart__quantity-badge { color: #fff; }

/* Each navigation block is shown only at its own width. The switch is 600px
   because that is core's own overlay breakpoint: the single block this
   replaced showed a hamburger below 600 and inline links above it, and the
   header has to keep behaving exactly as it did outside phone widths.
   The selectors carry .wp-block-navigation because core's layout rule
   (.wp-block-navigation.is-layout-flex { display: flex }) is two classes and
   would otherwise win against a single-class display:none. */
.wp-block-navigation.vasaro-nav-desktop { display: none; }
.wp-block-navigation.vasaro-nav-mobile { display: flex; }
@media (min-width: 600px) {
	.wp-block-navigation.vasaro-nav-desktop { display: flex; }
	.wp-block-navigation.vasaro-nav-mobile { display: none; }
}

/* ---------- mobile menu overlay (task-first) ---------- */
/* The overlay itself is core's navigation responsive container, which already
   traps focus, closes on Escape and moves focus in on open — verified, so it
   is kept and only dressed. Everything below is layout on core's own markup:
   .wp-block-navigation-item__label and __description are the two lines
   navigation-link renders inside a single anchor. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 8px 16px 24px;      /* the 16px site gutter; nothing on the bezel */
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}
/* One task row: two lines, full width, comfortably past the 44px minimum. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	box-sizing: border-box;
	width: 100%;
	min-height: 64px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.2;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__description {
	/* Core hides descriptions outright (.wp-block-navigation
	   .wp-block-navigation-item__description { display: none }) because they
	   are an editor-only affordance there. The overlay's task rows are built
	   on them, so they are turned back on here. */
	display: block;
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.68);
}

/* The two telephone rows are the conversion path, so they sit apart from the
   task list: the CTA reversed out in white, the number in mono beneath it. */
.wp-block-navigation__responsive-container.is-menu-open .vasaro-menu-cta {
	margin-top: 28px;
}
.wp-block-navigation__responsive-container.is-menu-open .vasaro-menu-cta .wp-block-navigation-item__content {
	justify-content: center;
	align-items: center;
	min-height: 56px;
	padding: 14px 20px;
	border: none;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--maroon);
}
.wp-block-navigation__responsive-container.is-menu-open .vasaro-menu-cta .wp-block-navigation-item__label {
	font-size: var(--wp--preset--font-size--small);
}
.wp-block-navigation__responsive-container.is-menu-open .vasaro-menu-tel .wp-block-navigation-item__content {
	border-bottom: none;
	min-height: 56px;
}
.wp-block-navigation__responsive-container.is-menu-open .vasaro-menu-tel .wp-block-navigation-item__label {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0.02em;
}

/* The logo link. F-16's 44px minimum is kept: the lockup is 2.84:1, so a 34px
   image would leave a 34px target — the min-height and centring hold the hit
   area at 44 while the artwork stays at its own height. */
.vasaro-brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	/* Cancels the height the 44px target adds beyond the artwork, so swapping
	   the wordmark for the logo does not push the header down — the same trick
	   F-16 used on the text wordmark. */
	margin-block: -5px;
}
.vasaro-brand img {
	display: block;
	width: auto;
	height: 34px;
}
/* The footer ground is near-black, where the lockup's ink half disappears.
   Reversed to solid white until a proper reversed file exists — the shape
   survives, the maroon accent does not. */
.vasaro-brand--reversed img {
	filter: brightness(0) invert(1);
	height: 30px;
}
@media (min-width: 783px) {
	.vasaro-brand img { height: 40px; }
	.vasaro-brand--reversed img { height: 34px; }
}

/* ---------- WooCommerce React buttons (cart/checkout) ---------- */
.wc-block-components-button:not(.is-link) {
	background-color: var(--wp--preset--color--maroon);
	border-radius: var(--wp--custom--radius--md);
	font-weight: 700;
	font-family: var(--wp--preset--font-family--plex-sans);
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus {
	background-color: var(--wp--preset--color--maroon-dark);
}

/* ---------- prices in IBM Plex Mono, everywhere ---------- */
.wc-block-components-product-price,
.wc-block-formatted-money-amount,
.wc-block-components-totals-item__value,
.wc-block-components-order-summary-item__total-price,
.woocommerce-Price-amount,
.wp-block-woocommerce-product-price,
.price {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-weight: 600;
}

/* Form controls do not inherit the page font by default, so WooCommerce's own
   fields fell back to Arial: the cart quantity input, and the checkout's
   address_2, checkbox and radio inputs. This is a bare element selector on
   purpose — it is the lowest specificity in the file, so every deliberate
   choice below it still wins, including the mono on the length field. */
input,
select,
textarea,
button {
	font-family: inherit;
}

/* ---------- forms: inputs and selects, radius 9, warm borders ---------- */
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox input,
.wc-block-components-form .wc-block-components-select .components-custom-select-control__button,
form.cart select,
form.cart .qty,
select {
	border-radius: var(--wp--custom--radius--md);
	border-color: var(--wp--preset--color--line-2);
}
form.cart select,
form.cart .qty {
	border: 1.5px solid var(--wp--preset--color--line-2);
	background: #fff;
	min-height: 48px;
	padding: 0 12px;
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: 15px;
}

/* variations table: quiet labels above selects */
.variations_form table.variations { border: none; }
.variations_form table.variations td,
.variations_form table.variations th {
	display: block;
	width: 100%;
	padding: 0 0 6px;
	border: none;
	text-align: left;
}
.variations_form table.variations label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--ink-2);
}
.variations_form table.variations select { width: 100%; margin-bottom: 12px; }
.reset_variations { font-size: 12.5px; color: var(--wp--preset--color--muted); }

/* classic add-to-cart button inside the add-to-cart-form block */
form.cart button.single_add_to_cart_button {
	background: var(--wp--preset--color--maroon);
	color: #fff;
	border: none;
	border-radius: var(--wp--custom--radius--md);
	font-weight: 700;
	font-size: 16px;
	padding: 16px 28px;
}
form.cart button.single_add_to_cart_button:hover { background: var(--wp--preset--color--maroon-dark); }
form.cart button.single_add_to_cart_button.disabled { opacity: 0.45; }

/* ---------- cart & checkout: white summary card, quiet coupon ---------- */
.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: 22px;
	height: fit-content;
}
.wc-block-components-totals-coupon-link {
	color: var(--wp--preset--color--muted);
	font-size: 13.5px;
	font-weight: 600;
}
.wc-block-components-totals-coupon-link:hover { color: var(--wp--preset--color--ink-2); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
}
.wc-block-cart-items__header {
	background: var(--wp--preset--color--sand);
	font-family: var(--wp--preset--font-family--plex-mono);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 11.5px;
}
.wc-block-cart-item__prices { font-family: var(--wp--preset--font-family--plex-mono); }

/* checkout form panels */
.wc-block-checkout__form .wc-block-components-checkout-step {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: 20px 22px;
	margin-bottom: 16px;
}
.wc-block-components-checkout-place-order-button {
	width: 100%;
	font-size: 16px;
	padding: 17px 28px;
}

/* Core's empty-cart product grid carries margin: 0 -8px, so it resolves 16px
   wider than its container and pushes the page sideways — 391px inside a 375px
   phone, 1296px inside a 1280px desktop. Phase 4k.3 contained it for phones
   only; the desktop case was never covered and showed the same 8px of scroll.
   Contained here at every width, rather than by restyling the core grid. */
.wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block {
	overflow-x: clip;
}

/* The page gutter, at every width.
   These templates put alignwide content straight into main, and wideSize is
   1352px with no gutter of its own, so between 783px and 1352px the shop,
   the product pages, the archives, search, the cart and the checkout all laid
   their content onto the screen edge — a 570px-wide band where nothing was
   inset. Below 783 this is the mobile gutter; above 1352 it is a no-op,
   because alignwide still fits inside the padded box (1440 - 32 = 1408 > 1352)
   and the content stays centred at the same offset it had before.
   The front page is deliberately not listed: its patterns carry their own
   44px section padding and are already inset at every width.
   Plain pages (the four legal texts), the 404 page and search results were
   missing from the list: on a phone their text ran from the first pixel of
   the screen to the last. .page does not match the front page, whose body
   class is "home". */
.single-product main.wp-block-group,
.archive main.wp-block-group,
.woocommerce-cart main.wp-block-group,
.woocommerce-checkout main.wp-block-group,
.page main.wp-block-group,
.error404 main.wp-block-group,
.search main.wp-block-group {
	padding-left: 16px;
	padding-right: 16px;
}

/* Phase 4i.2 replaced the word "Free" with "0,00 lei", but WooCommerce styles
   the slots that word lives in as uppercase — so the shipping row rendered
   "0,00 LEI" against "957,25 lei" everywhere else. The casing belongs to the
   currency, not to the slot. */
/* Selectors match WooCommerce's own shape on purpose: its rules are
   .wc-block-checkout__shipping-option .…--free and
   .wc-block-components-totals-shipping .…-totals-item strong, and a weaker
   selector on the wrapper loses — the uppercase sits on the inner <strong>,
   not on the value that contains it. */
.wc-block-checkout__shipping-option .wc-block-checkout__shipping-option--free,
.wc-block-components-totals-shipping .wc-block-components-totals-item strong {
	text-transform: none;
}

/* WooCommerce pins the cart's checkout button to the bottom of the viewport
   once it would scroll out of view (.wc-block-cart__submit-container--sticky
   is position:fixed, z-index 9999) but reserves no space for it, so the bar
   floated over the last cart line and cut its description mid-sentence. The
   :has() keeps the extra space to the case where the bar is actually pinned;
   the value is the bar's own measured height plus a little air. */
.wp-block-woocommerce-cart:has(.wc-block-cart__submit-container--sticky) {
	padding-bottom: 104px;
}

/* The order-summary card drew two hairlines a padding-height apart — its own
   card border and a border-top on the summary block inside it. With the full
   summary below, that read as card padding; on a phone, where the summary
   collapses to a single row, it read as an empty white strip above
   "Rezumat comandă". The card already has an edge, so the inner one goes. */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border-top: none;
}

/* ---------- product grid cards (product-collection) ---------- */
ul.wc-block-product-template > li.wc-block-product,
.wc-block-product-template .wc-block-product {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	padding-bottom: 16px;
	transition: box-shadow 0.16s, border-color 0.16s;
}
.wc-block-product-template .wc-block-product:hover {
	box-shadow: 0 2px 8px rgba(40, 20, 10, 0.06), 0 10px 28px rgba(40, 20, 10, 0.07);
	border-color: var(--wp--preset--color--line-2);
}
.wc-block-product-template .wc-block-product > *:not(.wc-block-components-product-image):not(.wp-block-woocommerce-product-image) {
	padding-left: 17px;
	padding-right: 17px;
}
.wc-block-product-template .wc-block-product .wp-block-post-title {
	font-size: 19px;
	margin: 12px 0 4px;
}
.wc-block-product-template .wc-block-product .wp-block-post-title a:hover { color: var(--wp--preset--color--maroon); }

/* ---------- patterns ---------- */
.vasaro-trust { border-top: 1px solid var(--wp--preset--color--line-2); }
.vasaro-trust p { font-size: 12px; color: var(--wp--preset--color--muted); }
.vasaro-trust p strong { display: block; font-size: 14px; color: var(--wp--preset--color--ink); }

.vasaro-reassure p { margin: 0; }

.vasaro-step-no {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--maroon);
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vasaro-step-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
}

.vasaro-length {
	margin: 4px 0 18px;
	padding: 14px 15px;
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--sand-2);
	border-radius: var(--wp--custom--radius--md);
}
.vasaro-length label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--ink-2);
	margin-bottom: 7px;
}
.vasaro-length input[type="number"] {
	width: 100%;
	max-width: 220px;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--wp--preset--color--line-2);
	border-radius: var(--wp--custom--radius--md);
	background: #fff;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 15px;
}
.vasaro-length__hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--wp--preset--color--muted);
}
.vasaro-length__total {
	margin: 6px 0 0;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}
.vasaro-length__total.is-valid {
	color: var(--wp--preset--color--maroon);
}

/* Orders paused: sits where the quantity box and the button were. */
.vasaro-orders-paused {
	margin: 4px 0 18px;
	padding: 14px 15px;
	background: var(--wp--preset--color--clay-tint);
	border: 1px solid var(--wp--preset--color--line-2);
	border-radius: var(--wp--custom--radius--md);
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.vasaro-orders-paused a {
	color: var(--wp--preset--color--maroon);
	white-space: nowrap;
}
.vasaro-per-m,
.vasaro-from {
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: 0.72em;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.vasaro-ral {
	margin: 4px 0 18px;
	padding: 14px 15px;
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--sand-2);
	border-radius: var(--wp--custom--radius--md);
}
.vasaro-ral label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--ink-2);
	margin-bottom: 7px;
}
.vasaro-ral input {
	width: 100%;
	max-width: 140px;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--wp--preset--color--line-2);
	border-radius: var(--wp--custom--radius--md);
	background: #fff;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 15px;
}
.vasaro-ral__hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--wp--preset--color--muted);
}

.vasaro-checkout-hint {
	margin: 0 0 10px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

/*
 * The return-policy link directly under the acknowledgement box at checkout.
 * Shown only when the block that holds the box is rendered just before it: for
 * an order of accessories WooCommerce renders no such block, and the line would
 * stand alone. A sibling rule rather than a server-side test, so it also
 * follows the cart when it changes on the open page.
 */
.vasaro-ack-policy {
	display: none;
	margin: -8px 0 16px;
	padding: 0 22px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}
.wp-block-woocommerce-checkout-additional-information-block + .vasaro-ack-policy {
	display: block;
}
.vasaro-ack-policy a {
	color: var(--wp--preset--color--maroon);
	text-decoration: underline;
}


.vasaro-caps {
	margin: 0 0 18px;
	padding: 14px 15px;
	background: var(--wp--preset--color--sand);
	border: 1px solid var(--wp--preset--color--sand-2);
	border-radius: var(--wp--custom--radius--md);
}
.vasaro-caps label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--ink-2);
	margin-bottom: 7px;
}
.vasaro-caps select {
	width: 100%;
	max-width: 320px;
	min-height: 48px;
	padding: 0 12px;
	border: 1.5px solid var(--wp--preset--color--line-2);
	border-radius: var(--wp--custom--radius--md);
	background: #fff;
	font-size: 15px;
}
.vasaro-caps__summary {
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--maroon);
}

/* ---------- homepage category tiles ---------- */
.vasaro-tile {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: 16px 16px 20px;
	transition: box-shadow 0.16s, border-color 0.16s;
}
.vasaro-tile:hover,
.vasaro-tile:focus-within {
	box-shadow: 0 2px 8px rgba(40, 20, 10, 0.06), 0 10px 28px rgba(40, 20, 10, 0.07);
	border-color: var(--wp--preset--color--line-2);
}
/* The tile photograph. display:block is load-bearing, not cosmetic: <picture>
   is an inline element by default, and an inline non-replaced box IGNORES
   aspect-ratio — the image then lays out at its full intrinsic 1376x768 at
   every viewport. The img needs width/height 100% for the same reason.
   The CSS aspect-ratio, not the file's 1.79:1, governs the box, so the tile
   reserves its space before the photograph arrives and nothing shifts;
   object-fit crops the source to the 2:1 tile from the centre. */
.vasaro-tile__media {
	display: block;
	aspect-ratio: 16 / 8;
	border-radius: var(--wp--custom--radius--md);
	overflow: hidden;
	box-shadow: none;
	margin-bottom: 16px;
	background: var(--wp--preset--color--sand);
}
.vasaro-tile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vasaro-tile h2 { margin: 0 0 6px; }
.vasaro-tile h2 a { color: var(--wp--preset--color--ink); }
.vasaro-tile h2 a:hover,
.vasaro-tile h2 a:focus-visible { color: var(--wp--preset--color--maroon); }
.vasaro-tile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.vasaro-tile__links a {
	/* border-box matters here: Phase 4k set min-height:44px on a content-box
	   element that also carries 10px padding and a 1.5px border, so the pills
	   rendered 66px tall and short labels came out as circles. */
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	border: 1.5px solid var(--wp--preset--color--line-2);
	border-radius: 999px;
	padding: 8px 15px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--ink-2);
}
.vasaro-tile__links a:hover,
.vasaro-tile__links a:focus-visible {
	border-color: var(--wp--preset--color--maroon);
	color: var(--wp--preset--color--maroon);
}

/* ---------- order confirmation ---------- */
/* The status block's h1 has no size of its own; without this it resolves to
   2em of the wrapper's clamp() and blows past the intended 44px ceiling. */
.wc-block-order-confirmation-status h1 {
	font-size: inherit;
	margin: 0 0 8px;
}

/* ---------- footer ---------- */
.vasaro-footer { color: #cbbfb3; }
.vasaro-footer a { color: #b7aa9d; }
.vasaro-footer a:hover { color: #fff; }
.vasaro-footer h4 {
	color: #fff;
	font-family: var(--wp--preset--font-family--plex-sans);
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 700;
}
.vasaro-footer .vasaro-legal {
	font-family: var(--wp--preset--font-family--plex-mono);
	font-size: 13.5px;
	color: #a09387;
}
.vasaro-footer .vasaro-foot-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 12.5px;
	color: #877a6d;
}
.vasaro-anpc img { border-radius: 6px; background: #fff; }

/* ---------- tablet: two checkout columns, narrow sidebar ---------- */
/* Between roughly 700 and 900px the checkout still runs two columns while the
   sidebar is only ~269px, leaving 225px of content for a summary row that
   wants 244 (48 image + 116 text + 80 price). The row is flex and its children
   carry min-width:auto, so they will not shrink: the price ran out to 783 and
   put horizontal scroll on the whole page.
   Measured against the alternatives — min-width:0 on the description and on
   the price changed nothing at 700/768/782, because the children are already
   at their min-content; trimming the sidebar padding only rescued 782. Letting
   the row wrap fixes all three and needs no other change, so the padding stays
   as it is. The price simply drops under the description when space is tight. */
@media (min-width: 701px) and (max-width: 900px) {
	/* Lower bound added in 6b. Phase 5b scoped this to max-width:900 alone,
	   which also caught phones — where the checkout stacks, the sidebar is the
	   full width and the row has room to spare. Wrapping there pushed the
	   thumbnail and the price onto their own lines, so the checkout summary
	   stopped matching the cart.
	   701, not 783: the checkout runs ONE column up to 700 (sidebar 668 wide)
	   and two from 768 (sidebar 258). A 783 bound left 701-782 unwrapped and
	   put the 778/768 overflow straight back. Measured, both times. */
	.wc-block-components-order-summary-item { flex-wrap: wrap; }
}

/* ---------- category tiles on phones (Phase 6c) ---------- */
/* Three stacked paddings made the photographs read as thumbnails: the section
   gutter was still 44px a side here while every other page had moved to 16,
   and the card then inset the image by another 17. At 375 that left the
   photograph 253px wide inside a 375px screen. Below 783 the section joins the
   rest of the site at 16px and the media bleeds to the card edges, so only the
   card's own border sits between photograph and gutter.
   Text keeps its padding — it is the media alone that bleeds. */
@media (max-width: 782px) {
	.vasaro-tiles-section {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.vasaro-tile__media {
		margin-left: -16px;
		margin-right: -16px;
		width: auto;
		/* 2:1 is a letterbox on a phone. 3:2 gives the sill real presence while
		   still cropping the 1.79:1 source only on the width. */
		aspect-ratio: 3 / 2;
		/* The card's own radius, not the media's usual md: once the image bleeds
		   to the card edges its corners ARE the card's corners, and a 9px image
		   inside a 14px card pokes out of the curve. */
		border-radius: var(--wp--custom--radius--lg) var(--wp--custom--radius--lg) 0 0;
	}
	/* The card's own top padding would otherwise show above the bled image. */
	.vasaro-tile {
		padding-top: 0;
	}
	.vasaro-tile__media {
		margin-top: 0;
	}
}

/* ---------- small screens ---------- */
@media (max-width: 782px) {
	.vasaro-topbar,
	.vasaro-nav { padding-left: 16px !important; padding-right: 16px !important; }
	.vasaro-topbar { flex-wrap: wrap; }
	.vasaro-topbar .wp-block-search { flex-basis: 100%; order: 3; }

	/* 16px floor on every focusable field. Below it iOS Safari zooms the page
	   on focus and does not zoom back out on blur, so one tap on the length
	   box leaves the rest of the configuration shifted sideways. */
	.vasaro-topbar .wp-block-search__input,
	form.cart select,
	form.cart .qty,
	.woocommerce .variations_form table.variations tr td select,
	.vasaro-length input[type="number"],
	.vasaro-ral input,
	.vasaro-caps select,
	.wc-block-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
	.wp-block-woocommerce-mini-cart-contents .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
	.comment-form input[type="text"],
	.comment-form input[type="email"],
	.comment-form input[type="url"],
	.comment-form textarea {
		font-size: 16px;
	}

	/* Transaction controls to the 44px touch minimum. Breadcrumbs and footer
	   links are deliberately left alone — navigation, not transaction. */
	.wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.wp-block-navigation__responsive-container-close {
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.vasaro-nav .wc-block-mini-cart__button {
		min-width: 44px;
		height: 44px;
		padding: 0 4px;
	}
	/* The count pill overhangs the icon by design and the badge is
	   overflow: visible, so nothing is actually cut off — verified in a 375px
	   screenshot. No width override needed here. */
	.wc-block-cart .wc-block-components-quantity-selector__button {
		min-width: 44px;
		min-height: 44px;
	}
	/* Same content-box bug as the tile pills, and this input is what drove the
	   whole widget: min-height 44 plus 6.4px padding top and bottom rendered 57,
	   which stretched the buttons and the 59px widget around it. The buttons
	   were already border-box; the input was not. 44 must remain the total. */
	.wc-block-cart .wc-block-components-quantity-selector__input {
		box-sizing: border-box;
		min-height: 44px;
	}
	/* Not on the Phase 4k list, but the phase's own testing checklist asks for
	   remove to be tappable and it measured 24x24. */
	.wc-block-cart .wc-block-cart-item__remove-link {
		min-width: 44px;
		min-height: 44px;
	}
	.vasaro-tile__links a { min-height: 44px; padding: 10px 16px; }
	.vasaro-topbar .wp-block-search__button { min-width: 44px; height: 44px; }

	/* Stack the variations table properly. The cells were already block, but
	   the row was not, so each cell shrink-wrapped to 253px instead of filling
	   the column. The actual overflow was never the text: WooCommerce gives the
	   select a 16px right margin, which is what pushed the cell's content box
	   past the page (select 372.7 + 16 = 389). Zero it and the cell fits. */
	.variations_form table.variations,
	.variations_form table.variations tbody,
	.variations_form table.variations tr {
		display: block;
		width: 100%;
	}
	.variations_form table.variations th,
	.variations_form table.variations td,
	.variations_form table.variations select {
		box-sizing: border-box;
		max-width: 100%;
	}
	.woocommerce div.product form.cart table.variations tr td select {
		margin-right: 0;
		margin-bottom: 0;
	}
	/* 89px of dead space sat between the width select and the length card.
	   WooCommerce keeps the reset link in flow at visibility:hidden until a
	   variation is chosen, so it reserved a line nobody could see; the rest was
	   cell padding. The attribute selector tracks the inline style WooCommerce
	   toggles, so the link reappears in flow the moment a width is picked --
	   and if that markup ever changes the rule simply stops applying and we are
	   back to today's spacing, never a broken control. */
	.variations_form .reset_variations[style*="visibility: hidden"] { display: none; }
	.variations_form .reset_variations { margin-top: 8px; }
	.woocommerce div.product form.cart table.variations tr td.value { padding-bottom: 8px; }
	.variations_form table.variations { margin-bottom: 8px; }

	/* Configurator-first. The 1:1 gallery pushed the width select two screens
	   down; cap it in vh so the whole image still shows (no crop) and the cap
	   scales with the device rather than with its width. */
	.single-product main.wp-block-group { padding-top: 16px !important; }
	/* object-fit is the load-bearing part. WooCommerce sets width:100% with
	   higher specificity than the width:auto this rule used to carry, so the
	   26vh cap squashed the height instead of scaling both axes: a square photo
	   rendered 343x173, a ratio of 1.98 against its true 1.00. 'contain' keeps
	   the whole photo visible and undistorted inside the capped box, which is
	   what a customer judging a colour needs to see. */
	.single-product .woocommerce-product-gallery img {
		max-height: 26vh;
		object-fit: contain;
		margin-inline: auto;
	}
	.single-product .wp-block-columns { gap: 16px; }
	.single-product .wp-block-column > * + * { margin-block-start: 14px; }

	/* The variations select clipped its own text. WooCommerce pads it with an
	   em value, so the Phase 4k bump from 13px to 16px grew the padding from
	   11.7 to 14.4 a side while the height stayed pinned at 48: the content box
	   fell to 17.2px against a 20px line box, i.e. -2.8px of headroom. Chromium
	   centres and hides it; Safari clips, which is what Robert saw. Trimming the
	   vertical padding restores 22px of content while the control stays 48px
	   tall and the font stays at 16px, so neither the touch target nor the iOS
	   zoom guard is traded away. */
	.woocommerce div.product form.cart table.variations tr td select {
		padding-top: 12px;
		padding-bottom: 12px;
	}

}

/* ---------- phones: one product per row ---------- */
/* Two 161px cards left no room for a photo, a name, a price range and a
   button. One column at phone widths; 768 keeps two. */
@media (max-width: 480px) {
	.wc-block-product-template.wc-block-product-template__responsive {
		grid-template-columns: 1fr;
	}
}

/* ---------- phones: the checkout's first screen ---------- */
/* 104px of dead space stacked up before the order summary: 24 from nav to
   main, 32 of main padding, 24 of .entry-content margin and 24 more before
   the sidebar. On desktop that sits above two full columns and reads as page
   padding; on a phone the summary below it is an 89px collapsed bar, so the
   first screenful was empty. Collapsed to roughly 40px here only. */
@media (max-width: 782px) {
	/* Four separate contributions, trimmed to 8+8+8+16 = 40. The padding needs
	   !important because the template writes it inline on <main>, the same
	   reason the topbar rules above carry it. */
	.woocommerce-checkout main.wp-block-group {
		margin-top: 8px;
		padding-top: 8px !important;
	}
	.woocommerce-checkout .entry-content { margin-top: 8px; }
	.woocommerce-checkout .wp-block-woocommerce-checkout { padding-top: 16px; }
}
