:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #39322b;
  background: #faf7f2;
}
* { box-sizing: border-box; }
body { margin: 0; padding-left: 16rem; }
main { max-width: 76rem; margin-inline: auto; min-width: 0; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 16rem;
  padding: 1.5rem;
  overflow-y: auto;
  background: #f0e9df;
  border-right: 1px solid #e3dace;
}
a { color: #655039; text-underline-offset: 0.2em; }
.shop-name { display: block; font-size: 1.75rem; font-weight: 700; text-decoration: none; }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-block: 0.5rem; }
.sidebar a { display: inline-block; padding-block: 0.25rem; }
.sidebar a[aria-current="page"] { font-weight: 700; }
.sidebar .category-tree ul { padding-left: 1rem; border-left: 1px solid #cdbfad; }
.sidebar summary { cursor: pointer; }
.navigation-heading { font-size: 1rem; margin-top: 2rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; padding: 0.75rem; background: #fffdf9; }
.skip-link:focus { top: 1rem; }
.content-page { padding: 2rem clamp(1rem, 4vw, 3rem); }
.subcategory-links, .product-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; }
.product-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.product-card { width: max-content; max-width: 100%; min-width: 0; border: 1px solid #e3dace; border-radius: 0.75rem; overflow: hidden; background: #fffdf9; text-decoration: none; }
.product-card img { display: block; width: auto; max-width: 100%; height: 18rem; margin-inline: auto; object-fit: contain; background: #f0e9df; }
.product-card h2 { width: max-content; max-width: 100%; padding: 1rem; margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.product-image { width: 100%; max-height: 70dvh; object-fit: contain; background: #f0e9df; border-radius: 0.75rem; }
.product-properties { padding: 0.75rem; margin-block: 1rem; border: 2px solid transparent; border-radius: 0.5rem; }
.property-choice { display: block; margin-bottom: 0.4rem; font-weight: 600; }
.property-adjusted { border-color: #a35d16; background: #fff0d7; }
.property-adjusted select { border-color: #a35d16; }
.property-adjustment { margin-bottom: 0; color: #75400e; line-height: 1.5; }
select { font: inherit; padding: 0.5rem; border: 1px solid #a69785; border-radius: 0.4rem; background: #fffdf9; }
.product-tags li { padding: 0.4rem 0.75rem; background: #f0e9df; border-radius: 1rem; }
@media (max-width: 48rem) {
  body { padding-left: 0; }
  .sidebar { position: static; width: auto; max-height: 45dvh; border-right: 0; border-bottom: 1px solid #e3dace; }
  .page-links { display: flex; flex-wrap: wrap; gap: 1rem; }
  .navigation-heading { margin-top: 1rem; }
  .product-detail { grid-template-columns: minmax(0, 1fr); }
}
.banner > img { width: 100%; display: block; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.page-block { padding: 2rem clamp(1rem, 5vw, 4rem); }
.page-block + .page-block { border-top: 1px solid #e3dace; }
.block-text { white-space: pre-wrap; line-height: 1.7; max-width: 65ch; }

/* The banner keeps its natural height; only content blocks fill a viewport. */
.block-navigation { scrollbar-width: none; }
.block-navigation::-webkit-scrollbar { display: none; }
.block-navigation .page-block { min-height: 100dvh; }
.block-navigation .page-block:focus { outline: none; }

/* Without JavaScript, all images remain available by horizontal scrolling. */
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { display: block; width: 100%; height: clamp(16rem, 55vw, 35rem); object-fit: contain; background: #f0e9df; }
figcaption { padding-block: 0.75rem; }
.slide-select { display: block; width: 100%; padding: 0; border: 0; background: transparent; }

.carousel .slides {
  display: block;
  position: relative;
  height: clamp(16rem, 48vw, 33rem);
  /* Offstage slides must not make the animated stage internally scrollable. */
  overflow: clip;
  scroll-snap-type: none;
  perspective: 1000px;
}
.carousel .slide {
  position: absolute;
  top: 1rem;
  left: 31%;
  width: 38%;
  height: calc(100% - 2rem);
  z-index: 1;
  opacity: 0;
  transform: translateX(135%) scale(0.45);
  pointer-events: none;
}
.carousel .slide-select { height: calc(100% - 3.5rem); border-radius: 0.8rem; }
.carousel .slide img {
  height: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.25rem rgb(57 50 43 / 0.16);
}
.carousel figcaption {
  text-align: center;
  opacity: 0;
  font-size: clamp(0.8rem, 2vw, 1rem);
}
.carousel .slide[data-slot="0"] { transform: translateX(0) scale(1); opacity: 1; z-index: 3; }
.carousel .slide[data-slot="-1"] { transform: translateX(-65%) scale(0.8) rotateY(12deg); opacity: 0.85; z-index: 2; }
.carousel .slide[data-slot="1"] { transform: translateX(65%) scale(0.8) rotateY(-12deg); opacity: 0.85; z-index: 2; }
.carousel .slide[data-slot="-2"] { transform: translateX(-100%) scale(0.6) rotateY(20deg); opacity: 0.6; }
.carousel .slide[data-slot="2"] { transform: translateX(100%) scale(0.6) rotateY(-20deg); opacity: 0.6; }
.carousel .slide[data-slot="-3"] { transform: translateX(-135%) scale(0.45); }
.carousel .slide[data-slot="0"] figcaption { opacity: 1; }
.carousel .slide:is([data-slot="-2"], [data-slot="-1"], [data-slot="0"], [data-slot="1"], [data-slot="2"]) { pointer-events: auto; }
.carousel-ready .slide { transition: transform 650ms ease, opacity 650ms ease; }
.carousel-ready figcaption { transition: opacity 650ms ease; }

.slide-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.slide-controls[hidden] { display: none; }
.slide-position { min-width: 4rem; margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
button { font: inherit; padding: 0.5rem 1rem; background: #fffdf9; border: 1px solid #a69785; border-radius: 0.4rem; cursor: pointer; }
:focus-visible { outline: 3px solid #776147; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .carousel-ready .slide, .carousel-ready figcaption { transition: none; }
}
