/* Product detail composition approved 2026-08-31.
   Scope: product page hierarchy only. Purchase button visuals and behavior stay unchanged. */

@media (min-width: 1200px) {
  body.ly-body .ly-product-v7 #content > .ref-product-top {
    grid-template-columns: minmax(0, 1.16fr) minmax(440px, .84fr) !important;
    gap: 32px !important;
  }

  body.ly-body .ly-product-v7 .ref-product-gallery .thumbnails,
  body.ly-body .ly-product-v7 .ref-product-gallery .thumbnails > li:first-child,
  body.ly-body .ly-product-v7 .ref-product-gallery .thumbnails > li:first-child .thumbnail {
    height: 660px !important;
  }
}

body.ly-body .ly-product-v7 .ref-product-summary {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

body.ly-body .ly-product-v7 .ref-product-gallery { position: relative !important; }

body.ly-body .ly-product-v7 .ly-gallery-actions-premium {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 9px;
}

body.ly-body .ly-product-v7 .ly-gallery-actions-premium button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #dce5e0;
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  color: #07553e;
  box-shadow: 0 8px 22px rgba(21,48,38,.08);
  place-items: center;
}

body.ly-body .ly-product-v7 .ly-gallery-actions-premium button:hover,
body.ly-body .ly-product-v7 .ly-gallery-actions-premium button:focus-visible {
  border-color: #8eb9a8;
  background: #f3f9f6;
  outline: 3px solid rgba(7,85,62,.14);
  outline-offset: 2px;
}

body.ly-body .ly-product-v7 .ly-gallery-actions-premium .ly-icon { width: 22px; height: 22px; }

body.ly-body .ly-product-v7 .ref-product-summary > .ly-product-toolbar-v14 { order: 1; }
body.ly-body .ly-product-v7 .ref-product-summary > h1 { order: 2; }
body.ly-body .ly-product-v7 .ref-product-summary > .ref-product-rating-summary { order: 3; }
body.ly-body .ly-product-v7 .ref-product-summary > .ref-product-facts { order: 4; }
body.ly-body .ly-product-v7 .ref-product-summary > .ly-product-price { order: 5; }
body.ly-body .ly-product-v7 .ref-product-summary > .ly-summary-installment { order: 6; }
body.ly-body .ly-product-v7 .ref-product-summary > .ly-shipping-status-v10 { order: 7; }
body.ly-body .ly-product-v7 .ref-product-summary > #product { order: 8; }

