/*
Theme Name: The O Shop
Theme URI: https://the-o.shop
Author: The O Shop
Author URI: https://the-o.shop
Description: Dark, arcade-flavoured block theme for The O Shop (guitar strings, capos, accessories, kids). WooCommerce-ready, self-hosted Bungee display font, system body font.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theoshop
Tags: e-commerce, block-patterns, full-site-editing, dark-mode, accessibility-ready
*/

/* Only what theme.json cannot express. Tokens come from theme.json presets. */

:root {
	--oshop-yellow: var(--wp--preset--color--yellow);
	--oshop-ink: var(--wp--preset--color--ink);
	--oshop-focus-ring: 0 0 0 3px rgba(247, 231, 77, .35);
	--oshop-header-h: 56px;
}

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; }

/* ---------- Focus rings ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--yellow);
	outline-offset: 2px;
}
.wp-element-button:focus-visible,
.wc-block-components-button:focus-visible,
.button:focus-visible,
button.alt:focus-visible { outline-color: #fff; }
.is-style-band :focus-visible { outline-color: var(--wp--preset--color--yellow); }

.skip-link, .screen-reader-text:focus {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--ink);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons (arcade hard shadow) ---------- */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button:not(.is-link),
.wc-block-components-button.contained,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s, transform .1s, box-shadow .1s;
}
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link,
.wc-block-components-button:not(.is-link):not(.outlined),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 4px 0 var(--wp--preset--color--yellow-shade);
	font-weight: 700;
	margin-bottom: 4px;
}
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link:hover,
.wc-block-components-button:not(.is-link):not(.outlined):hover,
.single_add_to_cart_button:hover { background: var(--wp--preset--color--yellow-hover); color: var(--wp--preset--color--ink); }
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link:active,
.wc-block-components-button:not(.is-link):not(.outlined):active,
.single_add_to_cart_button:active {
	background: var(--wp--preset--color--yellow-press);
	transform: translateY(2px);
	box-shadow: 0 2px 0 var(--wp--preset--color--yellow-shade);
}
.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link:disabled,
.wc-block-components-button:disabled,
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-muted);
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}
/* Secondary / outline */
.is-style-outline > .wp-block-button__link,
.wc-block-components-button.outlined,
.wc-block-components-product-button .wp-block-button.is-style-outline .wp-block-button__link,
.wc-block-components-totals-coupon__button {
	background: transparent;
	color: var(--wp--preset--color--yellow);
	border: 2px solid var(--wp--preset--color--yellow);
	box-shadow: none;
}
.is-style-outline > .wp-block-button__link:hover,
.wc-block-components-button.outlined:hover { background: rgba(247, 231, 77, .12); color: var(--wp--preset--color--yellow); }
.is-style-outline > .wp-block-button__link:active { background: rgba(247, 231, 77, .2); }
/* Ghost */
.is-style-ghost > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--text); box-shadow: none; border-color: transparent;
}
.is-style-ghost > .wp-block-button__link:hover { background: var(--wp--preset--color--bg-3); }
/* On yellow band */
.has-yellow-background-color .wp-block-button .wp-block-button__link {
	background: var(--wp--preset--color--ink); color: var(--wp--preset--color--yellow); box-shadow: none;
}
.has-yellow-background-color :focus-visible { outline-color: var(--wp--preset--color--ink); }

@media (max-width: 599px) {
	.oshop-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.oshop-hero .wp-block-button { width: 100%; }
	.oshop-hero .wp-block-button__link { width: 100%; }
}

/* ---------- Form fields ---------- */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="number"], input[type="search"], textarea, select),
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select__select,
.wc-block-components-combobox .components-combobox-control__suggestions-container input {
	min-height: 48px;
	background: var(--wp--preset--color--bg-2);
	color: var(--wp--preset--color--text);
	border: 1.5px solid var(--wp--preset--color--border-strong);
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
	padding: 0 14px;
	box-sizing: border-box;
}
textarea, .wc-block-components-textarea { padding: 12px 14px; }
::placeholder { color: var(--wp--preset--color--text-muted); opacity: 1; }
:where(input, textarea, select):hover { border-color: var(--wp--preset--color--text-muted); }
:where(input, textarea, select):focus,
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--yellow);
	box-shadow: var(--oshop-focus-ring);
	outline: none;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F5F5F0' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
