.product-kind {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

.product-card {
  cursor: pointer;
}

.product-card:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .categories.open .category-menu,
  .category-item.expanded .category-menu {
    display: grid;
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 8px 15px;
  }
}

.product-modal {
  width: min(1080px, calc(100% - 30px));
  max-height: 92vh;
  padding: 0;
  overflow: auto;
}

.product-modal .close {
  z-index: 3;
  background: rgba(255, 255, 255, .9);
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.detail-carousel {
  min-width: 0;
  background: #e9dec9;
  padding-bottom: 18px;
}

.detail-stage {
  height: min(68vh, 620px);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #17140e;
  display: grid;
  place-items: center;
}

.detail-stage > img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .3s ease;
}

.detail-stage > img.zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
}

.zoom-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(23, 20, 14, .78);
  color: #fff;
  padding: 7px 10px;
  font-size: 10px;
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  font-size: 19px;
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex: 0 0 62px;
  width: 62px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button.active {
  border-color: var(--ink);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-position {
  text-align: center;
  font-size: 10px;
  margin: 7px 0 0;
}

.detail-copy {
  padding: 58px 48px;
  position: sticky;
  top: 0;
  align-self: start;
}

.detail-copy h2 {
  font-size: 48px;
  line-height: 1;
  margin: 0 0 15px;
}

.detail-price {
  display: block;
  font-size: 23px;
  margin-bottom: 25px;
}

.detail-copy > p {
  font-size: 15px;
}

.detail-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}

.detail-row span {
  color: var(--muted);
}

.availability {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
  padding: 15px;
  margin: 18px 0;
  font-size: 12px;
}

.availability.available {
  border-left: 4px solid var(--green);
}

.availability span {
  color: var(--muted);
}

.detail-copy .primary-button {
  width: 100%;
}

.order-link {
  display: block;
  text-align: center;
  font-size: 12px;
  margin-top: 16px;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-stage {
    height: min(58vh, 480px);
    min-height: 330px;
  }

  .detail-copy {
    padding: 35px 24px;
  }

  .detail-copy h2 {
    font-size: 38px;
  }
}
