/*
 * Shopo v4: hand-written rules that the generated v4.css does not carry.
 * Mostly the seams between the new chrome and WordPress / the parent theme.
 */

/* WordPress adds a gap between top-level blocks; the new sections butt together. */
.wp-site-blocks > *,
.wp-site-blocks > main > * { margin-block-start: 0; }
.s4-scope { margin-block-start: 0 !important; max-width: none !important; }

/* The parent theme's floating phone bar is replaced by the v4 tab bar. */
.shopo-bar { display: none !important; }

/* Skip link: off-screen until focused. */
.s4-skip:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip-path: none; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: var(--r1); }

/* The add button also carries the parent's .shopo-card__buy hook (it drives the cart drawer); keep the v4 look. */
.s4-scope .s4-add,
.s4-scope .s4-add.shopo-card__buy { width: 44px; height: 44px; min-width: 0; flex: none; padding: 0; margin: 0; border: 0; border-radius: var(--r1); background: var(--blue); color: var(--on-dark); display: grid; place-items: center; box-shadow: none; position: static; transform: none; }
.s4-scope .s4-add:hover { background: var(--blue-d); color: var(--on-dark); }
.s4-scope .s4-add.loading { opacity: .6; pointer-events: none; }
.s4-scope .s4-add::before,
.s4-scope .s4-add::after { content: none; }
.s4-price b small { font-size: var(--t12); font-weight: 500; color: var(--mute); }

/* Count badges are filled in by the parent script, which toggles [hidden]. */
.s4-icon-btn .shopo-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: var(--pill); background: var(--blue); color: var(--on-dark); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; line-height: 1; }
.s4-icon-btn .shopo-badge[hidden],
.s4-tab-n[hidden] { display: none; }
.s4-bag b .woocommerce-Price-amount { font: inherit; }

/* Hero: one slide in flow at a time. */
.s4-hero__in[hidden] { display: none; }
.s4-hero .s4-hero__title { font-size: clamp(40px, 6.2vw, 88px); line-height: .94; letter-spacing: -.045em; margin: 0; }

/* Desktop search panel rows use the product image the search endpoint returns. */
.s4-sugg__row .s4-thumb { width: 52px; height: 52px; }
.s4-sugg__row b .woocommerce-Price-amount { font: inherit; white-space: nowrap; }
.s4-sugg__row b del { display: none; }
.s4-sugg__row b ins { text-decoration: none; }

/* "All products" is not needed in the phone chip row; it stays in the menu. */
@media (max-width: 999px) {
	.s4-nav__all { display: none !important; }
}

/* Footer telephone link keeps the large numeral style. */
.s4-foot__tel a { color: inherit; }

/* WordPress global styles colour headings and links; inside v4 they inherit from their section. */
.s4-scope :where(h1, h2, h3, h4, h5, h6) { color: inherit; font-family: inherit; }
.s4-scope :where(a) { text-decoration: none; }

/* Compare lives in the menu on phones. */
@media (max-width: 999px) {
	.s4-head__acts [data-shopo-count="compare"] { display: none; }
}

/*
 * The header is sticky. Its wrappers must not box it in, or it can only stick
 * within its own height; display:contents lets it stick to the page.
 */
.wp-block-template-part:has(> .s4-chrome > .s4-head),
.s4-chrome:has(> .s4-head) { display: contents; }

/* ---------- category, brand, deals and search results ---------- */
.s4-main { min-height: 50vh; }
.s4-applied a { border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); padding: 6px 12px; font-size: var(--t13); font-weight: 500; color: var(--ink); }
.s4-applied a:hover { border-color: var(--ink); }
.s4-js .s4-filt-apply { display: none; }
.s4-filters .s4-brand-more { align-self: flex-start; }
.s4-more--prev { margin: 0 0 var(--s5); }
.s4-more .s4-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.s4-bar { margin-top: 0; }
.s4-bar-filt span { font-weight: 400; }
.s4-card__img .s4-badge--out { background: var(--ink); top: auto; bottom: 8px; }
@media (max-width: 999px) {
	.s4-filters:not(.s4-is-open) .s4-filters__body { display: none; }
	.s4-filters .s4-filt-apply { display: none; }
}