:where(label), .wc-block-components-text-input label { color: var(--wp--preset--color--text-2); font-weight: 600; font-size: 14px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--wp--preset--color--yellow); min-height: 0; width: 22px; height: 22px; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.wc-block-components-radio-control__input {
	background: var(--wp--preset--color--bg-2);
	border: 1.5px solid var(--wp--preset--color--border-strong);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--wp--preset--color--yellow); border-color: var(--wp--preset--color--yellow); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--wp--preset--color--ink); }
.wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--yellow); }
.wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--yellow); }
.has-error input, .has-error select, .wc-block-components-text-input.has-error input { border-color: var(--wp--preset--color--error); }
.wc-block-components-validation-error, .woocommerce-error { color: var(--wp--preset--color--error); }

/* Quantity stepper */
.quantity, .wc-block-components-quantity-selector {
	display: inline-flex;
	border: 1.5px solid var(--wp--preset--color--border-strong);
	border-radius: 8px;
	background: var(--wp--preset--color--bg-2);
	min-height: 48px;
	overflow: hidden;
}
.quantity input.qty, .wc-block-components-quantity-selector__input {
	width: 56px; min-height: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 600; box-shadow: none; padding: 0;
	-moz-appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.wc-block-components-quantity-selector::after { border: 0; }
.wc-block-components-quantity-selector__button { min-width: 44px; color: var(--wp--preset--color--text); opacity: 1; }
.wc-block-components-quantity-selector__button:hover { background: var(--wp--preset--color--bg-3); }

/* ---------- Layout bits ---------- */
.oshop-main { padding-block: 24px 64px; }
.oshop-band { background: var(--wp--preset--color--bg-1); }
.is-style-band { background: var(--wp--preset--color--bg-1); }
.is-style-panel { background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; padding: 16px; }
.oshop-section { padding-block: 40px; }
@media (min-width: 720px) { .oshop-section { padding-block: 72px; } }
.oshop-section-head { align-items: baseline; }
.oshop-section-head h2 { margin: 0; }
.oshop-page-title { margin-bottom: 16px; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--yellow); }
.oshop-icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.wp-block-html:has(> .oshop-icon) { line-height: 0; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: -36px; /* announcement bar scrolls away, main bar stays */
	z-index: 30;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(32px - 36px); }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(46px - 36px); } }
.oshop-announce { background: var(--wp--preset--color--bg-1); border-bottom: 1px solid var(--wp--preset--color--border); height: 36px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--wp--preset--color--text-2); }
.oshop-announce p { margin: 0; white-space: nowrap; font-size: 14px; }
.oshop-announce strong { color: var(--wp--preset--color--yellow); font-weight: 600; }
@media (max-width: 479px) { .oshop-announce p { font-size: 12px; } }
.oshop-header { position: relative; background: var(--wp--preset--color--bg-0); border-bottom: 1px solid var(--wp--preset--color--border); }
.oshop-header__main { min-height: var(--oshop-header-h); gap: 4px; }
.oshop-logo { line-height: 0; margin: 0; }
.oshop-logo a { display: block; }
.oshop-logo img { height: 48px; width: auto; margin-block: -4px; }
.oshop-header__main .oshop-logo { order: 1; margin-right: auto; }
.oshop-header__actions { order: 3; gap: 0; flex-wrap: nowrap; }
.oshop-header .oshop-nav { order: 4; margin: 0; }
.oshop-search--desktop { display: none; order: 3; }
.oshop-search--mobile .wp-block-search__button,
.wc-block-customer-account__account-icon,
.wc-block-mini-cart__button { min-width: 48px; min-height: 48px; }
.oshop-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--text); border: 0; box-shadow: none; padding: 0 12px; margin: 0; }
.oshop-search--desktop .wp-block-search__button { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border-radius: 0 8px 8px 0; }
.oshop-search--desktop .wp-block-search__input { border-radius: 8px 0 0 8px; border-right: 0; }
.oshop-search--mobile .wp-block-search__inside-wrapper { background: var(--wp--preset--color--bg-0); }
.oshop-header .wp-block-woocommerce-customer-account { display: none; }
.wc-block-mini-cart__badge { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); font-weight: 700; }
.wc-block-mini-cart__button, .wc-block-customer-account a { color: var(--wp--preset--color--text); }
.wc-block-mini-cart__button:hover, .wc-block-customer-account a:hover { background: var(--wp--preset--color--bg-3); border-radius: 8px; }
.oshop-cart-fallback { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--wp--preset--color--text); }
.oshop-cart-fallback svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.wc-block-mini-cart__drawer .wc-block-components-drawer__screen-overlay { background: rgba(0, 0, 0, .72); }
.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-components-drawer { background: var(--wp--preset--color--bg-1); color: var(--wp--preset--color--text); }
.wc-block-mini-cart__footer { border-top: 1px solid var(--wp--preset--color--border); }
.wc-block-mini-cart__footer-actions .wc-block-components-button { width: 100%; }

