/* Purchase configuration stays within the approved miAmi visual system. */
body.shop-dialog-open{overflow:hidden}
dialog.shop-dialog{width:min(1060px,calc(100% - 40px));max-height:calc(100svh - 40px);padding:0;margin:auto;border:0;border-radius:16px;background:var(--cream);color:var(--ink);overflow:hidden;box-shadow:0 24px 80px -24px #3d291f80}
dialog.shop-dialog[open]{display:flex;flex-direction:column;animation:none}
.shop-dialog::backdrop{background:rgba(43,29,20,.5);backdrop-filter:blur(6px)}
.shop-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex:none;padding:24px 30px 20px;border-bottom:1px solid #3d291f26}
.shop-header h2{font-size:36px;line-height:1.12;letter-spacing:-.03em;margin:0 0 8px}
.shop-header p{font-size:15px;line-height:1.5;color:var(--muted);max-width:none}
.shop-close{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px;border-radius:8px;background:transparent;font-size:14px;flex:none}
.shop-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:var(--caramel) var(--cream)}
.shop-configure{padding:24px 30px 22px;min-width:0}
.shop-product{display:grid;grid-template-columns:106px minmax(0,1fr);align-items:center;gap:24px;margin:0 0 22px}
.shop-image-stage{height:154px;display:flex;align-items:center;justify-content:center;background:var(--soft);border-radius:54px 54px 12px 12px}
.shop-product img{width:76px;height:130px;object-fit:contain}
.shop-product figcaption{margin:0;font-size:14px;color:var(--ink)}
.shop-product h3{font-size:28px;line-height:1.15;letter-spacing:-.025em;margin:0 0 9px}
.shop-product p{font-size:16px;line-height:1.4;margin:0 0 8px}
.shop-product figcaption>span{display:block;font-size:12px;color:var(--muted);line-height:1.5}
.shop-field{margin:0 0 20px;border:0;padding:0;min-width:0}
.shop-field legend,.shop-field-label{display:block;font-size:14px;font-weight:600;line-height:1.5;margin-bottom:8px;padding:0}
.shop-choices{display:flex;gap:8px}
.shop-option{position:relative;display:block;flex:1;min-width:0;cursor:pointer}
.shop-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.shop-option>span{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 8px;min-height:46px;font-size:15px;line-height:1.4;border:1px solid #3d291f50;border-radius:8px;background:#fffaf0;transition:background-color 140ms,color 140ms,border-color 140ms}
.shop-option input:checked+span{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.shop-option input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}
.shop-selection-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.shop-quantity{display:inline-flex;align-items:center;border:1px solid #3d291f50;border-radius:8px;background:#fffaf0;overflow:visible}
.shop-quantity button{width:44px;min-height:44px;display:grid;place-items:center;padding:0;background:transparent;border-radius:7px;flex:none}
.shop-quantity input{width:48px;height:44px;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.shop-quantity input::-webkit-inner-spin-button,.shop-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.shop-unit{text-align:right;min-width:0;font-variant-numeric:tabular-nums}
.shop-unit>span{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-bottom:4px}
.shop-unit strong{font-size:18px;line-height:1.5;font-weight:600;display:block}
.shop-field-error{min-height:24px;font-size:13px;line-height:1.5;color:#8c3026;max-width:none;margin:6px 0 6px}
.shop-primary{width:100%;min-height:50px;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--ink);color:var(--cream);border-radius:999px;font-size:16px;font-weight:600;line-height:1.4;transition:background-color 160ms}
.shop-announcement{min-height:22px;font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 0;max-width:none}
.shop-view-cart{display:none}
.shop-cart{display:flex;flex-direction:column;min-width:0;background:#f3e5d1;padding:25px 28px 26px;border-left:1px solid #3d291f20}
.shop-cart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.shop-cart-heading h3{font-size:30px;line-height:1.15;letter-spacing:-.025em}
.shop-cart-heading>span{font-size:13px;line-height:1;padding:7px 9px;border:1px solid #3d291f45;border-radius:999px;min-width:29px;text-align:center;font-variant-numeric:tabular-nums}
.shop-empty{padding:30px 0 42px;color:var(--muted)}
.shop-empty svg{margin-bottom:18px}
.shop-empty h4{font-size:17px;font-weight:600;line-height:1.5;color:var(--ink);margin:0 0 8px}
.shop-empty p{font-size:15px;line-height:1.6;max-width:30ch}
.shop-guide-add{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:12px;padding:6px 0;background:transparent;color:var(--ink);font-size:14px;line-height:1.5;text-align:left;text-decoration:underline;text-underline-offset:4px}
.shop-guide-add svg{flex:none}
.shop-empty[hidden]{display:none}
.shop-cart-items{list-style:none;padding:0;margin:0 0 24px}
.shop-cart-items:empty{display:none}
.shop-cart-item{padding:16px 0;border-bottom:1px solid #3d291f30}
.shop-cart-item:first-child{padding-top:0}
.shop-row-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.shop-row-heading h4{font-size:16px;font-weight:600;line-height:1.5;margin:0 0 3px}
.shop-row-heading p{font-size:14px;line-height:1.5;color:var(--muted);margin:0}
.shop-remove{display:flex;justify-content:center;align-items:center;flex:none;width:44px;min-height:44px;background:transparent;border-radius:8px;margin-top:-8px;margin-right:-10px}
.shop-row-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.shop-cart-stepper{display:flex;align-items:center;border:1px solid #3d291f50;border-radius:8px}
.shop-cart-stepper button{background:transparent;width:44px;min-height:44px;display:grid;place-items:center;padding:0;border-radius:7px}
.shop-cart-stepper output{min-width:30px;font-size:15px;text-align:center;font-variant-numeric:tabular-nums}
.shop-line-price{font-size:15px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums;text-align:right}
.shop-summary{margin-top:auto;padding-top:22px;border-top:1px solid #3d291f45}
.shop-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:16px;line-height:1.4}
.shop-summary strong{font-size:20px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.shop-summary p{font-size:13px;line-height:1.5;color:var(--muted);margin:10px 0 18px;max-width:none}
.shop-checkout-note{font-size:14px;line-height:1.55;color:var(--muted);max-width:none;margin:0 0 14px}
.shop-checkout-note.needs-products{padding:12px 14px;background:#fffaf0;color:var(--ink);border-radius:8px;font-weight:600}
.shop-help{font-size:14px;line-height:1.5;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:underline;text-underline-offset:4px}
.shop-dialog button:disabled{cursor:not-allowed}
.shop-quantity button:disabled,.shop-cart-stepper button:disabled{opacity:.4}
.shop-primary:disabled{background:#d8c2a7;color:#604734}
.shop-dialog :focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.shop-dialog ::selection{background:var(--ink);color:var(--cream)}
@media(hover:hover) and (pointer:fine){.shop-close:hover,.shop-remove:hover,.shop-quantity button:not(:disabled):hover,.shop-cart-stepper button:not(:disabled):hover{background:#3d291f0c}.shop-option:hover input:not(:checked)+span{background:var(--soft)}.shop-primary:not(:disabled):hover{background:#654734}.shop-help:hover{text-decoration-thickness:2px}}
@media(max-width:760px){dialog.shop-dialog{width:calc(100% - 20px);max-height:calc(100svh - 20px);border-radius:12px}.shop-header{padding:17px 18px 14px;gap:10px}.shop-header h2{font-size:28px;max-width:16ch}.shop-header p{font-size:14px}.shop-close{padding:6px;gap:4px}.shop-body{grid-template-columns:1fr}.shop-configure{padding:20px 20px 16px}.shop-product{grid-template-columns:82px minmax(0,1fr);gap:18px;margin-bottom:20px}.shop-image-stage{height:130px;border-radius:42px 42px 10px 10px}.shop-product img{width:63px;height:108px}.shop-product h3{font-size:25px}.shop-product p{font-size:15px}.shop-option>span{font-size:14px;padding-inline:6px}.shop-cart{padding:23px 20px 20px;border-left:0;border-top:1px solid #3d291f30}.shop-cart-heading h3{font-size:28px}.shop-cart-heading{margin-bottom:20px}.shop-empty{padding:8px 0 24px}.shop-empty svg{display:none}.shop-unit strong{font-size:16px}.shop-field{margin-bottom:18px}.shop-header p{max-width:27ch}.shop-summary{padding-top:20px}.shop-quantity input{width:40px}}
@media(max-width:760px){.shop-view-cart:not([hidden]){display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:6px 12px;border-radius:8px;background:transparent;color:var(--ink);font-size:15px;text-decoration:underline;text-underline-offset:4px}}
@media(prefers-reduced-motion:reduce){.shop-primary,.shop-option>span{transition:none}}
.manual-reduced .shop-primary,.manual-reduced .shop-option>span{transition:none}