/* ---------- product page ---------- */
.s4-notices:empty { display: none; }
.s4-notices { padding-top: var(--s4); }
.s4-gal__frame { margin: 0; width: 100%; height: 100%; }
.s4-gal__frame[hidden] { display: none; }
.s4-gal__thumbs button.is-active { border-color: var(--blue); }
.s4-gal__zoom { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.s4-gal__zoom:hover { border-color: var(--ink); }
.s4-gal__main { cursor: zoom-in; }
.s4-buy__price b small { font-size: var(--t14); font-weight: 500; color: var(--mute); letter-spacing: 0; }

/* WooCommerce's own add-to-cart form, dressed as the mockup's quantity + button row. */
.s4-buy__form form.cart { display: flex; gap: var(--s3); margin: 0; flex-wrap: wrap; align-items: stretch; }
.s4-buy__form .quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; height: 52px; flex: none; margin: 0; background: var(--surface); }
.s4-buy__form .quantity .shopo-qty__btn { width: 44px; height: 100%; border: 0; background: transparent; font-size: var(--t18); color: var(--ink); padding: 0; cursor: pointer; }
.s4-buy__form .quantity input.qty { width: 40px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: var(--t16); padding: 0; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.s4-buy__form .quantity input.qty::-webkit-outer-spin-button,
.s4-buy__form .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s4-buy__form .quantity.hidden { display: none; }
.s4-buy__form .single_add_to_cart_button { flex: 1; min-height: 52px; border: 0; border-radius: 14px; background: var(--blue); color: var(--on-dark); font: inherit; font-weight: 600; font-size: var(--t16); padding: 0 var(--s5); cursor: pointer; }
.s4-buy__form .single_add_to_cart_button:hover { background: var(--blue-d); }
.s4-buy__form .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.s4-buy__form form.variations_form { display: grid; gap: var(--s3); }
.s4-buy__form table.variations { width: 100%; border: 0; border-collapse: collapse; margin: 0; }
.s4-buy__form table.variations th,
.s4-buy__form table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
.s4-buy__form table.variations th label { font-size: var(--t14); font-weight: 600; display: block; margin: var(--s2) 0 6px; }
.s4-buy__form table.variations, .s4-buy__form table.variations tbody, .s4-buy__form table.variations tr { display: block; width: 100%; }
.s4-buy__form table.variations select { width: 100%; max-width: none; min-width: 0; height: 52px; line-height: normal; border-radius: var(--r1); border: 1px solid var(--line); background-color: var(--surface); padding: 0 var(--s4) !important; box-sizing: border-box; font: inherit; font-size: var(--t16); margin: 0; }
.s4-buy__form .single_variation_wrap { display: grid; gap: var(--s3); }
.s4-buy__form .single_variation:empty { display: none; }
.s4-buy__form .reset_variations { font-size: var(--t13); color: var(--blue); display: inline-block; margin-top: 6px; }
.s4-buy__form .woocommerce-variation-price { font-size: var(--t24); font-weight: 700; letter-spacing: -.03em; }
.s4-buy__form .woocommerce-variation-price del { font-size: var(--t14); font-weight: 400; color: var(--mute); }
.s4-buy__form .woocommerce-variation-price ins { text-decoration: none; }
.s4-buy__form .woocommerce-variation-price .shopo-pay { display: block; font-size: var(--t13); font-weight: 400; letter-spacing: 0; color: var(--mute); }
.s4-buy__form .woocommerce-variation-price .shopo-pay img { height: 16px; width: auto; vertical-align: middle; }
.s4-buy__form .woocommerce-variation-add-to-cart { display: flex; gap: var(--s3); margin-top: var(--s3); }
.s4-buy__form .stock { font-size: var(--t13); color: var(--mute); margin: 0; flex-basis: 100%; }

/* Description cards: whatever markup the catalogue holds has to sit well in a box. */
.s4-prose { overflow-wrap: anywhere; }
.s4-prose > * { margin-block: 0; }
.s4-prose p { color: var(--ink-2); line-height: 1.6; max-width: 72ch; }
.s4-prose h3, .s4-prose h4 { font-size: var(--t18); letter-spacing: -.02em; margin-top: var(--s2); }
.s4-prose img { max-width: 100%; height: auto; border-radius: var(--r1); display: block; }
.s4-prose table { width: 100%; border-collapse: collapse; font-size: var(--t14); display: block; overflow-x: auto; }
.s4-prose td, .s4-prose th { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; }
.s4-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.s4-prose iframe, .s4-prose video { max-width: 100%; }
.s4-look:not(:has(figcaption)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }

/* ---------- bag: the WooCommerce Cart block inside the v4 layout ---------- */
.s4-bagpage { padding-bottom: var(--s7); }
.s4-bagpage__ship { gap: var(--s2); padding: var(--s4) var(--s5); margin-bottom: var(--s4); font-size: var(--t14); }
.s4-bagpage__ship[hidden] { display: none; }
.s4-bagpage__body { margin-block: 0 !important; }
.s4-bagpage__body > * { max-width: none !important; margin-inline: 0 !important; }
.s4-bagpage .wc-block-cart { margin: 0; gap: var(--s5); align-items: start; }
.s4-bagpage .wc-block-cart .wc-block-cart__main,
.s4-bagpage .wc-block-cart .wc-block-cart__sidebar { background: var(--surface); border-radius: var(--r2); padding: var(--s5); margin: 0; }
@media (min-width: 1000px) {
	.s4-bagpage .wc-block-cart.wc-block-components-sidebar-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); }
	.s4-bagpage .wc-block-cart .wc-block-cart__main,
	.s4-bagpage .wc-block-cart .wc-block-cart__sidebar { width: auto; }
	.s4-bagpage .wc-block-cart .wc-block-cart__sidebar { position: sticky; top: 150px; }
}
.s4-bagpage table.wc-block-cart-items { margin: 0; border: 0; }
.s4-bagpage .wc-block-cart-items__header { display: none; }
.s4-bagpage .wc-block-cart-items td { border-top: 0; border-bottom: 1px solid var(--line-2); padding-block: var(--s4); }
.s4-bagpage .wc-block-cart-items__row:first-child td { padding-top: 0; }
.s4-bagpage .wc-block-cart-items__row:last-child td { border-bottom: 0; padding-bottom: 0; }
.s4-bagpage .wc-block-cart-item__image img { border-radius: var(--r1); background: var(--bg); width: 76px; }
.s4-bagpage .wc-block-components-product-name { color: var(--ink); font-weight: 600; font-size: var(--t16); text-decoration: none; line-height: 1.3; }
.s4-bagpage .wc-block-components-product-name:hover { color: var(--blue); }
.s4-bagpage .wc-block-components-product-metadata__description { display: none; }
.s4-bagpage .wc-block-cart-item__prices { font-size: var(--t14); color: var(--mute); }
.s4-bagpage .wc-block-components-product-price__regular { color: var(--mute); }
.s4-bagpage .wc-block-cart-item__total .wc-block-components-product-price { font-weight: 700; font-size: var(--t18); font-variant-numeric: tabular-nums; }
.s4-bagpage .wc-block-components-sale-badge,
.s4-bagpage .wc-block-components-product-badge { background: var(--green-tint); color: var(--green); border: 0; border-radius: var(--pill); font-weight: 600; font-size: var(--t12); padding: 2px 8px; text-transform: none; }
.s4-bagpage .wc-block-components-quantity-selector { border: 1px solid var(--line); border-radius: 12px; height: 40px; overflow: hidden; }
.s4-bagpage .wc-block-components-quantity-selector::after { border: 0; }
.s4-bagpage .wc-block-components-quantity-selector input { font-weight: 600; font-size: var(--t14); }
.s4-bagpage .wc-block-cart__totals-title { font-size: var(--t24); font-weight: 700; letter-spacing: -.03em; text-transform: none; color: var(--ink); padding: 0 0 var(--s3); }
.s4-bagpage .wc-block-components-totals-wrapper { border-color: var(--line-2); }
.s4-bagpage .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 600; font-size: var(--t16); }
.s4-bagpage .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: var(--t32); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.s4-bagpage .wc-block-cart__submit-button,
.s4-bagpage .wp-block-woocommerce-empty-cart-block .wp-block-button__link { min-height: 52px; border-radius: 14px; background: var(--blue); color: var(--on-dark); font-weight: 600; font-size: var(--t16); border: 0; }
.s4-bagpage .wc-block-cart__submit-button:hover { background: var(--blue-d); color: var(--on-dark); }
.s4-bagpage .wp-block-woocommerce-empty-cart-block { background: var(--surface); border-radius: var(--r2); padding: var(--s7) var(--s5); }
.s4-bagpage .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-size: var(--t24); letter-spacing: -.03em; }
.s4-bagpage .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before { display: none; }
.s4-bagpage__ticks { margin-top: var(--s5); }
/* WooCommerce fixes its phone columns at 80px + 132px, which pushes the line total off a 390px screen. */
.s4-bagpage .is-small table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: var(--s3); }
.s4-bagpage .is-small .wc-block-cart-item__image img { width: 64px; }
.s4-bagpage .is-small .wc-block-cart-item__total .wc-block-components-product-price { font-size: var(--t16); }
@media (max-width: 999px) {
	.s4-bagpage .wc-block-cart .wc-block-cart__main,
	.s4-bagpage .wc-block-cart .wc-block-cart__sidebar { padding: var(--s4); }
}

