/* MARABIKA minimal PDP UX 1.0.1 */

/* The product identity is already present in the first server response.
   Keep that canonical brand link and fact row; suppress legacy duplicates
   before first paint so neither the brand nor H1 can jump. */
body#product.page-product .product-heading-block
  .mbk-identity__pdp-brand--server + .mbk-pic4__pdp-brand,
body#product.page-product .product-heading-block
  .mbk-pic4__pdp-facts{
  display:none!important;
}

/* One review summary belongs below the product content, never inside the
   purchase form. No review data is removed. */
body#product.page-product #product-info-block .product-additional-info
  .mrl-review-summary{
  display:none!important;
}

@media (min-width:1280px){
  /* Prevent the middle purchase track from stretching across wide monitors. */
  body#product.page-product .product.product-container.mbk-pdp-grid-v3{
    grid-template-columns:
      minmax(360px,400px)
      minmax(500px,620px)
      minmax(210px,230px)!important;
    justify-content:center!important;
  }

  body#product.page-product .product-heading-block h1.product__title{
    max-width:17ch!important;
    font-size:clamp(38px,2.45vw,46px)!important;
    line-height:1.02!important;
    letter-spacing:-.035em!important;
    text-wrap:balance;
  }

  body#product.page-product #product-info-block
    .m-product-price__current{
    font-size:clamp(40px,2.5vw,46px)!important;
    line-height:1!important;
    letter-spacing:-.03em!important;
  }

  body#product.page-product #product-info-block
    button.add-to-cart[data-button-action="add-to-cart"]{
    min-height:60px!important;
    height:60px!important;
    border-radius:16px!important;
    font-size:17px!important;
    line-height:1.2!important;
  }
}

/* The three featured comments remain one lightweight trust block. */
body#product.page-product .m-product-reviews--featured{
  box-sizing:border-box;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin-top:clamp(38px,4.5vw,64px)!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body#product.page-product .m-product-reviews--featured
  .m-product-reviews__head{
  min-height:0!important;
  margin:0 0 20px!important;
}

body#product.page-product .m-product-reviews--featured
  .m-product-reviews__title{
  margin:0!important;
  padding:0 0 10px!important;
  color:#28231f!important;
  font-size:clamp(24px,2vw,30px)!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:-.025em!important;
}

body#product.page-product .m-product-reviews--featured
  .m-product-reviews__title::before{
  display:none!important;
  content:none!important;
}

body#product.page-product .m-product-reviews--featured
  .m-product-reviews__title::after{
  display:block;
  width:54px;
  height:2px;
  margin-top:12px;
  border-radius:999px;
  background:#9b7046;
  content:"";
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary > h2{
  display:none!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary > div{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:18px!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article{
  box-sizing:border-box!important;
  display:flex!important;
  width:auto!important;
  min-width:0!important;
  min-height:184px!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  margin:0!important;
  padding:20px!important;
  border:1px solid #e5dbd0!important;
  border-radius:16px!important;
  background:#fffdfb!important;
  box-shadow:0 6px 18px rgba(55,40,28,.05)!important;
  text-align:left!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article > p{
  max-width:100%!important;
  text-align:left!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article > p:first-child{
  order:1;
  margin:0 0 8px!important;
  color:#28231f!important;
  font-size:14px!important;
  font-weight:750!important;
  line-height:1.35!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article > .rating-stars{
  order:2;
  display:flex!important;
  min-height:19px!important;
  align-items:center!important;
  gap:2px!important;
  margin:0 0 10px!important;
  color:#b48236!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article > .rating-stars svg{
  width:16px!important;
  height:16px!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article > p:nth-of-type(2){
  order:3;
  margin:0 0 12px!important;
  color:#756b62!important;
  font-size:11px!important;
  font-weight:550!important;
  line-height:1.35!important;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-summary article > p:last-child{
  order:4;
  max-width:42ch!important;
  margin:0!important;
  color:#4f4740!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:1.58!important;
  overflow-wrap:anywhere;
}

/* Compatibility with semantic review markup once PHP OPcache naturally
   refreshes; the first-paint geometry stays the same. */
body#product.page-product .m-product-reviews--featured
  .mrl-review-card__header{
  order:1;
  display:flex;
  width:100%;
  min-width:0;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-card__rating{
  order:2;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-card__content{
  order:3;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-card__star{
  color:#d8cec4;
  font-size:17px;
}

body#product.page-product .m-product-reviews--featured
  .mrl-review-card__star.is-active{
  color:#b48236;
}

@media (min-width:1024px) and (max-width:1199.98px){
  body#product.page-product .m-product-reviews--featured
    .mrl-review-summary > div{
    gap:14px!important;
  }

  body#product.page-product .m-product-reviews--featured
    .mrl-review-summary article{
    padding:18px!important;
  }
}

@media (max-width:767.98px){
  body#product.page-product .m-product-reviews--featured
    .mrl-review-summary > div{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }

  body#product.page-product .m-product-reviews--featured
    .mrl-review-summary article{
    width:100%!important;
    min-height:0!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body#product.page-product #product-info-block
    button.add-to-cart[data-button-action="add-to-cart"]{
    transition:none!important;
    transform:none!important;
  }
}
