/* ── Store Feature — Scoped Styles ─────────────────────────────── */

/* Store hero / header */
.store-hero{
  margin-bottom:18px;
}
.store-hero h1{
  margin:0 0 6px;
  font-size:clamp(24px,4vw,38px);
  line-height:1.1;
  letter-spacing:-.02em;
}
.store-hero p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:60ch;
}

/* Client listing grid (store index) */
.store-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:14px;
  margin-top:18px;
}
.store-client-card{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:10px;
  clip-path:polygon(var(--ch-md) 0,calc(100% - var(--ch-md)) 0,100% var(--ch-md),100% calc(100% - var(--ch-md)),calc(100% - var(--ch-md)) 100%,var(--ch-md) 100%,0 calc(100% - var(--ch-md)),0 var(--ch-md));
  transition:background .18s,border-color .18s;
}
.store-client-card:hover{
  background:rgba(78,163,255,.08);
  border-color:rgba(78,163,255,.30);
}
.store-client-card h3{
  margin:0;
  font-size:18px;
  font-weight:700;
}
.store-client-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  flex:1;
}

/* Product grid (client page) */
.store-products{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}
@media(max-width:900px){
  .store-products{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:580px){
  .store-products{grid-template-columns:1fr;}
}

.store-product-card{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  clip-path:polygon(var(--ch-md) 0,calc(100% - var(--ch-md)) 0,100% var(--ch-md),100% calc(100% - var(--ch-md)),calc(100% - var(--ch-md)) 100%,var(--ch-md) 100%,0 calc(100% - var(--ch-md)),0 var(--ch-md));
  transition:background .18s,border-color .18s;
}
.store-product-card:hover{
  background:rgba(78,163,255,.06);
  border-color:rgba(78,163,255,.25);
}

.store-product-img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.15);
}

.store-product-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.store-product-body h4{
  margin:0;
  font-size:15px;
  font-weight:700;
}
.store-product-price{
  font-family:var(--mono);
  font-size:14px;
  color:var(--accent);
  font-weight:600;
}
.store-product-body .btn{
  margin-top:auto;
  justify-content:center;
  font-size:13px;
  padding:9px 14px;
  text-decoration:none;
}

/* Not-found state */
.store-not-found{
  text-align:center;
  padding:60px 20px;
}
.store-not-found h2{
  margin:0 0 10px;
  font-size:22px;
}
.store-not-found p{
  color:var(--muted);
  margin:0 0 18px;
}

/* Size selector row */
.store-size-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.store-size-label{
  font-size:12px;
  color:var(--muted);
  font-family:var(--mono);
  letter-spacing:.04em;
  text-transform:uppercase;
  flex-shrink:0;
}
.store-size-select{
  flex:1;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.18);
  color:var(--text);
  font-family:var(--sans);
  font-size:13px;
  outline:none;
  cursor:pointer;
}
.store-size-select:focus{
  border-color:rgba(78,163,255,.65);
  box-shadow:0 0 0 3px rgba(78,163,255,.15);
}

/* Coming soon button */
.store-btn-soon{
  opacity:.5;
  cursor:not-allowed;
  justify-content:center;
  font-size:13px;
  padding:9px 14px;
  text-decoration:none;
  border-style:dashed;
}

/* Light theme adjustments */
html[data-theme="light"] .store-client-card{
  background:rgba(255,255,255,.70);
}
html[data-theme="light"] .store-client-card:hover{
  background:rgba(37,99,235,.06);
  border-color:rgba(37,99,235,.25);
}
html[data-theme="light"] .store-product-card{
  background:rgba(255,255,255,.70);
}
html[data-theme="light"] .store-product-card:hover{
  background:rgba(37,99,235,.05);
  border-color:rgba(37,99,235,.22);
}
html[data-theme="light"] .store-product-img{
  background:rgba(0,0,0,.06);
}
html[data-theme="light"] .store-size-select{
  background:rgba(255,255,255,.85);
  border-color:rgba(0,0,0,.16);
  color:var(--text);
}