/* ---------- checkout: the parent layout, with the page kept inside the viewport ---------- */
html:has(> body.s4-on-checkout) { overflow-x: clip; }

/* ---------- ordinary pages (delivery, returns, contact, legal, wishlist, compare) ---------- */
.s4-page { padding-bottom: var(--s7); }
.s4-page__body { margin-block: 0 !important; }
.s4-page__body > * { max-width: 76ch; margin-inline: 0 !important; }
.s4-page__body > .alignwide, .s4-page__body > .alignfull, .s4-page__body > .shopo-saved, .s4-page__body > .woocommerce { max-width: none; }
.s4-page__body > * + * { margin-block-start: var(--s4); }
.s4-page__body p, .s4-page__body li { color: var(--ink-2); line-height: 1.65; }
.s4-page__body h2 { font-size: var(--t24); letter-spacing: -.03em; margin-block-start: var(--s6); }
.s4-page__body h3 { font-size: var(--t18); letter-spacing: -.02em; margin-block-start: var(--s5); }
.s4-page__body a:not([class]) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.s4-fullpage { margin-block: 0 !important; }
.s4-fullpage > * { max-width: none !important; margin: 0 !important; }
[data-view="brands"], [data-view="pricematch"], [data-view="track"] { padding-bottom: var(--s7); }
.s4-brand[hidden], .s4-br-group[hidden] { display: none; }
.s4-err { color: var(--red); font-weight: 500; }
.s4-pm-cmp .s4-free, .s4-pm-cmp b.s4-free { color: var(--green); }
.s4-sum div span { min-width: 0; }

