:root {
  /* Keep the product view on the same brand palette as the home page. */
  --teal: #591c31;
  --teal-soft: #7991a4;
  --wine: #591c31;
  --navy: #0d293d;
  --yellow: #f7c948;
  --bg: #eef3f6;
  --text: #0d293d;
  --muted: #5f7385;
  --border: #dbe2ea;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}


img {
  max-width: 100%;
  display: block;
}


.product-page {
  padding: 16px 16px 28px;
  margin: 0 auto;
}

.product-page.product-page--with-related {
  padding-bottom: 28px;
  background: white;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 0 -16px 12px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(13, 41, 61, 0.08);
  border-bottom: 1px solid var(--border);
}

.header-back,
.header-favorite {
  border: none;
  background: #f3f7f7;
  color: var(--text);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.header-title {
  flex: 1;
  margin: 0 12px;
  color: #331c26;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-favorite.is-active {
  background: #ffecec;
  color: #d72638;
}

.media-gallery {
  margin: 0 -16px;
  background: var(--surface);
}

.mobile-carousel {
  display: block;
}

.desktop-gallery {
  display: none;
}

.carousel {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 62vh, 420px);
}

.carousel__track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.35s ease;
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff4f4;
}

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

.carousel__indicator {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(31, 35, 38, 0.78);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.desktop-gallery {
  position: relative;
  display: none;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: stretch;
}

.desktop-thumbs {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: clamp(420px, 65vh, 560px);
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 28, 49, 0.35) transparent;
  padding-top: 4%;
}

.desktop-thumb {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6faf9;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.desktop-thumb.is-active {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(89, 28, 49, 0.2);
  transform: translateY(-2px);
}

.desktop-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f4f4, #ffffff);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(13, 41, 61, 0.08);
}

.desktop-stage img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.desktop-stage:hover img {
  transform: scale(1.05);
}

.desktop-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(31, 35, 38, 0.76);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.product-info {
  padding: 12px 0 6px;
}

