/* Archive-only layout. Native WooCommerce card hooks and content remain intact. */
.ecsf.ecsf-product-archive .ecsf-content{max-width:none;padding-top:24px}
.ecsf.ecsf-product-archive .ecsf-category-nav{clear:both;min-width:0}
.ecsf.ecsf-product-archive .ecsf-category-links{margin-bottom:16px}
.ecsf-category-toolbar{display:flex;align-items:center;gap:24px;margin-bottom:16px;min-width:0}
.ecsf.ecsf-product-archive .ecsf-category-toolbar .woocommerce-result-count{float:none;margin:0;flex-shrink:0}
.ecsf-category-toolbar .ecsf-category-nav{flex:1;min-width:0}
.ecsf.ecsf-product-archive .ecsf-category-toolbar .ecsf-category-links{margin:0;gap:clamp(16px,2vw,32px)}
.ecsf-category-sort{position:relative;flex:none;margin-left:auto}
.ecsf-category-sort summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 4px;cursor:pointer;list-style:none}
.ecsf-category-sort summary::-webkit-details-marker{display:none}
.ecsf-sort-options{position:absolute;right:0;top:100%;z-index:5;width:260px;max-width:calc(100vw - 32px);padding:16px;border:1px solid var(--ecsf-line);background:var(--ecsf-bg);color:var(--ecsf-text)}
.ecsf.ecsf-product-archive .ecsf-sort-options .woocommerce-ordering{float:none;margin:0}
.ecsf-sort-apply{display:block;min-height:44px;width:100%;margin-top:12px;padding:8px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;cursor:pointer}
.ecsf.ecsf-product-archive .ecsf-content ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ecsf-card-gap-row-desktop,42px) clamp(16px,2vw,28px);clear:both;list-style:none;margin:0 0 32px;padding:0}
.ecsf.ecsf-product-archive .ecsf-content ul.products::before,.ecsf.ecsf-product-archive .ecsf-content ul.products::after{display:none}
.ecsf.ecsf-product-archive .ecsf-content ul.products li.product{float:none;clear:none;width:auto;min-width:0;margin:0;padding:0;color:var(--ecsf-text)}
.ecsf.ecsf-product-archive .ecsf-content ul.products li.product a img{display:block;width:100%;height:auto;margin:0 0 12px}
.ecsf.ecsf-product-archive .ecsf-content ul.products li.product .woocommerce-loop-product__title{padding:0;margin:0 0 var(--ecsf-card-gap-name,4px);font:var(--ecsf-card-name-weight,500) var(--ecsf-card-name-desktop-size,1.125rem)/1.4 var(--ecsf-card-name-font,var(--ecsf-font-body));color:var(--ecsf-text)}
.ecsf.ecsf-product-archive .ecsf-content ul.products li.product .price{display:block;margin:0;font-family:var(--ecsf-card-price-font,var(--ecsf-font-body));font-size:var(--ecsf-card-price-desktop-size,.9375rem);font-weight:var(--ecsf-card-price-weight,400);color:var(--ecsf-text)}
.ecsf.ecsf-product-archive .ecsf-content ul.products li.product a{text-decoration:none}
.ecsf.ecsf-product-archive .woocommerce-result-count{color:var(--ecsf-muted);font-size:.875rem}
.ecsf.ecsf-product-archive .woocommerce-ordering{max-width:100%;margin-bottom:20px}
.ecsf.ecsf-product-archive .woocommerce-ordering select{min-height:44px;padding:8px 12px;max-width:100%;border:1px solid var(--ecsf-line);border-radius:var(--ecsf-radius);background:var(--ecsf-bg);color:var(--ecsf-text);font:inherit}
@media(max-width:899px){
 .ecsf-category-toolbar{flex-wrap:wrap;gap:4px}
 .ecsf-category-toolbar .ecsf-category-nav{flex-basis:100%}
 .ecsf.ecsf-product-archive .ecsf-category-toolbar .ecsf-category-links{gap:28px}
 .ecsf.ecsf-product-archive .ecsf-content{padding-inline:16px;padding-top:16px}
 .ecsf.ecsf-product-archive .ecsf-content ul.products{row-gap:var(--ecsf-card-gap-row-tablet,38px)}
 .ecsf.ecsf-product-archive .woocommerce-ordering,.ecsf.ecsf-product-archive .woocommerce-result-count{float:none}
 .ecsf.ecsf-product-archive .woocommerce-ordering select{width:100%}
}
@media(min-width:600px) and (max-width:1023px){.ecsf.ecsf-product-archive .ecsf-content ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){.ecsf.ecsf-product-archive .ecsf-content ul.products{grid-template-columns:minmax(0,1fr)}}
@media(max-width:599px){.ecsf.ecsf-product-archive .ecsf-content ul.products li.product .woocommerce-loop-product__title{font-size:var(--ecsf-card-name-mobile-size,1.125rem)}.ecsf.ecsf-product-archive .ecsf-content ul.products li.product .price{font-size:var(--ecsf-card-price-mobile-size,.9375rem)}}

