/* =========================================================
   RYHA Single Product Layout 1.0.1
   Tik produkto puslapiui. Sustiprinti selektoriai, kad Astra / senas
   layout CSS neperrašytų 5% kraštinių tarpų.
   ========================================================= */

body.single-product .site-content .ast-container{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  display:block !important;
  box-sizing:border-box !important;
}

body.single-product .content-area,
body.single-product #primary{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
}

body.single-product #secondary{
  display:none !important;
}

body.single-product .ryha-layout-grid{
  --ryha-product-edge:5vw;
  --ryha-product-nav-w:clamp(260px,22vw,360px);
  box-sizing:border-box !important;
  width:calc(100vw - (var(--ryha-product-edge) * 2)) !important;
  max-width:none !important;
  margin-left:var(--ryha-product-edge) !important;
  margin-right:var(--ryha-product-edge) !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:var(--ryha-product-nav-w) minmax(0,1fr) !important;
  gap:clamp(16px,2vw,32px) !important;
  align-items:start !important;
}

body.single-product .ryha-layout-nav{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

body.single-product .ryha-layout-nav > *{
  position:sticky;
  top:24px;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.single-product .ryha-layout-nav .ryha-pjk{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}

body.single-product .ryha-layout-main{
  min-width:0 !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

/* Produktas neturi paveldėti Astra sidebar / content pločio apribojimų. */
body.single-product .ryha-layout-main > .product,
body.single-product .ryha-layout-main div.product{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}

@media (max-width:991px){
  body.single-product .ryha-layout-grid{
    width:auto !important;
    margin-left:16px !important;
    margin-right:16px !important;
    display:block !important;
  }

  body.single-product .ryha-layout-nav{
    margin-bottom:16px !important;
  }

  body.single-product .ryha-layout-nav > *{
    position:static !important;
  }
}