/* Hamburger (mobile / small tablet): right of the logo row. Core shows it only below 600px,
   we extend that to 781px so the inline links never get cramped. */
.oshop-nav .wp-block-navigation__responsive-container-open,
.oshop-nav .wp-block-navigation__responsive-container-close { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; border-radius: 8px; }
.oshop-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--bg-0); color: var(--wp--preset--color--text); padding: 16px;
}
.oshop-nav .is-menu-open .wp-block-navigation-item__content { display: block; min-height: 48px; line-height: 48px; font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 400; }
@media (min-width: 600px) and (max-width: 781px) {
	.oshop-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.oshop-nav .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none; }
	.oshop-header .wp-block-woocommerce-customer-account { display: block; }
}

/* Desktop: one row = logo | links | search | account | cart */
@media (min-width: 782px) {
	:root { --oshop-header-h: 80px; }
	.oshop-header__main { gap: 8px 16px; }
	.oshop-logo img { height: 64px; margin-block: -2px; }
	.oshop-header__main .oshop-logo { margin-right: 8px; }
	.oshop-header .oshop-nav { order: 2; flex: 1 1 auto; }
	.oshop-header .oshop-nav .wp-block-navigation__responsive-container-open { display: none; }
	.oshop-header .oshop-nav .wp-block-navigation__container { gap: 0; flex-wrap: nowrap; }
	.oshop-nav .wp-block-navigation-item__content { display: block; padding: 8px 14px; border-bottom: 3px solid transparent; font-weight: 600; white-space: nowrap; }
	.oshop-nav .wp-block-navigation-item__content:hover,
	.oshop-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--yellow); }
	.oshop-search--desktop { display: block; flex: 0 1 260px; min-width: 160px; margin: 0; }
	.oshop-search--mobile { display: none; }
	.oshop-header .wp-block-woocommerce-customer-account { display: block; }
}
@media (min-width: 1100px) { .oshop-search--desktop { flex-basis: 320px; } }

/* ---------- Hero ---------- */
.oshop-hero { position: relative; overflow: hidden; padding-block: 32px 40px; }
.oshop-hero::before {
	content: ""; position: absolute; right: -120px; top: -60px; width: 360px; height: 360px; border-radius: 50%;
	background: var(--wp--preset--gradient--yoyo); opacity: .14; pointer-events: none;
}
.oshop-hero > * { position: relative; }
.oshop-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: 1.05; margin-bottom: 16px; }
.oshop-hero h1 em { font-style: normal; color: var(--wp--preset--color--yellow); }
.oshop-hero__lead { color: var(--wp--preset--color--text-2); max-width: 36ch; }
.oshop-hero__art { background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 24px; display: grid; place-items: center; min-height: 220px; }
.oshop-hero__art img { max-width: min(100%, 360px); }
@media (min-width: 720px) { .oshop-hero { padding-block: 64px 72px; } .oshop-hero::before { width: 560px; height: 560px; right: -160px; top: -120px; } }

