/* Product CTA: Buy Now (left) + Buy Via WhatsApp (right) */
.product-actions .add-to-cart,
#local-product-buy,
#local-product-sticky-buy {
  display: none !important;
}

.product-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: stretch;
}

.product-actions .buy-now,
#local-product-buy-now {
  order: 1;
}

.product-actions .buy-via-whatsapp,
#local-product-whatsapp {
  order: 2;
}

a.buy-button.buy-via-whatsapp,
.buy-button.buy-via-whatsapp {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #23a216 !important;
  background: #23a216 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, filter .2s ease;
}

a.buy-button.buy-via-whatsapp:hover,
.buy-button.buy-via-whatsapp:hover {
  background: #1e8f14 !important;
  border-color: #1e8f14 !important;
  color: #fff !important;
  filter: brightness(1.02);
}

.buy-via-whatsapp-label {
  flex: 0 1 auto;
  text-align: center;
  white-space: nowrap;
}

.buy-button.buy-via-whatsapp svg,
.buy-via-whatsapp-icon {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  display: block;
  color: #fff;
  overflow: visible;
}

.wa-price-note {
  margin: 12px 0 14px;
  color: #c41e3a !important;
  font-weight: 700 !important;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center !important;
}

.wf-trust-strip { display: none !important; }

/* Gallery: main image matches the right-column height; thumbs below */
.product-gallery,
.product-gallery.has-thumbs {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  grid-template-columns: none !important;
}
.product-gallery-main {
  order: 1 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
}
.product-gallery-zoom {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  cursor: zoom-in !important;
  flex: 1 1 auto !important;
}
.product-gallery-main img,
.product-gallery-zoom img,
#local-product-cover {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
}
@media (min-width: 901px) {
  .product-page .product-top,
  #local-product-page .product-top {
    align-items: stretch !important;
  }
  .product-gallery,
  .product-gallery.has-thumbs {
    height: 100% !important;
    min-height: 900px !important;
  }
  .product-gallery-zoom {
    min-height: 900px !important;
    height: 100% !important;
  }
  .product-gallery-main img,
  .product-gallery-zoom img,
  #local-product-cover {
    min-height: 900px !important;
    height: 100% !important;
  }
}
.product-gallery-thumbs:not([hidden]) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 4px !important;
  max-height: none !important;
  overflow: visible !important;
  order: 2 !important;
  grid-template-columns: none !important;
}
.product-gallery-thumb {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  flex: 0 0 72px !important;
  padding: 0 !important;
  border: 1px solid #e4e2de !important;
  background: #fff !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.product-gallery-thumb.is-active {
  border-color: #111 !important;
  box-shadow: 0 0 0 1px #111 !important;
}
.product-gallery-thumb img {
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  .product-gallery,
  .product-gallery.has-thumbs,
  .product-gallery-zoom {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .product-gallery-main img,
  .product-gallery-zoom img,
  #local-product-cover {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

@media (max-width: 520px) {
  a.buy-button.buy-via-whatsapp,
  .buy-button.buy-via-whatsapp {
    font-size: 13px;
    letter-spacing: .02em;
    padding: 10px 8px;
  }
  .buy-via-whatsapp-label {
    white-space: normal;
  }
  .buy-via-whatsapp-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}
