/* CSPLUS v2.0.9 — Product UI final polish, mobile + desktop */
:root{
  --cs-radius:26px;
  --cs-border:#e5edf7;
  --cs-dark:#0f172a;
  --cs-muted:#64748b;
  --cs-soft:#f8fafc;
}

body{overflow-x:hidden}

/* Product list */
body .csplus-product-grid{
  width:min(1180px,100%);
  margin:0 auto;
  padding:22px 18px 120px!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
  gap:22px!important;
  align-items:start!important;
}

body .csplus-list-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:var(--cs-radius)!important;
  background:#fff!important;
  border:1px solid var(--cs-border)!important;
  box-shadow:0 18px 45px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
}

body .csplus-list-card .product-gallery-link{
  display:block!important;
  background:linear-gradient(135deg,#f8fafc,#eef5ff)!important;
  padding:10px!important;
}

body .csplus-list-card .product-main-photo{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  max-height:420px!important;
  border-radius:20px!important;
  background:#fff!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

body .csplus-list-card .product-main-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  display:block!important;
  background:#fff!important;
}

body .csplus-list-card .product-body{
  padding:20px!important;
}

body .csplus-list-card .product-body h2{
  font-size:24px!important;
  line-height:1.12!important;
  margin:14px 0 8px!important;
}

body .csplus-list-card .product-body h2 a{
  color:var(--cs-dark)!important;
  text-decoration:none!important;
}

body .csplus-list-card .muted{
  font-size:15px!important;
  color:var(--cs-muted)!important;
  margin:0 0 10px!important;
}

body .compact-note{
  min-height:44px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  color:#475569!important;
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  border-radius:14px!important;
  padding:10px 12px!important;
  font-size:14px!important;
  line-height:1.45!important;
}

body .csplus-list-card .price{
  font-size:25px!important;
  font-weight:900!important;
  margin:14px 0!important;
  color:var(--cs-dark)!important;
}

body .product-actions{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:10px!important;
  align-items:center!important;
}

body .product-actions .btn,
body .detail-btn{
  min-height:48px!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-weight:900!important;
  text-decoration:none!important;
}

/* Detail page */
body .product-detail-shell{
  width:min(1180px,100%);
  margin:0 auto!important;
  padding:22px 18px 120px!important;
}

body .back-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:4px 0 16px!important;
  font-size:18px!important;
  color:#334155!important;
  text-decoration:none!important;
  font-weight:800!important;
}

body .product-detail-card{
  display:grid!important;
  grid-template-columns:minmax(0, 1.15fr) minmax(360px, .85fr)!important;
  gap:24px!important;
  align-items:start!important;
  background:#fff!important;
  border:1px solid var(--cs-border)!important;
  border-radius:30px!important;
  padding:20px!important;
  box-shadow:0 20px 55px rgba(15,23,42,.08)!important;
}

body .detail-gallery{
  background:linear-gradient(135deg,#f8fafc,#eef5ff)!important;
  border-radius:24px!important;
  padding:12px!important;
}

body .detail-main-photo{
  width:100%!important;
  height:auto!important;
  aspect-ratio:4/5!important;
  max-height:680px!important;
  border-radius:20px!important;
  background:#fff!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

body .detail-main-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  background:#fff!important;
}

body .detail-thumbs{
  display:grid!important;
  grid-template-columns:repeat(5,1fr)!important;
  gap:8px!important;
  margin-top:10px!important;
}

body .detail-thumb{
  aspect-ratio:1/1!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e2e8f0!important;
}

body .detail-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

body .detail-info{
  padding:6px 4px!important;
}

body .detail-info h1{
  font-size:clamp(30px,4vw,46px)!important;
  line-height:1.08!important;
  margin:14px 0 8px!important;
  color:var(--cs-dark)!important;
}

body .detail-code{
  color:var(--cs-muted)!important;
  font-size:16px!important;
  margin:0 0 16px!important;
}

body .detail-price{
  display:block!important;
  font-size:34px!important;
  line-height:1!important;
  font-weight:950!important;
  color:var(--cs-dark)!important;
  margin:18px 0 20px!important;
}

body .spec-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin:16px 0 20px!important;
}

body .spec-grid div{
  background:#f8fafc!important;
  border:1px solid #e2e8f0!important;
  border-radius:16px!important;
  padding:12px!important;
  min-height:70px!important;
}

body .spec-grid span{
  display:block!important;
  color:#64748b!important;
  font-size:11px!important;
  line-height:1!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  font-weight:900!important;
  margin-bottom:8px!important;
}

body .spec-grid b{
  display:block!important;
  color:#0f172a!important;
  font-size:16px!important;
  line-height:1.25!important;
  word-break:break-word!important;
}

body .detail-section{
  border-top:1px solid #e2e8f0!important;
  margin-top:18px!important;
  padding-top:18px!important;
}

body .detail-section h2{
  font-size:18px!important;
  margin:0 0 8px!important;
  color:#0f172a!important;
}

body .detail-section p{
  color:#475569!important;
  line-height:1.55!important;
}

/* Floating buttons less disruptive on product pages */



@media(max-width:860px){
  body .product-detail-card{
    grid-template-columns:1fr!important;
  }
  body .detail-main-photo{
    aspect-ratio:4/5!important;
    max-height:560px!important;
  }
}

@media(max-width:720px){
  body .hero.compact{
    padding:30px 18px 22px!important;
  }
  body .hero.compact h1{
    font-size:34px!important;
    line-height:1.05!important;
    margin:0 0 14px!important;
  }
  body .hero.compact p{
    font-size:16px!important;
    line-height:1.55!important;
  }

  body .csplus-product-grid{
    display:block!important;
    padding:12px 12px 104px!important;
  }

  body .csplus-list-card{
    margin:0 0 18px!important;
    border-radius:24px!important;
  }

  body .csplus-list-card .product-gallery-link{
    padding:8px!important;
  }

  body .csplus-list-card .product-main-photo{
    aspect-ratio:1/1!important;
    max-height:none!important;
  }

  body .csplus-list-card .product-main-photo img{
    object-fit:cover!important;
  }

  body .csplus-list-card .product-body{
    padding:18px!important;
  }

  body .csplus-list-card .product-body h2{
    font-size:24px!important;
  }

  body .product-actions{
    grid-template-columns:1fr!important;
  }

  body .wa-mini{
    display:none!important;
  }

  body .product-detail-shell{
    padding:12px 12px 104px!important;
  }

  body .back-link{
    font-size:17px!important;
    margin-left:4px!important;
  }

  body .product-detail-card{
    display:block!important;
    padding:10px!important;
    border-radius:24px!important;
  }

  body .detail-gallery{
    padding:8px!important;
    border-radius:20px!important;
  }

  body .detail-main-photo{
    aspect-ratio:4/5!important;
    max-height:560px!important;
    border-radius:16px!important;
  }

  body .detail-main-photo img{
    object-fit:contain!important;
  }

  body .detail-info{
    padding:18px 8px 8px!important;
  }

  body .detail-info h1{
    font-size:30px!important;
    line-height:1.1!important;
  }

  body .detail-price{
    font-size:30px!important;
  }

  body .spec-grid{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  body .spec-grid div{
    padding:11px!important;
    min-height:64px!important;
  }

  body .spec-grid b{
    font-size:15px!important;
  }

  

  
}
