/*
 * CELLO Product Full-width Sections v1.0.0
 * Scope: Product page only.
 * - Keep Description + Specifications in the existing 72/28 desktop columns.
 * - Move Social Proof, Reviews and Bottom Buy to the full content shell width.
 * - Reuse Category Product Card Polish for Same-price + Recently-viewed sliders.
 */

.product-detail .cello-product-fullwidth-sections {
  clear: both;
  width: 100%;
  margin-top: 28px;
}

.product-detail .cello-product-fullwidth-sections::before,
.product-detail .cello-product-fullwidth-sections::after {
  display: table;
  content: "";
}

.product-detail .cello-product-fullwidth-sections::after {
  clear: both;
}

/* Social proof now owns the full Product content width. */
.product-detail .cello-product-fullwidth-sections .csh1-context--product {
  width: 100%;
  margin-top: 0;
  margin-bottom: 30px;
}

/* Reviews: same outer width/rhythm as the full-width product modules below. */
.product-detail .cello-product-fullwidth-sections .title-review {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}

.product-detail .cello-product-fullwidth-sections .section-box-review {
  width: 100%;
  margin-bottom: 30px;
  padding: 20px 22px;
  border-color: #e7e7e7;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(25, 35, 45, .045);
}

/* Bottom purchase reminder: full width outside the Description column,
 * but keep the product image compact instead of letting Bootstrap 5/7 enlarge it.
 */
.product-detail .cello-product-fullwidth-sections .boxBuy {
  width: 100%;
  margin: 0 0 28px;
  padding: 18px 20px;
  border-color: #e7e7e7;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(25, 35, 45, .045);
}

.product-detail .cello-product-fullwidth-sections .boxBuy > .row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0;
}

.product-detail .cello-product-fullwidth-sections .boxBuy > .row > [class*="col-"] {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 8px;
}

.product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image img {
  width: auto;
  max-width: 100%;
  max-height: 180px;
  margin: 0 auto;
  object-fit: contain;
}

.product-detail .cello-product-fullwidth-sections .boxBuy ._titleh1 {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.7vw, 24px);
}

.product-detail .cello-product-fullwidth-sections .boxBuy .action_buy {
  max-width: 520px;
  margin-top: 12px;
}

.product-detail .cello-product-fullwidth-sections .block_tag {
  width: 100%;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
 * Product listing sync
 * category-card-polish.css is intentionally reused so the card visuals are
 * identical to Category / Manufacturer / Search. Slick remains the transport.
 * -------------------------------------------------------------------------- */
.product-detail .cello-product-listing-sync {
  width: 100%;
  padding: 28px 0 0;
}

.product-detail .boxProductLike.cello-product-listing-sync {
  padding-bottom: 0;
}

.product-detail .cello-product-listing-sync > .blockTitle {
  display: block;
  margin-bottom: 14px;
}

.product-detail .cello-product-listing-sync .box-slide-product-price,
.product-detail .cello-product-listing-sync .box-viewed {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-detail .cello-product-listing-sync .slick-list {
  margin: 0 -7px;
  padding-top: 4px;
  padding-bottom: 10px;
}

.product-detail .cello-product-listing-sync .slick-slide {
  padding-right: 7px;
  padding-left: 7px;
}

.product-detail .cello-product-listing-sync .slick-slide > .item {
  height: 100%;
}

.product-detail .cello-product-listing-sync .product-item {
  width: 100%;
  margin-bottom: 0;
}

/* Keep arrows outside the polished product cards. */
.product-detail .cello-product-listing-sync .slick-prev {
  left: -18px;
}

.product-detail .cello-product-listing-sync .slick-next {
  right: -18px;
}

@media (max-width: 991px) {
  .product-detail .cello-product-fullwidth-sections {
    margin-top: 22px;
  }

  .product-detail .cello-product-fullwidth-sections .section-box-review {
    padding: 18px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy > .row {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }

  .product-detail .cello-product-listing-sync .slick-prev {
    left: -10px;
  }

  .product-detail .cello-product-listing-sync .slick-next {
    right: -10px;
  }
}

@media (max-width: 767px) {
  .product-detail .cello-product-detail-columns {
    margin-right: 0;
    margin-left: 0;
  }

  .product-detail .cello-product-fullwidth-sections {
    margin-top: 20px;
  }

  .product-detail .cello-product-fullwidth-sections .csh1-context--product {
    margin-bottom: 24px;
  }

  .product-detail .cello-product-fullwidth-sections .title-review {
    margin-bottom: 9px;
  }

  .product-detail .cello-product-fullwidth-sections .section-box-review {
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 10px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy {
    margin-bottom: 22px;
    padding: 12px;
    border-radius: 10px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy > .row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image {
    min-height: 82px;
    padding: 4px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image img {
    max-height: 84px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy ._titleh1 {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.35;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy ._sku {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .action_buy {
    max-width: none;
    margin-top: 7px;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .action_buy .big-button {
    min-height: 44px;
    font-size: 14px;
  }

  .product-detail .cello-product-listing-sync {
    padding-top: 22px;
  }

  .product-detail .cello-product-listing-sync .slick-list {
    margin: 0 -4px;
    padding-top: 3px;
    padding-bottom: 7px;
  }

  .product-detail .cello-product-listing-sync .slick-slide {
    padding-right: 4px;
    padding-left: 4px;
  }

  .product-detail .cello-product-listing-sync .slick-prev,
  .product-detail .cello-product-listing-sync .slick-next {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
 * CELLO Product Bottom Buy Card v1.0.1
 * Hardens the responsive geometry of the lower "MUA NGAY" reminder.
 * This block is intentionally isolated from the primary Product hero.
 * -------------------------------------------------------------------------- */
.product-detail .cello-product-fullwidth-sections .boxBuy > .row {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy > .row > .col-md-5 {
  float: none !important;
  flex: 0 0 210px !important;
  width: 210px !important;
  max-width: 210px !important;
  padding: 0 !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy > .row > .col-md-7 {
  float: none !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 210px !important;
  min-height: 150px !important;
  padding: 8px !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 190px !important;
  max-height: 160px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy ._titleh1 {
  max-width: 760px;
  margin: 0 0 5px !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy ._sku {
  margin: 0 0 10px !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy .gift-box-ajax:empty {
  display: none !important;
}

.product-detail .cello-product-fullwidth-sections .boxBuy .action_buy {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  margin: 12px 0 0 !important;
}

@media (max-width: 767px) {
  .product-detail .cello-product-fullwidth-sections .boxBuy > .row {
    gap: 12px !important;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy > .row > .col-md-5 {
    flex-basis: 92px !important;
    width: 92px !important;
    max-width: 92px !important;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image {
    width: 92px !important;
    min-height: 92px !important;
    padding: 4px !important;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .dislay-image img {
    max-width: 86px !important;
    max-height: 86px !important;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy ._titleh1 {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy ._sku {
    margin-bottom: 6px !important;
    font-size: 11px !important;
  }

  .product-detail .cello-product-fullwidth-sections .boxBuy .action_buy {
    width: 100% !important;
    max-width: none !important;
    margin-top: 7px !important;
  }
}
