/* These low-specificity defaults allow block and Global Styles controls to override them. */
:where(html) { scroll-behavior: smooth; }
:where(body) { margin: 0; overflow-wrap: anywhere; }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid var(--wp--preset--color--brand-dark); outline-offset: 4px; }
:where(img) { max-width: 100%; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:where(.ysb-header) { border-bottom: 1px solid var(--wp--preset--color--line); }
:where(.ysb-topline) { letter-spacing: .015em; }
:where(.ysb-language-switcher) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ysb-language-switcher a { color: inherit; padding: 2px 5px; text-decoration: none; }
:where(.ysb-language-switcher a:hover) { text-decoration: underline; }
:where(.ysb-language-current) { border-bottom: 1px solid currentColor; font-weight: 600; }
:where(.ysb-header-main) { gap: 28px; }
:where(.ysb-brand) { flex-shrink: 0; }
:where(.ysb-brand img) { width: 252px; height: auto; }
:where(.ysb-search) { flex: 1; min-width: 200px; }
:where(.ysb-search .wp-block-search__inside-wrapper) { padding: 5px; border-radius: 8px; }
:where(.wp-block-search__input) { border-radius: 5px; padding-inline: 10px; min-width: 0; min-height: 42px; }
:where(.wp-block-search__button) { margin-inline-start: 6px; white-space: nowrap; }
:where(.ysb-account-links) { flex-shrink: 0; }
:where(nav.ysb-channel-nav) { padding-block: 14px; }
:where(.ysb-channel-nav .wp-block-navigation-item__content) { padding-block: 5px; }
.ysb-channel-nav .wp-block-navigation__container { margin-block: 0; padding-block: 0; }
:where(.ysb-main) { min-height: 60vh; }
:where(.ysb-hero) { position: relative; overflow: hidden; }
:where(.ysb-kicker) { letter-spacing: .10em; font-weight: 650; text-transform: uppercase; }
:where(.ysb-hero-visual img) { max-width: 270px; }
:where(.ysb-channel-card,.ysb-card,.ysb-sidepanel,.ysb-mini-card) { border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
:where(.ysb-channel-card) { height: 100%; }
:where(.ysb-channel-card .wp-block-buttons) { margin-top: auto; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 1px solid currentColor; }
:where(.ysb-channel-card .ysb-kicker) { opacity: .9; }
:where(.ysb-section-heading) { align-items: end; }
:where(.ysb-category-list) { list-style: none; padding: 0; margin: 0; }
:where(.ysb-category-list li) { margin: 0; }
:where(.ysb-category-list a) { display: block; padding: 9px 12px; border-radius: 7px; color: var(--wp--preset--color--contrast); }
:where(.ysb-category-list a:hover,.ysb-category-list a:focus-visible) { background: var(--wp--preset--color--brand-soft); color: var(--wp--preset--color--brand-dark); text-decoration: none; }
:where(.ysb-market-columns) { align-items: flex-start; }
:where(.ysb-sidepanel) { background: var(--wp--preset--color--base); }
:where(.ysb-card) { overflow: hidden; background: var(--wp--preset--color--base); }
:where(.ysb-card > .wp-block-image) { margin: 0; }
:where(.ysb-card img) { display: block; width: 100%; }
:where(.ysb-card-copy) { padding: 16px; }
:where(.ysb-price) { font-variant-numeric: tabular-nums; }
:where(.ysb-demo-label) { font-size: 11px; }
:where(.ysb-card .wp-block-post-title) { margin-top: 0; }
:where(.ysb-card .wp-block-woocommerce-product-price) { margin-block: 9px; }
:where(.ysb-card .wc-block-components-product-button__button) { width: 100%; border-radius: 7px; }
:where(.ysb-card .wc-block-components-product-image) { margin-bottom: 0; }
:where(.ysb-card .wc-block-components-product-image img) { border-radius: 0; }
:where(.ysb-collection .wc-block-product-template) { gap: 18px; padding: 0; margin: 24px 0; }
.ysb-collection .wc-block-product-template.is-flex-container { display: grid; grid-template-columns: repeat(var(--ysb-product-columns,4),minmax(0,1fr)); gap: 18px; }
.ysb-collection .wc-block-product-template.columns-1 { --ysb-product-columns: 1; }
.ysb-collection .wc-block-product-template.columns-2 { --ysb-product-columns: 2; }
.ysb-collection .wc-block-product-template.columns-3 { --ysb-product-columns: 3; }
.ysb-collection .wc-block-product-template.columns-4 { --ysb-product-columns: 4; }
.ysb-collection .wc-block-product-template.columns-5 { --ysb-product-columns: 5; }
.ysb-collection .wc-block-product-template.columns-6 { --ysb-product-columns: 6; }
.ysb-collection .wc-block-product-template.is-flex-container > li.wc-block-product { width: auto; }
:where(.ysb-collection .wc-block-product-template > li) { min-width: 0; }
:where(.ysb-collection .wc-block-product-template .ysb-card) { height: 100%; }
:where(.ysb-collection .wc-block-product-template .ysb-card-copy) { flex: 1; }
:where(.ysb-filters) { padding: 16px; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; }
:where(.ysb-filter-row) { gap: 24px; align-items: flex-start; }
:where(.ysb-filter-row > *) { flex: 1 1 200px; }
:where(.ysb-filter-row .wp-block-heading) { margin-bottom: 8px; }
:where(.ysb-country-filter) { flex-basis: 100%; }
:where(.ysb-filters .wc-block-product-filter-chips) { gap: 8px; }
:where(.ysb-country-filter .wc-block-product-filter-chips__item) { border-radius: 8px; padding: 10px 16px; }
:where(.ysb-filter-row .wp-block-woocommerce-product-filter-active) { flex-basis: 100%; }
:where(.ysb-collection .wp-block-query-pagination) { margin-top: 28px; }
:where(.ysb-empty) { border: 1px dashed var(--wp--preset--color--line); border-radius: 12px; padding: 40px 24px; text-align: center; }
.ysb-resale .wc-block-product-template.is-flex-container { display: block; column-count: var(--ysb-product-columns,4); column-gap: 18px; }
:where(.ysb-resale .wc-block-product-template > li) { break-inside: avoid; margin: 0 0 18px; }
:where(.ysb-resale .wc-block-product-template .ysb-card) { height: auto; }
:where(.ysb-footer .wp-block-navigation-item__content) { font-weight: 400; }
:where(.ysb-footer a) { color: inherit; }
:where(.ysb-breadcrumb) { font-size: 13px; }
:where(.ysb-product-main) { padding: 28px; border-radius: 14px; }
:where(.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea) { border: 1px solid var(--wp--preset--color--line); border-radius: 7px; padding: 12px; }
:where(.woocommerce div.product form.cart .quantity .qty) { min-height: 44px; border: 1px solid var(--wp--preset--color--line); border-radius: 7px; }
:where(.woocommerce .button,.woocommerce button.button,.woocommerce input.button) { background: var(--wp--preset--color--brand-dark); color: var(--wp--preset--color--base); border-radius: 8px; padding: 13px 20px; }
:where(.woocommerce .woocommerce-MyAccount-navigation) { background: var(--wp--preset--color--base); border-radius: 12px; padding: 16px; box-sizing: border-box; }
:where(.woocommerce .woocommerce-MyAccount-navigation ul) { padding-inline-start: 20px; }
:where(.woocommerce .woocommerce-MyAccount-content) { background: var(--wp--preset--color--base); border-radius: 12px; padding: 24px; box-sizing: border-box; }
/* A visual style option the editor can toggle, rather than a locked card component. */
:where(.is-style-ysb-soft-card) { padding: 24px; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: var(--wp--preset--color--base); }
:where(.is-style-ysb-price) { color: var(--wp--preset--color--brand-dark); font-size: 22px; font-weight: 700; }
@media (max-width: 1024px) {
  :where(.ysb-header-main) { gap: 18px; }
  :where(.ysb-brand img) { width: 220px; }
  :where(.ysb-account-links) { gap: 12px; }
  .ysb-collection .wc-block-product-template:is(.columns-4,.columns-5,.columns-6) { --ysb-product-columns: 3; }
}
@media (max-width: 781px) {
  .ysb-header-main.is-layout-flex { flex-wrap: wrap; }
  :where(.ysb-search) { order: 3; flex-basis: 100%; }
  :where(.ysb-account-links) { margin-inline-start: auto; }
  :where(.ysb-topline) { font-size: 11px; }
  :where(.ysb-category-list) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  :where(.ysb-category-list a) { padding: 8px 4px; text-align: center; font-size: 12px; }
  :where(.ysb-market-columns > .wp-block-column:first-child) { flex-basis: 100%; }
  :where(.ysb-hero-visual) { display: none; }
  .ysb-collection .wc-block-product-template.is-flex-container:not(.columns-1) { --ysb-product-columns: 2; }
  .ysb-demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wp-block-columns.ysb-resale-demo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  :where(.ysb-resale-demo > .wp-block-column) { margin-top: 0; }
  :where(.ysb-product-main) { padding: 20px; }
}
@media (max-width: 480px) {
  .ysb-brand { max-width: 192px; }
  :where(.ysb-brand img) { width: 192px; }
  :where(.ysb-account-links) { font-size: 12px; gap: 8px; }
  :where(.ysb-channel-nav) { gap: 16px; }
  :where(.ysb-card-copy) { padding: 12px; }
  .ysb-collection .wc-block-product-template.is-flex-container { gap: 12px; }
  .ysb-resale .wc-block-product-template.is-flex-container { column-gap: 12px; }
  :where(.ysb-resale .wc-block-product-template > li) { margin-bottom: 12px; }
  :where(.ysb-card .wp-block-post-title) { font-size: 14px; }
  :where(.ysb-filter-row) { flex-direction: column; }
  :where(.ysb-filter-row > *) { flex-basis: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { :where(html) { scroll-behavior: auto; } }