.ecsf.ecsf-product-archive .ecsf-content ul.products li.product .ecsf-rating{margin-bottom:0}
@media(max-width:599px){.ecsf.ecsf-product-archive .ecsf-content ul.products{row-gap:var(--ecsf-card-gap-row-mobile,38px)}}

/* A quiet acknowledgement above the category menu; no layout shift or extra request. */
.ecsf-category-nav{position:relative}
.ecsf-category-feedback{position:absolute;inset-inline:0;bottom:100%;margin-bottom:6px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:18px;color:var(--ecsf-muted);font:400 11px/1.4 var(--ecsf-font-body);letter-spacing:.08em;pointer-events:none;opacity:0;visibility:hidden;transition:opacity 140ms ease}
.ecsf-category-feedback::before{content:"";width:10px;height:10px;box-sizing:border-box;border:1px solid var(--ecsf-line);border-top-color:currentColor;border-radius:50%}
[data-ecsf-busy] .ecsf-category-feedback{visibility:visible;opacity:1}
[data-ecsf-busy] .ecsf-category-feedback::before{animation:ecsf-category-loading 900ms linear infinite}
.ecsf-category-links a[data-ecsf-pending]{background-size:100% 1px}
@keyframes ecsf-category-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ecsf-category-feedback{transition:none}[data-ecsf-busy] .ecsf-category-feedback::before{animation:none}}

/* Shared editorial navigation: native overflow, quiet affordances, fixed touch targets. */
.ecsf.ecsf-product-archive .ecsf-category-toolbar .ecsf-category-links{gap:24px;flex-wrap:nowrap;scrollbar-width:none;font-size:15px;font-weight:400;line-height:1.4;scroll-padding-inline:24px}
.ecsf-category-links::-webkit-scrollbar{display:none;width:0;height:0}
.ecsf-category-links a{white-space:nowrap;min-height:44px;transition:background-size 160ms ease-out}
.ecsf-category-nav::after,.ecsf-category-nav::before{content:'';position:absolute;inset-block:0;inset-inline-end:0;width:28px;z-index:1;pointer-events:none;opacity:0;background:linear-gradient(to right,transparent,var(--ecsf-bg));transition:opacity 160ms ease}
.ecsf-category-nav::before{inset-inline-start:0;inset-inline-end:auto;background:linear-gradient(to left,transparent,var(--ecsf-bg))}
.ecsf-category-nav[data-overflow-end]::after,.ecsf-category-nav[data-overflow-start]::before{opacity:1}
.ecsf-category-links a[data-ecsf-pending]{background-size:0 1px}
.ecsf-category-links a[aria-current=page]{background-size:100% 1px}
.ecsf-category-content-hold{overflow-anchor:none}
.ecsf-category-stage{position:fixed;left:0;top:0;visibility:hidden;pointer-events:none;z-index:-1}
.ecsf-hero .ecsf-hero-previous{pointer-events:none;animation:ecsf-category-photo-out 300ms ease-out both}
@keyframes ecsf-category-photo-out{from{opacity:1}to{opacity:0}}
.ecsf-hero-unavailable{background:var(--ecsf-bg);min-height:0;padding:32px var(--ecsf-gutter)}
.ecsf-hero-unavailable::before,.ecsf-hero-unavailable::after{display:none}
@media(prefers-reduced-motion:reduce){.ecsf-category-links a,.ecsf-category-nav::after,.ecsf-category-nav::before{transition:none}.ecsf-hero .ecsf-hero-previous{animation:none;display:none}}

/* Reallocate 6px below the mobile toolbar above it: keep product images still.
   Match the hero copy's visual offset so the complete intro moves together. */
@media(max-width:899px){
 .ecsf.ecsf-product-archive .ecsf-category-toolbar{margin-top:6px;margin-bottom:10px}
 .ecsf.ecsf-product-archive #main-content[data-ecsf-category]>.ecsf-hero .ecsf-hero-copy{top:6px}
 .ecsf.ecsf-product-archive[data-mode=dark] .ecsf-category-sort summary{font-weight:300}
}
@media(max-width:899px) and (prefers-color-scheme:dark){
 .ecsf.ecsf-product-archive[data-mode=system] .ecsf-category-sort summary{font-weight:300}
}

/* Final Sort alignment: move only the mobile control 5px nearer the gallery.
   Keep the existing 44px target, category row and first product position. */
.ecsf-category-sort summary{line-height:1}
.ecsf-category-sort .ecsf-sort-chevron{display:block;flex:none;align-self:center;width:12px;height:12px}
@media(max-width:899px){
 .ecsf.ecsf-product-archive .ecsf-category-sort{top:5px}
}

/* Keep the tap target above the caption instead of leaving unused space below.
   The caption and chevron move together; the image and category row stay put. */
.ecsf-category-sort .ecsf-sort-content{display:inline-flex;align-items:center;gap:12px;color:inherit;font:inherit;line-height:1}
.ecsf-category-sort .ecsf-sort-label{color:inherit;font:inherit;line-height:1}
@media(max-width:899px){
 .ecsf.ecsf-product-archive .ecsf-category-sort summary{align-items:flex-end;padding-block:0}
 .ecsf.ecsf-product-archive .ecsf-category-sort .ecsf-sort-content{margin-bottom:3px}
}