/* ---------- Hero slider (scroll-snap; JS only adds controls, ARIA and autoplay) ---------- */
.oshop-hero h2 { font-size: var(--wp--preset--font-size--display); line-height: 1.05; margin-bottom: 16px; }
.oshop-hero h2 em { font-style: normal; color: var(--wp--preset--color--yellow); }
.oshop-slider { padding-block: 24px 16px; }
.oshop-slider__track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0; }
.oshop-slider__track::-webkit-scrollbar { display: none; }
.oshop-slider__track > .oshop-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; min-width: 0; }
.oshop-slide .wp-block-columns { margin: 0; gap: 16px 32px; }
.oshop-slide__img { margin: 0; background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 16px; display: grid; place-items: center; }
.oshop-slide__img img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; height: auto; border-radius: 8px; }
.oshop-slider__controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.oshop-slider__btn { width: 48px; height: 48px; display: grid; place-items: center; background: var(--wp--preset--color--bg-2); color: var(--wp--preset--color--text); border: 1px solid var(--wp--preset--color--border-strong); border-radius: 50%; cursor: pointer; padding: 0; }
.oshop-slider__btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.oshop-slider__btn:hover { border-color: var(--wp--preset--color--yellow); color: var(--wp--preset--color--yellow); }
.oshop-slider__dots { display: flex; }
.oshop-slider__dot { width: 32px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.oshop-slider__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--wp--preset--color--border-strong); }
.oshop-slider__dot[aria-current="true"]::after { background: var(--wp--preset--color--yellow); }
.oshop-slider__btn:focus-visible, .oshop-slider__dot:focus-visible { outline: 3px solid var(--wp--preset--color--yellow); outline-offset: 2px; }
@media (max-width: 781px) { .oshop-slide__img { padding: 8px; } .oshop-slide__img img { max-width: 200px; } .oshop-hero h2, .oshop-hero h1 { font-size: 32px; } }
@media (min-width: 720px) { .oshop-slider { padding-block: 40px 24px; } .oshop-slider__controls { justify-content: flex-start; } }

/* ---------- Trust bar ---------- */
.oshop-trust { background: var(--wp--preset--color--bg-1); border-block: 1px solid var(--wp--preset--color--border); padding-block: 20px; }
.oshop-trust__list { gap: 16px 12px; }
.oshop-trust__item { align-items: flex-start; gap: 10px; color: var(--wp--preset--color--yellow); }
.oshop-trust__item p { margin: 0; line-height: 1.35; }
.oshop-trust__title { display: block; color: var(--wp--preset--color--text); font-weight: 700; font-size: 15px; }
.oshop-trust__sub { color: var(--wp--preset--color--text-2); font-size: 14px; }

/* ---------- Category tiles ---------- */
.oshop-cats { gap: 12px; }
.oshop-cat { position: relative; background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; padding: 12px; text-align: center; transition: border-color .15s; }
.oshop-cat__art { aspect-ratio: 1; background: var(--wp--preset--color--bg-0); border-radius: 4px; display: grid; place-items: center; margin-bottom: 10px; overflow: hidden; }
.oshop-cat__art::before { content: ""; width: 52%; aspect-ratio: 1; border-radius: 50%; background: var(--wp--preset--gradient--yoyo); }
.oshop-cat__label { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 16px; line-height: 1.2; }
.oshop-cat__label a { color: var(--wp--preset--color--text); text-decoration: none; display: inline-block; padding-bottom: 3px; border-bottom: 3px solid transparent; }
.oshop-cat__label a::after { content: ""; position: absolute; inset: 0; } /* whole tile is the link */
@media (hover: hover) { .oshop-cat:hover { border-color: var(--wp--preset--color--yellow); } .oshop-cat:hover .oshop-cat__label a { border-color: var(--wp--preset--color--yellow); } }
.oshop-cat:focus-within { border-color: var(--wp--preset--color--yellow); }

