/* Bottega / Shop — si appoggia a blog.css */
.shop-note {
  margin: 1.6rem 0 0;
  max-width: 620px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.shop-note a { color: var(--forest); text-decoration: none; border-bottom: 1px solid rgba(13, 77, 36, 0.35); }
.shop-note a:hover { border-bottom-color: var(--forest); }

.shop { max-width: 1100px; margin: 0 auto; padding: 0 2rem 6rem; }

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.6rem;
  max-width: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}
.shop-chips a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--forest);
  border: 1px solid rgba(13, 77, 36, 0.35);
  border-radius: 2px;
  padding: 0.4rem 0.8rem;
  transition: background 0.3s, color 0.3s;
}
.shop-chips a:hover { background: var(--forest); color: var(--paper); }

.shop-cat { padding-top: 3.5rem; scroll-margin-top: 1rem; }
.shop-cat-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 1.4rem;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .shop { padding: 0 1rem 4rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 0.9rem; }
}

.product { margin: 0; }
.product-img {
  background: var(--tile);
  border-radius: 2px;
  overflow: hidden;
}
.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  /* le foto prodotto hanno fondo bianco: "multiply" lo fonde nel colore sotto */
  mix-blend-mode: multiply;
}
.product img.is-photo { mix-blend-mode: normal; }
.product figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}
.product-name {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}
.product-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.product-price {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--forest);
}

/* Ingrandimento (shop.js) */
a.product-img { display: block; cursor: zoom-in; }

.zoom {
  border: none;
  padding: 0;
  margin: auto;
  width: min(92vw, 760px);
  max-height: 94vh;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  overflow: auto;
}
.zoom::backdrop { background: rgba(31, 29, 26, 0.55); }
.zoom-figure { margin: 0; padding: 3rem 3.5rem 2rem; }
.zoom-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  mix-blend-mode: multiply;
}
.zoom-img.is-photo { mix-blend-mode: normal; border-radius: 2px; }
.zoom-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.4rem;
  text-align: center;
}
.zoom-caption .product-name { font-size: 1.05rem; }
.zoom-caption .product-desc { font-size: 1.1rem; }
.zoom-caption .product-price { font-size: 1.05rem; }

.zoom-close, .zoom-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem 0.8rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.zoom-close:hover, .zoom-nav:hover { opacity: 1; }
.zoom-close { top: 0.6rem; right: 0.6rem; font-size: 2rem; }
.zoom-nav { top: 40%; font-size: 2.6rem; }
.zoom-prev { left: 0.2rem; }
.zoom-next { right: 0.2rem; }

@media (max-width: 620px) {
  .zoom { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; }
  .zoom[open] { display: flex; align-items: center; }
  .zoom-figure { width: 100%; }
  .zoom-figure { padding: 3.5rem 1rem 2rem; }
  .zoom-img { max-height: 60vh; }
}
