/* CSPLUS v2.0.8 — Product UI hard override loaded last */
html, body { max-width: 100%; overflow-x: hidden; }

body .csplus-product-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
  gap:22px !important;
  padding:18px !important;
  align-items:start !important;
}

body .csplus-list-card,
body .csplus-product-card,
body article.csplus-product-card{
  display:block !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:#fff !important;
  border:1px solid #e5edf7 !important;
  box-shadow:0 14px 36px rgba(15,23,42,.08) !important;
  max-width:520px !important;
  margin:0 auto 20px !important;
}

body .product-gallery,
body .product-gallery-link{
  display:block !important;
  width:100% !important;
  height:auto !important;
  text-decoration:none !important;
  background:#f8fafc !important;
  overflow:hidden !important;
}

body .csplus-list-card .product-main-photo,
body .product-card .product-main-photo,
body .product-main-photo,
body .product-image{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:4/3 !important;
  min-height:0 !important;
  max-height:360px !important;
  overflow:hidden !important;
  background:#f8fafc !important;
}

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

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

body .product-body h2{
  font-size:22px !important;
  line-height:1.18 !important;
  margin:12px 0 10px !important;
}

body .product-body h2 a{
  color:#0f172a !important;
  text-decoration:none !important;
}

body .condition-note.compact-note,
body .compact-note{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  font-size:14px !important;
  line-height:1.45 !important;
  margin:10px 0 !important;
}

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

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

body .wa-mini{
  white-space:nowrap !important;
}

/* Detail page */
body .product-detail-shell{
  max-width:1120px !important;
  margin:0 auto !important;
  padding:18px 18px 110px !important;
}

body .product-detail-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px) !important;
  gap:24px !important;
  background:#fff !important;
  border:1px solid #e5edf7 !important;
  border-radius:28px !important;
  padding:18px !important;
  box-shadow:0 18px 50px rgba(15,23,42,.08) !important;
}

body .detail-main-photo{
  width:100% !important;
  height:auto !important;
  aspect-ratio:4/3 !important;
  max-height:520px !important;
  overflow:hidden !important;
  border-radius:22px !important;
  background:#f8fafc !important;
}

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

@media(max-width:720px){
  body .hero.compact{
    padding:28px 18px 24px !important;
  }
  body .hero.compact h1{
    font-size:34px !important;
    line-height:1.04 !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,
  body .csplus-product-card,
  body article.csplus-product-card{
    width:100% !important;
    max-width:none !important;
    margin:0 0 18px !important;
    border-radius:22px !important;
  }

  body .csplus-list-card .product-main-photo,
  body .product-card .product-main-photo,
  body .product-main-photo,
  body .product-image{
    height:auto !important;
    aspect-ratio:4/3 !important;
    max-height:none !important;
    min-height:0 !important;
  }

  body .csplus-list-card .product-main-photo img,
  body .product-card .product-main-photo img,
  body .product-main-photo img,
  body .product-image img{
    object-fit:contain !important;
    object-position:center center !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 .product-detail-card{
    display:block !important;
    padding:10px !important;
    border-radius:22px !important;
  }
  body .detail-main-photo{
    aspect-ratio:4/3 !important;
    height:auto !important;
    max-height:none !important;
    border-radius:18px !important;
  }
}
