/* Proyojone v2.9.1 — consistent 4px gutters, equal Gadget/Offers layout, gallery thumbnail order, stable CTA rows. */
:root{--prj-space-1:4px;}

/* All reusable homepage section containers use one spacing unit on each outer side. */
.prf-root.prf-section-shell{
  box-sizing:border-box!important;
  width:calc(100% - 8px)!important;
  max-width:none!important;
  margin:8px auto!important;
}

/* Gadget for You and Offers & Deals share the same internal panel and card gutters. */
.prf-root.prf-grid-section>.prf-grid-panel,
.prf-root.prf-offer-section>.prf-panel.prf-offer-products{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:8px 0 0!important;
  padding:8px 4px!important;
}
.prf-root.prf-grid-section>.prf-grid-panel{margin-top:0!important;}
.prf-root.prf-grid-section .prf-grid-products,
.prf-root.prf-offer-section .prf-offer-products .prf-grid-products{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:4px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.prf-root.prf-grid-section .prf-grid-products>.prf-product-card,
.prf-root.prf-offer-section .prf-offer-products .prf-grid-products>.prf-product-card{
  box-sizing:border-box!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
}
/* Image stays edge-to-edge; text/price content gets a consistent 4px inner gutter. */
.prf-root.prf-grid-section .prf-product-image,
.prf-root.prf-offer-section .prf-product-image{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  aspect-ratio:1/1!important;
  overflow:hidden!important;
}
.prf-root.prf-grid-section .prf-product-image img,
.prf-root.prf-offer-section .prf-product-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center!important;
}
.prf-root.prf-grid-section .prf-product-title,
.prf-root.prf-offer-section .prf-product-title{box-sizing:border-box!important;padding-left:4px!important;padding-right:4px!important;}
.prf-root.prf-grid-section .prf-product-bottom,
.prf-root.prf-offer-section .prf-product-bottom{box-sizing:border-box!important;margin:0!important;padding:4px!important;}
.prf-root.prf-grid-section .prf-product-actions,
.prf-root.prf-offer-section .prf-product-actions{box-sizing:border-box!important;gap:4px!important;margin:4px 0 0!important;padding:0!important;}

/* Live WooCommerce card rails use the same 4px gap and container padding. */
.prj-native-trending-panel #slx-trending-track,
#slx-trending-track.prj-wc-live-grid,
.prf-root .prf-product-track{gap:4px!important;}
.prj-native-product-grid,.prj-native-offers-products,
#slx-offers-track,.prj-offer-product-track{box-sizing:border-box!important;gap:4px!important;padding-left:4px!important;padding-right:4px!important;}

/* Gallery rail must always follow the primary image/slider. Override themes that put thumbnails above or over it. */
body.single-product div.product div.images .woocommerce-product-gallery{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
  height:auto!important;
  min-height:1px!important;
  overflow:visible!important;
}
body.single-product div.product div.images .woocommerce-product-gallery>.flex-viewport,
body.single-product div.product div.images .woocommerce-product-gallery>.woocommerce-product-gallery__wrapper{
  order:1!important;
  position:relative!important;
  top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
  transform:none!important;float:none!important;
  flex:0 0 auto!important;
  width:100%!important;max-width:100%!important;
}
body.single-product div.images .woocommerce-product-gallery>.flex-control-nav.flex-control-thumbs,
body.single-product div.images .woocommerce-product-gallery>.flex-control-thumbs,
body.single-product div.images .woocommerce-product-gallery>.prj-gallery-fallback-thumbs{
  order:2!important;
  position:static!important;
  inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  transform:none!important;float:none!important;clear:both!important;
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:stretch!important;
  flex:0 0 auto!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  margin:8px 0 0!important;padding:0!important;
  z-index:auto!important;
}
body.single-product div.images .woocommerce-product-gallery>.flex-control-nav.flex-control-thumbs li,
body.single-product div.images .woocommerce-product-gallery>.flex-control-thumbs li{
  position:static!important;float:none!important;clear:none!important;
}
body.single-product div.images .woocommerce-product-gallery .flex-viewport{order:1!important;}
body.single-product div.images .woocommerce-product-gallery .woocommerce-product-gallery__wrapper{margin:0!important;}

/* Normalize purchase actions regardless of Astra/Elementor theme button rules. */
body.single-product div.product .summary form.cart:not(.grouped_form),
body.single-product div.product .summary .woocommerce-variation-add-to-cart{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
  gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:12px 0 0!important;padding:0!important;
}
body.single-product div.product .summary form.cart .prj-single-primary-actions,
body.single-product div.product .summary .woocommerce-variation-add-to-cart>.prj-single-primary-actions{
  display:grid!important;grid-template-columns:minmax(0,35fr) minmax(0,65fr)!important;align-items:stretch!important;
  gap:4px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
body.single-product div.product .summary form.cart .prj-single-secondary-actions,
body.single-product div.product .summary .woocommerce-variation-add-to-cart>.prj-single-secondary-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;
  gap:4px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
body.single-product div.product .summary .prj-single-primary-actions>.quantity,
body.single-product div.product .summary .prj-single-primary-actions>.prj-single-order-now,
body.single-product div.product .summary .prj-single-secondary-actions>.single_add_to_cart_button,
body.single-product div.product .summary .prj-single-secondary-actions>.prj-single-whatsapp{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;clear:none!important;
  margin:0!important;align-self:stretch!important;justify-self:stretch!important;
}
body.single-product div.product .summary .prj-single-primary-actions>.quantity{grid-column:1!important;grid-row:1!important;}
body.single-product div.product .summary .prj-single-primary-actions>.prj-single-order-now{grid-column:2!important;grid-row:1!important;}
body.single-product div.product .summary .prj-single-secondary-actions>.single_add_to_cart_button{grid-column:1!important;grid-row:1!important;}
body.single-product div.product .summary .prj-single-secondary-actions>.prj-single-whatsapp{grid-column:2!important;grid-row:1!important;}
body.single-product div.product .summary .prj-single-primary-actions.prj-no-quantity{grid-template-columns:minmax(0,1fr)!important;}
body.single-product div.product .summary .prj-single-primary-actions.prj-no-quantity>.prj-single-order-now{grid-column:1!important;}
@media(max-width:767px){
  .prf-root.prf-grid-section>.prf-grid-panel,
  .prf-root.prf-offer-section>.prf-panel.prf-offer-products{padding:8px 4px!important;}
  .prf-root.prf-grid-section .prf-grid-products,
  .prf-root.prf-offer-section .prf-offer-products .prf-grid-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;}
  body.single-product div.product div.images .woocommerce-product-gallery>.flex-control-nav.flex-control-thumbs li,
  body.single-product div.product div.images .woocommerce-product-gallery>.flex-control-thumbs li{flex:0 0 calc((100% - 12px)/4)!important;width:calc((100% - 12px)/4)!important;}
}
@media(prefers-reduced-motion:reduce){.prf-root *{scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
