/*
 * GeekWeb Storefront Portable — Woodmart component isolation.
 * Scoped intentionally: Woodmart remains untouched outside imported Poostina widgets.
 */

/* If Woodmart/another extension injects native steppers, Poostina owns the
   purchase-box quantity UI and must show one control set only. */
.gwsp-woodmart .poostina-single-purchase .quantity > .minus,
.gwsp-woodmart .poostina-single-purchase .quantity > .plus {
  display: none !important;
}

/* Woodmart assigns its AJAX loader to :before/:after of Woo buttons. Poostina
   uses :after as a shine layer, so reset the Woodmart loader geometry only in
   this purchase component. */
.gwsp-woodmart .poostina-single-purchase .single_add_to_cart_button::before {
  content: none !important;
  display: none !important;
}
.gwsp-woodmart .poostina-single-purchase .single_add_to_cart_button::after {
  content: "" !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  animation: none !important;
  vertical-align: initial !important;
}

.gwsp-woodmart .poostina-product-carousel button,
.gwsp-woodmart .poostina-product-carousel a,
.gwsp-woodmart .poostina-single-purchase button,
.gwsp-woodmart .poostina-single-purchase a {
  text-transform: none;
}

/* Keep Woo core gallery geometry owned by the imported widget rather than
   Woodmart's global single-product alignment rules. */
.gwsp-woodmart .poostina-single-gallery .woocommerce-product-gallery,
.gwsp-woodmart .poostina-single-gallery .woocommerce-product-gallery__wrapper {
  max-width: 100% !important;
  margin-inline: 0 !important;
}

.gwsp-woodmart .gwsp-poostina-widget .poostina-single-purchase form.cart,
.gwsp-woodmart .gwsp-poostina-widget .poostina-single-purchase form.cart > *,
.gwsp-woodmart .gwsp-poostina-widget .poostina-single-purchase .woocommerce-variation-add-to-cart {
  max-width: none;
}

.gwsp-woodmart .gwsp-poostina-widget .poostina-single-purchase div.quantity {
  position: relative;
  inset: auto;
  float: none;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.gwsp-woodmart .gwsp-poostina-widget .poostina-single-purchase div.quantity input.qty {
  float: none;
  box-shadow: none;
  transform: none;
  -webkit-appearance: textfield;
}

/* Woodmart's .product/.wd-product rules must never convert Poostina carousel
   cards into Woodmart product-grid geometry. */
.gwsp-woodmart .gwsp-poostina-widget .poostina-product-carousel .swiper-slide,
.gwsp-woodmart .gwsp-poostina-widget .poostina-product-carousel .poostina-product-card {
  float: none;
  max-width: none;
}
.gwsp-woodmart .gwsp-poostina-widget .poostina-product-card > * {
  min-width: 0;
}

/* Prevent Woodmart global list/menu rules from adding bullets, pseudo markers
   or theme spacing inside imported navigation/list widgets. */
.gwsp-woodmart .gwsp-poostina-widget :is(
  .poostina-mega-subcategories,
  .poostina-product-categories-menu,
  .poostina-wishlist,
  .poostina-compare,
  .poostina-account,
  .poostina-single-product-tabs
) ul,
.gwsp-woodmart .gwsp-poostina-widget :is(
  .poostina-mega-subcategories,
  .poostina-product-categories-menu,
  .poostina-wishlist,
  .poostina-compare,
  .poostina-account,
  .poostina-single-product-tabs
) li {
  list-style: none;
}
.gwsp-woodmart .gwsp-poostina-widget :is(
  .poostina-mega-subcategories,
  .poostina-product-categories-menu,
  .poostina-wishlist,
  .poostina-compare,
  .poostina-account,
  .poostina-single-product-tabs
) li::before {
  content: none;
}
