.petal-demo .stage {touch-action:pan-y;}
.product-info {width:min(100%, 1096px); margin-inline:auto; padding-inline:18px;}
#slide-dots {
  position:absolute; z-index:2; bottom:8px; left:50%; transform:translateX(-50%);
  display:flex; align-items:center; border-radius:22px; background:rgba(251,250,248,.32);
}
#slide-dots:empty {display:none;}
#slide-dots button {
  display:grid; place-items:center; width:30px; height:30px;
  border:0; padding:0; background:transparent; border-radius:50%; cursor:pointer;
}
#slide-dots button::before {content:''; box-sizing:border-box; width:8px; height:8px; border:1px solid rgba(69,56,50,.58); border-radius:50%; background:rgba(255,255,255,.28);}
#slide-dots button[aria-pressed="true"]::before {background:rgba(48,38,34,.82); border-color:rgba(48,38,34,.82);}
.color-options {padding-top:18px;}
.field-label {margin:0 0 6px; padding:0; font:700 .75rem/1.45 Arial,sans-serif; color:#44312d;}
.field-label strong {margin-left:6px; color:#705d55; font-weight:400;}
.color-options #swatches {display:flex; flex-wrap:wrap; margin-left:-7px;}
.catalog-info {padding-top:12px;}
.voucher-note {
  display:grid; place-items:center; margin:0;
  min-height:calc(clamp(136px,20svh,184px) + 16px + env(safe-area-inset-bottom,0px));
  color:#62534e; font-size:.8125rem; line-height:1.45; text-align:center;
}
.size-options {border:0; min-inline-size:0; padding:0; margin:0 0 22px;}
.size-choices {display:flex; flex-wrap:wrap; gap:6px;}
.size-choices label {position:relative; cursor:pointer;}
.size-choices input {position:absolute; opacity:0; inset:0; margin:0; width:100%; height:100%; cursor:pointer;}
.size-choices span {display:grid; place-items:center; min-width:44px; min-height:44px; padding:8px 12px; border:1px solid #d7ceca; border-radius:5px; font-size:.9375rem;}
.size-choices input:checked + span {background:#513b36; color:white; border-color:#513b36; font-weight:700;}
.size-choices input:checked + span::after {content:''; position:absolute; top:4px; right:5px; width:4px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg);}
.size-choices input:focus-visible + span {outline:2px solid #713c38; outline-offset:2px;}
.fit-measurements {display:grid; grid-template-columns:1fr 1.35fr 1fr; gap:10px; max-width:470px; margin:12px 0 0; padding:10px 12px; background:#f2eeea; border-radius:6px;}
.fit-measurements div {display:flex; flex-direction:column; justify-content:space-between; gap:2px;}
.fit-measurements dt {font-size:.75rem; line-height:1.3; color:#62534e;}
.fit-measurements dd {margin:0; font-weight:650; font-variant-numeric:tabular-nums;}
.catalog-description {font:400 .875rem/1.75 Arial,sans-serif; letter-spacing:.005em; color:#62534e; margin:0 0 21px; max-width:560px;}
.catalog-info details {border-top:1px solid #ded8d5;}
.catalog-info details:last-of-type {border-bottom:1px solid #ded8d5;}
.catalog-info summary {min-height:50px; padding:12px 10px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; color:#6b4544; font-size:1rem; font-weight:700;}
.catalog-info summary::-webkit-details-marker {display:none;}
.catalog-info summary::after {content:''; width:7px; height:7px; margin-right:5px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg);}
.catalog-info details[open] summary::after {transform:rotate(225deg);}
.specs {font-size:.875rem; color:#62534e; margin:0 0 13px;}
.specs div {display:flex; justify-content:space-between; gap:12px; padding:5px 0;}
.specs dd {margin:0; font-weight:600;}

:root {scroll-padding-bottom:calc(52px + env(safe-area-inset-bottom,0px));}
.purchase-bar {position:fixed; z-index:100; inset-inline:0; bottom:0;}
.purchase-bar[inert] {visibility:hidden;}
.purchase-bar .shop {
  display:flex; align-items:center; justify-content:center;
  width:100%; min-width:0; min-height:calc(52px + env(safe-area-inset-bottom,0px)); margin:0;
  padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  border:0; border-radius:0; background:#6e5049; color:white; font-size:1rem; font-weight:700; text-align:center;
}
.purchase-bar .shop:focus-visible {outline:2px solid white; outline-offset:-4px;}
@media (min-width:355px) and (max-width:440px) {
  .size-choices {display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px;}
  .size-choices span {min-width:0; padding-inline:4px;}
}

#preview-status {
  position:absolute; z-index:4; left:50%; top:48%; transform:translate(-50%,-50%);
  margin:0; background:#fbfaf8; border:1px solid #d7ceca; border-radius:8px;
  padding:10px 14px; color:#44312d; font-size:.8rem; max-width:85%; width:max-content; text-align:center;
}
.fit-measurements:empty {display:none}
.size-choices {grid-template-columns:none}
@media (min-width:355px) and (max-width:440px) {
  .size-choices {grid-template-columns:repeat(5,minmax(0,1fr))}
}

.review-note {margin:2px 0 0;color:#62534e;font:400 .75rem/1.4 Arial,sans-serif;}
.petal-demo .gallery:not(.framed) .figure.source-photo img,
.petal-demo .gallery.framed .figure img {object-fit:contain;}

/* Keep a real title row on Android rather than overlaying the photo grid. */
.petal-demo .gallery {display:grid;grid-template:minmax(68px,auto) minmax(0,1fr) / minmax(0,1fr);}
.petal-demo .gallery .product-title {grid-area:1/1;position:relative;z-index:3;box-sizing:border-box;width:100%;padding-bottom:10px;color:#30251f}
.petal-demo .gallery .product-title p {color:#705d55}
.petal-demo .gallery #stage {grid-area:2 / 1;display:block;min-height:0;overflow:hidden}
.petal-demo .gallery .figure-plane {position:absolute;inset:0;margin:0}

@media (max-width:600px) {
  .petal-demo .gallery {height:clamp(330px,min(calc(100svh - 155px),calc(128vw + 72px)),900px)}
}

/* Native 1086 × 1448 image includes the transparent side margins that were
   cut from the old 496 × 768 render. Preserve the Petal card geometry. */
.petal-demo .gallery:not(.framed) .figure > img {
  width:116.129%; max-width:none; margin-inline:-8.0645%;
}
