/* Wardrobe uses the keepsake storefront's toolbar, cards, controls and dialog rhythm. */
.wardrobe{padding-block:10px clamp(56px,6.5vw,88px)}
.wardrobe-heading{margin-bottom:14px;gap:12px 24px}
.wardrobe-category .ci svg:not(.fb){fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wardrobe-pet-filter{flex:none}
.wardrobe-search{min-width:0}
.wardrobe-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;text-align:center;color:var(--ink-soft)}
.wardrobe-empty>svg{width:32px;height:32px}.wardrobe-empty h3{font-size:28px}.wardrobe-empty p{font-size:14px}
.wardrobe-card{min-width:0}
.wardrobe-card-open{display:flex;flex-direction:column;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left;color:var(--ink);cursor:pointer}
.wardrobe-card-image{position:relative;aspect-ratio:4/5;width:100%;flex:none;background:var(--paper-2);overflow:hidden}
.wardrobe-card-image>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.wardrobe-card-copy{width:100%}
.wardrobe-card .price{font-weight:400}
.wardrobe-card-open:focus-visible{outline:4px solid var(--blue);outline-offset:-6px;border-radius:22px}
/* Three rows keep close and checkout in view while the content scrolls. */
.wardrobe-dialog{width:min(1180px,calc(100% - 48px));height:min(920px,calc(100dvh - 40px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:2px solid var(--ink);border-radius:24px;background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:8px 8px 0 var(--pink)}
.wardrobe-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.wardrobe-dialog::backdrop{background:rgb(22 19 106 / .55)}
.wardrobe-dialog-bar{z-index:2}
.wardrobe-dialog-bar .x{padding:0}.wardrobe-dialog-bar .x svg{width:18px;height:18px}
.wardrobe-showcase{min-height:0;min-width:0}
.wardrobe-visual{display:flex;flex-direction:column;min-width:0;gap:10px;border-right:2px solid var(--ink);background:var(--paper-2)}
.wardrobe-visual-top{display:none}
.wardrobe-reference{margin:0;min-height:160px;flex:1 1 0;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.wardrobe-image-button{display:grid;place-items:center;flex:1 1 0;min-height:0;width:100%;padding:0;background:var(--paper);border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);border-radius:16px;overflow:hidden;position:relative;cursor:zoom-in}
.wardrobe-image-button>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.wardrobe-image-hint{position:absolute;right:10px;bottom:10px;min-height:36px;padding:6px 10px;border:1px solid var(--ink);border-radius:99px;background:var(--paper);font-size:11px;font-weight:700;display:flex;align-items:center;gap:10px}
.wardrobe-reference figcaption{font-size:11px;line-height:1.5;font-weight:600;color:var(--ink-soft)}
.wardrobe-view-switch{display:flex;align-self:start;gap:4px;padding:3px;border:1px solid color-mix(in srgb,var(--ink) 28%,transparent);border-radius:10px;background:var(--paper);flex:none}
.wardrobe-view-switch button{border:0;background:transparent;min-height:36px;padding:5px 12px;font-size:11px;font-weight:700;border-radius:7px}
.wardrobe-view-switch button[aria-pressed="true"]{background:var(--ink);color:var(--white)}
.wardrobe-wear-thumbs,.wardrobe-hat-thumbs,.wardrobe-appearances{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 3px 7px;margin:-3px -3px 0;scroll-padding:3px;flex:none}
.wardrobe-wear-thumbs button,.wardrobe-hat-thumbs button,.wardrobe-appearances button{width:68px;height:68px;flex:0 0 68px;min-width:0;border:2px solid var(--ink);border-radius:10px;background:var(--white);padding:2px;opacity:.65;overflow:hidden;transition:opacity .2s,box-shadow .2s}
.wardrobe-wear-thumbs button[aria-pressed="true"],.wardrobe-hat-thumbs button[aria-pressed="true"],.wardrobe-appearances button[aria-pressed="true"]{opacity:1;box-shadow:2px 2px 0 var(--pink)}
.wardrobe-wear-thumbs img,.wardrobe-hat-thumbs img,.wardrobe-appearances img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}
.wardrobe-appearances img{object-fit:contain}
.wardrobe-wear-note,.wardrobe-art-caption{font-size:11px;line-height:1.5;color:var(--ink-soft)}
.wardrobe-art-caption{display:flex;align-items:center;gap:7px}.wardrobe-caption-dot{width:6px;height:6px;border-radius:50%;background:var(--pink);flex:none}
.wardrobe-product{min-width:0;display:flex;flex-direction:column;align-items:stretch;background:var(--white)}
.wardrobe-product-top{display:none}.wardrobe-brand{font-size:11px;font-weight:700;color:var(--ink-soft)}
.wardrobe-product h3{margin-top:-10px}.wardrobe-product-intro{font-size:14px;line-height:1.65;text-wrap:pretty;color:var(--ink-soft);order:1}
.wardrobe-price{display:flex;align-items:baseline;gap:12px}.wardrobe-price>span{font-family:var(--display);font-size:32px;font-weight:400;line-height:1.1;font-variant-numeric:tabular-nums}.wardrobe-price small{font-family:var(--mono);font-size:10px;color:var(--ink-soft)}
.wardrobe-price-rule{font-size:12px;color:var(--ink-soft);margin-top:-8px;order:1}
.wardrobe-choices{display:grid;gap:16px;order:2}
.wardrobe-option-group{min-width:0;margin:0;padding:0;border:0}
.wardrobe-option-group legend{font-size:13px;font-weight:800;margin-bottom:8px;padding:0}
.wardrobe-shapes,.wardrobe-hat-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wardrobe-shapes{grid-template-columns:repeat(3,minmax(0,1fr))}
.wardrobe-hat-colors,.wardrobe-sizes{display:flex;gap:8px;flex-wrap:wrap}
.wardrobe-shapes button,.wardrobe-hat-offers button,.wardrobe-hat-colors button,.wardrobe-sizes button{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;min-width:0;min-height:54px;padding:10px 12px;text-align:left;background:var(--white);border:1.5px solid color-mix(in srgb,var(--ink) 48%,transparent);border-radius:11px;font-size:13px;font-weight:700;line-height:1.4;transition:background .18s,border-color .18s,box-shadow .18s}
.wardrobe-sizes button{min-width:64px}.wardrobe-hat-offers button:last-child:nth-child(odd){grid-column:1/-1}
.wardrobe-shapes button[aria-pressed="true"],.wardrobe-hat-offers button[aria-pressed="true"],.wardrobe-hat-colors button[aria-pressed="true"],.wardrobe-sizes button[aria-pressed="true"]{background:var(--yolk);border-color:var(--ink);box-shadow:2px 2px 0 var(--ink)}
.wardrobe-shapes button:hover,.wardrobe-hat-offers button:hover,.wardrobe-hat-colors button:hover,.wardrobe-sizes button:hover{border-color:var(--ink)}
.wardrobe-shapes button:active,.wardrobe-hat-offers button:active,.wardrobe-hat-colors button:active,.wardrobe-sizes button:active{transform:translateY(1px)}
.wardrobe-sizes button:disabled{opacity:.4;cursor:not-allowed;border-style:dashed}.wardrobe-sizes small{font-size:10px;font-weight:400}
.wardrobe-reference-label,.wardrobe-hat-scope{font-size:12px;line-height:1.6;color:var(--ink-soft);margin-top:8px}
.wardrobe-size-summary{font-size:12px;line-height:1.6;color:var(--ink-soft);padding:11px 12px;background:var(--paper-2);border-radius:10px}
.wardrobe-hat-availability{font-size:11px;line-height:1.5;color:var(--ink-soft)}
.wardrobe-hat-value,.wardrobe-details{order:3}
.wardrobe-hat-value h4{font-size:18px;margin-bottom:10px}.wardrobe-hat-value p{font-size:14px;line-height:1.6;color:var(--ink-soft)}
.wardrobe-hat-value{padding-block:10px;border-top:1px solid color-mix(in srgb,var(--ink) 28%,transparent)}
.wardrobe-details{border:1px solid color-mix(in srgb,var(--ink) 28%,transparent);border-radius:14px;padding:0 14px}
.wardrobe-details summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:50px;font-size:14px;font-weight:700;padding-block:14px}
.wardrobe-details summary::-webkit-details-marker{display:none}.wardrobe-details summary>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.wardrobe-expand{margin-left:auto;font-size:20px;line-height:1;font-weight:400}.wardrobe-details[open] .wardrobe-expand{transform:rotate(45deg)}
.wardrobe-details>div{padding-bottom:16px;font-size:12px;line-height:1.65;color:var(--ink-soft)}
.wardrobe-details p+p{margin-top:8px}.wardrobe-details dl{display:grid;gap:10px;margin-top:12px}.wardrobe-details dl>div{display:flex;justify-content:space-between;gap:12px}.wardrobe-details dd{text-align:right;margin:0}
.wardrobe-policy{margin-top:14px;padding-top:12px;border-top:1px solid var(--paper-2)}
.wardrobe-fit-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.wardrobe-unit-switch{display:flex;gap:3px;border:1px solid var(--paper-2);border-radius:8px;padding:3px}
.wardrobe-unit-switch button{min-height:36px;border:0;border-radius:5px;background:transparent;padding:4px 8px;font-size:11px;font-weight:700}
.wardrobe-unit-switch button[aria-pressed="true"]{background:var(--ink);color:var(--white)}
.wardrobe-size-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.wardrobe-size-table td,.wardrobe-size-table th{padding:9px 4px;border-bottom:1px solid var(--paper-2);text-align:left;overflow-wrap:anywhere}
.wardrobe-size-table th:first-child{width:13%}.wardrobe-size-table .selected-size{background:var(--yolk)}
.wardrobe-fit-note{font-size:11px;line-height:1.6;margin-top:10px!important;color:var(--ink-soft)}
.wardrobe-purchase .btn{width:100%;background:var(--blue);border:2px solid var(--ink);color:var(--white);box-shadow:3px 3px 0 var(--ink)}
.wardrobe-purchase .btn:disabled{background:var(--paper-2);color:var(--ink-soft);box-shadow:none;cursor:not-allowed}
@media(max-width:980px){
 .wardrobe-dialog{width:calc(100% - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px)}
 .wardrobe-showcase{display:block;overflow-y:auto;scrollbar-gutter:stable}
 .wardrobe-visual{border-right:0;border-bottom:1px solid color-mix(in srgb,var(--ink) 28%,transparent)}
 .wardrobe-reference{height:380px;flex:none}.wardrobe-product{overflow:visible;scrollbar-gutter:auto}
}
@media(max-width:700px){
 .wardrobe-heading{margin-bottom:12px}.wardrobe-heading h2{font-size:34px}
 .wardrobe-dialog{width:100%;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);margin:auto 0 0;border-radius:20px 20px 0 0;box-shadow:none}
 .wardrobe-showcase{scrollbar-gutter:auto}.wardrobe-reference{height:clamp(240px,78vw,350px);min-height:0}
 .wardrobe-product h3{margin-top:-8px}.wardrobe-price>span{font-size:29px}
 .wardrobe-wear-thumbs button,.wardrobe-hat-thumbs button,.wardrobe-appearances button{width:58px;height:58px;flex-basis:58px}
 .wardrobe-shapes button,.wardrobe-hat-offers button,.wardrobe-hat-colors button,.wardrobe-sizes button{padding:10px;font-size:12px}
 .wardrobe-shapes{grid-template-columns:repeat(2,minmax(0,1fr))}.wardrobe-shapes button:last-child{grid-column:1/-1}
 .wardrobe-art-caption,.wardrobe-wear-note{font-size:10px}
 .wardrobe-details dl>div{flex-direction:column;gap:3px}.wardrobe-details dd{text-align:left}
 .wardrobe-card-open:focus-visible{border-radius:16px}.wardrobe-controls .sort{min-width:0}
}
@media(max-width:380px){.wardrobe-controls{gap:10px}}
@media(prefers-reduced-motion:reduce){.wardrobe-dialog button{transition:none}}