/* ---------- Product cards / grid ---------- */
ul.wc-block-product-template.wc-block-product-template__responsive,
ul.wc-block-product-template { gap: 12px; }
ul.wc-block-product-template__responsive.wc-block-product-template__responsive,
ul.wc-block-product-template.is-flex-container { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
ul.wc-block-product-template.is-flex-container > li { width: auto; margin: 0; }
@media (min-width: 720px) {
	ul.wc-block-product-template__responsive.wc-block-product-template__responsive,
	ul.wc-block-product-template.is-flex-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1024px) {
	ul.wc-block-product-template__responsive.columns-4.columns-4,
	ul.wc-block-product-template.is-flex-container.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.oshop-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
@media (hover: hover) { .oshop-card:hover { border-color: var(--wp--preset--color--yellow); box-shadow: 0 8px 24px rgba(0, 0, 0, .55); } }
.oshop-card:focus-within { border-color: var(--wp--preset--color--yellow); }
.oshop-card .wc-block-components-product-image { background: var(--wp--preset--color--bg-0); margin: 0; }
.oshop-card .wc-block-components-product-image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.oshop-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.oshop-card__body > * { margin: 0; }
.oshop-card .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-size: 16px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.oshop-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* stretched link */
.oshop-card .wc-block-components-product-price { margin-top: auto; padding-top: 4px; font-variant-numeric: tabular-nums; }
.oshop-card .wp-block-woocommerce-product-button, .oshop-card .wc-block-components-product-button { position: relative; z-index: 1; margin-top: 8px; }
.oshop-card .wp-block-button__link, .oshop-card .wc-block-components-product-button__button { width: 100%; min-height: 44px; font-size: 15px; }
.wc-block-components-product-price del, .wc-block-components-product-price__regular { color: var(--wp--preset--color--text-muted); font-size: 14px; font-weight: 400; }
.wc-block-components-product-price ins, .wc-block-components-product-price__value.is-discounted { color: var(--wp--preset--color--sale); text-decoration: none; }
.wc-block-components-product-sale-badge, .onsale {
	background: var(--wp--preset--color--sale); color: var(--wp--preset--color--ink); border: 0; border-radius: 4px;
	font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; min-height: 0; min-width: 0; text-transform: none;
}
.wc-block-components-product-sale-badge--align-left { top: 8px; left: 8px; right: auto; }
.stock.out-of-stock, .wc-block-components-product-stock-indicator--out-of-stock { color: var(--wp--preset--color--error); }
.stock.in-stock, .wc-block-components-product-stock-indicator--in-stock { color: var(--wp--preset--color--success); font-weight: 600; }
.wc-block-components-product-stock-indicator--available-on-backorder, .wc-block-components-product-stock-indicator--low-stock { color: var(--wp--preset--color--yellow); }

/* ---------- Archive ---------- */
.oshop-toolbar { gap: 12px; padding-block: 8px; }
.oshop-archive__sidebar { min-width: 0; }
.wp-block-term-description { color: var(--wp--preset--color--text-2); max-width: 70ch; }
@media (max-width: 781px) {
	.oshop-toolbar { position: sticky; top: 56px; z-index: 10; background: var(--wp--preset--color--bg-1); padding-inline: 12px; margin-inline: -12px; min-height: 52px; border-block: 1px solid var(--wp--preset--color--border); }
}
.wp-block-query-pagination { gap: 8px; margin-top: 32px; }
.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous, .wp-block-query-pagination-next {
	display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 12px;
	background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; text-decoration: none; color: var(--wp--preset--color--text);
}
.wp-block-query-pagination-numbers .page-numbers.current { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--yellow); }

/* Filters: gauge chips + mobile sheet */
.wc-block-product-filters :where(h2, h3, h4) { font-size: 16px; font-family: var(--wp--preset--font-family--body); font-weight: 700; }
.wc-block-product-filter-chips__item,
.wc-block-attribute-filter .wc-block-components-chip,
.variable-items-wrapper .variable-item,
.cfvsw-swatches-option {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
	background: var(--wp--preset--color--bg-3); color: var(--wp--preset--color--text);
	border: 1.5px solid var(--wp--preset--color--border-strong); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wc-block-product-filter-chips__item[aria-checked="true"],
.wc-block-product-filter-chips__item.is-selected,
.wc-block-product-filter-chips__item:has(input:checked) {
	background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--yellow);
}
.wc-block-product-filters__overlay-dialog,
.wc-block-product-filters__overlay-content { background: var(--wp--preset--color--bg-1); color: var(--wp--preset--color--text); }
@media (max-width: 781px) {
	.wc-block-product-filters__overlay.is-open .wc-block-product-filters__overlay-dialog,
	.wc-block-product-filters__overlay[aria-modal="true"] .wc-block-product-filters__overlay-dialog {
		position: fixed; inset: auto 0 0 0; max-height: 85vh; overflow: auto; border-radius: 14px 14px 0 0; border-top: 1px solid var(--wp--preset--color--border);
		padding: 16px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .55);
	}
	.wc-block-product-filters__overlay.is-open { background: rgba(0, 0, 0, .72); }
	.wc-block-product-filters__open-overlay { min-height: 48px; }
}
@media (min-width: 782px) { .oshop-archive__sidebar { position: sticky; top: 80px; align-self: flex-start; } }

