/* Gando storefront stability patch — v8.2.6 */

/* Product cards: wishlist belongs to the visual's left inset, never the outer edge. */
.product-card-v62 .product-card-v62__wish,
.product-card-v62--shoe .product-card-v62__wish,
.product-card-v62--care .product-card-v62__wish {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  margin: 0 !important;
  z-index: 12 !important;
}
.product-card-v62__wish svg { pointer-events: none; }
.gando-favorite-tooltip {
  position: fixed !important;
  z-index: 10020 !important;
  max-width: min(220px, calc(100vw - 20px));
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: #123d25;
  box-shadow: 0 8px 26px rgba(0,0,0,.16);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}
.gando-favorite-tooltip[hidden] { display: none !important; }

/* PDP image must show the full WooCommerce attachment without crop or a soft thumbnail. */
.single-product .pdp .gallery-main { background: #fff !important; }
.single-product .pdp .gallery-main > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 3.25% !important;
  image-rendering: auto;
}
.single-product .pdp .gallery-thumb img { object-fit: contain !important; }

/* WooCommerce native availability is used for logic; the Gando badge is the single visual status. */
.single-product .woocommerce-variation-availability { display: none !important; }
.single-product .pdp-stock {
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecf8f0;
  color: #237044 !important;
  font-size: 12px !important;
  font-weight: 750;
}
.single-product .pdp-stock.out { background: #fff0f0; color: #a83c3c !important; }

/* Unavailable variations are visible like the approved HTML but absolutely non-interactive. */
.single-product .gando-variation-option:disabled,
.single-product .gando-variation-option.is-disabled,
.single-product .scroll-size:disabled {
  color: #aeb4b0 !important;
  background: #f6f7f5 !important;
  border-color: #e4e7e4 !important;
  opacity: .72 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  text-decoration: line-through;
  box-shadow: none !important;
}
.single-product .gando-variation-option.is-active:not(:disabled),
.single-product .scroll-size.active:not(:disabled) {
  color: #fff !important;
  background: #0d4023 !important;
  border-color: #0d4023 !important;
  text-decoration: none;
}

/* Reference V7 sticky buy: full-width green rail + white rounded inner plate. */
.single-product .pdp-scroll-buy {
  direction: rtl;
  position: fixed !important;
  z-index: 9990 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  min-height: 94px;
  padding: 12px max(18px, calc((100vw - 1360px) / 2)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0c4728 !important;
  box-shadow: 0 -10px 30px rgba(13,64,35,.10) !important;
  backdrop-filter: none !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.35fr) auto !important;
  grid-template-areas: "product sizes button" !important;
  align-items: center !important;
  gap: 12px !important;
  transform: translateY(110%) !important;
  opacity: 0;
  visibility: hidden;
  transition: transform .24s ease, opacity .2s ease, visibility .2s !important;
}
.single-product .pdp-scroll-buy::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  bottom: 10px;
  right: max(12px, calc((100vw - 1400px) / 2));
  left: max(12px, calc((100vw - 1400px) / 2));
  border: 1px solid #e1e6e2;
  border-radius: 19px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
}
.single-product .pdp-scroll-buy.is-visible {
  transform: translateY(0) !important;
  opacity: 1;
  visibility: visible;
}
.single-product .pdp-scroll-buy > * { position: relative; z-index: 1; }
.single-product .scroll-buy__product { grid-area: product; justify-self: stretch; padding-inline: 12px; }
.single-product .scroll-buy__product img {
  width: 64px !important;
  height: 54px !important;
  padding: 3px;
  border: 1px solid #edf0ed;
  border-radius: 12px !important;
  object-fit: contain !important;
  background: #fff;
}
.single-product .scroll-buy__copy b { font-size: 12px !important; font-weight: 800; }
.single-product .scroll-buy__copy span { color: #0d5b32 !important; font-size: 13px !important; font-weight: 850; }
.single-product .scroll-buy__sizes {
  grid-area: sizes;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.single-product .scroll-buy__sizes[hidden] { display: none !important; }
.single-product .scroll-buy__sizes-label { color: #78817a; font-size: 10px; margin-inline-end: 3px; }
.single-product .scroll-buy__sizes-list { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.single-product .scroll-buy__sizes-list::-webkit-scrollbar { display: none; }
.single-product .scroll-size {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #dde3df;
  border-radius: 9px;
  background: #fff;
  color: #2a312c;
  font: 750 12px var(--font-body, YekanBakh, sans-serif);
  cursor: pointer;
}
.single-product .pdp-scroll-buy .cta-buy {
  grid-area: button !important;
  min-width: 190px !important;
  min-height: 50px !important;
  margin: 0 12px 0 0 !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: #151b16 !important;
  background: #ffa400 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  cursor: pointer;
}
.single-product .pdp-scroll-buy .cta-buy:hover { background: #f39800 !important; }
.single-product .pdp-scroll-buy .scroll-buy__qty {
  grid-area: sizes;
  justify-self: end;
  margin-inline-end: 4px;
  z-index: 2;
}
.single-product .pdp-scroll-buy.has-qty .scroll-buy__sizes { padding-inline-end: 100px; }
.single-product .pdp-scroll-buy.has-qty .cta-buy { display: none !important; }

/* Rabino Comments source styling is loaded verbatim; only bind it to the Gando palette/dark mode. */
.rabino-comments-wrapper {
  --rabino-comment-font-family: var(--font-body, YekanBakh, sans-serif);
}
html[data-theme="dark"] .rabino-comments-wrapper {
  --rabino-comment-surface: #142019;
  --rabino-comment-surface-muted: #18271e;
  --rabino-comment-border: #304238;
  --rabino-comment-text: #edf4ef;
  --rabino-comment-text-muted: #adbbb1;
  --rabino-comment-text-soft: #84968a;
  --rabino-comment-success-soft: #153322;
  --rabino-comment-success-border: #28553a;
  --rabino-comment-danger-soft: #341a1a;
  --rabino-comment-danger-border: #60302f;
  --rabino-comment-warning-soft: #332b15;
}

@media (max-width: 1050px) {
  .single-product .pdp-scroll-buy {
    grid-template-columns: minmax(230px, .9fr) minmax(300px, 1fr) auto !important;
    padding-inline: 12px !important;
  }
  .single-product .pdp-scroll-buy::before { right: 8px; left: 8px; }
  .single-product .pdp-scroll-buy .cta-buy { min-width: 155px !important; margin-right: 8px !important; }
  .single-product .scroll-buy__product { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .single-product .pdp-scroll-buy {
    min-height: 82px;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-areas: "sizes button" !important;
    gap: 7px !important;
    padding: 9px 8px !important;
  }
  .single-product .pdp-scroll-buy::before { top: 7px; bottom: 7px; right: 6px; left: 6px; border-radius: 15px; }
  .single-product .scroll-buy__product { display: none !important; }
  .single-product .scroll-buy__sizes { justify-content: flex-start; padding-inline: 10px 0; }
  .single-product .scroll-buy__sizes-label { display: none; }
  .single-product .scroll-size { flex-basis: 35px; width: 35px; height: 37px; font-size: 11px; }
  .single-product .pdp-scroll-buy .cta-buy { min-width: 122px !important; min-height: 46px !important; margin: 0 !important; padding: 0 11px !important; font-size: 10.5px !important; }
  .single-product .pdp-scroll-buy .scroll-buy__qty { grid-area: sizes; justify-self: start; margin-inline-start: 8px; }
  .single-product .pdp-scroll-buy.has-qty .scroll-buy__sizes { padding-inline-start: 100px; }
}
@media (max-width: 430px) {
  .single-product .pdp-scroll-buy .cta-buy { min-width: 110px !important; }
  .single-product .scroll-size { flex-basis: 33px; width: 33px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  .single-product .pdp-scroll-buy { transition: none !important; }
}

/* Persisted wishlist state: keep the heart visually selected in every product context. */
.product-card-v62__wish.is-saved,
.product-card-v62__wish[aria-pressed="true"],
.pdp-wish.is-saved,
.pdp-wish[aria-pressed="true"] {
  background: #fff1f2 !important;
  border-color: #e4bec4 !important;
  color: #a51e2c !important;
}
.product-card-v62__wish.is-saved svg,
.product-card-v62__wish[aria-pressed="true"] svg,
.pdp-wish.is-saved svg,
.pdp-wish[aria-pressed="true"] svg {
  fill: currentColor;
}
html[data-theme="dark"] .gando-favorite-tooltip { background: #eaf2ed; color: #10351f; }
