
/* GazAria v3.6 — structural storefront repair, 2026-10-12.
   WooCommerce gallery stays native. Main product information and the purchase
   panel are grouped by PHP hooks into one genuine column, without CSS row hacks. */
body.single-product .woocommerce div.product,
body.single-product .woocommerce div.product:has(> .gazaria-v36-side){
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  column-gap:clamp(18px,2.5vw,36px)!important;
  row-gap:clamp(20px,2.5vw,28px)!important;
  align-items:start!important;align-content:start!important;
  width:100%!important;min-width:0!important;
  padding:clamp(14px,2vw,28px)!important;
}
body.single-product .woocommerce div.product > .woocommerce-product-gallery.images {
  box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;
  align-self:start!important;min-width:0!important;
  width:100%!important;max-width:100%!important;margin:0!important;
}
body.single-product .woocommerce div.product > .gazaria-v36-side{
  box-sizing:border-box!important;grid-column:2!important;grid-row:1!important;
  min-width:0!important;width:100%!important;
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;gap:16px!important;
  margin:0!important;padding:0!important;
}
body.single-product .woocommerce div.product > .gazaria-v36-side > .summary.entry-summary {
  box-sizing:border-box!important;display:block!important;
  position:static!important;float:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side > .summary.entry-summary::before,
body.single-product .woocommerce div.product .gazaria-v36-side > .summary.entry-summary::after {
  display:none!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side .product_title{
  font-size:clamp(20px,1.9vw,27px)!important;line-height:1.8!important;
  font-weight:850!important;color:#10363c!important;
  margin:0 0 11px!important;max-width:100%!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side .woocommerce-product-details__short-description{
  font-size:13px!important;line-height:2!important;
  color:#60747a!important;margin:0 0 13px!important;padding:0!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side .woocommerce-product-details__short-description p{
  margin:0!important
}
body.single-product .woocommerce div.product .gazaria-v36-side .product_meta {
  box-sizing:border-box!important;display:flex!important;flex-wrap:wrap!important;
  gap:4px 16px!important;align-items:center!important;
  border-top:1px solid #e2eae7!important;
  margin:11px 0 0!important;padding:10px 0 0!important;
  width:100%!important;min-width:0!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side > .gazaria-v35-purchase{
  box-sizing:border-box!important;
  grid-column:auto!important;grid-row:auto!important;
  align-self:auto!important;position:static!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  display:block!important;margin:0!important;
  padding:16px 18px 18px!important;
  border:1px solid #dfeae6!important;border-radius:14px!important;
  background:linear-gradient(125deg,#fbfefd,#f3f9f7)!important;
  box-shadow:0 8px 25px rgba(9,55,52,.045)!important;
}
body.single-product .gazaria-v36-side .gazaria-v35-purchase__top{
  margin:0 0 10px!important;padding:0 0 8px!important;
}
body.single-product .gazaria-v36-side .gazaria-v35-purchase__top h2{
  font-size:13px!important
}
body.single-product .gazaria-v36-side .gazaria-v35-purchase__price{
  margin:0 0 12px!important
}
body.single-product .gazaria-v36-side .gazaria-v35-purchase__price > p.price{
  font-size:clamp(20px,2vw,26px)!important;
  line-height:1.6!important;margin:0!important;
}
/* Quantity and action sit side-by-side inside the same, compact order panel. */
body.single-product .woocommerce div.product .gazaria-v36-side .gazaria-v35-purchase__action > form.cart{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:124px minmax(0,1fr)!important;
  grid-template-rows:45px!important;
  flex-direction:unset!important;
  align-items:center!important;justify-content:stretch!important;
  gap:10px!important;width:100%!important;max-width:100%!important;
  min-height:45px!important;padding:0!important;margin:0!important;
  background:transparent!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side .gazaria-v35-purchase__action form.cart > .quantity{
  box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;
  width:124px!important;max-width:124px!important;min-width:0!important;
  height:44px!important;min-height:44px!important;min-width:0!important;
  padding:3px!important;gap:2px!important;margin:0!important;
  display:flex!important;justify-content:space-between!important;
  flex:0 0 auto!important;
}
body.single-product .woocommerce div.product .gazaria-v36-side .gazaria-v35-purchase__action form.cart > button.single_add_to_cart_button{
  box-sizing:border-box!important;grid-column:2!important;grid-row:1!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  margin:0!important;height:44px!important;min-height:44px!important;
  max-height:44px!important;flex:initial!important;
  font-size:13px!important;font-weight:850!important;
  white-space:nowrap!important;
}
/* Woo FlexSlider inserts a thumbnail <ol>. Never let legacy rules spread two
   thumbnails to opposite gallery edges. The list is content-width, RTL-anchored. */
body.single-product .woocommerce div.product div.images ol.flex-control-thumbs,
body.single-product .woocommerce div.product div.images ul.flex-control-thumbs{
  box-sizing:border-box!important;display:inline-flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;justify-content:flex-start!important;
  gap:8px!important;direction:rtl!important;
  float:none!important;clear:both!important;
  width:max-content!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;
  margin:10px 0 0 auto!important;padding:0!important;
  grid-template-columns:none!important;list-style:none!important;
}
body.single-product .woocommerce div.product div.images .flex-control-thumbs > li{
  box-sizing:border-box!important;
  position:static!important;display:block!important;
  float:none!important;clear:none!important;
  flex:0 0 64px!important;
  width:64px!important;min-width:64px!important;max-width:64px!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  margin:0!important;padding:0!important;
}
body.single-product .woocommerce div.product div.images .flex-control-thumbs > li img{
  box-sizing:border-box!important;display:block!important;
  width:64px!important;height:64px!important;
  min-width:64px!important;max-width:64px!important;
  min-height:64px!important;max-height:64px!important;
  object-fit:contain!important;padding:5px!important;margin:0!important;
  border-radius:10px!important;border:1px solid #dce9e5!important;
  background:#f9fcfb!important;
}
body.single-product .woocommerce div.product .woocommerce-product-gallery__image a{
  aspect-ratio:1 / .82!important;
}
body.single-product .woocommerce div.product .woocommerce-product-gallery__image img{
  max-height:405px!important;
}
/* The "products" class on <section> has a global 4-column rule in this theme.
   JS removes that class from the SECTION ONLY (the child <ul> keeps it).
   Both before and after JS, section must remain a block spanning full width. */
body.single-product .woocommerce div.product > section.related,
body.single-product .woocommerce div.product > section.gazaria-related-products{
  box-sizing:border-box!important;grid-column:1/-1!important;
  grid-row:auto!important;display:block!important;
  clear:both!important;float:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:8px 0 0!important;padding:23px 0 0!important;
  border-top:1px solid #e1eae7!important;
}
body.single-product .woocommerce div.product > section.related > h2,
body.single-product .woocommerce div.product > section.gazaria-related-products > h2{
  display:block!important;grid-column:auto!important;
  margin:0 0 19px!important;padding:0!important;
  font-size:20px!important;line-height:1.7!important;
  color:#153b40!important;text-align:right!important;
}
body.single-product .woocommerce div.product section.related > ul.products,
body.single-product .woocommerce div.product section.gazaria-related-products > ul.products{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;gap:15px!important;
  padding:0!important;margin:0!important;
  clear:none!important;float:none!important;
}
body.single-product .woocommerce div.product section.related > ul.products:before,
body.single-product .woocommerce div.product section.related > ul.products:after {display:none!important}
body.single-product .woocommerce div.product section.related > ul.products > li.product,
body.single-product .woocommerce div.product section.gazaria-related-products > ul.products > li.product{
  box-sizing:border-box!important;display:flex!important;
  flex-direction:column!important;align-items:stretch!important;
  float:none!important;clear:none!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  height:100%!important;min-height:300px!important;
  margin:0!important;padding:12px!important;
  border:1px solid #dfebe7!important;border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(8,47,48,.035)!important;
}
body.single-product .woocommerce div.product section.related ul.products li.product a.woocommerce-LoopProduct-link{
  box-sizing:border-box!important;display:flex!important;
  flex-direction:column!important;align-items:stretch!important;
  flex:1 1 auto!important;width:100%!important;min-width:0!important;
  text-decoration:none!important
}
body.single-product .woocommerce div.product section.related ul.products li.product a.woocommerce-LoopProduct-link > img{
  box-sizing:border-box!important;display:block!important;
  flex:0 0 auto!important;width:100%!important;max-width:100%!important;
  height:170px!important;min-height:170px!important;
  margin:0 0 12px!important;padding:10px!important;
  object-fit:contain!important;background:#f5f9f7!important;
  border-radius:10px!important;
}
body.single-product .woocommerce div.product section.related ul.products li.product h2.woocommerce-loop-product__title{
  display:block!important;width:100%!important;
  padding:0 2px 8px!important;margin:0!important;
  font-size:13px!important;line-height:1.85!important;
  font-weight:750!important;color:#163940!important;
  min-height:0!important;overflow-wrap:normal!important;
  word-break:normal!important;white-space:normal!important;
}
body.single-product .woocommerce div.product section.related ul.products li.product span.price{
  display:block!important;width:100%!important;max-width:100%!important;
  padding:0 2px 9px!important;margin:auto 0 0!important;
  font-size:12px!important;font-weight:850!important;
  color:#087970!important;line-height:1.7!important;
  white-space:normal!important;word-break:normal!important;
}
body.single-product .woocommerce div.product section.related ul.products li.product > a.ds-gas-card-quote{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100%!important;min-height:42px!important;
  flex:0 0 auto!important;margin:0!important;padding:9px 10px!important;
  text-align:center!important;border-radius:9px!important;
  border:0!important;background:#087f78!important;color:#fff!important;
  font-size:12px!important;line-height:1.65!important;font-weight:800!important;
  text-decoration:none!important;white-space:normal!important;word-break:normal!important;
}
@media(max-width:1050px){
  body.single-product .woocommerce div.product{
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
    gap:18px!important;
  }
  body.single-product .woocommerce div.product section.related > ul.products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:800px){
  body.single-product .woocommerce div.product{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto!important;gap:16px!important;
    padding:13px!important;
  }
  body.single-product .woocommerce div.product > .woocommerce-product-gallery.images{
    grid-column:1!important;grid-row:1!important;
  }
  body.single-product .woocommerce div.product > .gazaria-v36-side{
    grid-column:1!important;grid-row:2!important;gap:14px!important;
  }
  body.single-product .woocommerce div.product section.related > ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.single-product .woocommerce div.product .woocommerce-product-gallery__image a{
    aspect-ratio:1 / .78!important;
  }
  body.single-product .woocommerce div.product .woocommerce-product-gallery__image img{
    max-height:350px!important;
  }
}
@media(max-width:450px){
  body.single-product .woocommerce div.product > .gazaria-v36-side{
    gap:12px!important
  }
  body.single-product .woocommerce div.product .gazaria-v36-side > .gazaria-v35-purchase{
    padding:14px!important
  }
  body.single-product .woocommerce div.product .gazaria-v36-side .gazaria-v35-purchase__action > form.cart{
    grid-template-columns:110px minmax(0,1fr)!important;gap:8px!important;
  }
  body.single-product .woocommerce div.product .gazaria-v36-side .gazaria-v35-purchase__action form.cart > .quantity{
    width:110px!important;max-width:110px!important;
  }
  body.single-product .woocommerce div.product .gazaria-v36-side .gazaria-v35-purchase__action form.cart > button.single_add_to_cart_button{
    font-size:11px!important;padding:6px!important;
  }
  body.single-product .woocommerce div.product section.related > ul.products{
    gap:10px!important;
  }
  body.single-product .woocommerce div.product section.related ul.products li.product > a.ds-gas-card-quote{
    font-size:11px!important;padding:8px 5px!important
  }
  body.single-product .woocommerce div.product section.related ul.products li.product a.woocommerce-LoopProduct-link > img{
    height:135px!important;min-height:135px!important;padding:8px!important
  }
}
@media(max-width:350px){
  body.single-product .woocommerce div.product section.related > ul.products{
    grid-template-columns:1fr!important
  }
}
