/* Shop page */
.shop-page {
  background: var(--paper);
}

.shop-page .desktop-nav a[aria-current="page"],
.shop-page .mobile-menu nav a[aria-current="page"] {
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.shop-hero {
  padding: calc(var(--header-height) + clamp(62px, 8vw, 110px)) 0
    clamp(58px, 8vw, 104px);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.shop-hero h1 {
  max-width: 970px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 7.2vw, 7.2rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.shop-hero__lead {
  max-width: 54ch;
  margin: 34px 0 0;
  color: color-mix(in srgb, var(--fixed-ink) 76%, transparent);
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.55;
}

.shop-catalog {
  padding-block: clamp(68px, 8vw, 118px);
  background: var(--paper-soft);
}

.shop-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.shop-toolbar h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.shop-status {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.shop-status.is-error {
  color: #8f2638;
}

.shop-cart-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-cart-link[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.shop-cart-count {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: var(--pill);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
  font-size: 0.76rem;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.shop-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fixed-lavender);
  border-radius: var(--radius);
  background: var(--paper);
}

.shop-product__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-muted);
}

.shop-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.shop-product__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.8vw, 34px);
}

.shop-product__meta {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-product h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.85vw, 1.75rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.shop-product__subtitle {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.3;
}

.shop-product__description {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.shop-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
}

.shop-product__price {
  font-size: 1.05rem;
  font-weight: 650;
}

.shop-product__button {
  min-height: 42px;
  padding-inline: 17px;
  border: 1px solid var(--fixed-lavender);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.shop-product__button:hover {
  border-color: var(--fixed-ink);
  background: var(--fixed-ink);
  color: var(--fixed-paper);
}

.shop-product__button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.shop-product__notice {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.shop-product--gallery .shop-product__media {
  aspect-ratio: 4 / 5;
}

.shop-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-muted);
  touch-action: pan-y;
}

.shop-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: var(--paper-muted);
}

.shop-carousel__arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(17, 16, 17, 0.12);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.66);
  color: var(--fixed-ink);
  cursor: pointer;
  opacity: 0.8;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: opacity 160ms var(--ease), background-color 160ms var(--ease);
}