/* ---------- Single product ---------- */
.oshop-pdp__gallery .woocommerce-product-gallery__image,
.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__wrapper {
	background: var(--wp--preset--color--bg-0); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; overflow: hidden;
}
.woocommerce-product-gallery__image img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.flex-control-thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px 0 0; padding: 0 0 4px; list-style: none; }
.flex-control-thumbs li { flex: none; width: 64px; scroll-snap-align: start; margin: 0; }
.flex-control-thumbs img { width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--wp--preset--color--border); border-radius: 4px; background: var(--wp--preset--color--bg-0); opacity: .8; cursor: pointer; }
.flex-control-thumbs img.flex-active { border-color: var(--wp--preset--color--yellow); opacity: 1; }
.woocommerce-product-gallery__trigger { background: var(--wp--preset--color--bg-3); color: var(--wp--preset--color--text); border-radius: 8px; }
.oshop-pdp__title { font-size: clamp(22px, 5vw, 32px); margin: 4px 0 12px; }
.oshop-pdp .wc-block-components-product-price { font-size: var(--wp--preset--font-size--price-xl); line-height: 1.2; }
.oshop-pdp .wc-block-components-product-price ins, .oshop-pdp .wc-block-components-product-price del { font-size: inherit; }
.oshop-pdp .wc-block-components-product-price del { font-size: 18px; margin-left: 8px; }
.oshop-shipbox { background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; padding: 4px 16px; }
.oshop-shipbox p { display: flex; gap: 12px; align-items: center; margin: 0; padding: 12px 0; font-size: 15px; }
.oshop-shipbox p + p { border-top: 1px solid var(--wp--preset--color--border); }
.oshop-shipbox .oshop-icon { color: var(--wp--preset--color--yellow); }
.oshop-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.oshop-chip--gcash { background: #0A5CFF; color: #fff; }
.oshop-chip--cod { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); }
.oshop-chip--plain { background: var(--wp--preset--color--bg-3); color: var(--wp--preset--color--text); }
@media (min-width: 782px) { .oshop-pdp__summary { position: sticky; top: 80px; align-self: flex-start; } }

/* Variations: gauge select styled as a field, swatch plugins as chips */
table.variations { width: 100%; border: 0; margin-bottom: 12px; }
table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: left; }
table.variations th.label label { display: block; margin-bottom: 8px; }
table.variations select { width: 100%; }
.reset_variations { display: inline-block; margin-top: 8px; font-size: 14px; }
.variable-items-wrapper, .cfvsw-swatches-container { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.variable-items-wrapper .variable-item.selected,
.cfvsw-swatches-option.cfvsw-selected-swatch,
.variable-items-wrapper .variable-item[aria-checked="true"] { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--yellow); }
.variable-items-wrapper .variable-item.disabled,
.cfvsw-swatches-option.cfvsw-swatches-disabled,
.variable-items-wrapper .variable-item[aria-disabled="true"] { opacity: .5; text-decoration: line-through; cursor: not-allowed; }
form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
form.cart .single_add_to_cart_button { flex: 1 1 200px; }
.woocommerce-variation-price .price { font-size: 24px; font-weight: 700; }

