.bag-builder{padding:clamp(2.6rem,5vw,4.2rem) var(--gutter);background:#f4f7f6}
.bb-intro h2{margin:.35rem 0 .4rem;font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#193c34;font-size:clamp(1.8rem,3vw,2.6rem)}
.bb-intro p:last-child{margin:0 0 1.6rem;color:#59645f}
.bb-layout{display:grid;grid-template-columns:1fr 340px;gap:clamp(1.2rem,3vw,2.5rem);align-items:start}
.bb-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem}
.bb-item{position:relative;background:#fff;border:1.5px solid #dfe6e3;border-radius:14px;transition:border-color .2s,transform .2s,box-shadow .2s}
.bb-item:hover{transform:translateY(-3px);box-shadow:0 10px 22px -14px rgba(25,60,52,.45)}
.bb-item.in{border-color:#b58862;box-shadow:0 0 0 3px rgba(247,207,135,.35)}
.bb-add{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:.25rem;width:100%;padding:1rem .6rem .9rem;cursor:pointer;text-align:center;border-radius:14px}
.bb-add:focus-visible,.bb-qty button:focus-visible,.bb-reset:focus-visible{outline:3px solid #b58862;outline-offset:2px}
.bb-emoji{font-size:2.1rem;line-height:1;transition:transform .25s}
.bb-add:active .bb-emoji{transform:scale(1.25) rotate(-8deg)}
.bb-name{font-weight:700;color:#193c34;font-size:.92rem}
.bb-price{font-size:.8rem;color:#7a847f}
.bb-qty{display:none;align-items:center;justify-content:center;gap:.6rem;padding:0 0 .8rem}
.bb-item.in .bb-qty{display:flex}
.bb-qty button{all:unset;box-sizing:border-box;width:1.9rem;height:1.9rem;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:#193c34;color:#fff;font:700 1.05rem/1 Arial,sans-serif}
.bb-n{min-width:1.2rem;text-align:center;font-weight:700;color:#193c34}
.bb-bag{position:sticky;top:110px;background:#fff;border:1px solid #dfe6e3;border-radius:18px;padding:1.4rem 1.3rem;text-align:center;box-shadow:0 18px 40px -28px rgba(25,60,52,.5)}
.bb-visual{position:relative;width:150px;margin:0 auto .6rem}
.bb-svg{display:block;width:100%;height:auto}
.bb-fill{transition:y .6s cubic-bezier(.3,1.4,.5,1)}
.bb-count{position:absolute;right:-6px;top:30px;min-width:2.1rem;height:2.1rem;padding:0 .45rem;border-radius:999px;background:#193c34;color:#fff;font:700 1rem/2.1rem Arial,sans-serif}
.bb-count.bump{animation:bbBump .45s ease}
@keyframes bbBump{40%{transform:scale(1.35)}}
.bb-pop{position:absolute;inset:0;pointer-events:none}
.bb-fly{position:absolute;top:-12px;font-size:1.6rem;animation:bbFly .85s ease-in forwards}
@keyframes bbFly{0%{transform:translateY(-30px) scale(1.2);opacity:0}25%{opacity:1}100%{transform:translateY(85px) scale(.6);opacity:0}}
.bb-total{margin:.2rem 0 .3rem;font-family:Georgia,'Times New Roman',serif;font-size:1.35rem;color:#193c34}
.bb-nudge{margin:0 0 .8rem;font-size:.9rem;color:#5b4524;line-height:1.5}
.bag-builder.is-full .bb-nudge{color:#1f6b4e}
.bb-list{list-style:none;margin:0 0 1rem;padding:0;text-align:left;font-size:.88rem;color:#3d4a44;max-height:9.5rem;overflow:auto}
.bb-list li{display:flex;justify-content:space-between;gap:.5rem;padding:.3rem 0;border-bottom:1px dashed #e3e8e5}
.bb-cta{display:block;width:100%;box-sizing:border-box}
.bag-builder:not(.has-items) .bb-cta{opacity:.55}
.bb-reset{all:unset;cursor:pointer;margin-top:.6rem;font-size:.82rem;color:#7a847f;text-decoration:underline}
.bag-builder:not(.has-items) .bb-reset{visibility:hidden}
.bb-note{margin:.8rem 0 0;font-size:.74rem;line-height:1.5;color:#7a847f}
.bb-note a{color:inherit}
@media(max-width:900px){.bb-layout{grid-template-columns:1fr}.bb-items{grid-template-columns:repeat(3,1fr)}
.bb-bag{order:-1;position:sticky;top:var(--bb-top,96px);z-index:5;display:grid;grid-template-columns:62px 1fr;column-gap:.9rem;align-items:center;text-align:left;padding:.7rem .9rem;border-radius:14px}
.bb-visual{width:56px;margin:0;grid-row:span 2}.bb-count{top:6px;right:-10px;min-width:1.6rem;height:1.6rem;font-size:.8rem;line-height:1.6rem}
.bb-total{margin:0;font-size:1.1rem}.bb-nudge{margin:0;font-size:.8rem}
.bb-list,.bb-note,.bb-reset{display:none}.bb-cta{grid-column:1/-1;margin-top:.6rem;padding-block:.7rem}
.bag-builder:not(.has-items) .bb-cta{display:none}}
@media(max-width:480px){.bb-items{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.bb-fly{display:none}.bb-fill,.bb-item,.bb-emoji{transition:none}.bb-count.bump{animation:none}}
.bb-controls{margin-bottom:1rem}
.bb-tabs{display:flex;gap:.4rem;overflow-x:auto;scrollbar-width:none;padding-bottom:.2rem}
.bb-tabs::-webkit-scrollbar{display:none}
.bb-tabs button,.bb-service button{all:unset;cursor:pointer;white-space:nowrap;padding:.55rem 1rem;border-radius:999px;font-weight:700;font-size:.9rem;color:#193c34;background:#fff;border:1.5px solid #dfe6e3;transition:background .2s,color .2s,border-color .2s}
.bb-tabs button[aria-selected=true],.bb-service button[aria-checked=true]{background:#193c34;color:#fff;border-color:#193c34}
.bb-tabs button:focus-visible,.bb-service button:focus-visible,.bb-search:focus-visible{outline:3px solid #b58862;outline-offset:2px}
.bb-row2{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.7rem;align-items:center}
.bb-search{flex:1 1 220px;min-width:0;padding:.7rem 1rem;border:1.5px solid #dfe6e3;border-radius:999px;font:inherit;background:#fff}
.bb-service{display:flex;gap:.3rem;background:#fff;border:1.5px solid #dfe6e3;border-radius:999px;padding:.2rem}
.bb-service button{border:0;padding:.45rem .9rem}
.bb-empty{grid-column:1/-1;margin:1rem 0;color:#59645f}
.bb-wa{background:#1f7a52!important;border-color:#1f7a52!important}
.bb-alt{display:block;margin-top:.6rem;font-size:.82rem;color:#193c34}
.bag-builder:not(.has-items) .bb-alt{display:none}
.bb-visual{position:relative}
.bb-toast{position:absolute;left:50%;top:-8px;transform:translate(-50%,-100%);width:min(300px,85vw);padding:.6rem .8rem;border-radius:10px;background:#193c34;color:#fff;font-size:.82rem;line-height:1.4;opacity:0;pointer-events:none;transition:opacity .25s;z-index:6}
.bb-toast.show{opacity:1}
.bb-note strong{color:#3d4a44}
@media(max-width:900px){.bb-alt{grid-column:1/-1;margin-top:.4rem;text-align:center}.bb-toast{left:0;transform:translateY(-100%);top:-6px}}
.bb-item{display:flex;flex-direction:column}
.bb-badge{position:absolute;top:-8px;right:-8px;min-width:1.5rem;height:1.5rem;padding:0 .35rem;border-radius:999px;background:linear-gradient(135deg,#b58862,#f7cf87);color:#193c34;font:700 .8rem/1.5rem Arial,sans-serif;text-align:center;z-index:1}
.bb-vars{display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem;padding:0 .5rem .7rem}
.bb-vars button{all:unset;cursor:pointer;padding:.22rem .55rem;border-radius:999px;font-size:.72rem;font-weight:700;color:#3d4a44;background:#f1f4f2;border:1px solid #dfe6e3}
.bb-vars button[aria-checked=true]{background:#fff7e6;border-color:#b58862;color:#5b4524}
.bb-vars button:focus-visible{outline:2px solid #b58862;outline-offset:1px}
.bb-qty[hidden]{display:none!important}
.bb-item.in .bb-qty:not([hidden]){display:flex}
.stain-share{display:grid;grid-template-columns:1fr 1.2fr;gap:1.2rem 2rem;align-items:center;margin-top:2rem;padding:1.4rem 1.5rem;background:#fff;border:1.5px dashed #b58862;border-radius:18px}
.ss-copy{display:flex;gap:1rem;align-items:flex-start}
.ss-icon{font-size:2.2rem;line-height:1}
.stain-share h3{margin:0 0 .35rem;font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:1.45rem;color:#193c34}
.stain-share p{margin:0;color:#59645f;font-size:.93rem;line-height:1.55}
.ss-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.ss-pick{cursor:pointer}
.ss-note{flex:1 1 220px;min-width:0;padding:.7rem 1rem;border:1.5px solid #dfe6e3;border-radius:999px;font:inherit}
.ss-send{background:#1f7a52!important;border-color:#1f7a52!important}
.ss-preview{display:flex;gap:.4rem}
.ss-preview figure{position:relative;margin:0;width:52px;height:52px;border-radius:10px;overflow:hidden;animation:bbBump .4s ease}
.ss-preview img{width:100%;height:100%;object-fit:cover}
.ss-preview button{all:unset;cursor:pointer;position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:#193c34;color:#fff;font:700 12px/18px Arial;text-align:center}
@media(max-width:900px){
.stain-share{grid-template-columns:1fr}
.bb-bag{grid-template-columns:44px 1fr auto;padding:.55rem .7rem;column-gap:.7rem}
.bb-visual{width:40px;grid-row:span 2}.bb-count{top:-4px;right:-12px}
.bb-total{font-size:1rem}.bb-nudge{font-size:.74rem;line-height:1.35;grid-column:2/3}
.bb-cta{grid-column:3;grid-row:1/3;margin:0;padding:.6rem .8rem!important;font-size:.82rem;width:auto}
.bag-builder:not(.has-items) .bb-cta{display:none}
.bb-alt{display:none!important}
.bb-vars button{font-size:.7rem}}
@media(max-width:900px){.bb-long{display:none}}
.bb-left,.bb-layout>*,.ss-actions,.stain-share>*{min-width:0}.bag-builder{overflow-x:clip}
.ss-ai{border-color:#b58862!important;color:#5b4524!important}
.ss-ai[disabled]{opacity:.7;cursor:wait}
.ss-result{grid-column:1/-1}
.ss-card{padding:1.1rem 1.2rem;border-radius:14px;background:#f4f7f6;border:1px solid #dfe6e3;animation:ssIn .4s ease}
@keyframes ssIn{from{opacity:0;transform:translateY(8px)}}
.ss-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.7rem}
.ss-tags span{display:flex;flex-direction:column;padding:.45rem .75rem;border-radius:10px;background:#fff;border:1px solid #e3e8e5;font-size:.9rem;color:#193c34}
.ss-tags b{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:#8a6a3b}
.ss-level{margin:0 0 .5rem;padding:.4rem .7rem;border-radius:8px;display:inline-block;font-size:.88rem}
.ss-lo{background:#e6f3ec;color:#1f6b4e}.ss-mid{background:#fff4dc;color:#7a5a1f}.ss-hi{background:#fde8e1;color:#8a3b22}
.ss-msg{margin:.3rem 0;color:#233a32;line-height:1.55}
.ss-tips{margin:.4rem 0 .6rem;padding-left:1.1rem;color:#3d4a44;font-size:.9rem;line-height:1.5}
.ss-disc{margin:0;font-size:.74rem;color:#7a847f}
.ss-wait{display:flex;align-items:center;gap:.3rem;color:#59645f;margin:.2rem 0}
.ss-wait span{width:7px;height:7px;border-radius:50%;background:#b58862;animation:ssDot 1s infinite ease-in-out}
.ss-wait span:nth-child(2){animation-delay:.15s}.ss-wait span:nth-child(3){animation-delay:.3s;margin-right:.4rem}
@keyframes ssDot{0%,80%,100%{transform:scale(.5);opacity:.4}40%{transform:scale(1);opacity:1}}
.bb-qty,.bb-item .bb-qty{display:flex!important;margin-top:auto}
.bb-minus[disabled]{background:#dfe6e3!important;color:#9aa5a0!important;cursor:default}
.bb-item:not(.in) .bb-n{color:#9aa5a0}
/* Premium line-art icons */
.hw-ic{display:block;stroke:#193c34;stroke-width:2.1;fill:none;stroke-linecap:round;stroke-linejoin:round}
.hw-ic .g{stroke:#b58862}.hw-ic .gf{fill:#b58862;stroke:none}
.bb-emoji{display:grid;place-items:center;width:64px;height:64px;margin-bottom:.35rem;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,#f2f6f4 70%);box-shadow:inset 0 0 0 1px #e6d8bf,0 6px 14px -10px rgba(25,60,52,.6);transition:transform .25s,box-shadow .25s}
.bb-emoji .hw-ic{width:42px;height:42px}
.bb-item:hover .bb-emoji{transform:translateY(-2px) rotate(-3deg);box-shadow:inset 0 0 0 1.5px #b58862,0 10px 18px -10px rgba(25,60,52,.6)}
.bb-item.in .bb-emoji{background:radial-gradient(circle at 35% 30%,#fff 0,#fff6e4 75%);box-shadow:inset 0 0 0 1.5px #b58862}
.bb-add:active .bb-emoji{transform:scale(1.12)}
.hw-mini{display:inline-block;width:18px;height:18px;vertical-align:-4px;stroke-width:2.6}
.bb-fly .hw-ic{width:30px;height:30px;stroke-width:2.6}
.hi-mark{display:inline-grid;place-items:center;width:1.6em;height:1.6em;margin-right:.35em;border-radius:6px;background:linear-gradient(135deg,#b58862,#f7cf87);color:#193c34;font:800 .68em/1 Georgia,'Times New Roman',serif;letter-spacing:.02em;vertical-align:.08em}
.ss-disc .hi-mark{width:1.7em;height:1.7em;font-size:.8em}
/* Owner's hexagon garment photos */
.hw-photo{display:block;width:100%;height:100%;object-fit:cover;clip-path:polygon(50% 1%,92.5% 25.5%,92.5% 74.5%,50% 99%,7.5% 74.5%,7.5% 25.5%)}
.bb-emoji:has(.hw-photo){width:92px;height:92px;border-radius:0;background:none;box-shadow:none}
.bb-item:hover .bb-emoji:has(.hw-photo){transform:translateY(-3px) scale(1.04);box-shadow:none}
.bb-item.in .bb-emoji:has(.hw-photo){background:none;box-shadow:none;filter:drop-shadow(0 6px 10px rgba(181,136,98,.35))}
.hw-photo.hw-mini{display:inline-block;width:22px;height:22px;vertical-align:-6px}
.hw-photo.hw-fly{width:38px;height:38px}
.bb-fly:has(.hw-photo){width:38px}
/* v10: compact Type selector, refined badge, HI monogram */
.bb-vars{display:none}
.bb-type{display:flex;flex-direction:column;gap:.2rem;width:calc(100% - 1.4rem);margin:0 auto .75rem;min-height:3.1rem}
.bb-type span{font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8a6a3b;text-align:left;padding-left:.2rem}
.bb-sel{width:100%;height:2.2rem;padding:0 1.8rem 0 .7rem;border:1.5px solid #dfe6e3;border-radius:10px;background:#f9fbfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23193c34' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .65rem center/11px;appearance:none;font:600 .84rem/1 Arial,Helvetica,sans-serif;color:#193c34;cursor:pointer;text-overflow:ellipsis}
.bb-sel:focus{outline:none;border-color:#b58862;box-shadow:0 0 0 3px rgba(247,207,135,.35);background-color:#fff}
.bb-item.in .bb-sel{border-color:#e6d2ad;background-color:#fffaf0}
.bb-badge{top:.6rem;right:.6rem;left:auto;display:inline-flex;align-items:center;gap:.25rem;min-width:0;height:auto;padding:.22rem .55rem .22rem .4rem;border-radius:999px;background:#193c34;color:#f7cf87;font:700 .7rem/1 Arial,Helvetica,sans-serif;letter-spacing:.02em;box-shadow:0 4px 10px -4px rgba(25,60,52,.6)}
.bb-badge svg{width:.8rem;height:.8rem}
.bb-item.in{border-color:#c9a874;box-shadow:0 0 0 3px rgba(247,207,135,.25)}
svg.hi-mark{display:inline-block;width:1.35em;height:1.35em;margin:0 .4em 0 0;vertical-align:-.3em;background:none;border-radius:50%;filter:drop-shadow(0 2px 4px rgba(25,60,52,.25))}
.ss-disc svg.hi-mark{width:1.5em;height:1.5em;vertical-align:-.45em}
.bb-add{padding-top:1.6rem}
.bb-sel{font-size:.8rem;padding-left:.6rem}
.ss-preview figure.wait img{opacity:.55}
.ss-preview figure.wait::after{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;border:2.5px solid #fff;border-top-color:#b58862;border-radius:50%;animation:ssSpin .8s linear infinite}
.ss-preview figure.ok::before{content:"✓";position:absolute;left:3px;bottom:3px;width:16px;height:16px;border-radius:50%;background:#1f7a52;color:#fff;font:700 10px/16px Arial;text-align:center;z-index:1}
@keyframes ssSpin{to{transform:rotate(360deg)}}
