/* Reuse the exact department Polaroid composition, scoped to Atelier. */
.from-neo .catalog-department-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,180px));gap:20px;padding:8px;margin:24px 0;width:auto;border:0;border-radius:0;background:none;overflow:visible}
.from-neo .catalog-department-tabs>.department-polaroid{display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:0;min-width:0;min-height:0;margin:0;padding:8px 8px 16px;border:1px solid #c4b59c!important;border-radius:0;background:#e8dfcf!important;color:#211911!important;text-align:left;text-decoration:none}
.from-neo .catalog-department-tabs .department-negative{display:flex;color:#f2cf9e}
.from-neo .catalog-department-tabs .department-negative small,.from-neo .catalog-department-tabs .department-negative i{color:#e0c2a0!important}
.from-neo .catalog-department-tabs .department-caption{display:flex;color:#211911;font:700 .8rem/1.3 "Courier New",monospace;text-transform:none}
.from-neo .catalog-department-tabs .department-caption b{color:#211911!important;margin:0;font:inherit}
.from-neo .catalog-department-tabs .department-note{color:#66513d!important;margin:0;font:.65rem/1.4 "Courier New",monospace;text-transform:none}
.from-neo .catalog-department-tabs .active{outline:2px solid #e2a460;outline-offset:3px}
.from-neo .catalog-department-tabs .active::after{content:none!important}
.from-neo .catalog-department-tabs button:disabled{cursor:not-allowed;opacity:1}
.from-neo .garment-categories{margin-top:28px}
.from-neo .garment-categories .catalog-collection-link{grid-template-columns:28px minmax(0,1fr) auto;gap:12px;min-width:0;padding:18px 16px}
.from-neo .garment-categories span{font:700 1.05rem/1.3 "Courier New",monospace;color:#e7b66a;overflow-wrap:anywhere}
.from-neo .garment-categories small{font-size:.75rem;text-align:right}
@media(max-width:600px){.from-neo .catalog-department-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.from-neo .catalog-department-tabs>.department-polaroid{flex:auto;padding:7px 7px 14px}.from-neo .garment-categories .catalog-collection-link{grid-template-columns:22px minmax(0,1fr)}.from-neo .garment-categories small{grid-column:2;text-align:left}}

.from-neo .catalog-department-tabs{grid-template-columns:repeat(auto-fill,minmax(96px,108px));gap:14px;padding:6px}
.from-neo .catalog-department-tabs>.department-polaroid{padding:5px 5px 10px}
.from-neo .catalog-department-tabs .department-caption{font-size:.55rem;line-height:1.3}
.from-neo .catalog-department-tabs .department-note{font-size:.46rem;line-height:1.35}
@media(max-width:600px){.from-neo .catalog-department-tabs{grid-template-columns:repeat(auto-fill,minmax(96px,108px));gap:12px}.from-neo .catalog-department-tabs>.department-polaroid{padding:5px 5px 10px}}

.from-neo .catalog-department-tabs .department-caption{font-size:.65rem;line-height:1.3}
.from-neo .catalog-department-tabs .department-note{font-size:.55rem;line-height:1.35}

@media(min-width:761px){.from-neo .catalog-department-tabs{grid-template-columns:repeat(7,minmax(0,108px))}}

/* Atelier collections use tiles; product controls and identities stay unchanged. */
.from-neo .garment-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border:0;background:none;overflow:visible}
.from-neo .garment-categories .catalog-collection-link{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;min-height:130px;padding:20px;border:1px solid #986743!important;background:linear-gradient(135deg,#332218,#161511);border-radius:0;text-decoration:none}
.from-neo .garment-categories .catalog-collection-link b{color:#cb956c;font:12px "Courier New",monospace}
.from-neo .garment-categories .catalog-collection-link span{font:500 1.25rem/1.2 Georgia,serif;color:#efc8a6;text-transform:none}
.from-neo .garment-categories .catalog-collection-link small{margin:0;text-align:left;color:#b9aa96}
.from-neo .garment-categories .catalog-collection-link:hover,.from-neo .garment-categories .catalog-collection-link:focus-visible{background:#39281c;outline:2px solid #e69b61;outline-offset:3px}
.from-neo #core-products,.from-neo #pants-products,.from-neo #fitness-products,.from-neo #featured-products,.from-neo #seasonal-products,.from-neo #footwear-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.from-neo #core-products>.tee-header{grid-column:1/-1;margin:20px 0 0}
.from-neo .product-banner{grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:16px;min-height:0;min-width:0;align-self:stretch;align-content:start}
.from-neo .product-banner>.product-media{width:100%;height:auto;aspect-ratio:4/5;min-height:0;max-height:none;overflow:hidden;background:#eee9e1}
.from-neo .product-banner>.product-media img{width:100%;height:100%;object-fit:contain;object-position:center}
.from-neo .product-banner>.product-detail{min-width:0;display:block;padding:0}
.from-neo .product-banner>.product-detail h3{font:500 1.2rem/1.25 Georgia,serif;overflow-wrap:anywhere;margin:4px 0 12px}
.from-neo .product-banner .shirt-options-trigger{width:100%;max-width:none;margin-top:12px}
@media(max-width:760px){.from-neo .garment-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.from-neo #core-products,.from-neo #pants-products,.from-neo #fitness-products,.from-neo #featured-products,.from-neo #seasonal-products,.from-neo #footwear-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:480px){.from-neo #core-products,.from-neo #pants-products,.from-neo #fitness-products,.from-neo #featured-products,.from-neo #seasonal-products,.from-neo #footwear-products{grid-template-columns:minmax(0,1fr)}}

/* Search and filters share the catalog's warm copper palette. */
.catalog-filters{margin:24px 0;padding:24px;border:1px solid #956746;background:#1c1713;color:#eee1cf}
.catalog-filters h2{font:500 1.8rem/1.2 Georgia,serif;text-transform:none;color:#efb483;margin:0 0 20px}
.catalog-filter-fields{display:grid;grid-template-columns:1.4fr repeat(4,minmax(0,1fr));gap:14px}
.catalog-filter-fields label{display:grid;gap:8px;min-width:0;font:700 .75rem/1.4 "Courier New",monospace;color:#ddbf9b}
.catalog-filter-fields input,.catalog-filter-fields select{width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid #8d6d51;background:#100e0c;color:#f4eadb;font:14px/1.4 system-ui;box-sizing:border-box;color-scheme:dark}
.catalog-filter-fields input:focus-visible,.catalog-filter-fields select:focus-visible,.catalog-filter-footer button:focus-visible{outline:2px solid #ed9b64;outline-offset:3px}
.catalog-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
.catalog-filter-footer p{margin:0;font:14px/1.5 system-ui;color:#ccbda8}
.catalog-filter-footer button{padding:10px 16px;border:1px solid #ad7c54;background:#342418;color:#f6d5b6;cursor:pointer;white-space:nowrap}
.catalog-filter-footer button:disabled{opacity:.5;cursor:default}
.product-banner[hidden],.tee-header[hidden],.catalog-filters[hidden]{display:none!important}
.from-neo #pants-products>.tee-header,.from-neo #footwear-products>.tee-header{grid-column:1/-1}
@media(max-width:760px){.catalog-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filter-fields label:first-child{grid-column:1/-1}.catalog-filters{padding:18px}.catalog-filter-footer{align-items:flex-start}}

.catalog-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-filter-fields label[hidden]{display:none!important}
@media(max-width:760px){.catalog-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Store-style filters remain tucked into a modal side drawer. */
.catalog-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0;color:#d6c3ab}
.catalog-filter-toolbar[hidden]{display:none}
.catalog-filter-toolbar p{margin:0;font:14px/1.5 system-ui}
.catalog-filter-open{padding:12px 22px;border:1px solid #b78156;background:#332318;color:#f5d8b9;font:700 14px/1.4 "Courier New",monospace;cursor:pointer}
.catalog-filters:not([open]){display:none}
dialog.catalog-filters{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,100vw);height:100dvh;max-width:100vw;max-height:100dvh;box-sizing:border-box;padding:30px 24px;border:0;border-left:1px solid #a7764e;background:#1c1713;color:#eee1cf;overflow-y:auto;box-shadow:-16px 0 50px #0007}
dialog.catalog-filters::backdrop{background:#080706a6}
dialog.catalog-filters h2{padding-right:35px;margin:8px 0 28px}
dialog.catalog-filters .catalog-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
dialog.catalog-filters .catalog-filter-fields label:first-child{grid-column:1/-1}
.catalog-filter-close{position:absolute;right:18px;top:20px;width:36px;height:36px;border:1px solid #9b7352;background:#302217;color:#f2d5b7;font-size:26px;cursor:pointer}
.catalog-filter-open:focus-visible,.catalog-filter-close:focus-visible{outline:2px solid #ec9c65;outline-offset:3px}
@media(max-width:760px){.catalog-filter-toolbar{align-items:flex-start}.catalog-filter-toolbar p{text-align:right}}

/* Keep women's departments and catalog products aligned with the men's tile layout. */
.from-neo.womens-store .women-department-tabs{grid-template-columns:repeat(6,minmax(0,108px));gap:14px;padding:6px;border:0;background:none;overflow:visible}
.from-neo.womens-store .women-department-tabs>.department-polaroid{display:flex;flex-direction:column;gap:0;min-height:0;padding:5px 5px 10px;border:1px solid #c4b59c;background:#e8dfcf;color:#211911;text-transform:none;border-radius:0}
.from-neo.womens-store .women-department-tabs .department-caption{font:700 .65rem/1.3 "Courier New",monospace;color:#211911}
.from-neo.womens-store .women-department-tabs .department-caption b{font:inherit;color:inherit;margin:0}
.from-neo.womens-store .women-department-tabs .department-note{font:.55rem/1.35 "Courier New",monospace;color:#66513d}
.from-neo.womens-store .women-department-tabs button.active{background:#e8dfcf;outline:2px solid #d68d6c;outline-offset:3px}
.from-neo.womens-store .women-department-tabs button.active::after{content:none}
.from-neo .catalog-filter-open{background:#44231e;border-color:#bc7060;color:#f1d4bd}
.from-neo dialog.catalog-filters{background:#211513;border-color:#ad6152}
.from-neo dialog.catalog-filters .top-tools{display:grid;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
.from-neo dialog.catalog-filters .top-tools>p{grid-column:1/-1}
.from-neo dialog.catalog-filters label[hidden]{display:none!important}
.from-neo .top-grid,.from-neo main .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.from-neo main .grid>article[hidden]{display:none!important}
.from-neo main .grid>article{min-width:0;max-width:none}
@media(max-width:760px){.from-neo.womens-store .women-department-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,108px));gap:12px}.from-neo.womens-store .women-department-tabs>*{flex:auto}.from-neo .top-grid,.from-neo main .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.from-neo .top-grid,.from-neo main .grid{grid-template-columns:minmax(0,1fr)}}

/* Neo storefront: the same layout in the existing cyan / pink circuit design. */
body.from-neo{--neo-accent:#55e9ff;--neo-rgb:85,233,255;--neo-soft:#d8faff;--store-accent:var(--neo-accent);--store-soft:var(--neo-soft);--store-rgb:var(--neo-rgb);--store-cream:#e9f6f4;background:#030b10}
body.from-neo.womens-store,body.from-neo[data-store-side="women"]{--neo-accent:#ff3fa4;--neo-rgb:255,63,164;--neo-soft:#ffe0f0}
.from-neo .coded-atmosphere{background:radial-gradient(ellipse at 80% 20%,rgba(var(--neo-rgb),.1),transparent 55%),linear-gradient(130deg,#07141b,#03080c 70%,#081719)}
.from-neo .catalog-department-tabs>.department-polaroid,.from-neo.womens-store .women-department-tabs>.department-polaroid{background:#06141b!important;color:var(--neo-soft)!important;border-color:rgba(var(--neo-rgb),.5)!important;box-shadow:inset 0 0 18px rgba(var(--neo-rgb),.06),0 5px 18px #0006;transform:none}
.from-neo .department-negative{background:linear-gradient(135deg,rgba(var(--neo-rgb),.13),#050d12);border-color:rgba(var(--neo-rgb),.28);box-shadow:none}
.from-neo .department-negative strong{background:none;-webkit-text-fill-color:var(--neo-accent);-webkit-text-stroke:0;color:var(--neo-accent);text-shadow:0 0 12px rgba(var(--neo-rgb),.2);filter:none}
.from-neo .department-negative small,.from-neo .catalog-department-tabs .department-negative small{color:var(--neo-soft)!important}
.from-neo .catalog-department-tabs .department-caption,.from-neo .catalog-department-tabs .department-caption b,.from-neo.womens-store .women-department-tabs .department-caption{color:var(--neo-soft)!important}
.from-neo .catalog-department-tabs .department-note,.from-neo.womens-store .women-department-tabs .department-note{color:#aac4cc!important}
.from-neo .catalog-department-tabs .active,.from-neo.womens-store .women-department-tabs button.active{outline-color:var(--neo-accent)}
.from-neo .garment-categories .catalog-collection-link,.from-neo .product-banner{background:linear-gradient(135deg,#0c2029,#030d13)!important;border-color:rgba(var(--neo-rgb),.4)!important}
.from-neo .garment-categories .catalog-collection-link span,.from-neo .garment-categories .catalog-collection-link b{color:var(--neo-soft)}
.from-neo .catalog-filter-open,.from-neo .catalog-filter-footer button,.from-neo .catalog-filter-close{background:#102833;border-color:var(--neo-accent);color:var(--neo-soft)}
.from-neo dialog.catalog-filters{background:#07151e;color:#e8f5f7;border-color:var(--neo-accent)}
.from-neo dialog.catalog-filters h2{color:var(--neo-accent)}
.from-neo .catalog-filter-fields input,.from-neo .catalog-filter-fields select{background:#020c12;border-color:#3a6675;color:#e9f7fa}
.from-neo .catalog-filter-fields label{color:var(--neo-soft)}
.from-neo .catalog-filter-open:focus-visible,.from-neo .catalog-filter-close:focus-visible{outline-color:var(--neo-accent)}

/* Compact Neo tabs: preserve the outlined design and whole-word labels. */
.from-neo .catalog-department-tabs,
.from-neo.womens-store .women-department-tabs{grid-template-columns:repeat(8,140px);gap:14px;overflow-x:auto;padding:6px 6px 14px}
.from-neo .catalog-department-tabs>.department-polaroid{width:140px;box-sizing:border-box;min-height:252px;padding:7px 7px 12px}
.from-neo .catalog-department-tabs .department-negative{aspect-ratio:1;min-height:0;padding:12px 4px;box-sizing:border-box}
.from-neo .catalog-department-tabs .department-negative strong{font-size:15px;line-height:1.25;letter-spacing:-.03em;overflow-wrap:normal;word-break:normal;hyphens:none}
.from-neo .catalog-department-tabs .department-caption{font-size:13px;line-height:1.35;overflow-wrap:normal;word-break:normal;margin-top:10px}
.from-neo .catalog-department-tabs .department-note{font-size:10px;line-height:1.45;overflow-wrap:normal;word-break:normal}
@media(max-width:700px){.from-neo .catalog-department-tabs,.from-neo.womens-store .women-department-tabs{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.from-neo .catalog-department-tabs>.department-polaroid{width:auto}.from-neo .catalog-department-tabs .department-negative{aspect-ratio:1.15}}
