*{box-sizing:border-box}

body{
  background:var(--bg);
}

.wrap{
  max-width:1100px;
  margin:auto;
  padding:14px;
}

.card{
  background:var(--card);
  border-radius:18px;
  padding:18px;
  margin-bottom:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.hero img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:18px;
  display:block;
  cursor:zoom-in;
}

.detail-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}

.flash-message{
  margin-bottom:12px;
  font-weight:800;
}

.flash-success{
  background:#ecfdf3;
  color:#166534;
}

.flash-error{
  background:#fff1f2;
  color:#b91c1c;
}

.title{
  font-size:22px;
  font-weight:900;
}

.title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.price{
  font-size:26px;
  font-weight:900;
  color:var(--brand);
  margin:6px 0;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--brand-light);
  color:var(--brand);
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  margin:4px 6px 0 0;
}

.badge .svg-icon{
  width:15px;
  height:15px;
}

.info-line strong{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.info-line strong .svg-icon{
  width:16px;
  height:16px;
  color:var(--brand);
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.actions a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  font-size:14px;
}

.actions .svg-icon{
  width:17px;
  height:17px;
}

.call{
  background:var(--brand-light);
  color:var(--brand);
}

.wa{
  background:#e8f5e9;
  color:#1b5e20;
}

.share-btn{
  background:#fff;
  color:var(--brand);
  border:1px solid var(--brand-light);
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
  gap:8px;
}

.share-btn .svg-icon{
  width:18px;
  height:18px;
  display:block;
  flex-shrink:0;
}

.seller-share-btn{
  width:100%;
  height:46px;
  border-radius:999px;
  font-weight:900;
  gap:8px;
}

.seller-card{
  max-width:100%!important;
  margin:0!important;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.seller-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:inherit;
}

.seller-card a{
  width:100%;
}

.seller-card img{
  width:68px!important;
  height:68px!important;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.seller-name-row{
  font-weight:900;
  font-size:18px;
  color:var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
  text-align:center;
}

.seller-name-text{
  line-height:1.3;
}

.verified-text{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#16a34a;
  background:#ecfdf3;
  border:1px solid #bbf7d0;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:1000;
}

.verified-text .svg-icon{
  width:13px;
  height:13px;
}

.featured-badges{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:2px;
}

.featured-left{
  justify-content:flex-start;
  margin-top:10px;
}

.featured-badge{
  width:22px;
  height:22px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.featured-badge .svg-icon{
  width:13px;
  height:13px;
}

.featured-badge.p1{
  background:#f59e0b;
}

.featured-badge.p2{
  background:var(--brand);
}

.featured-badge.p3{
  background:#dc2626;
}

.action-row{
  display:flex;
  gap:12px;
  width:100%;
}

.action-row a{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:14px;
  border-radius:999px;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
}

.action-row .svg-icon{
  width:18px;
  height:18px;
}

.report-msg{
  margin-top:12px;
  border:1px solid;
  padding:12px 14px;
  border-radius:12px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
}

.report-msg .svg-icon{
  width:17px;
  height:17px;
  flex:0 0 auto;
}

.report-login{
  background:var(--brand-light);
  color:var(--brand);
  border-color:var(--brand-light);
}

.report-done{
  background:#fff1f2;
  color:#b91c1c;
  border-color:#fecdd3;
}

.report-own{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fdba74;
}

.report-form{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.report-form select,
.report-form textarea{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 12px;
  font-weight:600;
  outline:none;
}

.report-form select{
  height:44px;
  font-weight:700;
}

.report-form textarea{
  resize:vertical;
}

.report-submit{
  background:#ffebee;
  color:#b71c1c;
  border:none;
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.report-submit .svg-icon{
  width:16px;
  height:16px;
}

#imgModal{
  display:none;
  position:fixed;
  top:80px;
  bottom:70px;
  left:0;
  right:0;
  background:rgba(0,0,0,.85);
  z-index:1000;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

#imgModal img{
  max-width:95%;
  max-height:95%;
  object-fit:contain;
  display:block;
}

#imgModal span{
  position:absolute;
  top:10px;
  right:15px;
  font-size:42px;
  color:#fff;
  cursor:pointer;
  font-weight:bold;
  z-index:1002;
}

.arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:44px;
  color:#fff;
  cursor:pointer;
  padding:10px;
  z-index:1002;
}

.arrow.left{
  left:10px;
}

.arrow.right{
  right:10px;
}

.counter{
  position:absolute;
  bottom:18px;
  right:18px;
  color:#fff;
  background:rgba(0,0,0,.6);
  padding:6px 12px;
  border-radius:20px;
  font-weight:700;
  font-size:14px;
}

#modalImg{
  transition:transform .3s ease;
  cursor:zoom-in;
}

.modal-close,
.arrow,
.counter{
  z-index:10002;
}

@media (min-width:900px){
  .detail-grid{
    grid-template-columns:1.3fr .7fr;
  }

  .sticky-side{
    position:sticky;
    top:90px;
  }

  .title{
    font-size:26px;
  }
}

@media (max-width:480px){
  .action-row{
    flex-direction:column;
  }

  .action-row a{
    width:100%;
    font-size:18px;
    padding:16px;
  }
}