/* Sticky mobile add-to-cart bar (no JS): the buy row sticks to the viewport bottom
   while the buy box is on screen. */
@media (max-width: 781px) {
	.single-product form.cart:not(.variations_form),
	.single-product .woocommerce-variation-add-to-cart {
		position: sticky; bottom: 0; z-index: 25;
		background: var(--wp--preset--color--bg-1);
		border-top: 1px solid var(--wp--preset--color--border);
		margin-inline: calc(-1 * clamp(16px, 3.5vw, 24px));
		padding: 12px clamp(16px, 3.5vw, 24px) calc(12px + env(safe-area-inset-bottom));
		flex-wrap: nowrap;
	}
	.single-product form.cart .single_add_to_cart_button { flex: 1; margin-bottom: 0; }
	.single-product .oshop-main { padding-bottom: 24px; }
}

/* Tabs / accordion */
.woocommerce-tabs ul.tabs { display: flex; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--wp--preset--color--border); overflow-x: auto; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs a { display: block; padding: 12px 16px; color: var(--wp--preset--color--text-2); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--yellow); border-bottom-color: var(--wp--preset--color--yellow); }
table.shop_attributes, .woocommerce-table, .wc-block-cart-items { border-collapse: collapse; width: 100%; }
table.shop_attributes th, table.shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--wp--preset--color--border); text-align: left; }
table.shop_attributes th { color: var(--wp--preset--color--text-2); width: 30%; }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
.wc-block-components-notice-banner {
	background: var(--wp--preset--color--bg-2); color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--border); border-left-width: 4px; border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; list-style: none;
}
.woocommerce-message, .wc-block-components-notice-banner.is-success { border-left-color: var(--wp--preset--color--success); }
.woocommerce-info, .wc-block-components-notice-banner.is-info { border-left-color: var(--wp--preset--color--info); }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-left-color: var(--wp--preset--color--error); }
.wc-block-components-notice-banner.is-warning { border-left-color: var(--wp--preset--color--yellow); }
.wc-block-components-notice-banner > svg { background: transparent; fill: currentColor; }
.wc-block-components-notice-banner.is-success > svg { color: var(--wp--preset--color--success); }
.wc-block-components-notice-banner.is-error > svg { color: var(--wp--preset--color--error); }
.wc-block-components-notice-banner.is-info > svg { color: var(--wp--preset--color--info); }
.wc-block-components-notice-banner.is-warning > svg { color: var(--wp--preset--color--yellow); }