/* ---------- my account: the WooCommerce pages inside the v4 layout ---------- */
body.s4-on-account .s4-page__body .woocommerce { display: grid; gap: var(--s5); }
@media (min-width: 1000px) { body.s4-on-account.logged-in .s4-page__body .woocommerce { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
body.s4-on-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: var(--s2); background: var(--surface); border-radius: var(--r2); display: flex; flex-direction: column; gap: 2px; }
body.s4-on-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px var(--s4); border-radius: var(--r1); color: var(--ink); font-weight: 500; text-decoration: none; }
body.s4-on-account .woocommerce-MyAccount-navigation .is-active a,
body.s4-on-account .woocommerce-MyAccount-navigation a:hover { background: var(--blue-tint); color: var(--blue); }
body.s4-on-account .woocommerce-MyAccount-content,
body.s4-on-account .woocommerce form.login,
body.s4-on-account .woocommerce form.register,
body.s4-on-account .woocommerce form.lost_reset_password { background: var(--surface); border-radius: var(--r2); padding: var(--s5); border: 0; margin: 0; max-width: 520px; }
body.s4-on-account .woocommerce-MyAccount-content { max-width: none; }
body.s4-on-account .woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 var(--s4); padding: 0; width: 100%; float: none; }
body.s4-on-account .woocommerce form label { font-size: var(--t14); font-weight: 500; }
body.s4-on-account .woocommerce form input.input-text { height: 52px; border-radius: var(--r1); border: 1px solid var(--line); background: var(--surface); padding: 0 var(--s4); font-size: var(--t16); width: 100%; }
body.s4-on-account .woocommerce form input.input-text:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
body.s4-on-account .woocommerce button.button,
body.s4-on-account .woocommerce a.button { min-height: 48px; border-radius: 14px; background: var(--blue); color: var(--on-dark); font-weight: 600; font-size: var(--t16); border: 0; padding: 0 var(--s5); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
body.s4-on-account .woocommerce button.button:hover,
body.s4-on-account .woocommerce a.button:hover { background: var(--blue-d); }
body.s4-on-account .woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--t14); }
body.s4-on-account .woocommerce table.shop_table th,
body.s4-on-account .woocommerce table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); text-align: left; }

