/* Shared rhythm for the shop's product information and controls. */
.catalogue {
  padding-bottom: 64px;
  row-gap: 40px;
}
.catalogue-nav {
  gap: 12px 32px;
  padding-block: 16px 20px;
}
.catalogue-nav button {
  min-height: 44px;
  padding-block: 10px;
}
.catalogue-panel {
  align-items: start;
}
.catalogue-photo {
  padding: 0;
  background: transparent;
}
.catalogue-photo figcaption {
  padding: 14px 0 0;
}
.catalogue-detail,
.shop-order {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.catalogue-detail h2,
.catalogue-detail p,
.catalogue-detail .shop-preview-note,
.catalogue-detail .collection-line {
  margin: 0 !important;
}
.catalogue-detail h2 {
  line-height: 1.12;
}
.catalogue-detail .product-intro {
  line-height: 1.7;
  max-width: 42em;
}
.product-choice {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.catalogue-detail .product-choice label {
  margin: 0;
  font-size: .94rem;
  line-height: 1.5;
}
.select-wrap {
  position: relative;
  min-width: 0;
}
.catalogue-detail .select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 15px 52px 15px 18px;
  border: 1px solid #b6aa94;
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
}
.select-wrap::after,
.product-details > summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.select-wrap::after {
  position: absolute;
  right: 22px;
  top: calc(50% - 7px);
  pointer-events: none;
}
.catalogue-detail .choice-description,
.catalogue-detail .checkout-choice-note {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}
.catalogue-detail .catalogue-price {
  padding: 17px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5;
}
.catalogue-price strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}
.product-actions {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.catalogue-detail .product-actions .button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  padding: 15px 20px;
  line-height: 1.5;
  font-size: 1rem;
  text-align: center;
}
.catalogue-detail .product-actions .purchase-note,
.catalogue-detail .product-actions .shop-preview-note,
.catalogue-detail .product-actions .collection-line {
  color: var(--muted);
  font-size: .9rem !important;
  line-height: 1.65;
}
.product-actions .collection-request {
  width: fit-content;
  margin: 0;
  padding: 3px 0;
  font-size: .95rem;
  line-height: 1.6;
  text-underline-offset: 5px;
}
.catalogue-detail .product-details {
  padding: 0;
  margin: 0;
}
.product-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 16px 3px 16px 0;
  list-style: none;
  font-size: .95rem;
  line-height: 1.5;
}
.product-details > summary::-webkit-details-marker {
  display: none;
}
.product-details[open] > summary::after {
  transform: rotate(225deg);
}
.catalogue-detail .product-details p {
  padding-bottom: 18px;
  font-size: .92rem;
  line-height: 1.7;
}
.catalogue-detail :is(select, summary, button, a):focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 4px;
}
@media (max-width: 780px) {
  .catalogue {
    padding-bottom: 40px;
  }
  .catalogue-nav {
    gap: 4px 22px;
    padding-block: 16px 20px;
  }
  .catalogue-panel {
    gap: 30px;
  }
  .catalogue-detail,
  .shop-order {
    gap: 22px;
  }
  .catalogue-detail .select-wrap select {
    font-size: 16px;
  }
}
@media (forced-colors: active) {
  .catalogue-detail .select-wrap select {
    appearance: auto;
  }
  .select-wrap::after {
    display: none;
  }
}

/* Open the full product photograph without leaving the shop. */
.product-photo-zoom {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: zoom-in;
}
.product-photo-zoom:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 5px;
}
.photo-zoom-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.photo-zoom-icon {
  display: grid;
  place-items: center;
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fffdf4ed;
  pointer-events: none;
}
.photo-zoom-icon svg {
  width: 20px;
  height: 20px;
}
.shop-lightbox {
  box-sizing: border-box;
  width: min(1200px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 18px 24px 22px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.shop-lightbox::backdrop {
  background: #191712d9;
}
.shop-lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.shop-lightbox-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 2px 8px 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.shop-lightbox-close span {
  font-size: 1.8rem;
  line-height: 1;
}
.shop-lightbox-close:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}
.shop-lightbox .shop-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 190px);
  object-fit: contain;
}
.shop-lightbox-caption {
  margin: 16px 0 0;
  font-size: .94rem;
  line-height: 1.6;
}
body.shop-photo-open {
  overflow: hidden;
}
@media (max-width: 780px) {
  .shop-lightbox {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    padding: 10px 12px 16px;
  }
  .shop-lightbox .shop-lightbox-image {
    max-height: calc(100svh - 176px);
  }
}