.info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.product-category {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.product-rating {
  margin: 0;
  font-weight: 700;
  color: #331c26;
  font-size: 14px;
}

.product-name {
  margin: 0px 9px 10px 0px;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 300;
  color: black;
}

.price-row {
  display: grid;
  gap: 12px;
}

.availability {
  margin: 6px 0 0;
  color: var(--teal);
  font-size: 14px;
}

.badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.badges > .discount-badges {
  position: static;
  width: auto;
  max-width: 96px;
}

.badge--discount {
  background: #fff;
  color: #581d31;
}

.badge--new {
  background: #581D31;
  color: #f2f5f8;
}

.picker {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  width: 56%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.picker:has(.size-warning.is-visible) {
  border-color: #ef5964;
  box-shadow: 0 0 0 1px rgba(239, 89, 100, 0.08);
}

.picker--inline {
  margin-bottom: 0;
  flex: 1;
}

.picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.picker__title {
  margin: 0;
  color: var(--navy);
  font-size: 3vh;
}

.picker__hint {
  margin: 0;
  font-size: 11px;
  color: var(--teal);
}

.picker__hint--muted {
  color: #581d31;
  font-size: 9px;
  margin-top: 10px;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-chip {
  border: 1px solid #581d31;
  background: #f5f8f8;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  color: #581d31;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 7px rgba(13, 41, 61, 0.4);
  transition: border 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.size-chip.is-selected {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgba(89, 28, 49, 0.28);
}

.size-chip:not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 41, 61, 0.14);
}

.size-chip.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-warning {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff0f1;
  color: #cf2634;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  align-items: center;
  gap: 9px;
}

.size-warning.is-visible {
  display: flex;
}

.size-warning::before {
  content: "!";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d62d3a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.color-grid {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-dot {
  --dot-size: 38px;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: var(--dot-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 18px 44px rgba(30, 24, 32, 0.1);
}

.color-dot__check {
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.color-dot.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(89, 28, 49, 0.16);
}

.color-dot.is-selected .color-dot__check {
  opacity: 1;
}

.color-dot.is-disabled {
  opacity: 0.35;
  filter: grayscale(0.7);
  cursor: not-allowed;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.description {
  margin-bottom: 16px;
}

.description--desktop {
  display: none;
}

.description-card {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(13, 41, 61, 0.05);
}

.description-card summary {
  list-style: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.description-card summary::-webkit-details-marker {
  display: none;
}

.description-card[open] summary::after {
  content: "–";
}

.description-card summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
}

.description ul,
.description-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.description ul {
  list-style: disc;
  padding-left: 20px;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px;
}

.picker__header--inline {
  align-items: center;
  gap: 10px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f7fbfb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.quantity-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s ease;
}

.quantity-btn:hover {
  background: #e8f2f2;
}

.ghost-icon {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  width: 56px;
  height: 56px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 41, 61, 0.08);
}

.ghost-icon.is-active {
  border-color: #ff5a5f;
  color: #ff5a5f;
  background: #fff6f6;
}

.primary-actions {
  display: none;
  gap: 12px;
  margin: 10px 0 6px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  width: 100%;
  margin: 16px auto 8px;
}

.benefit {
  min-height: 82px;
  background: #f3f7f7;
  border-radius: 18px;
  padding: 16px 24px;
  font-weight: 400;
  color: #414850;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #e6ecec;
  box-shadow: 0 2px 7px rgba(13, 41, 61, 0.06);
  font-size: 17px;
  line-height: 1.35;
}

.card_info_benefi {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.card_info_benefi .btn__icon {
  width: 42px;
  height: 42px;
}

.benefit--last {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 10px);
}

@media (max-width: 767px) {
  .benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin: 6px 0 8px;
  }

  .benefit {
    align-items: center;
    min-height: 64px;
    padding: 11px 16px;
    border-radius: 14px;
    gap: 13px;
    font-size: 15px;
  }

  .card_info_benefi {
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }

  .card_info_benefi .btn__icon {
    width: 32px;
    height: 32px;
  }

  .benefit--last {
    grid-column: auto;
    width: 100%;
  }
}

.extended-info {
  display: grid;
  gap: 16px;
  margin-top: 10px;
  padding: 4px 0 12px;
}

.extended-info__block {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(13, 41, 61, 0.05);
}

.extended-info__block h2 {
  margin: 0 0 8px;
}

.extended-info__block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 28px rgba(13, 41, 61, 0.08);
}

.actions__note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.actions__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 12px 28px rgba(89, 28, 49, 0.22);
}

.action-btn--full {
  width: 100%;
}

.action-btn:active {
  transform: translateY(1px);
}

.action-btn--ghost {
  background: #fff;
  color: var(--wine);
  border: 1px solid var(--wine);
  box-shadow: none;
}

.action-btn.is-disabled,
.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
}

.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-weight: 600;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.desktop-payment-methods {
  display: block;
  width: 100%;
  margin-bottom: 0;
  margin-top: -22px;
  border: solid #fdfdfd 6px;
}

.desktop-payment-methods__inner {
  width: 100%;
}

.desktop-payment-methods picture {
  display: block;
  width: 100%;
}

.desktop-payment-methods img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.other-products,
.customer-reviews {
  margin: 22px auto 32px;
  max-width: 1260px;
  padding: 0 16px;
}

.other-products__header .h6-presentation,
.customer-reviews__header .h6-presentation {
  margin: 0;
  color: black;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
}

.other-products__header > p:not(.h6-presentation),
.customer-reviews__header > p:not(.h6-presentation) {
  margin: 0;
  color: rgba(88, 29, 49, 0.35);
  font-size: clamp(17px, 2vw, 24px);
}

.customer-reviews__grid {
  display: grid;
  grid-auto-columns: minmax(220px, 280px);
  grid-auto-flow: column;
  gap: 12px;
  margin-top: 14px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.review-card {
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(13, 41, 61, 0.06);
  scroll-snap-align: start;
}

.review-card__photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.review-card__body {
  padding: 14px;
}

.review-card__stars {
  display: flex;
  gap: 2px;
  font-size: 18px;
  line-height: 1;
}

.review-card__star {
  color: #d9dfdf;
}

.review-card__star--filled {
  color: var(--yellow);
}

.review-card__comment {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.review-card__comment--empty {
  color: var(--muted);
  font-style: italic;
}

.other-products__grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.other-product-card {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(89, 28, 49, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(30, 24, 32, 0.1);
}

.other-product-card__link {
  border-radius: 28px;
}

.other-product-card__image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2f7f7;
}

.other-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.other-product-card__badge {
  top: 16px;
}

.other-product-card__body {
  flex: 1;
  gap: 10px;
  padding: 22px 22px 20px;
}

.other-product-card__name {
  color: #171d24;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.other-product-card .product-price-breakdown {
  margin-bottom: 8px;
}

.other-product-card .card-actions {
  margin-top: auto;
}

.other-product-card .add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--wine);
  box-shadow: 0 10px 22px rgba(89, 28, 49, 0.22);
}

@media (max-width: 767px) {
  .other-product-card {
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(30, 24, 32, 0.09);
  }

  .other-product-card:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(30, 24, 32, 0.09);
  }

  .other-product-card__link {
    border-radius: 18px;
  }

  .other-product-card__body {
    gap: 7px;
    padding: 12px 10px 10px;
  }

  .other-product-card__name {
    font-size: 13px;
  }

  .other-product-card .product-price-breakdown {
    margin-bottom: 0;
  }

  .other-product-card .add-btn {
    min-height: 36px;
    padding: 8px 6px;
    font-size: 12px;
    box-shadow: 0 7px 16px rgba(89, 28, 49, 0.18);
  }

  .other-product-card__badge {
    top: 6px;
  }
}

