/* Shop page extras — color filter row + active filter chips (Little Cloud) */

/* ---- color circles ---- */
.colorbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: flex-start;
  margin: -6px 0 24px;
}
.colorbar__item {
  background: none;
  border: 0;
  padding: 2px;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
}
.colorbar__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 -3px 5px rgba(58, 45, 92, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.colorbar__item--light .colorbar__dot {
  box-shadow: inset 0 0 0 1.5px var(--line), inset 0 -3px 5px rgba(58, 45, 92, 0.06);
}
.colorbar__item:hover .colorbar__dot { transform: scale(1.12); }
.colorbar__item.is-active .colorbar__dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--violet);
}
.colorbar__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft, #7a6f99);
  transition: color 0.15s ease;
}
.colorbar__item.is-active .colorbar__label { color: var(--violet); }
.colorbar__item:focus-visible { outline: 2px dashed var(--violet); outline-offset: 3px; border-radius: 12px; }

/* ---- active filter chips ---- */
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
}
.fchips__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.fchips__chip:hover {
  border-color: var(--violet);
  background: #f8f4ff;
  transform: translateY(-1px);
}
.fchips__x { color: var(--violet); font-weight: 800; }
.fchips__clear {
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fchips__clear:hover { color: var(--pink); }

@media (max-width: 560px) {
  .colorbar { gap: 12px 14px; }
  .colorbar__dot { width: 32px; height: 32px; }
}

/* ---------- wallism-style mosaic grid ---------- */
.shopgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 8px;
}
.shopgrid .product--big { grid-column: span 2; grid-row: span 2; }
.shopgrid .product--wide { grid-column: span 2; }

/* image-first flat tiles */
.shopgrid .product--overlay {
  border-radius: 10px; overflow: hidden; box-shadow: none;
  position: relative; background: var(--tint);
}
.shopgrid .product--overlay .product__link { display: block; height: 100%; }
.shopgrid .product--overlay .product__art {
  aspect-ratio: auto; height: 100%;
}
.shopgrid .product--overlay .product__art img,
.shopgrid .product--overlay .product__art canvas {
  width: 100%; height: 100%; object-fit: cover;
}
.shopgrid .product--overlay:hover .product__art img,
.shopgrid .product--overlay:hover .product__art canvas { transform: scale(1.04); }

/* name + price chip pinned bottom-left (wallism label) */
.product__tag {
  position: absolute; left: 0; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 8px;
  background: #fff; padding: 7px 12px 7px 10px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(58, 45, 92, .14);
  max-width: calc(100% - 46px);
}
.product__tag .product__name {
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product__tag .product__price {
  font-style: normal; font-size: 12px; font-weight: 700;
  color: var(--ink-soft); white-space: nowrap;
}

/* heart stays visible on photos */
.shopgrid .product--overlay .product__heart {
  background: rgba(255, 255, 255, .92);
}

@media (max-width: 900px) {
  .shopgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}
@media (max-width: 560px) {
  .shopgrid { grid-auto-rows: 160px; }
  .shopgrid .product--wide { grid-column: span 2; }
}
