/* DETAL AI — STOREFRONT M3.5 BUYER/PUBLIC */

.sf35-shell{
  width:100%;
}

.sf35-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.sf35-title{
  margin:0 0 5px;
  font-size:26px;
}

.sf35-subtitle{
  margin:0;
  color:#667085;
  line-height:1.45;
}

.sf35-filters{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 220px 190px auto;
  gap:10px;
  align-items:end;
  margin-bottom:20px;
}

.sf35-field label{
  display:block;
  margin:0 0 6px;
  color:#475467;
  font-size:13px;
  font-weight:700;
}

.sf35-field input,
.sf35-field select{
  width:100%;
  box-sizing:border-box;
  min-height:44px;
  border:1px solid #d0d5dd;
  border-radius:10px;
  background:#fff;
  padding:9px 11px;
  font:inherit;
}

.sf35-btn{
  min-height:44px;
  border:1px solid #101828;
  border-radius:10px;
  background:#101828;
  color:#fff;
  padding:9px 16px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.sf35-btn:hover,
.sf35-btn:focus{
  background:#1d2939;
  color:#fff;
}

.sf35-summary{
  margin-bottom:14px;
  color:#667085;
  font-size:14px;
}

.sf35-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.sf35-card{
  border:1px solid #eaecf0;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}

.sf35-media{
  width:100%;
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid #f2f4f7;
}

.sf35-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

.sf35-placeholder{
  color:#98a2b3;
  padding:20px;
  text-align:center;
}

.sf35-body{
  padding:15px;
}

.sf35-product-title{
  margin:0;
  font-size:18px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.sf35-meta{
  margin-top:8px;
  color:#667085;
  font-size:13px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.sf35-price{
  margin-top:13px;
  font-size:21px;
  font-weight:800;
  color:#101828;
}

.sf35-stock{
  margin-top:7px;
  color:#475467;
  font-size:13px;
}

.sf35-card-actions{
  margin-top:14px;
}

.sf35-card-actions .sf35-btn{
  width:100%;
}

.sf35-empty,
.sf35-loading,
.sf35-error{
  border:1px dashed #d0d5dd;
  border-radius:14px;
  background:#fafafa;
  color:#667085;
  padding:30px 18px;
  text-align:center;
}

.sf35-error{
  border-color:#fecdca;
  background:#fff8f7;
  color:#b42318;
}

.sf35-modal{
  position:fixed;
  inset:0;
  z-index:100300;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding:28px 16px;
  background:rgba(16,24,40,.62);
  box-sizing:border-box;
}

.sf35-dialog{
  width:min(960px,100%);
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 64px rgba(16,24,40,.28);
  overflow:hidden;
}

.sf35-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid #eaecf0;
}

.sf35-modal-head h2{
  margin:0;
  font-size:22px;
}

.sf35-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#f2f4f7;
  font-size:22px;
  cursor:pointer;
}

.sf35-detail{
  padding:20px;
}

.sf35-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}

.sf35-gallery-item{
  aspect-ratio:1/1;
  border:1px solid #eaecf0;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.sf35-gallery-item img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.sf35-description{
  margin-top:16px;
  white-space:pre-wrap;
  color:#344054;
  line-height:1.6;
}

.sf35-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 20px;
  margin-top:16px;
}

.sf35-detail-row{
  color:#475467;
  line-height:1.45;
}

.sf35-detail-row b{
  color:#101828;
}

@media(max-width:1050px){
  .sf35-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sf35-filters{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:680px){
  .sf35-grid{
    grid-template-columns:1fr;
  }

  .sf35-filters{
    grid-template-columns:1fr;
  }

  .sf35-btn{
    width:100%;
  }

  .sf35-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sf35-detail-grid{
    grid-template-columns:1fr;
  }

  .sf35-modal{
    padding:10px;
  }
}
