/* Placeholder until product photos are licensed: a neutral tile with a sachet outline. */

@layer components {
.product-image {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  flex: none;
}
.product-image svg { fill: none; stroke: currentColor; stroke-width: 2; }
.product-image--large { width: 10rem; height: 10rem; }
.product-image--large svg { width: 4rem; height: 4rem; }
.product-image--small { width: 2.5rem; height: 2.5rem; vertical-align: middle; margin-inline-end: var(--space-2); }
.product-image--small svg { width: 1.5rem; height: 1.5rem; }
.product-image__label { font-size: 0.8rem; }
/* A photo fills the same tile (fixed size: no layout shift), whole and uncropped. */
.product-image--photo { object-fit: contain; background: #fff; border-style: solid; padding: var(--space-1); box-sizing: border-box; }
.product-head { display: flex; gap: var(--space-5); align-items: center; margin: var(--space-5) 0 var(--space-6); }
.product-head h1 { margin-top: 0; }
.product-head h1 { margin-bottom: var(--space-3); }
/* Hover a thumbnail: the photo, larger, beside it (pointer devices only). */
.product-thumb { position: relative; display: inline-flex; flex: none; }
.product-thumb .product-image--small { margin-inline-end: 0; }
.product-thumb__zoom { display: none; }
@media (hover: hover) {
  .product-thumb__zoom {
    display: block; position: absolute; z-index: 20; left: calc(100% + var(--space-2)); top: 50%;
    width: 14rem; height: 14rem; max-width: none; padding: var(--space-2); box-sizing: border-box; object-fit: contain;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgb(20 33 61 / 0.18);
    opacity: 0; visibility: hidden; transform: translate(-4px, -50%) scale(0.96); transform-origin: left center;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    pointer-events: none;
  }
  .product-thumb:hover .product-thumb__zoom {
    opacity: 1; visibility: visible; transform: translate(0, -50%) scale(1);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
  }
}
@media (max-width: 48rem) { .product-head { flex-direction: column; align-items: flex-start; } }
}