/* ---------- Cart / Checkout blocks ---------- */
.wc-block-cart, .wc-block-checkout { color: var(--wp--preset--color--text); }
.wc-block-components-main, .wc-block-components-sidebar { min-width: 0; }
.wc-block-components-sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar,
.wp-block-woocommerce-cart-order-summary-block {
	background: var(--wp--preset--color--bg-2); border-radius: 8px;
}
.wc-block-components-totals-wrapper, .wc-block-cart-items__row, .wc-block-components-order-summary__content .wc-block-components-order-summary-item, .wc-block-cart-items th {
	border-color: var(--wp--preset--color--border);
}
.wc-block-components-order-summary, .wc-block-checkout__form .wc-block-components-checkout-step__container { color: var(--wp--preset--color--text); }
.wc-block-components-title.wc-block-components-title, .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 18px; color: var(--wp--preset--color--text);
}
.wc-block-components-checkout-step__description, .wc-block-components-product-metadata, .wc-block-components-product-details { color: var(--wp--preset--color--text-2); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; font-weight: 700; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option {
	background: var(--wp--preset--color--bg-2); border: 1.5px solid var(--wp--preset--color--border); border-radius: 8px; margin-bottom: 8px; box-shadow: none;
}
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option:has(input:checked) { border-color: var(--wp--preset--color--yellow); }
.wc-block-components-radio-control-accordion-content { background: var(--wp--preset--color--bg-1); }
.wc-block-components-panel__button, .wc-block-components-totals-coupon__content { color: var(--wp--preset--color--text); }
.wc-block-components-product-name { color: var(--wp--preset--color--text); font-weight: 600; text-decoration: none; }
.wc-block-cart-item__remove-link { color: var(--wp--preset--color--error); }
.wc-block-components-order-summary-item__quantity { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border: 0; box-shadow: none; font-weight: 700; }
.wc-block-components-text-input label, .wc-block-components-select .wc-blocks-components-select__label { color: var(--wp--preset--color--text-muted); }
.wc-block-components-text-input.is-active label { color: var(--wp--preset--color--text-2); }
.wc-block-components-address-form__country, .wc-blocks-components-select__container { background: var(--wp--preset--color--bg-2); border-radius: 8px; }
.wc-block-components-checkout-place-order-button { width: 100%; }
@media (max-width: 781px) {
	.wc-block-cart__submit-container--sticky { background: var(--wp--preset--color--bg-1); border-top: 1px solid var(--wp--preset--color--border); }
}

/* Order confirmation */
.wc-block-order-confirmation-status { background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-left: 4px solid var(--wp--preset--color--success); border-radius: 8px; padding: 16px; }
.wc-block-order-confirmation-status h1, .wc-block-order-confirmation-status p { margin: 0 0 8px; }
.wc-block-order-confirmation-summary ul { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.wc-block-order-confirmation-summary li { background: var(--wp--preset--color--bg-2); border-radius: 8px; padding: 12px; }
.wc-block-order-confirmation-address-wrapper, .wc-block-order-confirmation-totals-wrapper { background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; padding: 16px; }

/* Account (classic) */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border-radius: 999px; background: var(--wp--preset--color--bg-3); color: var(--wp--preset--color--text); text-decoration: none; white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); }

/* ---------- Footer ---------- */
.oshop-footer { background: var(--wp--preset--color--bg-1); border-top: 1px solid var(--wp--preset--color--border); padding-block: 40px 24px; color: var(--wp--preset--color--text-2); }
.oshop-footer h2, .oshop-footer h3 { font-size: 16px; color: var(--wp--preset--color--text); margin-bottom: 12px; }
.oshop-footer__list { list-style: none; margin: 0; padding: 0; }
.oshop-footer__list li { margin: 0; }
.oshop-footer__list a { display: block; padding: 10px 0; min-height: 44px; box-sizing: border-box; color: var(--wp--preset--color--text-2); text-decoration: none; }
.oshop-footer__list a:hover { color: var(--wp--preset--color--yellow); text-decoration: underline; }
.oshop-footer__bottom { border-top: 1px solid var(--wp--preset--color--border); margin-top: 24px; padding-top: 16px; gap: 12px 24px; }
.oshop-footer__bottom p { margin: 0; font-size: 14px; }
.oshop-badges { gap: 8px; }
.oshop-badges p { margin: 0; }
.oshop-footer .oshop-logo img { height: 48px; }
.oshop-footer a { color: var(--wp--preset--color--text-2); }

/* ---------- Promo band / FAQ / misc ---------- */
.oshop-promo { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); padding-block: 24px; }
.oshop-promo h2, .oshop-promo p { color: var(--wp--preset--color--ink); margin: 0; }
.wp-block-details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.wp-block-details + .wp-block-details { margin-top: 8px; }
.oshop-404 { text-align: center; padding-block: 64px; }
.oshop-404 .oshop-cat__art { width: 160px; margin: 0 auto 24px; background: transparent; }
.oshop-404 .wp-block-search { max-width: 480px; margin-inline: auto; }
.oshop-404 .wp-block-search__button { background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--ink); border: 0; border-radius: 0 8px 8px 0; }
.oshop-postcard { background: var(--wp--preset--color--bg-2); border: 1px solid var(--wp--preset--color--border); border-radius: 8px; padding: 16px; }
.oshop-postcard h2 { font-size: 22px; margin: 0 0 8px; }
.screen-reader-text { clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; padding: 8px 12px; z-index: 100000; }