@media (max-width: 1023px) {
  .orders-footer {
    /* Keep the footer's final row above the fixed purchase controls. */
    margin-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  body {
    background: linear-gradient(180deg, #f6f8fb 0%, var(--bg) 30%);
  }

  .product-page {
    padding: 20px 24px 32px;
  }

  .product-page.product-page--with-related {
    padding-bottom: 32px;
  }

  .product-header {
    margin: 12px auto 16px;
    max-width: 640px;
    border-radius: 18px;
  }

  .media-gallery {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
  }

  .carousel {
    height: clamp(420px, 65vh, 560px);
  }


  .other-products,
  .customer-reviews {
    padding: 0 24px;
  }

  .other-products__grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    
  }

  .customer-reviews__grid {
    grid-auto-columns: minmax(240px, 1fr);
  }

  .actions {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 1.35fr);
    align-items: center;
    gap: 20px;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  }

  .actions__note {
    margin-bottom: 0;
    text-align: right;
  }

  .actions__buttons {
    width: 100%;
  }
}

@media (min-width: 1024px) {

  body {
    background: #fff;
  }

  .desktop-payment-methods {
    display: flex;
    width: 100%;
    min-height: 118px;
    padding: 20px clamp(60px, 8.5vw, 132px);
    background: #fff;
    border-left: 3px solid #eef3f6;
    border-right: 3px solid #eef3f6;
    justify-content: center;
    align-items: center;
  }

  .desktop-payment-methods__inner {
    width: min(560px, 48vw);
    min-height: 78px;
    display: flex;
    align-items: center;
  }

  .desktop-payment-methods img {
    width: 100%;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
  }

  .other-products,
  .customer-reviews {
    margin-top: 28px;
  }

  .other-products {
    margin-top: 0;
    padding-top: 26px;
    padding-bottom: 32px;
    background: #eef3f6;
    box-shadow: 0 0 0 100vmax #eef3f6;
    clip-path: inset(0 -100vmax);
  }

  .other-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


  .customer-reviews__grid {
    grid-auto-flow: initial;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .product-page {
    padding: 32px clamp(60px, 8.5vw, 132px) 36px;
  }

  .product-main {
    display: grid;
    grid-template-columns: minmax(480px, 1.05fr) minmax(420px, 0.95fr);
    align-items: start;
    gap: 26px;
    grid-template-areas:
      "media details"
      "benefits details";
  }

  .media-gallery {
    box-shadow: none;
    grid-area: media;
  }

  .mobile-carousel {
    display: none;
  }

  .desktop-gallery {
    display: grid;
    padding: 3%;

  }

  .product-details {
    position: sticky;
    top: 82px;
    grid-area: details;
  }

  .benefits {
    grid-area: benefits;
    margin-top: -10px;
  }

  .product-header {
    max-width: 100%;
  }

  .actions {
    display: none;
  }

  .primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .description-card {
    padding: 18px 20px 20px;
  }

  .description--desktop {
    display: block;
    grid-area: description;
  }

  .description--mobile {
    display: none;
  }

  .extended-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.size-guide {
  position: relative;
}

.size-guide__link {
  color: var(--navy);
  text-decoration: underline;
}

.size-guide__preview {
  display: none;
  position: absolute;
  z-index: 5;
  inset-block-start: 100%;
  inset-inline-end: 0;
  width: min(20rem, 45vw);
}

@media (hover: hover) and (pointer: fine) {
  .size-guide:not([data-preview-dismissed]):hover .size-guide__preview {
    display: block;
  }
}

.size-guide__preview img {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
}

.size-guide-dialog {
  box-sizing: border-box;
  width: max-content;
  max-width: min(60rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--navy);
}

.size-guide-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}

.size-guide-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.size-guide-dialog__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.size-guide-dialog__header button {
  padding: .5rem .75rem;
  cursor: pointer;
}

.size-guide-dialog img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