/* ---------- ask shopo / help ---------- */
[data-view="ask"], [data-view="help"] { padding-bottom: var(--s7); }
[data-view="help"] .s4-box { scroll-margin-top: 150px; }
.s4-ask-form .s4-btn--white { background: var(--blue); color: var(--on-dark); }

/* ---------- wishlist and compare: the parent's saved-list cards in v4 dress ---------- */
.s4-page .shopo-saved a { text-decoration: none; }
.s4-page .shopo-saved .shopo-card { background: var(--surface); border: 0; border-radius: var(--r2); }
.s4-page .shopo-saved .shopo-card__title,
.s4-page .shopo-saved .shopo-card__title a,
.s4-page .shopo-compare__name { color: var(--ink); font-weight: 500; text-decoration: none; }
.s4-page .shopo-saved .shopo-card__title a:hover,
.s4-page .shopo-compare__name:hover { color: var(--blue); }
.s4-page .shopo-saved__buy { background: var(--blue); color: var(--on-dark) !important; border-radius: 12px; font-weight: 600; border: 0; }
.s4-page .shopo-saved__buy:hover { background: var(--blue-d); }
.s4-page .shopo-saved__remove { border-radius: 12px; color: var(--ink-2); }
.s4-page .shopo-compare { background: var(--surface); border-radius: var(--r2); border: 0; }
.s4-page .shopo-compare th { color: var(--mute); font-weight: 500; }
.s4-page .shopo-saved .shopo-empty { background: var(--surface); border-radius: var(--r2); padding: var(--s7) var(--s5); }
.s4-page .shopo-saved .shopo-empty a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- order confirmation: the WooCommerce blocks as v4 cards ---------- */
.s4-received { padding-bottom: var(--s7); }
.s4-received__body { display: grid; gap: var(--s4); max-width: 1160px; }
.s4-received .s4-shell { max-width: 1160px; }
.s4-received__body > * { margin: 0 !important; max-width: none !important; }
.s4-received__body > .wc-block-order-confirmation-status,
.s4-received__body > .wc-block-order-confirmation-summary,
.s4-received__body > .wc-block-order-confirmation-totals-wrapper,
.s4-received__body .wp-block-column > *,
.s4-received__body > .wc-block-order-confirmation-additional-information { background: var(--surface); border-radius: var(--r2); padding: var(--s5); }
.s4-received__body > .wc-block-order-confirmation-additional-information:empty { display: none; }
.s4-received__body .wc-block-order-confirmation-status > p:first-child,
.s4-received__body .wc-block-order-confirmation-status h1,
.s4-received__body .wc-block-order-confirmation-status-description + *,
.s4-received__body .wc-block-order-confirmation-status > h1 { font-size: var(--t18); letter-spacing: -.02em; margin: 0; font-weight: 600; }
.s4-received__body h2 { font-size: var(--t24); letter-spacing: -.03em; margin: 0 0 var(--s3); }
.s4-received__body .wc-block-order-confirmation-summary-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.s4-received__body .wc-block-order-confirmation-summary-list-item { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; }
.s4-received__body .wc-block-order-confirmation-summary-list-item__key { font-size: var(--t12); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.s4-received__body .wc-block-order-confirmation-summary-list-item__value { font-weight: 600; font-size: var(--t16); overflow-wrap: anywhere; }
.s4-received__body table { width: 100%; border: 0; border-collapse: collapse; font-size: var(--t14); font-variant-numeric: tabular-nums; }
.s4-received__body table th, .s4-received__body table td { border: 0; border-bottom: 1px solid var(--line-2); padding: 12px 0; background: none; text-align: left; }
.s4-received__body table td:last-child, .s4-received__body table th:last-child { text-align: right; }
.s4-received__body table thead { display: none; }
.s4-received__body table tfoot tr:last-child th, .s4-received__body table tfoot tr:last-child td { border-bottom: 0; font-size: var(--t18); font-weight: 700; }
.s4-received__body table a { color: var(--ink); font-weight: 500; text-decoration: none; }
.s4-received__body address { font-style: normal; border: 0; padding: 0; color: var(--ink-2); line-height: 1.6; }
.s4-received__body .wp-block-columns { gap: var(--s4); margin: 0; }
.s4-received__body input[type="email"] { height: 52px; border-radius: var(--r1); border: 1px solid var(--line); padding: 0 var(--s4); font-size: var(--t16); width: 100%; max-width: 420px; }
.s4-received__body button, .s4-received__body .button { min-height: 48px; border-radius: 14px; background: var(--blue); color: var(--on-dark); font-weight: 600; border: 0; padding: 0 var(--s5); cursor: pointer; }
.s4-received__acts { margin-top: var(--s5); }

/* Brand chips on the homepage hero (dark background). */
.s4-hero__brands { margin-top: var(--s2); max-width: 100%; min-width: 0; }
.s4-hero__brands .s4-chip { background: transparent; border-color: rgba(255, 255, 255, .4); color: var(--on-dark); }
.s4-hero__brands .s4-chip:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(255, 255, 255, .1); }
/* The chip row must not size the slide: keep the copy column to the screen width. */
.s4-hero__copy { min-width: 0; }
@media (max-width: 999px) { .s4-hero__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 999px) { .s4-hero__brands { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .s4-hero__brands .s4-chip { flex: none; } }

/* Product options as buttons; the WooCommerce dropdown stays for its script but is hidden. */
.s4-buy__form select.s4-opts-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.s4-buy__form table.variations td.value { position: relative; }
.s4-opts-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.s4-opt-btn { min-height: 48px; min-width: 64px; padding: 0 var(--s4); border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: var(--t15, 15px); cursor: pointer; transition: border-color .15s, background .15s; }
.s4-opt-btn:hover { border-color: var(--ink); }
.s4-opt-btn[aria-checked="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.s4-opt-btn:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.s4-opt-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.s4-buy__form table.variations th label { margin-top: 0; }
.s4-buy__form .woocommerce-variation-description:empty,
.s4-buy__form .woocommerce-variation-availability:empty { display: none; }
/* The chosen option's price is shown in the main price line, so WooCommerce's own copy and the reset link are not needed. */
.s4-buy__form .woocommerce-variation-price,
.s4-buy__form .reset_variations { display: none !important; }
.s4-buy__form .single_variation { display: none !important; }
.s4-buy__form .woocommerce-variation-add-to-cart { margin-top: 0; }

/* The panel's display rule would otherwise beat the hidden attribute. */
.s4-sugg[hidden] { display: none !important; }

/* The old theme's floating "View cart" pill sat on top of the help button; the v4 header bag already shows the count and total and opens the same drawer. */
body.s4 .shopo-fcart { display: none !important; }
