/* Presentation only. WooCommerce, GetWoo and YITH retain shopping authority. */
body.woo-variation-swatches .jaysajay-store .variable-items-wrapper .variable-item:not(.radio-variable-item) {
  background: var(--brand-surface);
  color: var(--brand-ink);
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 0 0 1px var(--brand-rule);
  border-radius: 0;
}
body.woo-variation-swatches .variable-items-wrapper .color-variable-item {
  padding: 8px;
}
body.woo-variation-swatches .jaysajay-store .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color {
  width: 24px;
  height: 24px;
  margin: auto;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #8888;
}
body.woo-variation-swatches .jaysajay-store .variable-items-wrapper .variable-item.selected:not(.radio-variable-item),
body.woo-variation-swatches .jaysajay-store .variable-items-wrapper .variable-item:not(.radio-variable-item):focus-visible {
  box-shadow: 0 0 0 2px var(--brand-accent);
  outline: 2px solid transparent;
  outline-offset: 3px;
}
body.woo-variation-swatches .jaysajay-store .color-variable-item.selected .variable-item-contents::before {
  background-image: none;
}
body.woo-variation-swatches .variable-item-span-button {
  font-size: .75rem;
  font-weight: 500;
}
body .yith-wcwl-add-to-wishlist {
  color: var(--brand-ink);
  --add-to-wishlist-icon-color: var(--brand-ink);
  --added-to-wishlist-icon-color: var(--brand-accent);
}
body .yith-wcwl-add-to-wishlist :is(a, button) {
  min-width: 44px;
  min-height: 44px;
  color: var(--brand-ink);
}
body .yith-wcwl-add-to-wishlist :is(a, button) svg { width: 22px; height: 22px; }
body .yith-wcwl-add-to-wishlist .screen-reader-text { font-size: .875rem; }
/* The maintained single-product heart shares the purchase row, including its
   native add/remove state. Its accessible name remains supplied by YITH. */
body.single-product .jaysajay-store form.cart .yith-wcwl-add-to-wishlist--single {
  flex: 0 0 44px;
  width: 44px;
  margin: 0;
  align-self: center;
}
body.single-product .jaysajay-store form.cart .yith-wcwl-add-to-wishlist--single a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 0;
}
body.single-product .jaysajay-store form.cart .yith-wcwl-add-to-wishlist--single a svg { margin: 0; }
body.single-product .jaysajay-store form.cart .single_add_to_cart_button {
  flex: 1;
  min-width: 0;
  padding-inline: 16px;
}
body .jaysajay-favorites-status {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--brand-rule);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: .875rem;
  line-height: 1.6;
}
body .jaysajay-favorites-status a { color: var(--brand-accent); }
html:not(.js) body.woo-variation-swatches .variations_form select {
  display: inline-block !important;
  visibility: visible !important;
}
html:not(.js) body.woo-variation-swatches .variable-items-wrapper { display: none; }
body .yith-wcwl-add-to-wishlist :is(a, button):focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
body table.wishlist_table.shop_table,
body table.wishlist_table.shop_table :is(thead, tbody, tr, th, td) {
  color: var(--brand-ink) !important;
  background-color: var(--brand-bg) !important;
  border-color: var(--brand-rule) !important;
}
body table.wishlist_table.shop_table td.product-name a { color: var(--brand-accent); }
body table.wishlist_table.shop_table .product-remove a {
  min-width: 44px;
  min-height: 44px;
  line-height: 44px;
  color: var(--brand-ink) !important;
}

/* The core navigation store owns disclosure, focus, Escape and scroll lock. */
body .jaysajay-customer-navigation .is-menu-open .wp-block-navigation__responsive-close {
  width: min(82vw, 360px);
}
body .jaysajay-customer-navigation .is-menu-open .wp-block-navigation__responsive-dialog {
  position: relative;
  padding: 76px 20px 32px;
}
body .brand-navigation.jaysajay-customer-navigation .is-menu-open .wp-block-navigation__responsive-container-content {
  width: 100%;
  padding: 0;
  align-items: stretch;
  gap: 0;
}
body .jaysajay-customer-navigation .is-menu-open .wp-block-navigation-item {
  width: 100%;
  margin: 0;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
body .jaysajay-customer-navigation .is-menu-open .wp-block-navigation-item__content {
  width: 100%;
  flex: 1;
  min-height: 56px;
  padding: 12px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 9%, transparent);
}
body .jaysajay-customer-navigation .is-menu-open .jaysajay-category-disclosure {
  width: 100%;
}
body .jaysajay-customer-navigation .is-menu-open .jaysajay-category-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 0;
  list-style: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 9%, transparent);
  font: 400 15px/1.5 'Manrope', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
