.shop-page {
  --shop-rim: color-mix(in srgb, var(--line) 78%, transparent);
  padding-block: clamp(.85rem, 2.3vw, 2rem) clamp(3rem, 7vw, 6rem);
}
.shop-hero {
  min-height: clamp(10rem, 16vw, 13.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  isolation: isolate;
  overflow: hidden;
  background: var(--wax-stage-base, #30171c);
  color: var(--wax-stage-text, #fff4ed);
  border-radius: .5rem;
}
.shop-hero__text {
  display: grid;
  align-content: center;
  gap: .65rem;
  padding: clamp(1.1rem, 2.6vw, 2.25rem);
  z-index: 1;
}
.shop-hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: .48rem;
  font-size: .78rem;
  color: var(--wax-stage-muted, #f0d7c8);
}
.shop-hero nav a:hover { color: var(--wax-stage-text, white); }
.shop-hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 5.6vw, 5.4rem);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.shop-hero p {
  max-width: 36ch;
  color: var(--wax-stage-muted, #f0d7c8);
  font-size: clamp(.92rem, 1.45vw, 1.1rem);
}
.shop-hero__image { position: relative; min-height: 0; overflow: hidden; }
.shop-hero__image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 65% 59%; }
.shop-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--wax-stage-base, #30171c), transparent 18%);
}
.shop-categories {
  margin-block: clamp(.8rem, 2vw, 1.4rem) .8rem;
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: .28rem .24rem .48rem;
}
.shop-categories a {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 2.65rem;
  padding: .44rem .95rem;
  border: 1px solid var(--wax-control-border, var(--line));
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
}
.shop-categories a:hover { background: var(--wax-wash, var(--canvas)); border-color: var(--wine); }
.shop-categories a[aria-current="page"] {
  background: var(--wax-button, var(--wine));
  color: var(--wax-button-text, var(--canvas));
  border-color: var(--wax-button, var(--wine));
}
.shop-categories a:focus-visible { outline-offset: 1px; }
.shop-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.4rem, .45fr) auto;
  align-items: end;
  gap: .65rem;
  margin-bottom: .95rem;
}
.shop-controls label { display: grid; gap: .28rem; color: var(--ink); font-size: .82rem; font-weight: 700; min-width: 0; }
.shop-controls input, .shop-controls select {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: .55rem .7rem;
  border-radius: .35rem;
  border: 1px solid var(--wax-control-border, var(--line));
  background: var(--wax-field, var(--canvas));
  color: var(--ink);
  font: 500 .94rem/1.2 var(--sans);
}
.shop-controls input::placeholder { color: var(--muted); opacity: 1; }
.shop-button {
  display: inline-flex;
  width: 100%;
  min-height: 2.7rem;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  padding: .52rem .68rem;
  border: 1px solid var(--wax-control-border, var(--line));
  border-radius: .35rem;
  background: var(--canvas);
  color: var(--wine);
  text-align: center;
  font: 700 .87rem/1.24 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.shop-button:hover { color: var(--wine); background: var(--wax-wash, var(--paper)); border-color: var(--wine); }
.shop-button--primary {
  background: var(--wax-button, var(--wine));
  border-color: var(--wax-button, var(--wine));
  color: var(--wax-button-text, var(--canvas));
}
.shop-button--primary:hover {
  background: var(--wax-button-hover, var(--accent));
  border-color: var(--wax-button-hover, var(--accent));
  color: var(--wax-button-text, var(--canvas));
}
.shop-controls button { min-height: 2.85rem; width: auto; padding-inline: 1.2rem; }
.shop-results__summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem .8rem;
  margin-block: 0 .75rem;
  color: var(--muted);
  font-size: .89rem;
}
.shop-results__summary:has(p:empty):not(:has(a)) { display: none; }
.shop-results__summary a { color: var(--wine); font-weight: 650; }
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(.65rem, 1.4vw, 1.18rem);
  row-gap: clamp(1rem, 2.4vw, 1.85rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-card {
  --shop-tone: #eee6dd;
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--shop-rim);
  border-radius: .5rem;
  background: var(--canvas);
}
.shop-card--perfume { --shop-tone: #f0dee4; }
.shop-card--candles { --shop-tone: #f1e5d1; }
.shop-card--diffusers { --shop-tone: #e3e9df; }
.shop-card--bath-body { --shop-tone: #f1e1d9; }
.shop-card--accessories { --shop-tone: #e4e9ed; }
.shop-card__link {
  display: block;
  border-radius: .48rem .48rem 0 0;
  color: var(--ink);
  text-decoration: none;
}
.shop-card__link:hover { color: var(--wine); }
.shop-card__link:hover h2 { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .15em; }
.shop-card__figure {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.14 / 1;
  overflow: hidden;
  border-radius: .48rem .48rem 0 0;
  background: radial-gradient(ellipse at 47% 30%, #fcf8f3, var(--shop-tone) 83%);
}
.shop-card__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(.25rem, 1vw, .8rem);
  transition: transform .24s ease;
}
@media (hover: hover) {
  .shop-card__link:hover .shop-card__photo { transform: scale(1.045); }
}
.shop-card__placeholder {
  display: grid;
  place-items: center;
  width: calc(100% - 1.4rem);
  height: calc(100% - 1.4rem);
  border: 1px solid rgb(98 65 57 / .28);
  color: #654b43;
  font-size: .84rem;
  font-weight: 650;
  text-align: center;
}
.shop-card__stock {
  position: absolute;
  top: .55rem;
  left: .55rem;
  max-width: calc(100% - 1.1rem);
  border-radius: 999px;
  padding: .3rem .58rem;
  background: #3f292b;
  color: #fff5ee;
  font-size: .73rem;
  font-weight: 700;
}
.shop-card__identity {
  display: grid;
  align-content: start;
  gap: .32rem;
  min-height: 6.85rem;
  padding: .72rem .75rem .48rem;
}
.shop-card__category { color: var(--muted); font: 700 .74rem/1.2 var(--sans); }
.shop-card__identity h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2.3vw, 2rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.shop-card__inspiration { color: var(--muted); font-size: .79rem; line-height: 1.34; }
.shop-card__info { display: grid; gap: .42rem; padding: 0 .75rem .75rem; }
.shop-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem .28rem;
  align-items: baseline;
  min-height: 1.5rem;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
}
.shop-card__price:empty { display: none; }
.shop-from { color: var(--muted); font-size: .79rem; font-weight: 500; }
.shop-card__variant-count { margin-inline-start: auto; color: var(--muted); font-size: .75rem; font-weight: 500; }
.shop-card__info .wax-sale-badge { justify-self: start; font-size: .73rem; }
.shop-card__add { display: grid; gap: .35rem; min-width: 0; }
.shop-card__add [data-bag-feedback] { color: var(--muted); font-size: .79rem; line-height: 1.4; }
.shop-card__options > summary { list-style: none; }
.shop-card__options > summary::-webkit-details-marker { display: none; }
.shop-card__plus { display: inline-grid; width: .8rem; height: .8rem; place-items: center; }
.shop-card__plus::before, .shop-card__plus::after { content: ""; grid-area: 1 / 1; width: .72rem; height: 1px; background: currentColor; }
.shop-card__plus::after { transform: rotate(90deg); }
.shop-card__options[open] .shop-card__plus::after { transform: none; }
.shop-card__options ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.shop-card__options li { display: grid; gap: .34rem; padding: .48rem 0; border-top: 1px solid var(--line); }
.shop-card__options li > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .32rem;
  font-size: .79rem;
}
.shop-card__options li > div:last-child { font-size: .8rem; }
.shop-card__options li .shop-button { min-height: 2.25rem; padding-inline: .35rem; }
.shop-pages { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.8rem; color: var(--muted); }
.shop-pages > div { display: flex; gap: .55rem; }
.shop-pages a { width: auto; min-width: 5rem; }
.shop-empty { padding: clamp(1.25rem, 4vw, 2.6rem); background: var(--canvas); border: 1px solid var(--line); border-radius: .5rem; }
.shop-empty h2 { font-size: clamp(2rem, 4vw, 3rem); }
.shop-empty p { margin-block: .45rem .65rem; }
.shop-empty a + a { margin-left: .9rem; }
@media (max-width: 960px) {
  .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shop-hero { min-height: 8.9rem; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .shop-hero__text { gap: .42rem; padding: .8rem .7rem .85rem; }
  .shop-hero h1 { font-size: clamp(2rem, 7.8vw, 3.15rem); }
  .shop-hero p { font-size: .79rem; line-height: 1.4; }
  .shop-hero nav { font-size: .7rem; }
  .shop-hero__image img { object-position: 73% 55%; }
  .shop-categories { margin-block: .53rem .52rem; }
  .shop-categories a { font-size: .81rem; min-height: 2.52rem; padding-inline: .74rem; }
  .shop-controls { grid-template-columns: minmax(0, 1fr) auto; gap: .48rem; }
  .shop-controls__search { grid-column: 1 / -1; }
  .shop-controls input, .shop-controls select { min-height: 2.65rem; font-size: 1rem; }
  .shop-controls button { min-height: 2.65rem; }
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-card__identity { min-height: 6.6rem; padding: .52rem .52rem .4rem; }
  .shop-card__figure { aspect-ratio: 1 / 1; }
  .shop-card__identity h2 { font-size: clamp(1.35rem, 4.8vw, 1.68rem); }
  .shop-card__category, .shop-card__variant-count { font-size: .7rem; }
  .shop-card__inspiration { font-size: .74rem; }
  .shop-card__info { padding: 0 .52rem .57rem; }
  .shop-card__price { font-size: .9rem; }
  .shop-card__price .shop-card__variant-count { margin-inline-start: 0; }
  .shop-card__options li > div:first-child { flex-wrap: wrap; }
}
@media (max-width: 330px) {
  .shop-product-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-card__identity { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card__figure img { transition: none; }
}
