/* DinhoS Reef Theme v0.13.20 — product-only layout. CSS only.
 * Native product gallery / summary / forms / REEF panels keep their own DOM.
 * 3 zones = compact gallery + ALL original product information/purchase + help rail.
 * When three zones do not fit, gallery becomes compact + summary side-by-side.
 * Do not rely on non-existent .drsf-product-purchase-panel.
 */
body.drsf-shop-site.drsf-shop-premium.single-product {
  --drsf-01320-line: #dce8f1;
  --drsf-01320-ink: #123451;
  --drsf-01320-radius: 17px;
  background:#f5f9fd;
}
body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce .woocommerce-breadcrumb {
  padding:9px 0!important; margin:12px 0 16px!important; border:0!important;
  border-radius:0!important; background:transparent!important; box-shadow:none!important;
  font-size:12px!important; line-height:1.6!important;
}
/* The wrapper size is based on available preview width rather than fixed theme limits. */
@media(min-width:800px){
  body.drsf-shop-site.drsf-shop-premium.single-product :is(#container,main.dr-page-content){
    width:calc(100% - 32px)!important;max-width:1500px!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product :is(#primary,#content,#main,.dr-entry,.dr-entry-content,.woocommerce){
    min-width:0!important;width:100%!important;max-width:100%!important;
  }
}
/* default fallback: 2 real elements beside one another; not 3 EMPTY grid tracks */
@media(min-width:801px){
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product{
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:minmax(245px,32%) minmax(0,1fr)!important;
    gap:20px!important;align-items:start!important;width:100%!important;
    padding:18px!important;margin:10px auto 0!important;
    background:#fff!important;border:1px solid var(--drsf-01320-line)!important;
    border-radius:20px!important;box-shadow:0 8px 24px rgba(11,46,74,.05)!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > :is(.images,.woocommerce-product-gallery){
    grid-column:1!important;grid-row:1!important;width:100%!important;max-width:100%!important;
    min-width:0!important;float:none!important;margin:0!important;padding:10px!important;
    position:static!important;top:auto!important;align-self:start!important;
    background:#fff!important;border:1px solid #e6eef5!important;border-radius:16px!important;
    box-shadow:none!important;overflow:hidden!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > .summary{
    grid-column:2!important;grid-row:1!important;width:100%!important;max-width:100%!important;
    min-width:0!important;float:none!important;margin:0!important;padding:6px!important;
    background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;
    display:block!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > :is(.woocommerce-tabs,.wc-tabs-wrapper,.related,.up-sells,.upsells){
    grid-column:1/-1!important;grid-row:auto!important;min-width:0!important;width:100%!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > .drsf-product-purchase-panel {
    grid-column:2!important;grid-row:auto!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > :is(.images,.woocommerce-product-gallery)
  :is(.woocommerce-product-gallery__image > a > img,.woocommerce-product-gallery__image > img,.wp-post-image):not(.zoomImg){
    max-height:440px!important;max-width:100%!important;width:100%!important;
    object-fit:contain!important;object-position:center!important;height:auto!important;padding:0!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product .flex-control-thumbs{
    max-width:100%!important;
  }
}
/* REAL three columns. The last column contains truthful, useful supporting
   purchase information. The ORIGINAL form stays in .summary in the middle. */
@media(min-width:1180px){
  body.drsf-shop-site.drsf-shop-premium.drsf-shop-premium-3col.single-product .woocommerce div.product:has(> .drsf-01320-assistance){
    grid-template-columns:minmax(250px,31%) minmax(355px,1fr) minmax(250px,285px)!important;
    gap:20px!important;
  }
  body.drsf-shop-site.drsf-shop-premium.drsf-shop-premium-3col.single-product .woocommerce div.product > .drsf-01320-assistance{
    grid-column:3!important;grid-row:1!important;
  }
}
/* Small laptops/Customizer: smaller photo, product copy AND buy next to it. */
@media(min-width:801px) and (max-width:1179px){
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product{
    grid-template-columns:minmax(230px,34%) minmax(0,1fr)!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > .drsf-01320-assistance{
    grid-column:2!important;grid-row:auto!important;
  }
}
/* The utility rail is a separate read-only surface. No fake duplicate buy button. */
body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > .drsf-01320-assistance{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  padding:18px!important;margin:0!important;border:1px solid #dce7f1!important;
  border-radius:16px!important;background:#fff!important;box-shadow:0 4px 16px rgba(16,58,91,.045)!important;
  color:var(--drsf-01320-ink)!important;
}
.drsf-01320-assistance__heading{font-size:17px;font-weight:800;line-height:1.25;color:#113856;margin:2px 0 10px}
.drsf-01320-assistance__item{display:flex;gap:11px;align-items:flex-start;padding:15px 0;border-top:1px solid #e5edf4}
.drsf-01320-assistance__icon{flex:none;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#ecf5fc;font-size:19px}
.drsf-01320-assistance__item strong{font-size:13px;font-weight:800;line-height:1.4;display:block;color:#153e5b}
.drsf-01320-assistance__item p{font-size:12px!important;line-height:1.55!important;margin:4px 0 0!important;color:#577184!important}
body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product .summary .product_title{
  font-size:clamp(23px,2vw,30px)!important;line-height:1.25!important;margin:0 0 12px!important;color:#113450!important;
}
body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product .summary .single_add_to_cart_button{
  min-height:49px!important;border-radius:11px!important;
  color:#fff!important;background:linear-gradient(115deg,#07559a,#1684db)!important;
}
body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product .summary :is(.dros-reef-product-price,.dinhos-express-selo){
  max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;
}
/* Mobile keeps exact WooCommerce product, purchase and benefit order. */
@media(max-width:800px){
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;
    padding:12px!important;width:100%!important;max-width:100%!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > :is(.images,.woocommerce-product-gallery,.summary,.drsf-01320-assistance){
    grid-column:1/-1!important;grid-row:auto!important;width:100%!important;max-width:100%!important;
    float:none!important;margin:0!important;min-width:0!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > .drsf-01320-assistance{
    padding:15px!important;
  }
  body.drsf-shop-site.drsf-shop-premium.single-product .woocommerce div.product > :is(.images,.woocommerce-product-gallery) img:not(.zoomImg){
    max-height:390px!important;object-fit:contain!important;
  }
}
