.product-info { min-width: 0; }
.size-choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 20px; }
.size-choice-row .size-options { min-width: 0; margin: 0; }
.detail-controls > .size-guide-button { margin-bottom: 20px; }
.size-guide-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #d9c6b7;
  border-radius: 4px;
  color: var(--brown);
  font-size: .75rem;
  font-weight: 600;
}
.size-guide-button:hover { background: #f1e8de; }
.size-guide-button .icon { width: 17px; height: 17px; }
body:has(:is(.size-guide-dialog,.review-photo-dialog)[open]) { overflow: hidden; }
.size-guide-dialog {
  width: min(760px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 64px #211d1940;
}
.size-guide-dialog[open] { display: flex; flex-direction: column; }
.size-guide-dialog::backdrop { background: #211d19a6; }
.size-guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px clamp(14px, 3vw, 24px);
  border-bottom: 1px solid var(--line);
}
.size-guide-heading h2 { font: 600 1.5rem/1.2 var(--serif); }
.size-guide-heading button { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
.size-guide-content { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.size-guide-content img { width: 100%; height: auto; }
.size-guide-content p { padding: 20px; font-size: .9rem; }
.size-guide-dialog [hidden] { display: none; }
.product-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 0; margin: -5px 0 23px; font-size: .82rem; color: var(--muted); text-align: left; }
.product-rating > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.product-rating strong { color: var(--ink); font-size: .85rem; }
.rating-stars { display: inline-block; position: relative; flex: none; width: max-content; white-space: nowrap; line-height: 1.4; letter-spacing: .09em; color: #d4ccc0; font-size: 1rem; }
.rating-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #865b36; }
.product-pricing { margin: 0 0 26px; }
.price-original { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.price-original:empty { display: none; }
.price-original del { margin-left: 3px; }
.price-off { padding: 3px 8px; background: #ece8e0; border-radius: 3px; color: #62584b; font-size: .7rem; font-weight: 600; letter-spacing: .03em; }
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; margin: 4px 0 6px; }
.product-info .product-pricing .detail-price { display: block; margin: 0; color: #75442e; font-size: clamp(2rem,3vw,2.8rem); letter-spacing: -.04em; line-height: 1.25; }
.product-pricing .detail-price strong { font-weight: 700; }
.product-pricing .detail-price small { display: block; margin-bottom: 3px; font-size: .8rem; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.price-main > span { font-size: .92rem; color: var(--muted); }
.price-installment { font-size: .98rem; line-height: 1.6; }
.price-installment strong { font-weight: 600; }
.price-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.price-savings, .price-low-stock { padding: 4px 9px; border-radius: 3px; font-size: .77rem; }
.price-savings { background: #edf2e8; color: #42613a; }
.price-savings strong { font-weight: 600; }
.price-low-stock { background: #f3e4d9; color: #713c28; font-weight: 600; }
.price-payment-details { margin-top: 7px; font-size: .85rem; }
.price-payment-details > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.price-payment-details > summary::-webkit-details-marker { display: none; }
.price-payment-details > summary .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.price-payment-details[open] > summary .icon { transform: rotate(-90deg); }
.price-payment-options { margin-top: 7px; padding: 12px 14px; background: #f7f3ed; border: 1px solid var(--line); border-radius: 6px; }
.price-payment-method { font-weight: 650; }
.price-payment-total { margin: 2px 0 8px; color: var(--muted); }
.price-payment-total strong { color: var(--ink); }
.price-payment-list, .price-payment-alternatives { list-style: none; margin: 0; padding: 0; }
.price-payment-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; }
.price-payment-list li { padding: 5px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.price-payment-list li strong { font-weight: 600; }
.price-payment-note { margin-top: 7px; color: var(--muted); line-height: 1.5; font-size: .78rem; }
.price-payment-alternatives { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 550; }
.price-payment-card + .price-payment-alternatives { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.price-selection-note { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.quick-product .product-pricing .detail-price { font-size: 2rem; }
.product-reviews { min-width: 0; border-top: 1px solid var(--line); padding: 22px 0 0; scroll-margin-top: 25px; }
.product-reviews-heading { margin-bottom: 22px; }
.product-reviews-heading h2 { font: 500 clamp(1.65rem,2.5vw,2.2rem)/1.1 var(--serif); }
.product-review-overview { display: grid; grid-template-columns: minmax(86px,.55fr) minmax(0,1fr); align-items: center; gap: clamp(12px,2vw,25px); padding: 0 0 24px; }
.product-review-overview .review-distribution { min-width: 0; }
.product-review-average { display: flex; flex-direction: column; gap: 5px; }
.product-review-average > strong { font-size: 3rem; line-height: 1.2; letter-spacing: -.06em; font-weight: 500; }
.product-review-average small { font-size: .9rem; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.product-review-average > span:last-child { font-size: .8rem; color: var(--muted); }
.review-distribution-row { display: grid; grid-template-columns: 32px 1fr 23px; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); margin: 5px 0; }
.review-distribution-row > span:last-child { text-align: right; }
.review-distribution-row meter { width: 100%; height: 9px; background: #eee8df; border: 0; border-radius: 8px; }
.review-distribution-row meter::-webkit-meter-bar { background: #eee8df; border: 0; border-radius: 8px; }
.review-distribution-row meter::-webkit-meter-optimum-value { background: #865b36; }
.review-distribution-row meter::-moz-meter-bar { background: #865b36; }
.product-review-list { display: grid; gap: 14px; }
.product-review-card { display: flex; overflow: hidden; border: 1px solid #e5dcd0; border-radius: 16px; background: #fbf7f1; overflow-wrap: anywhere; }
.product-review-card.has-review-photo { display: grid; grid-template-columns: minmax(76px,36.5%) minmax(0,1fr); min-height: clamp(200px,20vw,275px); }
.review-photo { display: block; position: relative; width: 100%; min-height: 138px; padding: 0; overflow: hidden; background: #efe7dd; }
.review-photo img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.review-photo:focus-visible { outline-offset: -4px; z-index: 1; }
.review-photo-dialog {
  position: fixed; inset: 0; margin: auto; width: min(420px,calc(100% - 32px));
  max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: 14px; overflow: auto; background: var(--paper); color: var(--ink);
  box-shadow: 0 16px 48px #211d1940;
}
.review-photo-dialog::backdrop { background: #211d19a6; }
.review-photo-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 10px 4px 16px; border-bottom: 1px solid var(--line); }
.review-photo-dialog h2 { font: 600 1.125rem/1.2 var(--serif); }
.review-photo-dialog .icon-button { flex: none; font-size: 1.5rem; line-height: 1; }
.review-photo-dialog > img { display: block; width: 100%; height: auto; max-height: 68dvh; object-fit: contain; background: #f6f0e8; }
.review-photo-dialog > p { padding: 16px; font-size: .875rem; }
.review-photo-dialog [hidden] { display: none; }
.product-review-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: clamp(12px,1.65vw,24px); }
.product-review-card h3 { margin-top: 9px; font: 600 .88rem/1.4 var(--sans); }
.product-review-copy > blockquote { margin: 10px 0 16px; font: 500 clamp(1rem,1.4vw,1.25rem)/1.55 var(--serif); white-space: pre-wrap; }
.product-review-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid #ebe3db; }
.product-review-meta strong { font-size: .82rem; font-weight: 600; }
.product-review-meta time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.product-review-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px 12px; margin-top: 14px; font-size: .8rem; }
.product-review-pagination button { min-height: 36px; padding: 6px 10px; border: 1px solid #e5dcd0; border-radius: 5px; }
.product-review-pagination button:not(:disabled):hover { background: #f2ede5; }
.product-review-pagination button:disabled { cursor: default; opacity: .45; }
.product-review-empty { padding: 15px 0 35px; }
.product-review-empty p { font-size: .9rem; color: var(--muted); line-height: 1.8; max-width: 420px; }
.review-text-button { padding: 10px 0; text-decoration: underline; font-size: .83rem; text-underline-offset: 5px; }
.review-rating-picker { border: 0; padding: 0; margin: 0 0 22px; }
.review-rating-picker legend { font-size: .8rem; margin-bottom: 7px; }
.review-rating-picker > div { display: flex; width: max-content; gap: 3px; }
.review-rating-picker label { position: relative; display: grid; place-items: center; min-width: 40px; min-height: 42px; cursor: pointer; }
.review-rating-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.review-rating-picker label > span { font-size: 2rem; line-height: 1; color: #c6bbae; }
.review-rating-picker label:has(input:checked) > span, .review-rating-picker label:has(~ label input:checked) > span { color: #865b36; }
.review-rating-picker label:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
.review-rating-picker label:hover > span { color: #865b36; }
.review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.review-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 17px; min-width: 0; }
.review-field label { font-size: .8rem; }
.review-field label > span { color: var(--muted); font-weight: 400; }
.review-field input, .review-field textarea { width: 100%; background: #fffefa; font-size: .9rem; border-radius: 2px; padding: 11px 12px; }
.review-field input[type="file"] { padding: 7px; }
.review-field input::file-selector-button { border: 0; border-radius: 3px; background: #eee8df; color: var(--ink); padding: 8px 10px; margin-inline-end: 8px; cursor: pointer; }
.review-field textarea { resize: vertical; }
.review-field small { color: var(--muted); font-size: .7rem; }
.review-field [data-review-counter] { text-align: right; }
.review-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .75rem; line-height: 1.6; cursor: pointer; }
.review-consent input { width: 17px; height: 17px; margin: 3px 0 0; flex: none; accent-color: var(--brown); }
.review-moderation-note { color: var(--muted); font-size: .72rem; margin: 12px 0 20px; }
[data-review-form-status]:empty { display: none; }
.review-error { font-size: .83rem; line-height: 1.65; padding: 12px; margin: 15px 0; border-radius: 3px; }
.review-error { background: #f9e7df; color: #8a3428; }
@media (max-width: 900px) {
  .review-form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 650px) {
  .product-rating { margin: -6px 0 20px; }
  .product-info .product-pricing .detail-price { font-size: 2.2rem; }
  .review-field input, .review-field textarea { font-size: 16px; }
}
@media (min-width: 601px) {
  .product-detail:has(> :is(.product-video,.product-reviews:not([hidden]))) { grid-template-rows: min-content 1fr; row-gap: 24px; }
  .product-detail:has(> :is(.product-video,.product-reviews:not([hidden]))) > .product-info { grid-area: 1 / 2 / span 2; align-self: start; }
  .product-detail > :is(.product-video,.product-reviews) { grid-area: 2 / 1; align-self: start; }
  .product-detail:has(> .product-video):has(> .product-reviews:not([hidden])) { grid-template-rows: min-content min-content 1fr; }
  .product-detail:has(> .product-video):has(> .product-reviews:not([hidden])) > .product-info { grid-row-end: span 3; }
  .product-detail:has(> .product-video) > .product-reviews { grid-row-start: 3; }
}

.product-related { border-top: 1px solid var(--line); padding: clamp(28px,5vw,52px) 0 clamp(48px,7vw,80px); }
.product-related h2 { font: 500 clamp(1.8rem,3vw,2.8rem)/1.1 var(--serif); margin: 0 0 clamp(18px,3vw,30px); }

.card-rating { margin: 0 0 7px; font-size: .76rem; line-height: 1.4; color: #865b36; }
.card-rating strong { font-weight: 600; }
.product-detail .product-gallery { position: relative; min-width: 0; }
.product-detail .product-info h1 { overflow-wrap: anywhere; }
.product-detail > .product-video { min-width: 0; margin-top: 0; }
.product-shipping { max-width: 510px; margin-top: 24px; }
.product-shipping h2 { margin: 0 0 10px; font: 650 .95rem/1.35 var(--sans); }
.product-shipping-fields { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.product-shipping-fields input { width: 100%; min-width: 0; min-height: 46px; border-radius: 4px; font-size: 1rem; }
.product-shipping-fields input[aria-invalid="true"] { border-color: #a83e2b; }
.product-shipping-fields .button { min-height: 46px; padding: 10px clamp(16px,3vw,30px); border-radius: 4px; }
.product-shipping-lookup { display: inline-block; margin-top: 8px; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.product-shipping-result { font-size: .875rem; overflow-wrap: anywhere; }
.product-shipping-result:not(:empty) { margin-top: 12px; }
.product-shipping-result ul { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.product-shipping-result li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.product-shipping-result li + li { border-top: 1px solid var(--line); }
.product-shipping-result strong { flex-shrink: 0; }
.product-shipping-result small { display: block; margin-top: 3px; color: var(--muted); }
.product-shipping-result p { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.product-share {
  position: absolute; z-index: 1; inset-block-start: clamp(10px,2vw,18px); inset-inline-end: clamp(10px,2vw,18px);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid #e9e0d6; background: #fffefa; color: #4b3d31; box-shadow: 0 2px 8px #211d191c;
}
.product-share:hover { background: #f4ede5; color: var(--ink); }
.product-share .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.share-link { display: grid; gap: 9px; font-size: .85rem; }

.purchases-page { max-width: 940px; padding-bottom: clamp(40px,7vw,90px); }
.purchase-access, .purchase-order { background: #fffefa; border: 1px solid var(--line); }
.purchase-access { padding: 12px clamp(14px,3vw,22px); margin-bottom: 22px; }
.purchase-access summary { padding: 8px 0; cursor: pointer; font-size: .9rem; font-weight: 550; }
aside.purchase-access { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; }
.purchase-access-content { max-width: 540px; padding: 10px 0 2px; }
.purchase-access label { display: block; margin-bottom: 7px; font-size: .84rem; }
.purchase-input-row { display: flex; align-items: stretch; gap: 10px; }
.purchase-input-row input { min-width: 0; flex: 1; }
.purchase-input-row button { white-space: nowrap; }
.purchase-message { color: var(--ink); background: #f3efe7; font-size: .85rem; padding: 12px 14px; margin: 10px 0; }
.purchase-message:empty { display: none; }
.purchase-orders { display: grid; gap: 16px; }
.purchase-order > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px clamp(14px,3vw,24px); background: #f3efe7; }
.purchase-order h2 { font: 500 1.35rem/1.2 var(--serif); margin: 0 0 5px; }
.purchase-order header span, .purchase-item-name span, .purchase-review-status { font-size: .78rem; color: var(--muted); }
.purchase-status { border: 1px solid var(--line); padding: 5px 9px; border-radius: 3px; }
.purchase-order ul { list-style: none; padding: 0 clamp(14px,3vw,24px); margin: 0; }
.purchase-item + .purchase-item { border-top: 1px solid var(--line); }
.purchase-item { padding: 14px 0; }
.purchase-item-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.purchase-photo { width: 54px; height: 62px; flex: none; }
.purchase-photo img { width: 100%; height: 100%; object-fit: cover; }
.purchase-item-name { display: grid; gap: 4px; flex: 1 1 144px; min-width: 0; font-size: .9rem; overflow-wrap: anywhere; }
.purchase-item-name a:hover { text-decoration: underline; }
.purchase-review-button, .purchase-pagination .button { min-height: 40px; padding: 8px 14px; font-size: .8rem; }
.purchase-review-form { max-width: 620px; margin: 14px 0 4px; padding: clamp(12px,3vw,20px); background: #f5f2ec; }
.purchase-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; font-size: .82rem; }
.purchase-empty { padding: 20px 0; color: var(--muted); }
.purchases-page .small-note { margin: 12px 0; }

@media (max-width: 1000px) { .header-tools .purchase-link-desktop { display: none; } }
@media (max-width: 520px) {
  .purchase-input-row { flex-wrap: wrap; }
  .purchase-input-row input { flex-basis: 100%; font-size: 16px; }
}

.kit-title-discount { width: fit-content; margin: -7px 0 12px; padding: 4px 10px; border-radius: 4px; background: #f0e6da; color: #70472f; font: 750 .83rem/1.4 var(--sans); }
.kit-purchase { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.kit-heading { margin-bottom: 7px; }
.kit-purchase h2 { font: 600 clamp(1.65rem,3vw,2.15rem)/1.12 var(--serif); }
.kit-discount-label { margin-top: 4px; color: var(--brown); font: 650 .86rem/1.4 var(--sans); }
.kit-picker-list { padding: 0; margin: 0; list-style: none; }
.kit-picker-list > li { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kit-product-label { display: grid; gap: 4px; color: #595249; font-size: .78rem; font-weight: 650; }
.kit-product-label select { min-width: 0; width: 100%; min-height: 44px; padding: 7px 9px; border: 1px solid #cfc3b5; border-radius: 6px; background: #fdfbf8; color: var(--ink); font-size: 1rem; font-weight: 400; text-overflow: ellipsis; }
.kit-product-label + [data-kit-options]:not([hidden]) { margin-top: 12px; }
.kit-part-row { display: grid; grid-template-columns: clamp(58px,17vw,84px) minmax(0,1fr); align-items: start; gap: clamp(10px,3vw,16px); }
.kit-part-photo { aspect-ratio: 3 / 4; border-radius: 6px; }
.kit-part-photo img { object-position: 50% 15%; }
.kit-part-name { display: block; font-size: .92rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.kit-part-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; margin-top: 2px; color: #595249; font-size: .81rem; }
.kit-part-meta .size-guide-button { padding: 3px 0; min-height: 30px; border: none; background: transparent; color: var(--brown); font-size: .76rem; text-decoration: underline; text-underline-offset: 2px; }
.kit-part-meta .size-guide-button .icon { display: none; }
.kit-part-selection { white-space: normal; }
.kit-options { min-width: 0; margin: 6px 0 0; padding: 0; border: 0; }
.kit-options legend { padding: 0; margin: 0 0 4px; color: #595249; font-size: .75rem; font-weight: 650; }
.kit-option-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.kit-option { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; max-width: 100%; padding: 5px 10px; border: 1px solid #cfc3b5; border-radius: 999px; background: #fdfbf8; font-size: .8rem; font-weight: 650; line-height: 1.15; overflow-wrap: anywhere; }
.kit-option svg { width: 16px; height: 16px; flex: 0 0 auto; }
.kit-option:hover:not(:disabled) { border-color: var(--brown); }
.kit-option[aria-pressed="true"] { border-color: #211d19; background: #211d19; color: #fff; }
.kit-option:disabled { cursor: not-allowed; text-decoration: line-through; }
.kit-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: #595249; font-size: .78rem; }
.kit-progress progress { flex: 1; min-width: 0; height: 5px; appearance: none; border: 0; border-radius: 999px; background: #e9e1d8; color: var(--brown); }
.kit-progress progress::-webkit-progress-bar { background: #e9e1d8; border-radius: 999px; }
.kit-progress progress::-webkit-progress-value { background: var(--brown); border-radius: 999px; }
.kit-progress progress::-moz-progress-bar { background: var(--brown); border-radius: 999px; }
.kit-price-summary { background: #f3eee7; padding: 12px 14px; margin: 14px 0; border-radius: 6px; color: var(--ink); font-weight: 600; }
.kit-price-summary dl { margin: 0; }
.kit-price-summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .88rem; }
.kit-price-summary dd { margin: 0; white-space: nowrap; }
.kit-price-summary dl .kit-total { border-top: 1px solid #d8cfc1; padding-top: 7px; margin-top: 5px; font-size: 1rem; }
.kit-feedback:empty { margin: 0; }
.kit-feedback:not(:empty) { color: #782e21; margin-bottom: 9px; font-size: .86rem; }
.kit-purchase button:disabled { cursor: not-allowed; }
.kit-unavailable { margin-top: 16px; color: var(--muted); }