body.ly-body .ly-product-v7 .ref-product-summary > h1 {
  max-width: 17ch;
  margin: 16px 0 10px !important;
  color: #101915 !important;
  font-size: clamp(32px, 2.45vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

body.ly-body .ly-product-v7 .ref-product-facts-v10 {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 0 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.ly-body .ly-product-v7 .ref-product-facts-v10 > li,
body.ly-body .ly-product-v7 .ref-product-facts-v10 > span {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  align-items: baseline;
  gap: 5px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-left: 1px solid #dfe6e2 !important;
  background: transparent !important;
}

body.ly-body .ly-product-v7 .ref-product-facts-v10 > li:first-child,
body.ly-body .ly-product-v7 .ref-product-facts-v10 > span:first-child {
  padding-left: 0 !important;
  border-left: 0 !important;
}

body.ly-body .ly-product-v7 .ref-product-facts-v10 small,
body.ly-body .ly-product-v7 .ref-product-facts-v10 strong {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body.ly-body .ly-product-v7 .ref-product-facts-v10 small { color: #7a857f !important; }
body.ly-body .ly-product-v7 .ref-product-facts-v10 strong { color: #34443c !important; font-weight: 700 !important; }

body.ly-body .ly-product-v7 .ly-product-price {
  margin: 0 0 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid #e3e8e5;
}

body.ly-body .ly-product-v7 .ly-product-price h2 {
  margin: 0 !important;
  color: #04553e !important;
  font-size: clamp(42px, 3.15vw, 54px) !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}

body.ly-body .ly-product-v7 .ly-summary-installment {
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  min-height: 68px;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #e6ddcc !important;
  border-radius: 14px !important;
  background: #faf7f0 !important;
  box-shadow: none !important;
}

body.ly-body .ly-product-v7 .ly-installment-copy small {
  color: #a4681f !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

body.ly-body .ly-product-v7 .ly-installment-copy strong {
  margin-top: 3px;
  color: #17231f !important;
  font-size: 15px !important;
  font-weight: 750 !important;
}

body.ly-body .ly-product-v7 .ly-installment-formula {
  display: flex !important;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

body.ly-body .ly-product-v7 .ly-installment-formula b,
body.ly-body .ly-product-v7 .ly-installment-formula strong {
  color: #07573f !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

body.ly-body .ly-product-v7 .ly-installment-formula i { color: #87928c !important; font-style: normal; }

body.ly-body .ly-product-v7 .ly-shipping-status-v10:not(.is-mobile) {
  min-height: 62px !important;
  margin: 0 0 14px !important;
  padding: 10px 14px !important;
  border: 1px solid #d7e8df !important;
  border-radius: 13px !important;
  background: #f4faf7 !important;
}

body.ly-body .ly-product-v7 .ly-shipping-status-v10:not(.is-mobile) > .ly-icon {
  width: 26px !important;
  height: 26px !important;
  color: #0b8b63 !important;
}

body.ly-body .ly-product-v7 .ly-shipping-status-v10 strong {
  color: #07553e !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}

body.ly-body .ly-product-v7 .ly-shipping-status-v10 small { color: #76827c !important; font-size: 12px !important; }

body.ly-body .ly-product-v7 .ly-buy-box { margin-top: 0 !important; }

body.ly-body .ly-product-v7 .ly-product-trust {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e0e7e3 !important;
  border-radius: 13px !important;
  background: #fff !important;
}

body.ly-body .ly-product-v7 .ly-product-trust > li {
  min-width: 0;
  min-height: 76px;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-left: 1px solid #e4e9e6 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.ly-body .ly-product-v7 .ly-product-trust > li:first-child { border-left: 0 !important; }
body.ly-body .ly-product-v7 .ly-product-trust-copy strong { color: #26352e !important; font-size: 12px !important; line-height: 1.25 !important; }
body.ly-body .ly-product-v7 .ly-product-trust-copy small { margin-top: 3px; color: #7b8781 !important; font-size: 10px !important; line-height: 1.3 !important; }
body.ly-body .ly-product-v7 .ly-product-trust-icon { width: 28px !important; height: 28px !important; flex: 0 0 28px; }

@media (max-width: 1199px) and (min-width: 768px) {
  body.ly-body .ly-product-v7 .ref-product-summary > h1 { font-size: 31px !important; }
  body.ly-body .ly-product-v7 .ly-summary-installment { grid-template-columns: 1fr auto; }
  body.ly-body .ly-product-v7 .ly-bank-stickers { grid-column: 1 / -1; justify-content: flex-start; }
  body.ly-body .ly-product-v7 .ly-product-trust { grid-template-columns: 1fr; }
  body.ly-body .ly-product-v7 .ly-product-trust > li { min-height: 58px; border-left: 0 !important; border-top: 1px solid #e4e9e6 !important; }
  body.ly-body .ly-product-v7 .ly-product-trust > li:first-child { border-top: 0 !important; }
}

@media (max-width: 767px) {
  body.ly-body .ly-product-v7 .ly-gallery-actions-premium { display: none !important; }
  body.ly-body .ly-product-v7 .ref-product-summary {
    display: none !important;
  }

  body.ly-body .ly-product-v7 .ly-mobile-product-intro h2 {
    color: #111c17 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
  }

  body.ly-body .ly-product-v7 .ly-mobile-product-intro > p > b {
    color: #07553e !important;
    font-size: 32px !important;
    font-weight: 820 !important;
    letter-spacing: -.035em !important;
  }

  body.ly-body .ly-product-v7 .ly-shipping-status-v10.is-mobile {
    margin-top: 10px !important;
    border-color: #d7e8df !important;
    border-radius: 12px !important;
    background: #f4faf7 !important;
  }

  body.ly-body .ly-product-v7 .ly-mobile-purchase .ly-product-trust {
    grid-template-columns: 1fr !important;
    margin-top: 12px !important;
  }

  body.ly-body .ly-product-v7 .ly-mobile-purchase .ly-product-trust > li {
    min-height: 58px;
    border-left: 0 !important;
    border-top: 1px solid #e4e9e6 !important;
  }

  body.ly-body .ly-product-v7 .ly-mobile-purchase .ly-product-trust > li:first-child { border-top: 0 !important; }
}
