/* CO-161 user revision: plain warm gallery and compact uncropped product imagery. */
.product-top-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; gap: clamp(1rem, 2.2vw, 2rem);
}
.woocommerce div.product .product-top-grid > .summary {
  float: none !important; width: auto !important; min-width: 0; margin: 0;
  position: static; padding: 0; background: transparent;
}
.product-gallery-frame {
  position: relative; overflow: hidden; min-width: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem; background: var(--oat-soft);
}
.product-gallery-frame .woocommerce-product-gallery {
  position: relative; z-index: 1; width: 100% !important; float: none !important; margin: 0 !important;
}
.product-gallery-frame .woocommerce-product-gallery__wrapper {
  display: grid; grid-template-columns: repeat(auto-fill, 64px); gap: .75rem;
  align-items: start; justify-content: center; max-width: none; margin: 0;
}
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image:first-of-type {
  grid-column: 1 / -1; justify-self: center; width: fit-content; max-width: 100%;
  padding: 0; background: transparent; border-radius: var(--radius-sm); box-shadow: none;
}
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image > a { display: block; }
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
  width: auto; height: auto; max-width: 100%; max-height: 370px; margin: 0 auto;
  border-radius: var(--radius-sm); box-shadow: none; filter: none;
}
/* Secondary chips still open Woo's native fullscreen viewer; the first image remains primary. */
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image:not(:first-of-type) {
  width: 64px !important; min-width: 64px; max-width: 64px; height: 64px; margin: 0; padding: 0; overflow: hidden;
  background: var(--oat-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: none; cursor: pointer; transition: border-color .2s ease;
}
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image:not(:first-of-type) > a { width: 100%; height: 100%; }
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image:not(:first-of-type) > a > img:not(.zoomImg) {
  width: 100%; height: 100%; object-fit: contain; border-radius: 0;
}
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image:not(:first-of-type):hover { border-color: var(--clay-ink); }
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image:not(:first-of-type):focus-visible,
.woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image > a:focus-visible {
  outline: 2px solid var(--cocoa); outline-offset: 2px;
}
@media (max-width: 900px) {
  .product-top-grid { grid-template-columns: 1fr; gap: 1rem; }
  .woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image > a > img:not(.zoomImg) { max-height: 340px; }
}
@media (max-width: 560px) {
  .woocommerce div.product .product-gallery-frame .woocommerce-product-gallery__image > a > img:not(.zoomImg) { max-height: 250px; }
}

/* ---------- Single product: "Complete your ritual" cross-sell ---------- */
.complete-ritual { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); text-align: center; }
.complete-ritual .ritual-divider { margin-bottom: .6rem; }
.complete-ritual .ritual-divider img { margin: 0 auto; opacity: .8; }
.complete-ritual h2 { margin-top: .2rem; }
.complete-ritual .products { margin-top: 1.8rem; text-align: left; }

/* ---------- Coming-soon gate ----------
   Rendered via templates/coming-soon.html (a block template, not a classic PHP
   file — WooCommerce's ComingSoonRequestHandler forces block-template
   resolution for this page even on classic themes). Self-centering on
   .gate-main rather than a body class, since the block-template canvas
   (wp-includes/template-canvas.php) doesn't run this theme's header.php.
   WA-22: warmed the flat --oat background to the same soft clay wash used on
   .shop-band-hero elsewhere in the theme (reuses an existing token pattern —
   no new asset), added a min-height: 100dvh fallback so the card stays
   vertically centered instead of jumping when a mobile browser's chrome
   (URL bar) resizes the 100vh viewport, and a small-screen pass that
   tightens vertical rhythm and shrinks the mark so the card doesn't feel
   cramped on narrow phones. */
.gate-main {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: clamp(2rem, 6vw, 4rem) var(--pad);
  text-align: center; color: var(--text); font-family: var(--font-body);
  background: color-mix(in srgb, var(--clay) 8%, var(--oat));
}
.gate-card { max-width: 480px; }
.gate-mark { border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow-soft); border: 8px solid var(--oat-soft); }
.gate-motif { display: block; margin: 0 auto .6rem; opacity: .75; }
.gate-word { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 0; }
.gate-tagline { font-family: var(--font-display); font-style: italic; color: var(--clay-ink); margin: .2rem 0 1.6rem; }
.gate-headline { margin-bottom: .6rem; }
.gate-body { color: var(--muted); max-width: 40em; margin-inline: auto; }
.gate-form { justify-content: center; margin: 1.6rem auto 0; }
.gate-main .form-note { text-align: center; }
.gate-ripple { margin-top: 3rem; opacity: .5; }
@media (max-width: 480px) {
  .gate-main { padding: clamp(1.5rem, 8vw, 2.5rem) var(--pad); }
  .gate-mark { width: 104px; height: 104px; border-width: 6px; }
  .gate-word { font-size: 1.35rem; }
  .gate-tagline { margin-bottom: 1.1rem; }
  .gate-ripple { margin-top: 2rem; }
}

/* ---------- YITH "Add to wishlist" button — was unstyled plugin default ----------
   (solid black pill, heavy weight next to the green Add to cart button, no
   relation to the site's actual button language — Daniel: "the buttons looks
   weirdly set"). Restyled as a secondary/ghost action using the same .btn-ghost
   treatment already used elsewhere, sized down and given real spacing instead of
   sitting flush under the primary button. */
.yith-add-to-wishlist-button-block { margin: .35rem 0 0; }
/* !important throughout: YITH's own add-to-wishlist.css ships
   `.yith-wcwl-add-to-wishlist-button:is(button):not(.yith-wcwl-theme-button-style)`
   (specificity ~0,0,2,1 from the :not()'s class), which beats a plain single-class
   override (0,0,1,0) — same specificity-war pattern already hit with WooCommerce's
   own layout.css on the gallery frame earlier this session. */
.yith-wcwl-add-to-wishlist-button {
  display: inline-flex !important; align-items: center; gap: .45rem; cursor: pointer; min-height: 44px; min-width: 44px;
  font-family: var(--font-body) !important; font-weight: 600 !important; font-size: .86rem !important;
  padding: .55rem 1.15rem !important; border-radius: 999px !important; border: 0 !important;
  background: transparent !important; color: var(--cocoa) !important;
  box-shadow: inset 0 0 0 1.5px var(--line) !important;
  transition: box-shadow .2s ease, color .2s ease, background .2s ease;
}
.yith-wcwl-add-to-wishlist-button:hover {
  background: var(--oat-soft) !important; box-shadow: inset 0 0 0 1.5px var(--cocoa) !important;
}
.yith-wcwl-icon-svg__wrapper { display: flex; width: 16px; height: 16px; }
.yith-wcwl-icon-svg__wrapper svg { width: 16px; height: 16px; }
.yith-wcwl-add-to-wishlist-button.yith-wcwl-icon-add ~ .yith-wcwl-wishlistaddedbrowse,
a.remove_from_wishlist {
  font-size: .82rem; color: var(--muted);
}


.yith-wcwl-add-to-wishlist-button:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
