.products-toolbar{
  display:flex;
  gap:12px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:12px;
}
.products-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin-top:14px;
}
.product-card{
  display:block;
  text-decoration:none;
  background: rgba(255,255,255,0.35);
  border:1px solid rgba(47,47,111,0.10);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 8px 24px rgba(47,47,111,0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(47,47,111,0.14);
}
.product-thumb{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display:block;
  background: rgba(255,255,255,0.25);
}
.product-body{
  padding:12px;
}
.product-title{
  margin:0 0 6px;
  font-weight:800;
  font-size:15px;
}
.product-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  opacity:0.9;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(47,47,111,0.12);
  background: rgba(110,231,183,0.18);
  font-size:12px;
  font-weight:700;
}

/* Product detail */
.product-detail{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:14px;
  align-items:start;
}
.gallery{
  background: rgba(255,255,255,0.28);
  border:1px solid rgba(47,47,111,0.10);
  border-radius: 18px;
  padding:12px;
}
.gallery-main{
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(47,47,111,0.10);
  background: rgba(255,255,255,0.30);
}
.gallery-main img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:42px;
  height:42px;
  border-radius:18px;
  border:0;
  background: rgba(246,208,77,0.55);
  cursor:pointer;
  font-size:24px;
  color: var(--text);
}
.gallery-prev{ left:10px; }
.gallery-next{ right:10px; }

.thumbs{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:8px;
  margin-top:10px;
}
.thumb{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(47,47,111,0.10);
  background: rgba(255,255,255,0.30);
  cursor:pointer;
  outline:none;
}
.thumb img{
  width:100%;
  height:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}
.thumb.active{
  box-shadow: 0 0 0 4px rgba(69,107,224,0.16);
  border-color: rgba(69,107,224,0.35);
}

.product-info{
  background: rgba(255,255,255,0.28);
  border:1px solid rgba(47,47,111,0.10);
  border-radius: 18px;
  padding:14px;
}
.product-price{
  font-size:22px;
  font-weight:900;
  margin:0 0 6px;
}
.product-desc{
  margin:0;
  opacity:0.92;
}
.product-kv{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.kv{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  opacity:0.92;
  border-bottom: 1px dashed rgba(47,47,111,0.18);
  padding-bottom:8px;
}
.kv span:first-child{ font-weight:800; }
.back-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

@media (max-width: 1100px){
  .products-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px){
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
  .product-detail{ grid-template-columns: 1fr; }
  .thumbs{ grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 520px){
  .products-grid{ grid-template-columns: 1fr; }
  .thumbs{ grid-template-columns: repeat(4, 1fr); }
}
