.product-modal {
  --modal-ink: #292922;
  --modal-sage: #4c5c4b;
  --modal-paper: #f7f5f0;
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  height: auto;
  max-height: min(780px, calc(100dvh - 32px));
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(76 92 75 / 10%);
  border-radius: 28px;
  transform: translate(-50%, -50%);
  background: var(--modal-paper);
  color: var(--modal-ink);
  box-shadow: 0 28px 100px rgb(29 34 26 / 28%);
  font-family: var(--sans, 'Onest', Arial, sans-serif);
}
.product-modal:not([open]) { display: none; }
.product-modal[open] { display: block; animation: product-modal-in .24s ease both; }
.product-modal::backdrop { background: rgb(34 38 30 / 55%); backdrop-filter: blur(5px); }
@keyframes product-modal-in { from { opacity: 0; } to { opacity: 1; } }
.product-modal__toolbar { position: sticky; z-index: 5; top: 0; height: 0; pointer-events: none; }
.product-modal__close-form { position: absolute; inset: 0; pointer-events: none; }
.product-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(76 92 75 / 12%);
  border-radius: 50%;
  background: rgb(255 254 250 / 94%);
  color: #354838;
  font: 300 28px/1 var(--sans, Arial, sans-serif);
  pointer-events: auto;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.product-modal__close:hover { transform: rotate(90deg); background: #e9ecdf; }
.product-modal__handle {
  position: absolute;
  top: 4px;
  left: 50%;
  display: grid;
  width: 76px;
  height: 24px;
  padding: 0;
  place-items: center;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.product-modal__handle span { width: 42px; height: 6px; border-radius: 999px; background: #c9cdc6; transition: width .2s, height .2s, background .2s; }
.product-modal__handle:hover span, .product-modal__handle:focus-visible span { width: 62px; height: 8px; background: #aeb6a8; }
.product-modal.is-dragging, .product-modal.is-dragging * { cursor: grabbing !important; user-select: none; }
.product-modal__layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); min-height: 620px; }
.product-modal__gallery { display: flex; min-width: 0; flex-direction: column; padding: 30px 22px 19px; background: #eeece4; }
.product-modal__stage { position: relative; flex: 1 1 auto; min-height: 380px; overflow: hidden; border-radius: 20px; background: #e8ecdf; touch-action: pan-y; }
.product-modal__stage::before { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgb(255 254 250 / 75%), transparent 63%); content: ''; pointer-events: none; }
.product-modal__stage::after { position: absolute; top: 50%; left: 50%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid rgb(76 92 75 / 12%); border-radius: 50%; box-shadow: 0 0 0 24px rgb(76 92 75 / 4%), 0 0 0 48px rgb(76 92 75 / 3%); content: ''; pointer-events: none; }
.product-modal__stage img { position: absolute; z-index: 1; inset: 6% 5%; width: 90%; height: 88%; object-fit: contain; filter: drop-shadow(0 18px 18px rgb(54 52 41 / 12%)); transition: opacity .16s, transform .3s; pointer-events: none; }
.product-modal__stage.is-changing img { opacity: .25; transform: scale(.98); }
.product-modal__kicker { position: absolute; z-index: 2; top: 20px; left: 22px; color: #6d7d68; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.product-modal__arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; transform: translateY(-50%); border: 1px solid rgb(76 92 75 / 10%); border-radius: 50%; background: rgb(255 254 250 / 88%); color: #53664f; font: 20px/1 var(--sans, Arial, sans-serif); cursor: pointer; }
.product-modal__arrow--prev { left: 10px; }
.product-modal__arrow--next { right: 10px; }
.product-modal__arrow[hidden] { display: none; }
.product-modal__count { position: absolute; z-index: 2; right: 20px; bottom: 17px; color: #6d7867; font-size: 11px; letter-spacing: .08em; }
.product-modal__thumbs { display: flex; flex: 0 0 auto; gap: 9px; padding: 12px 1px 2px; overflow-x: auto; overflow-y: hidden; }
.product-modal__thumb { flex: 0 0 62px; width: 62px; height: 60px; padding: 4px; border: 1px solid transparent; border-radius: 13px; background: rgb(255 254 250 / 62%); cursor: pointer; }
.product-modal__thumb.is-active { border-color: #829374; background: #fffefa; }
.product-modal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-modal__caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; color: #788174; font-size: 10px; }
.product-modal__details { display: flex; min-width: 0; flex-direction: column; padding: 40px 42px 22px; background: #fffefa; }
.product-modal__topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 28px; color: #8b9084; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.product-modal__stock { display: inline-flex; align-items: center; gap: 7px; color: #536a51; letter-spacing: 0; }
.product-modal__stock i { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #8ab267; }
.product-modal__eyebrow { margin: 30px 0 8px; color: #8a9a7b; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.product-modal__details h2 { margin: 0; color: #354838; font-family: var(--heading, Georgia, serif); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-modal__lead { margin: 17px 0 18px; color: #788174; font-size: 13px; line-height: 1.7; }
.product-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.product-modal__chips span { padding: 8px 11px; border: 1px solid #e7e9df; border-radius: 999px; background: #f7f7f2; color: #62735d; font-size: 10px; }
.product-modal__divider { flex-shrink: 0; height: 1px; margin: 22px 0 17px; background: #e9e9e1; }
.product-modal__facts { display: grid; gap: 15px; }
.product-modal__facts > div { display: flex; align-items: center; gap: 12px; }
.product-modal__fact-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border: 1px solid #e3e7d8; border-radius: 13px; background: #f0f2e8; color: #728565; font-size: 17px; }
.product-modal__facts strong, .product-modal__facts small { display: block; }
.product-modal__facts strong { color: #4a5947; font-size: 11px; }
.product-modal__facts small { margin-top: 4px; color: #92958b; font-size: 10px; line-height: 1.45; }
.product-modal__offer { display: grid; gap: 5px; margin-top: 15px; padding: 12px 15px; border-radius: 14px; background: #f4f3ed; }
.product-modal__offer span { color: #8c9285; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.product-modal__offer strong { color: #4d5d49; font-size: 11px; font-weight: 600; }
.product-modal__cta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: #354838; box-shadow: 0 8px 20px rgb(57 78 52 / 14%); color: #fffefa; font-size: 12px; font-weight: 600; text-decoration: none; }
.product-modal__note { margin: 10px 3px 0; color: #989b90; font-size: 9px; line-height: 1.5; text-align: center; }
.product-modal__related { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; color: #a0a195; font-size: 9px; }
.product-modal__related a { display: inline-flex; align-items: center; min-height: 44px; color: #62765b; font-size: 10px; text-decoration: none; }
.product-modal__more { min-width: 0; padding: 18px 22px; border-top: 1px solid #eeece5; background: #fffefa; }
.product-modal__more-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.product-modal__more-heading > div:first-child > span { color: #969b8d; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.product-modal__more-heading h3 { margin: 4px 0 0; color: #354838; font: 24px/1.15 var(--heading, Georgia, serif); }
.product-modal__more-controls { display: flex; flex-shrink: 0; gap: 6px; }
.product-modal__more-controls button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgb(76 92 75 / 15%); border-radius: 50%; background: #fffefa; color: #586b54; font: 20px/1 var(--sans, Arial, sans-serif); cursor: pointer; }
.product-modal__more-controls button:disabled { opacity: .35; cursor: default; }
.product-modal__more-viewport { width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; }
.product-modal__more-track { display: flex; width: max-content; gap: 10px; padding: 2px 1px 8px; }
.product-modal__more-card { position: relative; display: flex; flex: 0 0 142px; width: 142px; min-width: 0; flex-direction: column; padding: 8px; border: 1px solid transparent; border-radius: 14px; background: var(--related-tone, #e9ecdf); color: #3c503e; text-align: left; cursor: pointer; }
.product-modal__more-card img { width: 100%; height: 80px; object-fit: contain; }
.product-modal__more-card strong { display: -webkit-box; overflow: hidden; min-height: 32px; margin: 6px 2px 4px; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-modal__more-card small { display: block; margin: auto 2px 3px; color: #7e8978; font-size: 10px; }
.product-modal__more-card-arrow { position: absolute; top: 7px; right: 7px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: rgb(255 254 250 / 88%); color: #536950; }
.product-modal__cta .icon-arrow { flex: 0 0 20px; width: 20px; height: 20px; }
.product-modal__related .icon-arrow { width: 14px; height: 14px; margin-left: 5px; }
.product-modal__more-card-arrow .icon-arrow { width: 14px; height: 14px; }
.product-modal__more-empty { max-width: 260px; margin: 0; color: #899182; font-size: 13px; }
.product-modal :focus-visible { outline: 2px solid #6d835d; outline-offset: 3px; }
.product-modal, .product-modal__thumbs, .product-modal__more-viewport { scrollbar-width: none; -ms-overflow-style: none; }
.product-modal::-webkit-scrollbar, .product-modal__thumbs::-webkit-scrollbar, .product-modal__more-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }

@media (max-width: 900px) {
  .product-modal { width: min(560px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); border-radius: 24px; }
  .product-modal__toolbar { height: 48px; background: #eeece4; }
  .product-modal__close { top: 3px; right: 8px; }
  .product-modal__handle { top: 10px; cursor: default; }
  .product-modal__handle:disabled { opacity: 1; }
  .product-modal__layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .product-modal__gallery { padding: 0 12px 16px; }
  .product-modal__stage { flex: none; width: 100%; min-height: 0; aspect-ratio: 1.1; border-radius: 18px; }
  .product-modal__stage img { inset: 10% 7%; width: 86%; height: 80%; }
  .product-modal__kicker { top: 15px; left: 16px; font-size: 9px; }
  .product-modal__count { bottom: 12px; right: 14px; font-size: 11px; }
  .product-modal__thumbs { gap: 8px; padding-top: 10px; }
  .product-modal__thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .product-modal__caption { display: none; }
  .product-modal__details { padding: 24px 20px 12px; }
  .product-modal__topline { align-items: flex-start; gap: 10px; padding: 0; font-size: 9px; line-height: 1.5; }
  .product-modal__topline > [data-modal-category] { max-width: 44%; text-align: right; }
  .product-modal__eyebrow { margin: 22px 0 10px; font-size: 9px; line-height: 1.5; }
  .product-modal__details h2 { font-size: clamp(32px, 8vw, 42px); line-height: 1.1; }
  .product-modal__lead { margin: 14px 0 18px; font-size: 14px; line-height: 1.6; }
  .product-modal__chips { gap: 6px; }
  .product-modal__chips span { padding: 8px 10px; font-size: 11px; }
  .product-modal__divider { margin: 22px 0 20px; }
  .product-modal__facts { gap: 18px; }
  .product-modal__fact-icon { flex-basis: 42px; height: 42px; font-size: 18px; }
  .product-modal__facts strong { font-size: 14px; }
  .product-modal__facts small { font-size: 12px; line-height: 1.5; }
  .product-modal__offer { margin-top: 22px; padding: 16px; }
  .product-modal__offer span { font-size: 10px; }
  .product-modal__offer strong { font-size: 13px; line-height: 1.5; }
  .product-modal__cta { min-height: 56px; margin-top: 16px; padding: 16px 18px; font-size: 15px; }
  .product-modal__note { margin-top: 12px; font-size: 11px; }
  .product-modal__related { flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 8px; font-size: 11px; }
  .product-modal__related a { font-size: 13px; }
  .product-modal__more { padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
  .product-modal__more-heading h3 { font-size: 25px; }
  .product-modal__more-heading > div:first-child > span { font-size: 9px; }
  .product-modal__more-card { flex-basis: 152px; width: 152px; padding: 10px; }
  .product-modal__more-card img { height: 100px; }
  .product-modal__more-card strong { min-height: 36px; font-size: 13px; }
  .product-modal__more-card small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-modal, .product-modal * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
