/* The Atelier shop uses the site's original warm paper, serif type and gold. */
.shop-page { padding: calc(var(--header-h) + clamp(2rem,5vw,4.5rem)) 0 var(--sp-2xl); min-height: 70vh; }
.shop-shell { width: min(100% - 3rem, 1180px); margin: 0 auto; }
.shop-eyebrow { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clr-accent-2); margin-bottom: .65rem; }
.shop-title { font-family: var(--ff-serif); font-size: clamp(2.7rem,5vw,4.5rem); line-height: 1.04; font-weight: 400; margin: 0 0 1rem; }
.shop-subtitle { color: var(--clr-text-2); font-size: .9375rem; max-width: 40rem; }
.shop-heading { padding-bottom: 2.2rem; border-bottom: 1px solid var(--clr-border-2); margin-bottom: 2.3rem; }
.shop-steps { display:flex; align-items:center; gap: .6rem; flex-wrap:wrap; font-size: .6875rem; color: var(--clr-text-2); margin-bottom: 2rem; }
.shop-steps a { text-decoration: underline; text-underline-offset: 4px; }
.shop-steps [aria-current="step"] { color:var(--clr-text); font-weight:500; }
.shop-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,355px); gap: clamp(2rem,5vw,5rem); align-items:start; }
.shop-summary { background:var(--clr-bg-2); border:1px solid var(--clr-border); padding:1.8rem; position:sticky; top:calc(var(--header-h) + 1.5rem); }
.shop-summary h2, .shop-panel h2 { font-family:var(--ff-serif); font-size:1.8rem; font-weight:400; line-height:1.15; margin-bottom:1.3rem; }
.shop-totals { display:grid; gap:.65rem; font-size:.8125rem; }
.shop-totals > div { display:flex; justify-content:space-between; gap:1rem; }
.shop-totals dt { color:var(--clr-text-2); }
.shop-totals dd { margin:0; text-align:right; white-space:nowrap; }
.shop-total { border-top:1px solid var(--clr-border-2); padding-top:1rem; margin-top:.55rem; font-size:1.0625rem; font-weight:500; }
.shop-total dt { color:var(--clr-text); }
.shop-tax { font-size:.6875rem; line-height:1.6; color:var(--clr-text-2); margin-top:.6rem; }
.shop-tax a, .shop-note a, .shop-check a { text-decoration:underline; text-underline-offset:3px; }
.shop-summary .btn { display:flex; width:100%; justify-content:center; margin-top:1.5rem; }
.shop-progress { margin-top:1.2rem; font-size:.75rem; color:var(--clr-text-2); }
.shop-progress-track { height:2px; background:var(--clr-border-2); margin-bottom:.6rem; }
.shop-progress-track span { display:block; height:100%; background:var(--clr-accent); max-width:100%; }
.shop-reassurance { margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--clr-border); display:grid; gap:.5rem; font-size:.6875rem; color:var(--clr-text-2); }
.shop-lines { display:grid; }
.shop-line { display:grid; grid-template-columns:100px minmax(0,1fr) auto; gap:1.25rem; padding:1.5rem 0; border-bottom:1px solid var(--clr-border); align-items:start; }
.shop-line:first-child { padding-top:0; }
.shop-line-photo { display:block; background:#fff; aspect-ratio:1; padding:.5rem; }
.shop-line-photo img { width:100%; height:100%; object-fit:contain; }
.shop-line h2, .shop-line h3 { font-family:var(--ff-serif); font-size:1.45rem; font-weight:400; line-height:1.15; margin-bottom:.35rem; overflow-wrap:anywhere; }
.shop-line-details { color:var(--clr-text-2); font-size:.75rem; }
.shop-line-price { font-size:.875rem; white-space:nowrap; text-align:right; }
.shop-quantity { display:inline-flex; align-items:center; border:1px solid var(--clr-border-2); margin-top:1rem; }
.shop-quantity button { background:transparent; border:0; min-width:36px; height:36px; cursor:pointer; font-size:1rem; }
.shop-quantity input { width:42px; height:36px; text-align:center; border:0; background:transparent; font:inherit; font-size:.8125rem; appearance:textfield; -moz-appearance:textfield; }
.shop-quantity input::-webkit-inner-spin-button { appearance:none; }
.shop-remove { display:block; background:none; border:0; margin-top:.8rem; color:var(--clr-text-2); font-size:.6875rem; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.shop-line-unavailable { color:#9c3434; font-size:.75rem; padding:.5rem 0; }
.shop-continue { display:inline-block; margin-top:1.5rem; font-size:.75rem; text-decoration:underline; text-underline-offset:5px; }
.shop-empty { border:1px solid var(--clr-border); text-align:center; padding:clamp(3rem,7vw,6rem) 1.5rem; max-width:780px; margin:0 auto; }
.shop-empty > span { display:block; color:var(--clr-accent); font-family:var(--ff-serif); font-size:3rem; }
.shop-empty h2 { font-family:var(--ff-serif); font-size:2.3rem; font-weight:400; line-height:1.1; margin:1rem 0; }
.shop-empty p { color:var(--clr-text-2); max-width:29rem; margin:0 auto 1.5rem; font-size:.875rem; }
.shop-feedback { padding:1rem 1.2rem; border:1px solid var(--clr-border-2); font-size:.8125rem; line-height:1.65; margin-bottom:1.5rem; }
.shop-feedback[hidden], .shop-hidden, .shop-page [hidden] { display:none !important; }
.shop-feedback--error { border-color:#d5aaa4; color:#81362f; background:#fff5f3; }
.shop-feedback--success { border-color:#c5cfbf; color:#36513c; background:#f3f7f0; }
.shop-loading { min-height:12rem; display:grid; place-content:center; text-align:center; font-size:.8125rem; color:var(--clr-text-2); gap:1rem; }
.shop-loading::before { content:''; width:24px; height:24px; border:1px solid var(--clr-border-2); border-top-color:var(--clr-accent); border-radius:50%; margin:auto; animation:shop-turn 1s linear infinite; }
@keyframes shop-turn { to { transform:rotate(360deg); } }
.shop-panel { margin:0 0 2rem; padding:0 0 2rem; border-bottom:1px solid var(--clr-border); min-width:0; }
.shop-panel:last-child { border-bottom:0; }
.shop-panel legend { font-family:var(--ff-serif); font-size:1.8rem; line-height:1.15; font-weight:400; margin-bottom:1.25rem; }
fieldset.shop-panel { border:0; border-bottom:1px solid var(--clr-border); }
.shop-fields { display:grid; grid-template-columns:1fr 1fr; gap:1.15rem 1rem; }
.shop-field { display:flex; flex-direction:column; gap:.35rem; font-size:.75rem; min-width:0; }
.shop-field-wide { grid-column:1/-1; }
.shop-field input, .shop-field select, .shop-field textarea { background:#fff; border:1px solid var(--clr-border-2); border-radius:0; padding:.85rem .9rem; font:inherit; font-size:.875rem; color:var(--clr-text); width:100%; min-width:0; }
.shop-field input:focus-visible, .shop-field select:focus-visible, .shop-field textarea:focus-visible { outline:2px solid var(--clr-accent); outline-offset:2px; }
.shop-field input[aria-invalid="true"] { border-color:#9c3434; }
.shop-field small { color:var(--clr-text-2); font-size:.6875rem; }
.shop-choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; margin-bottom:1.3rem; }
.shop-choice { display:flex; align-items:flex-start; gap:.6rem; padding:1rem; border:1px solid var(--clr-border-2); cursor:pointer; font-size:.8125rem; }
.shop-choice:has(input:checked) { border-color:var(--clr-accent-2); background:#fbf7ed; }
.shop-choice input, .shop-check input { accent-color:var(--clr-accent-2); margin-top:.25rem; flex-shrink:0; width:16px; height:16px; }
.shop-choice strong { display:block; font-weight:500; }
.shop-choice small { display:block; color:var(--clr-text-2); font-size:.6875rem; margin-top:.2rem; }
.shop-check { display:flex; align-items:flex-start; gap:.65rem; font-size:.75rem; margin:1rem 0; line-height:1.65; }
.shop-address { font-style:normal; border-left:2px solid var(--clr-accent-lt); padding-left:1.1rem; font-size:.8125rem; margin:1rem 0; }
.shop-note { font-size:.75rem; color:var(--clr-text-2); line-height:1.7; margin:.8rem 0; }
.shop-review { background:var(--clr-bg-2); border:1px solid var(--clr-border); padding:1.25rem; margin-bottom:1.4rem; }
.shop-review h3 { font-family:var(--ff-serif); font-size:1.4rem; font-weight:400; margin-bottom:.6rem; }
.shop-review p { font-size:.8125rem; overflow-wrap:anywhere; }
.shop-review .shop-edit { margin-top:.7rem; }
.shop-edit { background:none; border:0; padding:0; color:var(--clr-accent-2); font-size:.75rem; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.shop-order-lines { display:grid; gap:.8rem; padding:0 0 1rem; margin-bottom:1rem; border-bottom:1px solid var(--clr-border); }
.shop-order-line { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:.65rem; align-items:start; font-size:.75rem; }
.shop-order-line img { width:42px; height:48px; object-fit:contain; background:white; }
.shop-order-line strong { font-weight:400; overflow-wrap:anywhere; }
.shop-order-line small { display:block; color:var(--clr-text-2); }
.shop-pay-button { width:100%; justify-content:center; margin-top:1rem; }
.shop-pay-button:disabled, .shop-page button:disabled { cursor:wait; opacity:.55; }
.shop-payment-divider { display:flex; align-items:center; gap:1rem; margin:1.2rem 0; font-size:.6875rem; color:var(--clr-text-2); }
.shop-payment-divider::before,.shop-payment-divider::after { content:''; height:1px; background:var(--clr-border); flex:1; }
.shop-payment-mount { min-height:80px; }
.shop-status-card { max-width:760px; margin:0 auto; padding:clamp(1.5rem,4vw,3rem); border:1px solid var(--clr-border-2); }
.shop-status-mark { font-family:var(--ff-serif); font-size:3rem; color:var(--clr-accent-2); margin-bottom:1rem; }
.shop-status-card h1 { font-family:var(--ff-serif); font-size:clamp(2rem,4vw,3rem); font-weight:400; line-height:1.1; margin-bottom:1rem; }
.shop-status-card p { font-size:.875rem; margin:.8rem 0; }
.shop-status-card .shop-totals { margin-top:1.5rem; }
.shop-status-card .btn { margin-top:1.5rem; }
.product-shop-actions { margin:1rem 0; }
.product-shop-actions .btn { width:100%; justify-content:center; }
.product-shop-actions .shop-note { text-align:center; }
.catalog-add-button { display:flex; align-items:center; justify-content:space-between; gap:.75rem; width:100%; border:0; border-top:1px solid var(--clr-border); background:none; padding:.8rem 0 .1rem; margin-top:.8rem; font:inherit; color:var(--clr-accent-2); text-align:left; font-size:.75rem; cursor:pointer; }
.catalog-add-button:disabled { color:var(--clr-text-2); cursor:wait; }
.catalog-shop-note { margin-top:.4rem; font-size:.625rem; color:var(--clr-text-2); }
.catalog-shop-note a { text-decoration:underline; text-underline-offset:3px; }
.shop-toast { position:fixed; z-index:500; left:50%; bottom:1.5rem; transform:translateX(-50%); width:min(90vw,430px); padding:1rem 1.2rem; background:var(--clr-text); color:var(--clr-white); font-size:.8125rem; box-shadow:var(--sh-md); display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.shop-toast a { color:var(--clr-accent-lt); white-space:nowrap; text-decoration:underline; text-underline-offset:4px; }
.shop-toast[hidden] { display:none; }
.shop-page :focus-visible,.product-shop-actions :focus-visible,.catalog-add-button:focus-visible { outline:2px solid var(--clr-accent); outline-offset:4px; }
@media(max-width:900px) { .shop-layout { grid-template-columns:minmax(0,1fr) minmax(270px,310px); gap:2rem; } .shop-summary { padding:1.25rem; } }
@media(max-width:760px) { .shop-shell { width:calc(100% - 2rem); } .shop-layout { grid-template-columns:minmax(0,1fr); gap:2rem; } .shop-summary { position:static; } .shop-heading { margin-bottom:1.6rem; padding-bottom:1.5rem; } .shop-line { grid-template-columns:76px minmax(0,1fr) auto; gap:.8rem; } .shop-line h2,.shop-line h3 { font-size:1.25rem; } .shop-line-price { font-size:.8125rem; } .shop-choice-grid { grid-template-columns:1fr; } .shop-page { padding-top:calc(var(--header-h) + 2rem); } }
@media(max-width:420px) { .shop-fields { grid-template-columns:1fr; } .shop-line { grid-template-columns:65px minmax(0,1fr); } .shop-line-price { grid-column:2; text-align:left; margin-top:-.3rem; } .shop-quantity { margin-top:.65rem; } .shop-summary { padding:1.1rem; } }
@media(prefers-reduced-motion:reduce) { .shop-loading::before { animation:none; } }
.shop-guarantee { margin:1.2rem 0 1.5rem; }
.shop-guarantee img { width:min(100%,680px); height:auto; border:1px solid var(--clr-border); }
.shop-guarantee figcaption { font-size:.625rem; color:var(--clr-text-2); margin-top:.4rem; }
.product-safety-information { white-space:pre-line; margin-top:1rem; font-size:.8125rem; color:var(--clr-text-2); overflow-wrap:anywhere; }
.catalog-tax-note a { text-decoration:underline; text-underline-offset:3px; }
.catalog-lowest-price { display:block; font-size:.6875rem; font-weight:400; color:var(--clr-text-2); margin-top:.3rem; line-height:1.5; }
.catalog-price .catalog-tax-note, .home-product > .catalog-tax-note { display:block; font-size:.6875rem; font-weight:400; line-height:1.6; margin-top:.4rem; color:var(--clr-text-2); }
.shop-review-addresses { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:1rem 1.5rem; margin-top:1rem; }
.shop-review-addresses h4 { font-size:.75rem; font-weight:500; margin-bottom:.35rem; }
.shop-review-address { font-style:normal; font-size:.8125rem; overflow-wrap:anywhere; }
.shop-feedback-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem 1rem; margin-top:1rem; }
.shop-feedback-actions .shop-continue { margin-top:0; }
.shop-summary .shop-feedback { margin:1rem 0; padding:.9rem; }
.shop-summary .shop-feedback p { margin-top:.45rem; font-size:.75rem; }

/* The sandbox fixture deliberately reads as an internal test, never as stock. */
.shop-test-banner{border:1px solid #B8924A;border-left:4px solid #B8924A;background:#F4F3EE;color:#1C1C1A;padding:1.15rem 1.35rem;margin:0 0 1.5rem;font-size:.94rem;line-height:1.65}
.shop-test-banner strong{display:block;letter-spacing:.04em}.shop-test-banner p{margin:.4rem 0 0}.shop-test-product{display:flex;align-items:center;gap:1.4rem;margin-bottom:1.4rem}.shop-test-product img{max-width:40%;height:auto;flex-shrink:0}.shop-test-product h2{font-family:var(--font-heading,Georgia,serif);font-size:1.5rem}.catalog-test-card .catalog-price small{display:block;font:400 .76rem/1.55 var(--font-body,Arial,sans-serif);margin-top:.4rem}.catalog-test-card .catalog-badge{font-size:.61rem}.product-info>.shop-test-banner~.catalog-price small{display:block;font-size:.8rem;line-height:1.6}
@media(max-width:600px){.shop-test-banner{padding:1rem}.shop-test-product{gap:1rem}.shop-test-product h2{font-size:1.25rem}.shop-test-product img{max-width:32%}}

.shop-totals .shop-included-tax { font-size:.75rem; line-height:1.5; }
.shop-totals .shop-included-tax dd { color:var(--clr-text-2); }
.checkout-payment-methods { max-width:46rem; margin:1rem auto 0; }
