/* Recently viewed, back-in-stock alerts and newsletter signup */
.recently-viewed{margin:56px 0;padding:32px 0 0;border-top:1px solid var(--line)}
.recently-viewed header{margin-bottom:24px}
.recently-viewed h2{font-size:clamp(24px,2.6vw,34px);margin:0 0 6px}
.recently-viewed header p{margin:0;color:var(--muted);font-size:14px}

.stock-alert{margin:16px 0 4px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--cream)}
.stock-alert[hidden]{display:none}
.stock-alert-title{display:flex;align-items:center;gap:8px;margin:0 0 4px;color:var(--ink)}
.stock-alert-title svg{width:18px;height:18px;flex:none}
.stock-alert-copy{margin:0 0 12px;font-size:13px;line-height:1.6;color:var(--muted)}
.stock-alert-row{display:flex;gap:8px}
.stock-alert-row input{flex:1;min-width:0;min-height:44px}
.stock-alert-row .button{flex:none;min-height:44px;white-space:nowrap}
.stock-alert-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.stock-alert-row input:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Floating flash notices (storefront) */
.flash-toast-stack{position:fixed;top:20px;right:20px;z-index:160;display:grid;gap:10px;width:min(400px,calc(100vw - 24px));pointer-events:none}
.flash-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:12px;padding:14px 12px 14px 14px;border-radius:14px;background:#fff;color:#3a2a32;border:1px solid #eadfe3;box-shadow:0 14px 40px #2a1a2433;animation:flash-in .3s ease both}
.flash-toast p{flex:1;margin:2px 0 0;font-size:13px;line-height:1.55}
.flash-toast-icon{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#4a3240;color:#f6ece4}
.flash-toast-icon svg{width:15px;height:15px}
.flash-toast.error .flash-toast-icon{background:#a05f45}
.flash-toast.error{border-color:#edc6bb}
.flash-toast-close{flex:none;display:grid;place-items:center;width:30px;height:30px;margin:-4px -2px 0 0;border:0;border-radius:50%;background:none;color:#8a7680;cursor:pointer}
.flash-toast-close:hover{background:#f4eef1;color:#3a2a32}
.flash-toast-close:focus-visible{outline:2px solid #4a3240;outline-offset:1px}
.flash-toast-close svg{width:16px;height:16px}
.flash-toast.is-leaving{animation:flash-out .25s ease both}
@keyframes flash-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes flash-out{to{opacity:0;transform:translateY(-10px)}}
@media(max-width:700px){.flash-toast-stack{top:12px;right:12px;left:12px;width:auto}}
@media(prefers-reduced-motion:reduce){.flash-toast,.flash-toast.is-leaving{animation:none}}

/* Newsletter: one deep plum panel, the offer figure carries the block */
.newsletter-signup{--nl-bg:#4a3240;--nl-text:#f6ece4;--nl-soft:#dccbd2;--nl-muted:#bca7b1;--nl-line:#ffffff24;
 display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.2fr);gap:28px 44px;align-items:center;
 margin-top:44px;padding:40px 48px;border-radius:20px;background:var(--nl-bg);color:var(--nl-text)}
.newsletter-offer{display:flex;align-items:center;gap:16px;margin:0;padding-right:44px;border-right:1px solid var(--nl-line)}
.newsletter-percent{font-family:var(--serif);font-weight:400;font-size:clamp(64px,6.2vw,92px);line-height:.85;letter-spacing:-3px;color:var(--nl-text)}
.newsletter-offer-note{font-size:12px;line-height:1.5;letter-spacing:.4px;color:var(--nl-soft)}
.newsletter-copy h2{font-family:var(--serif);font-weight:400;font-size:clamp(22px,2.1vw,28px);line-height:1.25;margin:0 0 10px;color:var(--nl-text)}
.newsletter-copy p{margin:0;font-size:14px;line-height:1.7;color:var(--nl-soft);max-width:40ch}
.newsletter-form{display:grid;gap:14px}
.newsletter-field{display:flex;align-items:center;gap:6px;padding:5px;border-radius:999px;background:#fff;box-shadow:0 10px 30px #1c0f1633}
.newsletter-field input{flex:1;min-width:0;height:46px;padding:0 18px;border:0;border-radius:999px;background:transparent;font-size:14px;color:#3a2a32;box-shadow:none}
.newsletter-field input::placeholder{color:#9a8790}
.newsletter-field input:focus{outline:none}
.newsletter-field:focus-within{box-shadow:0 0 0 3px #f6ece466,0 10px 30px #1c0f1633}
.newsletter-field button{display:inline-flex;align-items:center;gap:8px;flex:none;height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--nl-bg);color:var(--nl-text);font-size:13px;font-weight:600;letter-spacing:.2px;cursor:pointer;transition:background .2s}
.newsletter-field button:hover{background:#3b2733}
.newsletter-field button:focus-visible{outline:2px solid var(--nl-bg);outline-offset:2px}
.newsletter-field button svg{transition:transform .2s}
.newsletter-field button:hover svg{transform:translateX(3px)}
.newsletter-consent{position:relative;display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.6;color:var(--nl-soft);cursor:pointer}
.newsletter-consent input{position:absolute;opacity:0;width:18px;height:18px;margin:0}
.newsletter-check{pointer-events:none;flex:none;width:18px;height:18px;margin-top:1px;border:1.5px solid var(--nl-soft);border-radius:5px;display:grid;place-items:center;transition:background .15s,border-color .15s}
.newsletter-check::after{content:"";width:5px;height:9px;border:solid var(--nl-bg);border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px);opacity:0}
.newsletter-consent input:checked+.newsletter-check{background:var(--nl-text);border-color:var(--nl-text)}
.newsletter-consent input:checked+.newsletter-check::after{opacity:1}
.newsletter-consent input:focus-visible+.newsletter-check{outline:2px solid var(--nl-text);outline-offset:2px}
.newsletter-consent a{color:var(--nl-text);text-decoration:underline;text-underline-offset:3px}
.newsletter-form small{font-size:11px;line-height:1.6;color:var(--nl-muted)}
@media(prefers-reduced-motion:reduce){.newsletter-field button,.newsletter-field button svg,.newsletter-check{transition:none}}

@media(max-width:1100px){
 .newsletter-signup{grid-template-columns:auto minmax(0,1fr);padding:34px 36px}
 .newsletter-form{grid-column:1/-1}
}
@media(max-width:700px){
 .newsletter-signup{grid-template-columns:1fr;gap:20px;padding:28px 22px;margin-top:28px;border-radius:16px}
 .newsletter-offer{padding:0 0 18px;border-right:0;border-bottom:1px solid var(--nl-line)}
 .newsletter-percent{font-size:64px}
 .newsletter-field input{padding:0 14px}
 .newsletter-field button{padding:0 16px}
 .recently-viewed{margin:36px 0}
}
@media(max-width:420px){
 .stock-alert-row{flex-direction:column}
 .newsletter-field,.newsletter-field:focus-within{flex-direction:column;align-items:stretch;gap:10px;padding:0;background:none;box-shadow:none}
 .newsletter-field input{flex:none;width:100%;height:50px;padding:0 18px;background:#fff}
 .newsletter-field input:focus-visible{outline:3px solid #f6ece480;outline-offset:2px}
 .newsletter-field button{justify-content:center;height:50px;background:var(--nl-text);color:var(--nl-bg)}
 .newsletter-field button:hover{background:#fff}
}
