.shop-store-page {
  --product-border: #e8e2dd;
  --product-secondary: #645b54;
  --product-accent: #a83f22;
  background: #fff;
}

.shop-store-page .store-width { width: min(1320px, calc(100% - 96px)); }
.shop-store-page .store-masthead { min-height: 76px; }
.product-header-actions, .product-header-actions .store-flow-nav { display: flex; align-items: center; gap: 26px; }
.shop-store-page .store-cart { border-radius: 24px; }
.product-page-main { padding-block: 32px 56px; }
.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin-bottom: 18px;
  color: var(--product-secondary);
  font-size: 14px;
}
.product-back-link span { font-size: 22px; line-height: 1; }
.product-back-link:hover { color: var(--product-accent); }

.product-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(30px, 4.2vw, 64px);
}

.product-gallery {
  align-self: end;
  position: sticky;
  top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.product-thumbnails { display: grid; width: 70px; flex: 0 0 70px; gap: 10px; }
.gallery-thumb {
  width: 100%;
  padding: 3px;
  border: 1px solid var(--product-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.gallery-thumb[aria-pressed="true"] { border-color: var(--product-accent); }
.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.product-main-image { min-width: 0; max-width: 100%; margin: 0; }
.product-media {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.product-media > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72svh, 640px);
}
.product-main-image figcaption { margin-top: 8px; color: var(--product-secondary); text-align: center; font-size: 12px; }
.gallery-arrow {
  position: absolute;
  top: calc(50% - 22px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e8e2dd;
  border-radius: 50%;
  background: #fff;
  color: #25211e;
  cursor: pointer;
  box-shadow: 0 2px 6px #2e21141a;
}
.gallery-arrow:disabled { opacity: .45; }
.gallery-arrow svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.gallery-previous { left: 14px; }
.gallery-next { right: 14px; }

.product-purchase {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  padding-top: 7px;
}
.product-heading { margin-bottom: 16px; }
.product-category-label { color: var(--product-accent); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.commerce-page .product-heading h1 {
  font-size: clamp(29px, 3.15vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.product-summary { margin-top: 14px; color: var(--product-secondary); font-size: 15px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.product-promo {
  margin-bottom: 12px;
  color: #424242;
  font-size: 13px;
  line-height: 1.6;
}
.commerce-page .product-promo h2,
.commerce-page .product-promo h3 { margin: 0 0 6px; color: #171717; font-weight: 700; line-height: 1.35; }
.commerce-page .product-promo h2 { font-size: 17px; }
.commerce-page .product-promo h3 { margin-top: 12px; font-size: 15px; }
.product-promo p { margin: 0; }
.product-promo ul { margin: 0 0 12px; padding-inline-start: 1.2em; }
.product-promo li + li { margin-top: 5px; }
.product-purchase-controls { margin-top: auto; padding-top: 16px; }
.product-price-panel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 14px;
}
.product-price-panel strong { font-size: clamp(30px, 3vw, 40px); line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-price-panel span { color: var(--product-secondary); font-size: 13px; }
.commerce-page .product-option-title { margin-bottom: 9px; font-size: 14px; font-weight: 600; }

.product-purchase .variant-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.product-purchase .variant-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid var(--product-border);
  border-radius: 10px;
  background: #fff;
  color: #29231f;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-purchase .variant-button[aria-pressed="true"] { border-color: var(--product-accent); background: #fcf2ec; color: #29231f; }
.variant-label { font-weight: 600; }
.variant-price { font-size: 13px; font-variant-numeric: tabular-nums; }
.product-purchase .variant-button[aria-pressed="true"] .variant-price { color: var(--product-accent); }
.product-box-contents { margin-bottom: 20px; }
.product-box-hanger {
  position: relative;
  width: min(46%, 180px);
  height: 48px;
  margin-inline: auto;
  border-radius: 15px 15px 0 0;
  background: #171717;
}
.product-box-hanger::before,
.product-box-hanger::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  content: "";
}
.product-box-hanger::before { top: 22px; width: 55%; height: 11px; }
.product-box-hanger::after { top: 16px; width: 14px; height: 14px; }
.product-box-panel {
  padding: clamp(19px, 2.2vw, 28px) 10px 17px;
  border-radius: 16px;
  background: #f6f6f6;
}
.commerce-page .product-box-panel > h2 {
  margin: 0 0 16px;
  color: #171717;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.product-box-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.is-accessory-pack .product-box-items {
  grid-template-columns: repeat(2, minmax(0, 104px));
  justify-content: center;
  gap: 12px;
}
.product-box-items > li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
  color: #424242;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.product-box-items img {
  display: block;
  width: clamp(36px, 4vw, 44px);
  height: auto;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
}
.product-box-count {
  position: absolute;
  top: -3px;
  left: calc(50% + 6px);
  padding: 1px 4px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.product-quantity-row {
  display: flex;
  min-height: 58px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dedede;
}
.product-quantity-details {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 14px);
  min-width: 0;
  padding-inline: clamp(11px, 3vw, 24px);
}
.product-quantity-details .shop-field {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #414141;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.commerce-page .product-quantity-details input {
  appearance: textfield;
  width: 48px;
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #171717;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.commerce-page .product-quantity-details input::-webkit-inner-spin-button,
.commerce-page .product-quantity-details input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.commerce-page .product-quantity-details input:not(:disabled):hover,
.commerce-page .product-quantity-details input:focus { background: #f2f2f2; }
.commerce-page .product-quantity-details input:focus-visible { outline-color: #171717; outline-offset: -2px; }
.commerce-page .product-quantity-details input:disabled { background: transparent; }
.commerce-page .product-quantity-details .shop-hint {
  min-width: 0;
  margin: 0;
  padding-inline-start: clamp(6px, 1.8vw, 14px);
  border-inline-start: 1px solid #dedede;
  color: #666;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.commerce-page .product-add {
  flex: 1 0 auto;
  min-height: 58px;
  margin: 0;
  padding-inline: clamp(10px, 2.8vw, 24px);
  border-radius: 0 999px 999px 0;
  background: #171717;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.commerce-page .product-add:not(:disabled):hover { background: #303030; color: #fff; opacity: 1; }
.commerce-page .product-add:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.commerce-page .product-add:disabled { background: #ececec; color: #626262; }
.product-purchase-feedback {
  grid-column: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #f6f6f6;
  color: #171717;
}
.product-added-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
}
.product-added-icon::before {
  content: "";
  width: 12px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-2px) rotate(-45deg);
}
.product-added {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-added strong { font-size: 18px; font-weight: 700; line-height: 1.3; }
.product-added span { color: #575757; font-size: 13px; line-height: 1.4; }
.commerce-page .product-checkout-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.commerce-page .product-checkout-link:hover { background: #303030; }
.commerce-page .product-checkout-link:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.product-checkout-link span { font-size: 18px; line-height: 1; }

@media (max-width: 480px) {
  .product-purchase-feedback { grid-template-columns: 44px minmax(0, 1fr); }
  .product-checkout-link { grid-column: 1 / -1; }
}

.product-content-section { margin-bottom: 22px; padding-top: 14px; border-top: 1px solid var(--product-border); }
.commerce-page .product-content-section > h2 { margin: 0 0 8px; font-size: 18px; }
.product-intro-text { white-space: pre-line; color: var(--product-secondary); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.product-unavailable { padding-block: 50px; text-align: center; }

@media (max-width: 1050px) {
  .shop-store-page .store-width { width: calc(100% - 56px); }
}
@media (width > 1240px) {
  .shop-store-page .store-width.product-page-main { width: min(1320px, calc(100% - 56px)); }
  .product-overview { column-gap: clamp(24px, 2.4vw, 36px); }
  .product-purchase { padding-top: 0; }
  .product-overview:has(.product-box-contents:not([hidden])) .product-gallery {
    align-self: stretch;
    position: relative;
    top: auto;
    container-type: size;
    gap: 12px;
  }
  .product-overview:has(.product-box-contents:not([hidden])) .product-thumbnails {
    width: 64px;
    flex-basis: 64px;
    max-height: 100cqh;
    overflow-y: auto;
  }
  .product-overview:has(.product-box-contents:not([hidden])) .product-main-image { max-width: calc(100% - 76px); }
  .product-overview:has(.product-box-contents:not([hidden])) .product-media > img { max-height: 100cqh; }
}
@media (max-width: 1240px) {
  .shop-store-page .store-width.product-page-main { width: min(640px, calc(100% - 32px)); }
  .product-page-main { padding-block: 12px 34px; }
  .product-back-link { margin-bottom: 12px; }
  .product-overview { grid-template-columns: minmax(0, 1fr); }
  .product-purchase { margin-top: 19px; padding-top: 0; }
  .product-price-panel strong {
    color: #171717;
    font-size: clamp(38px, 5.3vw, 48px);
    font-weight: 800;
    line-height: 1.1;
  }
  .product-purchase-feedback { grid-column: 1; }
  .product-summary { margin-top: 8px; font-size: 14px; }
  .product-category-label { margin-bottom: 5px; }
  .product-gallery { position: static; flex-direction: column-reverse; align-items: center; gap: 10px; }
  .product-thumbnails {
    display: flex;
    flex-basis: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    width: auto;
    max-width: 100%;
  }
  .gallery-thumb { width: 53px; }
}
@media (max-width: 760px) {
  .shop-store-page .store-width { width: calc(100% - 32px); }
  .shop-store-page .store-masthead { min-height: 62px; padding-block: 8px; gap: 10px; }
  .product-header-actions, .product-header-actions .store-flow-nav { gap: 12px; }
  .shop-store-page .cart-label { display: none; }
  .shop-store-page .store-cart { padding-inline: 9px; gap: 3px; }
}
@media (max-width: 460px) {
  .shop-store-page .store-brand > span { display: none; }
}
@media (max-width: 360px) {
  .product-header-actions .store-flow-nav { gap: 8px; font-size: 13px; }
  .product-header-actions { gap: 8px; }
  .shop-store-page .store-brand img { width: 104px; }
}
