/* Euro Peptides: what the design needs on top of site.css to sit inside WordPress and WooCommerce.
   Layout resets for block wrappers, inner-page header, shop listing, WooCommerce's add-to-cart form,
   cart and checkout blocks, plain pages. Loads after site.css on every page. */

/* ---------- Block wrappers: sections set their own spacing ---------- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .ep-main > *, .wp-block-group.pdp > *, .wp-block-group.buy > *, .wp-block-group.shopbar > * { margin-block-start: 0; margin-block-end: 0; }
.ep-main { display: flow-root; }
a.btn, a.cart-btn, .buy__area a, .areanav a { text-decoration: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.foot__pay:empty { display: none; }
.foot__seo span { color: #8fa0b8; }

/* ---------- Header on inner pages, search row, small-screen menu ---------- */
.top--slim { border-radius: 0 0 var(--r-md) var(--r-md); overflow: visible; }
.top--slim .util { border-radius: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; padding-bottom: 18px; font-size: 14px; color: var(--ink-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--klein); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.head { position: relative; }
.head--checkout .wrap { justify-content: space-between; gap: 16px; }
.head--checkout .link { color: #fff; font-weight: 500; }
.head__secure { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.searchbar { padding: 4px 0 18px; }
.searchbar[hidden] { display: none; }
.searchbar .wrap { display: flex; gap: 10px; }
.searchbar input[type="search"] { flex: 1; min-width: 0; height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.07); color: #fff; }
.searchbar input::placeholder { color: var(--on-marine-muted); }
@media (max-width: 1023px) {
  .nav-open .nav { position: absolute; z-index: 15; left: var(--pad); right: var(--pad); top: calc(100% - 6px); display: flex; flex-direction: column; gap: 0; padding: 10px 22px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-float); }
  .nav-open .nav a { padding: 14px 0; }
  .nav-open .nav a + a { border-top: 1px solid var(--line); }
}

/* ---------- Shop listing ---------- */
.shophead { padding-top: 4px; }
.shophead h1 { display: flex; align-items: center; gap: 0.3em; font: 600 clamp(38px, 5vw, 68px)/0.98 var(--display); letter-spacing: -0.035em; }
.shophead h1 .cap { flex: none; width: 0.62em; height: 0.62em; box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.22); }
.shophead .lead { margin-top: 16px; }
.areanav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.areanav a { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 11px; border-radius: 999px; background: color-mix(in srgb, var(--c, #7d8996) 14%, #fff); font-size: 14px; font-weight: 500; white-space: nowrap; transition: transform 240ms var(--spring), background-color 160ms, color 160ms; }
.areanav a:first-child { padding-left: 18px; background: var(--mist); }
.areanav a:hover { transform: translateY(-2px); }
.areanav a:active { transform: scale(0.96); }
.areanav .cap { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: none; }
.areanav .num { font-size: 13px; color: var(--ink-muted); }
.areanav a[aria-current] { background: var(--ink); color: #fff; }
.areanav a[aria-current] .num { color: var(--on-marine-muted); }
.shopbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding-bottom: 22px; font-size: 15px; color: var(--ink-muted); }
.shopbar p { margin: 0; }
.shopbar select { height: 44px; padding: 0 38px 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background-color: #fff; font: 500 15px/1 var(--sans); color: var(--ink); cursor: pointer; }
.shopgrid { padding-bottom: 80px; }
.shopgrid .wc-block-product-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; margin: 0; padding: 0; list-style: none; }
.shopgrid .wc-block-product { display: flex; margin: 0; min-width: 0; }
.shopgrid .wc-block-product > .card { flex: 1; }
.shopgrid .wp-block-query-pagination { margin-top: 56px; gap: 8px; align-items: center; }
.shopgrid .wp-block-query-pagination-numbers { display: flex; gap: 6px; }
.shopgrid .page-numbers, .shopgrid .wp-block-query-pagination-next, .shopgrid .wp-block-query-pagination-previous { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 999px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.shopgrid .page-numbers.current { background: var(--ink); color: #fff; }
.shopgrid a.page-numbers:hover, .shopgrid .wp-block-query-pagination-next:hover, .shopgrid .wp-block-query-pagination-previous:hover { background: var(--sky); color: var(--klein); }
@media (max-width: 1023px) { .shopgrid .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .shopgrid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .areanav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .areanav::-webkit-scrollbar { display: none; }
  .shopbar { margin-top: 20px; }
}
.addnote { flex: 0 0 100%; margin-top: 8px; font-size: 14px; color: #b3261e; }

/* ---------- Product page: WooCommerce's add-to-cart form in the design's clothes ---------- */
.gallery--single { grid-template-columns: 1fr; }
.gallery--single .gallery__stage { grid-column: 1; }
.buy__area { background: color-mix(in srgb, var(--c) 16%, #fff); }
.buy .wp-block-add-to-cart-form, .buy form.cart { margin: 0; padding: 0; }
.buy table.variations, .buy table.variations tbody, .buy table.variations tr, .buy table.variations th, .buy table.variations td { display: block; width: auto; margin: 0; padding: 0; border: 0; background: none; text-align: left; }
.buy table.variations { margin-top: 28px; }
.buy table.variations th label { font-size: 15px; font-weight: 600; }
.buy table.variations .sizes--lg { margin-top: 10px; }
.js .buy table.variations select, .js .buy .reset_variations { display: none !important; }
html:not(.js) .buy [data-pills] { display: none; }
.buy .sizes input:disabled + span { opacity: 0.45; text-decoration: line-through; }
.buy .single_variation { min-height: 96px; }
.buy .woocommerce-variation-availability:empty, .buy .woocommerce-variation-description:empty { display: none; }
.buy .woocommerce-variation-add-to-cart, .buy form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.buy form.cart:not(.variations_form) > .buy__price, .buy form.cart:not(.variations_form) > .tiers { flex: 0 0 100%; }
.buy .quantity { display: inline-flex; align-items: center; height: 58px; margin: 0; padding: 0 6px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.buy .quantity .qty { width: 40px; height: 44px; padding: 0; border: 0; background: none; text-align: center; font: 600 17px/1 var(--sans); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.buy .quantity .qty::-webkit-inner-spin-button, .buy .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color 160ms; }
.qty__btn:hover { background: var(--sky); color: var(--klein); }
.buy .single_add_to_cart_button { flex: 1; min-height: 58px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; background: var(--klein); color: #fff; font: 600 17px/1 var(--sans); cursor: pointer; transition: background-color 160ms, transform 200ms var(--spring); }
.buy .single_add_to_cart_button:hover { background: var(--klein-dark); }
.buy .single_add_to_cart_button:active { transform: scale(0.97); }
.buy .single_add_to_cart_button.disabled, .buy .single_add_to_cart_button[disabled] { opacity: 0.55; cursor: not-allowed; }
.buy .screen-reader-text, .ep-woo .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.specs__text { margin-top: 18px; color: var(--ink-muted); }
.sheet__note { max-width: 70%; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--ink-muted); }
.section--related { padding-top: 72px; }
.sizes__more { display: inline-flex; align-items: center; height: 38px; padding: 0 13px; border: 1.5px dashed var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.sizes__more:hover { border-style: solid; border-color: var(--klein); color: var(--klein); }
.buy__ruo { display: flex; gap: 12px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--mist); font-size: 14px; line-height: 1.5; }
.buy__ruo .ico { width: 20px; height: 20px; margin-top: 1px; }

/* ---------- Plain pages, cart and checkout ---------- */
.pagehead { padding-top: 44px; padding-bottom: 26px; }
.pagehead h1 { font: 600 clamp(34px, 4.6vw, 60px)/1 var(--display); letter-spacing: -0.035em; }
.ep-page { padding-bottom: 72px; }
.ruo-row { padding-top: 28px; }
.ruo-row .buy__ruo { margin-top: 0; max-width: 760px; }
.prose { max-width: calc(760px + 2 * var(--pad)); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.7em; font: 600 28px/1.15 var(--display); letter-spacing: -0.02em; }
.prose h3 { margin-top: 1.5em; font: 600 21px/1.2 var(--display); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose a:not(.btn) { color: var(--klein); text-underline-offset: 3px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { margin: 0 auto 18px; padding: 16px 20px; border: 0; border-radius: var(--r-sm); background: var(--sky); list-style: none; font-size: 15px; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { background: #fdecea; }
.wc-block-store-notices, .woocommerce-notices-wrapper { max-width: calc(1280px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.ep-woo { font-size: 16px; }
.ep-woo h2, .ep-woo .wc-block-components-title, .ep-woo .wc-block-cart__totals-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-transform: none; }
.ep-woo .wc-block-components-button:not(.is-link), .ep-woo .wp-element-button, .ep-woo .button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--klein); color: #fff; font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 160ms, transform 200ms var(--spring); }
.ep-woo .wc-block-components-button:not(.is-link):hover, .ep-woo .wp-element-button:hover, .ep-woo .button:hover { background: var(--klein-dark); color: #fff; }
.ep-woo .wc-block-components-button:not(.is-link):active { transform: scale(0.98); }
.ep-woo a { color: var(--klein); }
.ep-woo .wc-block-components-product-name { color: var(--ink); font: 600 18px/1.25 var(--display); text-decoration: none; }
.ep-woo .wc-block-cart-items__header, .ep-woo .wc-block-cart-items th { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-muted); }
.ep-woo .wc-block-cart-item__image img, .ep-woo .wc-block-components-order-summary-item__image img { border-radius: 14px; background: var(--photo); }
.ep-woo .wc-block-components-sidebar .wc-block-components-panel, .ep-woo .wc-block-components-totals-wrapper { border-color: var(--line); }
.ep-woo .wc-block-cart__sidebar, .ep-woo .wc-block-checkout__sidebar { padding: 26px 26px 22px; border-radius: var(--r-md); background: var(--sky); }
.ep-woo .wc-block-checkout__sidebar .wc-block-components-totals-wrapper, .ep-woo .wc-block-cart__sidebar .wc-block-components-totals-wrapper { border-color: var(--sky-line); }
.ep-woo .wc-block-components-text-input input, .ep-woo .wc-blocks-components-select__select, .ep-woo .wc-block-components-textarea, .ep-woo .wc-block-components-combobox-control input { border-radius: 14px; border-color: var(--line-strong); font: inherit; }
.ep-woo .wc-block-components-text-input input:focus, .ep-woo .wc-blocks-components-select__select:focus { box-shadow: 0 0 0 2px var(--klein); border-color: var(--klein); }
.ep-woo .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 6px; border-color: var(--line-strong); }
.ep-woo .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--klein); border-color: var(--klein); }
.ep-woo .wc-block-components-checkbox__mark { fill: #fff; }
.ep-woo .wc-block-components-radio-control__input:checked::before { background: var(--klein); }
.ep-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .ep-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 600; }
.ep-woo .wc-block-components-quantity-selector { border-radius: 999px; }
.ep-woo .wc-block-components-quantity-selector::after { border-radius: 999px; border-color: var(--line-strong); }
.ep-woo .wc-block-cart__empty-cart__title { font: 600 32px/1.1 var(--display); }

/* ---------- Cart drawer lines (markup from the companion plugin) ---------- */
.line { align-items: start; }
.line p { min-width: 0; }
.line__qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; padding: 2px; border: 1.5px solid var(--line); border-radius: 999px; }
.line__qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; font-size: 17px; line-height: 1; cursor: pointer; }
.line__qty button:hover { background: var(--sky); color: var(--klein); }
.line__qty output { min-width: 22px; text-align: center; font-weight: 600; color: var(--ink); }
.line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line__remove { padding: 0; border: 0; background: none; font-size: 13px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.line__remove:hover { color: var(--ink); }
.line.is-busy { opacity: 0.5; pointer-events: none; }
.drawer__view { margin-top: 12px; text-align: center; font-size: 15px; }

/* Empty cart: WooCommerce's own block content, given the page's rhythm */
.ep-woo .wp-block-woocommerce-empty-cart-block > * + * { margin-top: 22px; }
.ep-woo .wp-block-woocommerce-empty-cart-block h2 { font-size: clamp(26px, 3vw, 36px); }
.ep-woo .wc-block-grid__products { margin-inline: -12px; }
.ep-woo .wc-block-grid__product { border: 0; padding: 0 12px; }
.ep-woo .wc-block-grid__product-image img { border-radius: var(--r-md); }
.ep-woo .wc-block-grid__product-title { font: 600 19px/1.2 var(--display); color: var(--ink); }
.ep-woo .wc-block-grid__product .wp-block-button__link { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* Fixes after the first run on real data */
.gallery.gallery--single { grid-template-columns: minmax(0, 1fr); }
.gallery.gallery--single .gallery__stage { grid-column: 1; }
.line p > span:not(.line__qty) { display: block; }
.admin-bar .drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer { top: 46px; } }

/* =====================================================================================
   Pass 5 (24 Nov 2026): audit fixes and a crisper, more structured look.
   Product tiles with an edge, a shop toolbar with a list view, a framed buy box,
   a language panel sized for 22 languages. Hairlines before shadows; one lift on hover.
   ===================================================================================== */

/* ---------- Hero fixes ---------- */
/* Country bubbles never leave the screen: each keeps its place but stops 10 px from the edge. */
/* --edge is the free space between the content column and the screen edge. */
.bubbles { --edge: calc((100vw - min(100vw, 1280px + 2 * var(--pad))) / 2); }
.bubble { right: max(var(--r, 0px), calc(14px - var(--edge))); top: var(--t, 0%); }
/* The label-free bottle must not replay its entrance when the live label takes over. */
.vial.is-live .vial__frame img { animation: none !important; }
@media (max-width: 1100px) and (min-width: 768px) { .hero__copy { max-width: 56%; } .hero__tag { text-wrap: balance; } }

/* ---------- Product tile ---------- */
.card[data-product] { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 30px; background: #fff; transition: border-color 200ms, box-shadow 320ms var(--ease), transform 320ms var(--ease); }
.card[data-product]:hover, .card[data-product]:focus-within { border-color: #b3bff2; box-shadow: 0 24px 44px -24px rgba(31, 59, 203, 0.38); transform: translateY(-4px); }
.card[data-product] .card__media { border-radius: 21px; aspect-ratio: 1 / 1.14; }
.card[data-product] .card__body { padding: 16px 10px 8px; }
.card[data-product] h3 { font-size: 20px; }
.card[data-product] .card__cas { margin-top: 4px; font-size: 13px; }
.card[data-product] .sizes { margin-top: 12px; gap: 6px; }
.card[data-product] .sizes span, .card[data-product] .sizes__more { height: 34px; padding: 0 13px; font-size: 13px; border-width: 1px; }
.card[data-product] .card__body > :nth-last-child(2) { margin-bottom: 16px; }
.card[data-product] .card__buy { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); align-items: center; }
.card[data-product] .price { font-size: 22px; }
.card[data-product] .permg { font-size: 13px; }
.card[data-product] [data-add], .card[data-product] .card__buy .btn { min-height: 44px; padding: 0 18px; border-color: transparent; background: var(--klein-soft); color: var(--klein); font-size: 15px; white-space: nowrap; }
.card[data-product] [data-add]:hover, .card[data-product] .card__buy .btn:hover { background: var(--klein); color: #fff; }
.card[data-product] .chip { left: 10px; top: 10px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 0 rgba(15, 28, 46, 0.06); }
.grid { gap: 20px; }
@media (max-width: 767px) {
  .card[data-product] { padding: 6px; border-radius: 22px; }
  .card[data-product] .card__media { border-radius: 17px; }
  .card[data-product] .card__body { padding: 12px 6px 6px; }
  .card[data-product] h3 { font-size: 17px; }
  .card[data-product] .card__buy { flex-direction: column; align-items: stretch; gap: 10px; }
  .grid { gap: 10px; }
}

/* ---------- Shop: mist ground, white tiles, toolbar, list view ---------- */
body:has(.ep-shop) { background: var(--mist); }
.ep-shop .crumbs { padding-bottom: 10px; }
.areanav a { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.areanav a:first-child { background: #fff; }
.areanav a:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.areanav a[aria-current] { background: var(--ink); box-shadow: none; }
.shopbar.wrap { width: calc(100% - 2 * var(--pad)); max-width: 1280px; margin-top: 22px; padding: 8px 8px 8px 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.shopbar + .shopgrid, .shopgrid { margin-top: 20px; }
.shopbar .woocommerce-result-count, .shopbar .wc-block-product-results-count { margin: 0 auto 0 0; font-variant-numeric: tabular-nums; }
.shopbar form, .shopbar .woocommerce-ordering { margin: 0; }
.shopbar select { height: 42px; border: 0; background-color: var(--mist); }
.viewtoggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mist); }
.viewtoggle button { display: inline-grid; place-items: center; width: 42px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--ink-muted); cursor: pointer; transition: background-color 160ms, color 160ms; }
.viewtoggle button[aria-pressed="true"] { background: #fff; color: var(--klein); box-shadow: 0 1px 2px rgba(15, 28, 46, 0.14); }
.viewtoggle .ico { width: 19px; height: 19px; }
.shopgrid .wc-block-product-template { gap: 20px; }

.shopgrid.is-list .wc-block-product-template { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 30px; background: #fff; overflow: hidden; }
.shopgrid.is-list .wc-block-product + .wc-block-product { border-top: 1px solid var(--line); }
.shopgrid.is-list .card[data-product] { display: grid; grid-template-columns: 64px minmax(150px, 1.1fr) minmax(0, 1.5fr) auto; grid-template-rows: auto auto; column-gap: 22px; align-items: center; padding: 12px 20px 12px 14px; border: 0; border-radius: 0; transform: none; box-shadow: none; transition: background-color 160ms; }
.shopgrid.is-list .card[data-product]:hover { background: #f7f9ff; }
.shopgrid.is-list .card__media { grid-column: 1; grid-row: 1 / span 2; width: 64px; aspect-ratio: 1; border-radius: 16px; }
.shopgrid.is-list .card__media .chip { display: none; }
.shopgrid.is-list .card__body { display: contents; }
.shopgrid.is-list .card h3 { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; }
.shopgrid.is-list .card__cas { grid-column: 2; grid-row: 2; align-self: start; margin-top: 2px; }
.shopgrid.is-list .card h3:only-of-type:not(:has(+ .card__cas)) { grid-row: 1 / span 2; align-self: center; }
.shopgrid.is-list .sizes { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.shopgrid.is-list .card__buy { grid-column: 4; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; gap: 22px; }
.shopgrid.is-list .card__body > :nth-last-child(2) { margin-bottom: 0; }
.shopgrid.is-list .card__buy p { min-width: 96px; text-align: right; }
.shopgrid.is-list .price { font-size: 19px; }
@media (max-width: 767px) {
  .shopbar.wrap { padding: 6px 6px 6px 16px; font-size: 14px; }
  .shopbar select { max-width: 150px; }
  .shopgrid .wc-block-product-template { gap: 10px; }
  .shopgrid.is-list .card[data-product] { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 12px; padding: 12px; }
  .shopgrid.is-list .card__media { width: 56px; }
  .shopgrid.is-list .sizes { display: none; }
  .shopgrid.is-list .card__buy { grid-column: 3; flex-direction: column; align-items: flex-end; gap: 6px; }
  .shopgrid.is-list .card__buy p { min-width: 0; }
  .shopgrid.is-list .permg { display: none; }
  .shopgrid.is-list [data-add] { min-height: 38px; padding: 0 14px; font-size: 14px; }
}

/* ---------- Product page: the buy box is a framed panel ---------- */
@media (min-width: 1024px) {
  .pdp { gap: 44px; }
  .wp-block-group.buy { padding: 30px 32px 26px; border: 1px solid var(--line); border-radius: 36px; background: #fff; }
  .buy h1 { font-size: clamp(38px, 4.2vw, 60px); }
}
.buy .buy__price { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.buy .woocommerce-variation-add-to-cart, .buy form.cart:not(.variations_form) { margin-top: 20px; }
.buy__facts { margin-top: 22px; }
.buy__facts li:last-child { border-bottom: 0; }
.specs__list { background: #fff; border: 1px solid var(--line); }
.specs__list div + div { border-top-color: var(--line); }

/* ---------- Language panel: room for every language ---------- */
.langmenu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; padding: 10px; }
.langmenu[hidden] { display: none; }
.langmenu a { gap: 10px; padding: 8px 10px; font-size: 15px; white-space: nowrap; }
.langmenu .oval { flex: none; }
.foot__langs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; justify-content: flex-end; }

/* ---------- Tap targets on touch screens ---------- */
.head__logo { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { padding: 10px 0; margin: -10px 0; }
.section__head .link { padding: 8px 0; }
@media (pointer: coarse) {
  .card[data-product] .sizes span, .card[data-product] .sizes__more { height: 42px; padding: 0 15px; font-size: 14px; }
  .sizes--lg span { height: 52px; }
}

/* Buy box rhythm: the block wrapper resets margins, so the steps are set here in one place. */
.buy.buy > h1 { margin-top: 16px; }
.buy.buy > .buy__sub { margin-top: 12px; }
.buy__sub .num { white-space: nowrap; }
.buy.buy > .buy__free { margin-top: 20px; }
.buy.buy > .buy__facts { margin-top: 20px; }
.buy.buy > .buy__ruo { margin-top: 16px; }
.buy table.variations { margin-top: 24px; }
.buy table.variations th { margin-bottom: 2px; }
.buy .single_variation { min-height: 0; }
.buy .sizes--lg span { height: 48px; padding: 0 22px; font-size: 16px; }
.ep-shop .ruo-row .buy__ruo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.buy .buy__price { margin-top: 18px; }
.buy__area { min-height: 40px; }
.buy__area a { display: inline-flex; align-items: center; min-height: 40px; }
@media (pointer: coarse) {
  .chipbtn { height: 42px; padding: 0 15px 0 12px; }
  .foot__langs .oval { height: 38px; min-width: 46px; font-size: 12px; }
  .viewtoggle button { height: 40px; }
}