.shop-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.shop-carousel__counter {
  position: absolute;
  left: 14px;
  bottom: 22px;
  padding: 5px 9px;
  border-radius: var(--pill);
  background: rgba(17, 16, 17, 0.52);
  color: var(--fixed-paper);
  font-size: 0.72rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.product-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(940px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.product-dialog::backdrop {
  background: var(--dialog-scrim);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.product-dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
  cursor: pointer;
}

.product-dialog__gallery {
  background: var(--paper-muted);
}

.product-dialog__gallery .shop-carousel {
  aspect-ratio: 16 / 9;
  height: auto;
}

.product-dialog__gallery .shop-carousel__arrow {
  width: 50px;
  height: 50px;
  font-size: 1.35rem;
}

.product-dialog__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: clamp(36px, 5vw, 76px);
  padding: clamp(30px, 5vw, 62px);
}

.product-dialog__kicker {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-dialog__copy h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.product-dialog__copy > p {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.62;
}

.product-dialog__section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.product-dialog__section h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.product-dialog__section p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.product-dialog__section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.product-options {
  align-self: start;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--fixed-lavender);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.product-fact,
.product-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.product-fact {
  margin-top: -14px;
}

.product-delivery {
  margin-top: 4px;
}

.product-fact span,
.product-delivery span {
  color: var(--ink-muted);
}

.product-fact strong {
  max-width: 68%;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.4;
}

.product-options__note {
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-option-group {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.product-option-group legend,
.product-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.color-options {
  display: grid;
  gap: 8px;
}

.color-options--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-option {
  position: relative;
  cursor: pointer;
}

.color-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.color-option span {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.9rem;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.color-option input:checked + span {
  border-color: var(--fixed-ink);
  background: var(--fixed-lavender);
}

.color-option input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.color-swatch {
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(17, 16, 17, 0.16);
  border-radius: 50%;
}

.color-swatch--maroon {
  background: #641e2a;
}

.color-swatch--green {
  background: #315944;
}

.color-swatch--navy {
  background: #1f304f;
}

.color-swatch--black {
  background: #111011;
}

.color-swatch--white {
  background: #ffffff;
}

.color-swatch--gold {
  background: linear-gradient(135deg, #b6903f, #f1dfaa 52%, #a77f34);
}

.color-swatch--silver {
  background: linear-gradient(135deg, #8e939a, #f0f2f4 52%, #8e939a);
}

.product-field {
  margin-top: 20px;
}

.product-field input,
.product-field select,
.product-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.product-field input:focus,
.product-field select:focus,
.product-field textarea:focus {
  border-color: var(--fixed-lavender);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fixed-lavender) 42%, transparent);
}

.product-field textarea {
  min-height: 112px;
  resize: vertical;
}

.product-options__submit {
  width: 100%;
  margin-top: 24px;
  border-color: var(--fixed-lavender);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.product-options__submit:hover {
  border-color: var(--fixed-ink);
  background: var(--fixed-ink);
  color: var(--fixed-paper);
}

.product-options__status {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.product-options__status:empty {
  display: none;
}

.cart-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-next-actions__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.cart-next-actions__link--primary {
  border-color: var(--fixed-ink);
  background: var(--fixed-ink);
  color: var(--fixed-paper);
}

.cart-next-actions__link:hover {
  border-color: var(--fixed-ink);
}

.cart-next-actions__link:active {
  transform: scale(0.98);
}

.cart-next-actions__link--primary:hover {
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.cart-next-actions__link:focus-visible {
  outline: 3px solid var(--fixed-lavender);
  outline-offset: 3px;
}

.shop-skeleton {
  min-height: 520px;
  border-radius: var(--radius);
  background: linear-gradient(
    100deg,
    var(--paper-muted) 20%,
    var(--paper) 45%,
    var(--paper-muted) 70%
  );
  background-size: 220% 100%;
  animation: shop-shimmer 1.2s linear infinite;
}

.shop-empty,
.shop-fallback {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.shop-note {
  padding-block: 30px;
  background: var(--paper);
}

.shop-note__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.shop-note p {
  max-width: 70ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ecd-legal {
  padding-block: clamp(66px, 8vw, 108px);
  border-top: 1px solid var(--lavender);
  background: var(--paper-soft);
}

.ecd-legal__header {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.ecd-legal__kicker,
.ecd-legal__tag {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ecd-legal__header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.ecd-legal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ecd-legal__card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: clamp(22px, 2.7vw, 32px);
  border: 1px solid var(--lavender);
  border-radius: var(--radius);
  background: var(--paper);
}

.ecd-legal__card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ecd-legal__card > p:not(.ecd-legal__tag) {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

.ecd-legal__link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.ecd-legal__link:hover {
  color: var(--ink-soft);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shop-product:hover .shop-product__media img {
    transform: scale(1.025);
  }
}

@keyframes shop-shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 960px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-dialog__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shop-hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-note__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ecd-legal {
    padding-block: 56px;
  }

  .ecd-legal__grid {
    grid-template-columns: 1fr;
  }

  .ecd-legal__card {
    min-height: 0;
  }

  .product-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .product-dialog__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .product-dialog__gallery .shop-carousel {
    aspect-ratio: 4 / 5;
  }

  .product-dialog__copy h2 {
    overflow-wrap: normal;
    font-size: clamp(1.9rem, 8.5vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-skeleton {
    animation: none;
  }

  .shop-product__media img {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .product-dialog::backdrop,
  .shop-carousel__arrow,
  .shop-carousel__counter {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .shop-carousel__arrow {
    background: var(--fixed-paper);
  }
}
