/* Trijal Mart PDP v8: proportion pass requested by client
   Scope: product.php only. Compress right buy box, reduce title/price height, and give center content more room so About section sits higher. */

.tm-product-page{
  --tm-pdp-blue:#123f70;
  --tm-pdp-red:#ef3f23;
  --tm-pdp-border:#e2e8f0;
  --tm-pdp-muted:#5f6f85;
}

/* Wider middle, slimmer sidebar, balanced image column. */
.tm-product-page .tm-product-wrap.container{
  max-width:1440px!important;
  width:min(1440px, calc(100% - 42px))!important;
}

.tm-product-page .tm-product-layout{
  grid-template-columns:minmax(500px, 560px) minmax(500px, 1fr) 278px!important;
  gap:22px!important;
  align-items:start!important;
}

/* Keep gallery strong but not dominating the PDP height. */
.tm-product-page .tm-product-main-media{
  height:500px!important;
  min-height:500px!important;
  border-radius:13px!important;
}
.tm-product-page .tm-product-main-media img,
.tm-product-page img#mainProductImage{
  padding:12px!important;
}
.tm-product-page .tm-product-thumbs{
  gap:9px!important;
  margin-top:0!important;
}
.tm-product-page .tm-product-thumb{
  flex:0 0 66px!important;
  width:66px!important;
  height:66px!important;
  min-width:66px!important;
  border-radius:9px!important;
}
.tm-product-page .tm-product-gallery-hint{
  text-align:left!important;
  font-size:12.5px!important;
  margin-top:-3px!important;
}

/* Middle column: smaller title + compact price block so description appears higher. */
.tm-product-page .tm-product-info-col{
  padding-top:0!important;
}
.tm-product-page .tm-product-kicker{
  font-size:11.5px!important;
  margin-bottom:6px!important;
  letter-spacing:.14em!important;
}
.tm-product-page .tm-product-title{
  font-size:25px!important;
  line-height:1.16!important;
  letter-spacing:-.016em!important;
  margin-bottom:9px!important;
  max-width:620px!important;
}
.tm-product-page .tm-product-rating-row{
  margin-bottom:10px!important;
  padding-bottom:10px!important;
  gap:8px!important;
}
.tm-product-page .rating-pill{
  height:23px!important;
  font-size:12.5px!important;
  padding:0 8px!important;
}
.tm-product-page .rating-count{
  font-size:12.5px!important;
}
.tm-product-page .tm-product-price-block{
  margin-bottom:10px!important;
  padding-bottom:10px!important;
}
.tm-product-page .tm-product-price{
  font-size:34px!important;
}
.tm-product-page .tm-product-price-meta{
  margin-left:8px!important;
  gap:8px!important;
}
.tm-product-page .tm-product-tax-note{
  margin-top:5px!important;
  font-size:12.8px!important;
}
.tm-product-page .tm-product-panel{
  margin-top:10px!important;
  padding:13px 16px!important;
  border-radius:12px!important;
}
.tm-product-page .stock-line{
  font-size:16px!important;
  margin-bottom:5px!important;
}
.tm-product-page .product-short-copy{
  font-size:14.2px!important;
  line-height:1.42!important;
}
.tm-product-page .tm-about-item-panel{
  padding:15px 17px!important;
}
.tm-product-page .tm-about-item-panel h2{
  font-size:18px!important;
  margin-bottom:9px!important;
}
.tm-product-page .tm-about-list{
  gap:6px!important;
  padding-left:18px!important;
}
.tm-product-page .tm-about-list li{
  font-size:14px!important;
  line-height:1.43!important;
}
.tm-product-page .tm-share-row{
  margin-top:12px!important;
}

/* Right buy box: narrower but still clean and readable. */
.tm-product-page .tm-product-cart-col{
  min-width:0!important;
}
.tm-product-page .tm-product-cart-box{
  width:100%!important;
  padding:16px!important;
  border-radius:13px!important;
  box-shadow:0 10px 28px rgba(15,23,42,.06)!important;
}
.tm-product-page .cart-box-price-block{
  padding-bottom:12px!important;
  margin-bottom:12px!important;
}
.tm-product-page .cart-box-price{
  font-size:29px!important;
}
.tm-product-page .cart-box-price-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin-top:4px!important;
}
.tm-product-page .cart-box-tax{
  font-size:12.5px!important;
  margin-top:5px!important;
}
.tm-product-page .cart-box-stock{
  font-size:16px!important;
  margin-bottom:10px!important;
}
.tm-product-page .tm-qty-row{
  padding:9px 10px!important;
  gap:8px!important;
  margin-bottom:10px!important;
  border-radius:10px!important;
}
.tm-product-page .tm-qty-row label{
  font-size:12.5px!important;
}
.tm-product-page .tm-qty-row input{
  height:32px!important;
  font-size:13px!important;
}
.tm-product-page .tm-product-action-buttons{
  gap:9px!important;
}
.tm-product-page .tm-product-action-buttons .btn{
  height:44px!important;
  min-height:44px!important;
  border-radius:12px!important;
  font-size:14.2px!important;
}
.tm-product-page .cart-box-trust{
  gap:7px!important;
  margin-top:12px!important;
  padding-top:12px!important;
}
.tm-product-page .cart-trust-item{
  font-size:12.6px!important;
}
.tm-product-page .pcd-widget{
  margin-top:12px!important;
  padding-top:12px!important;
}
.tm-product-page .pcd-label{
  font-size:14px!important;
  margin-bottom:8px!important;
}
.tm-product-page .pcd-form{
  grid-template-columns:minmax(0,1fr) 74px!important;
  gap:7px!important;
}
.tm-product-page .pcd-input,
.tm-product-page .pcd-btn{
  height:38px!important;
  border-radius:10px!important;
  font-size:13px!important;
}

/* Coming-soon notification should not stretch the sidebar. */
.tm-product-page .notify-stock-block{
  margin-top:4px!important;
}
.tm-product-page .notify-stock-label{
  font-size:13px!important;
  line-height:1.35!important;
  margin:2px 0 8px!important;
}
.tm-product-page .notify-input{
  height:38px!important;
  border-radius:10px!important;
  font-size:13px!important;
}
.tm-product-page .notify-btn{
  height:38px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:13.5px!important;
  font-weight:850!important;
}

@media (max-width:1360px){
  .tm-product-page .tm-product-wrap.container{width:min(1340px, calc(100% - 32px))!important;}
  .tm-product-page .tm-product-layout{
    grid-template-columns:minmax(455px, 505px) minmax(430px, 1fr) 270px!important;
    gap:18px!important;
  }
  .tm-product-page .tm-product-main-media{height:470px!important;min-height:470px!important;}
  .tm-product-page .tm-product-title{font-size:23.5px!important;}
  .tm-product-page .tm-product-price{font-size:32px!important;}
}

@media (max-width:1180px){
  .tm-product-page .tm-product-layout{
    grid-template-columns:minmax(0, 510px) minmax(0, 1fr)!important;
    grid-template-areas:"gallery info" "cart cart"!important;
  }
  .tm-product-page .tm-product-cart-box{max-width:640px!important;}
}

@media (max-width:760px){
  .tm-product-page .tm-product-layout{
    grid-template-columns:1fr!important;
    grid-template-areas:"gallery" "info" "cart"!important;
    gap:15px!important;
  }
  .tm-product-page .tm-product-main-media{height:355px!important;min-height:355px!important;}
  .tm-product-page .tm-product-title{font-size:22px!important;line-height:1.18!important;}
  .tm-product-page .tm-product-price{font-size:31px!important;}
  .tm-product-page .tm-product-cart-box{max-width:none!important;}
}