body .jaysajay-category-disclosure > summary::-webkit-details-marker { display: none; }
body .jaysajay-category-disclosure > summary:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
body .jaysajay-category-disclosure > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
body .jaysajay-category-disclosure[open] > summary::after { transform: rotate(135deg); }
body .jaysajay-customer-navigation .is-menu-open .jaysajay-category-links {
  width: 100%;
  padding: 0 0 0 16px;
  margin: 0;
}
body .jaysajay-customer-navigation .is-menu-open .jaysajay-menu-heading {
  position: absolute;
  top: 0;
  left: 20px;
  display: flex;
  align-items: center;
  height: 76px;
  margin: 0;
  font: 400 16px/1.5 'Manrope', sans-serif;
  letter-spacing: 0;
}
body .jaysajay-customer-navigation .is-menu-open .jaysajay-menu-section {
  margin: 20px 0 8px;
  color: var(--brand-muted);
  font: 400 12px/1.5 'Manrope', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Pointer-driven desktop browsing is denser; touch keeps its native-size rows. */
@media (hover: hover) and (pointer: fine) {
  body .jaysajay-customer-navigation .is-menu-open .wp-block-navigation-item__content,
  body .jaysajay-customer-navigation .is-menu-open .jaysajay-category-disclosure > summary {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  body .jaysajay-customer-navigation .is-menu-open .jaysajay-menu-section {
    margin-top: 16px;
  }
}

/* Collection adapter: the approved native grid remains the layout owner.
   Both edges and every card use the same width; photos cannot size the track. */
html:has(body.jaysajay-collection) { scrollbar-gutter: stable; }
body.jaysajay-collection .jaysajay-store ul.products {
  --jaysajay-columns: 2;
  grid-template-columns: repeat(var(--jaysajay-columns), minmax(0, 1fr));
  gap: 24px 8px;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}
@media (min-width: 48rem) {
  body.jaysajay-collection .jaysajay-store ul.products { --jaysajay-columns: 3; }
}
@media (min-width: 64rem) {
  body.jaysajay-collection .jaysajay-store ul.products { --jaysajay-columns: 4; }
}
body.jaysajay-columns-1 .jaysajay-store ul.products { --jaysajay-columns: 1; }
body.jaysajay-columns-2 .jaysajay-store ul.products { --jaysajay-columns: 2; }
body.jaysajay-columns-3 .jaysajay-store ul.products { --jaysajay-columns: 3; }
body.jaysajay-collection .jaysajay-store ul.products li.product { min-width: 0; }
body .jaysajay-store ul.products li.product a img {
  width: 100%;
  padding: 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--brand-surface);
}
body.jaysajay-collection .jaysajay-store ul.products li.product .woocommerce-loop-product__title {
  margin-block: 12px 8px;
  font: 400 14px/1.5 'Manrope', sans-serif !important;
}
body.jaysajay-collection .jaysajay-store ul.products li.product .price { font-size: 14px; }
body .jaysajay-collection-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  clear: both;
  margin-block: 0 20px;
  font: 400 14px/1.5 'Manrope', sans-serif;
  color: var(--brand-ink);
}
body .jaysajay-collection-controls summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
}
body .jaysajay-collection-controls summary::-webkit-details-marker { display: none; }
body .jaysajay-density { display: flex; margin-inline-start: auto; }
body .jaysajay-density a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--brand-muted);
}
body .jaysajay-density a[aria-current] { color: var(--brand-accent); }
body.jaysajay-columns-auto .jaysajay-density-2 { color: var(--brand-accent); }
@media (min-width: 48rem) {
  body.jaysajay-columns-auto .jaysajay-density-2 { color: var(--brand-muted); }
  body.jaysajay-columns-auto .jaysajay-density-3 { color: var(--brand-accent); }
}
@media (min-width: 64rem) {
  body.jaysajay-columns-auto .jaysajay-density-3 { color: var(--brand-muted); }
}
body .jaysajay-collection-panel {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: 100%;
  width: min(100%, 360px);
  padding: 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-rule);
  box-shadow: 0 8px 24px #0003;
}
body .jaysajay-collection-panel .woocommerce-ordering {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  float: none;
  margin: 0;
}
body .jaysajay-collection-panel select { width: 100%; min-height: 44px; }
body .jaysajay-collection-panel fieldset { margin: 0; padding: 0; border: 0; }
body .jaysajay-collection-panel legend { padding-bottom: 8px; }
body .jaysajay-collection-panel label { display: flex; align-items: center; gap: 12px; min-height: 44px; }
body .jaysajay-collection-panel input[type=checkbox] { width: 20px; height: 20px; }
body .jaysajay-filter-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
body .jaysajay-collection-panel :is(button, a) { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; }
body .jaysajay-collection-controls :is(a, button, summary, select):focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
body.jaysajay-collection main#main { padding-top: 96px; }
body.jaysajay-collection.page main#main > h1 { display: none; }
body .jaysajay-collection-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-bottom: 8px; }
body .jaysajay-collection-header h1 { margin: 0; text-align: center; font: 400 18px/1.5 'Manrope', sans-serif; }
body .jaysajay-collection-header a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
body .jaysajay-category-strip { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; margin-bottom: 12px; padding-bottom: 4px; }
body .jaysajay-category-strip a { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--brand-rule); white-space: nowrap; color: var(--brand-ink); font: 400 14px/1.5 'Manrope', sans-serif; }
body .jaysajay-category-strip a[aria-current] { border-color: var(--brand-ink); background: color-mix(in srgb, var(--brand-ink) 8%, transparent); }
body .jaysajay-collection-search { display: flex; align-items: center; min-width: 0; margin-bottom: 16px; border: 1px solid var(--brand-rule); background: var(--brand-surface); }
body .jaysajay-collection-search input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: 14px; }
body .jaysajay-collection-search button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
body :is(.jaysajay-category-strip,.jaysajay-collection-header,.jaysajay-collection-search) :is(a,button,input):focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
