/* Front page only: keep native WooCommerce behaviour and the existing header. */
.elenpriv-home-main:has(.ep-home){background:#fdfbf8}
body.elenpriv-store .site .ep-home{padding-top:22px!important;padding-bottom:36px!important;max-width:1600px}
.ep-home-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 28px}
.ep-category{display:flex;align-items:center;position:relative;gap:10px;min-height:154px;border-radius:18px;padding:14px 14px 14px 4px;background:#f6eee2;color:#253630;transition:transform .18s,box-shadow .18s}
.ep-category-clothing{background:#edf1e5}.ep-category-dolls{background:#f5e9e5}
.ep-category:hover{transform:translateY(-3px);box-shadow:0 8px 24px #26332b0d}
.ep-category img{width:32%;max-width:140px;flex-shrink:0;aspect-ratio:1;object-fit:contain}
.ep-category-copy{display:flex;flex-direction:column;gap:9px;min-width:0;flex:1}
.ep-category-copy strong{font-family:var(--ep-font-body,Arial,sans-serif);font-size:clamp(19px,1.8vw,28px);font-weight:650;letter-spacing:-.025em;line-height:1.15}
.ep-category-copy>span{font-size:12px;line-height:1.5;color:#6f7265}
.ep-category-arrow{color:#d36d50;flex:0 0 24px}.ep-category-arrow svg{width:25px;height:25px;display:block}
.ep-home-section{margin:0 0 30px;min-width:0}
.ep-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 18px}
.ep-home-section-head h2{margin:0;color:#292e28;font-size:clamp(23px,2.7vw,33px);font-weight:650;letter-spacing:-.025em;line-height:1.15}
.ep-carousel-controls{display:flex;gap:10px}
.ep-carousel-controls button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #6a7e47;border-radius:50%;padding:7px;background:transparent;color:#526738;cursor:pointer;transition:background .15s}
.ep-carousel-controls button:hover:not(:disabled){background:#edf1e5}.ep-carousel-controls button:disabled{opacity:.3;cursor:default}
.ep-carousel-controls svg{width:22px;height:22px}
.ep-home a:focus-visible,.ep-home button:focus-visible,.ep-home-carousel:focus-visible{outline:2px solid #b65d41;outline-offset:4px}
.ep-home-carousel{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c6cdb8 transparent;padding:4px 2px 12px;scroll-behavior:smooth}
body.elenpriv-store .site .ep-home .ep-home-carousel ul.products{display:flex!important;flex-wrap:nowrap!important;gap:16px!important;grid-template-columns:none!important;width:max-content;min-width:100%;align-items:stretch}
body.elenpriv-store .site .ep-home .ep-home-carousel ul.products li.product{flex:0 0 auto!important;width:clamp(170px,calc((100vw - 150px)/5.45),245px)!important;scroll-snap-align:start}
body.elenpriv-store .site .ep-home ul.products li.product{background:#fffefa!important;border:1px solid #e3ddd4!important;border-radius:11px!important;box-shadow:none!important;padding:0 0 13px!important;overflow:hidden!important}
body.elenpriv-store .site .ep-home ul.products .elenpriv-product-media{aspect-ratio:1/1.05!important;width:100%!important;height:auto!important;min-height:0!important;background:#f4f2eb!important;border:0!important;border-radius:10px 10px 0 0!important;overflow:hidden!important}
body.elenpriv-store .site .ep-home ul.products .elenpriv-product-media::after{border:0!important}
body.elenpriv-store .site .ep-home ul.products .elenpriv-product-media img{object-fit:contain!important;background:#f4f2eb!important}
body.elenpriv-store .site .ep-home ul.products li.product .woocommerce-loop-product__title{text-align:left!important;margin:11px 12px 5px!important;height:38px!important;min-height:38px!important;max-height:38px!important;font-size:13px!important;line-height:19px!important;color:#292e28!important}
body.elenpriv-store .site .ep-home ul.products li.product .price{text-align:left!important;margin:0 12px!important;color:#d4674d!important;font-size:17px!important;font-weight:650!important}
body.elenpriv-store .site .ep-home .ep-home-recommended ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
body.elenpriv-store .site .ep-home .ep-home-recommended ul.products .elenpriv-product-media{aspect-ratio:1/0.9!important}
.ep-home-edit{font-size:12px;color:#6a784f;text-decoration:underline}
.ep-home-empty{padding:28px;background:#f3f3eb;border-radius:10px;color:#73786a}
.ep-home-catalog-link{text-align:center;margin-top:8px}
.ep-home-catalog-link>a{display:inline-flex;align-items:center;gap:10px;border:1px solid #d4dcc7;border-radius:8px;padding:12px 20px;font-size:13px;color:#526738;background:#fff}
.ep-home-catalog-link svg{width:20px;height:20px}
.ep-subcategories{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 22px}
.ep-subcategories a{padding:9px 14px;border:1px solid #dce2d4;border-radius:24px;font-size:13px;background:#f8f9f4;color:#536548}
.ep-subcategories a:hover,.ep-subcategories a[aria-current=page]{background:#e7edde;border-color:#a8b994;color:#2e5034}
@media(max-width:1000px){.ep-category{gap:3px;min-height:130px;padding-right:10px}.ep-category-copy strong{font-size:21px}.ep-category-copy>span{font-size:11px}.ep-category-arrow{flex-basis:18px}.ep-category-arrow svg{width:20px}.ep-home-categories{gap:10px}}
@media(max-width:700px){body.elenpriv-store .site .ep-home{padding-top:14px!important}.ep-home-categories{grid-template-columns:1fr;gap:9px;margin-bottom:24px}.ep-category{min-height:91px;padding:2px 18px 2px 5px;gap:12px;border-radius:13px}.ep-category img{width:85px;height:85px}.ep-category-copy{gap:5px}.ep-category-copy strong{font-size:21px}.ep-category-copy>span{font-size:11px}.ep-category-arrow{flex-basis:23px}.ep-category-arrow svg{width:24px}.ep-home-section-head{margin-bottom:12px}.ep-home-section-head h2{font-size:25px}.ep-home-section{margin-bottom:25px}.ep-carousel-controls{gap:8px}.ep-carousel-controls button{width:32px;height:32px;padding:5px}body.elenpriv-store .site .ep-home .ep-home-carousel ul.products{gap:12px!important}body.elenpriv-store .site .ep-home .ep-home-carousel ul.products li.product{width:43vw!important;max-width:230px!important}body.elenpriv-store .site .ep-home .ep-home-recommended ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}body.elenpriv-store .site .ep-home ul.products li.product .woocommerce-loop-product__title{margin-inline:9px!important;font-size:12px!important}body.elenpriv-store .site .ep-home ul.products li.product .price{margin-inline:9px!important;font-size:16px!important}.ep-home-edit{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ep-category{transition:none}.ep-category:hover{transform:none}.ep-home-carousel{scroll-behavior:auto}}

/* Approved category artwork; native circular badges and consistent card geometry. */
.ep-home.ep-home-v2 .ep-home-categories{gap:16px;margin-bottom:28px;align-items:stretch}
.ep-home.ep-home-v2 .ep-category{display:grid;grid-template-columns:minmax(110px,34%) minmax(0,1fr) 24px;gap:12px;min-height:184px;padding:12px 17px 12px 8px;border-radius:18px;background:#fcf0de}
.ep-home.ep-home-v2 .ep-category-clothing{background:#e8eddd}.ep-home.ep-home-v2 .ep-category-dolls{background:#f9e5e5}
.ep-home.ep-home-v2 .ep-category img{display:block;width:100%;height:160px;max-width:none;object-fit:contain;aspect-ratio:1;align-self:center}
.ep-home.ep-home-v2 .ep-category-copy{gap:11px;align-self:center}
.ep-home.ep-home-v2 .ep-category-copy strong{display:block;font-size:clamp(24px,2.3vw,34px);line-height:1.08;letter-spacing:-.03em;font-weight:700;color:#292c27}
.ep-home.ep-home-v2 .ep-category-copy strong>span{display:block;white-space:nowrap}
.ep-home.ep-home-v2 .ep-category-copy>span{font-size:13px;line-height:1.4;color:#65695e}
.ep-home.ep-home-v2 .ep-category-arrow{align-self:center;color:#dd7454}
.ep-home.ep-home-v2 .ep-category-arrow svg{width:27px;height:27px}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products{align-items:stretch!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product{display:flex!important;flex-direction:column!important;align-self:stretch!important;height:auto!important;min-height:0!important;padding:0 0 12px!important;border-radius:10px!important;background:#fffefa!important;border:1px solid #e4ded5!important;box-shadow:none!important;overflow:hidden!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product>a.woocommerce-LoopProduct-link{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;height:100%!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .elenpriv-product-media{position:relative!important;display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1/1.03!important;margin:0!important;padding:0!important;background:#f5f3ed!important;border:0!important;border-radius:9px 9px 0 0!important;box-shadow:none!important;overflow:hidden!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .elenpriv-product-media img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important;padding:4px!important;border:0!important;border-radius:8px!important;background:#f7f5f0!important;box-shadow:none!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .woocommerce-loop-product__title{flex:0 0 40px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;line-clamp:2!important;overflow:hidden!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:11px 12px 6px!important;padding:0!important;font-size:14px!important;line-height:20px!important;font-weight:500!important;text-align:left!important;color:#292c27!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .price{display:block!important;flex-shrink:0!important;min-height:23px!important;line-height:23px!important;margin: auto 12px 0!important;color:#d96e50!important;font-size:17px!important;font-weight:650!important;text-align:left!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .price.ep-home-price-empty{color:#a7aa9d!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .elenpriv-rating-slot{flex-shrink:0!important;margin-bottom:3px!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .elenpriv-rating-slot:empty{display:none!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .elenpriv-product-media .elenpriv-stock{position:absolute!important;left:auto!important;right:8px!important;bottom:8px!important;display:block!important;max-width:calc(100% - 16px)!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 6px!important;border:0!important;border-radius:4px!important;background:rgba(255,255,255,.92)!important;line-height:1.2!important;font-size:10px!important}
@media(max-width:1150px){.ep-home.ep-home-v2 .ep-category{grid-template-columns:minmax(90px,32%) minmax(0,1fr) 19px;min-height:160px;padding:10px;gap:9px}.ep-home.ep-home-v2 .ep-category img{height:140px}.ep-home.ep-home-v2 .ep-category-copy strong{font-size:25px}.ep-home.ep-home-v2 .ep-category-copy>span{font-size:12px}.ep-home.ep-home-v2 .ep-category-arrow svg{width:23px;height:23px}}
@media(max-width:900px) and (min-width:701px){.ep-home.ep-home-v2 .ep-home-categories{gap:10px}.ep-home.ep-home-v2 .ep-category{grid-template-columns:78px minmax(0,1fr) 17px;gap:6px;min-height:145px;padding:9px}.ep-home.ep-home-v2 .ep-category img{height:125px}.ep-home.ep-home-v2 .ep-category-copy strong{font-size:21px}.ep-home.ep-home-v2 .ep-category-copy>span{font-size:10px}}
@media(max-width:700px){.ep-home.ep-home-v2 .ep-home-categories{gap:10px;margin-bottom:25px}.ep-home.ep-home-v2 .ep-category{grid-template-columns:92px minmax(0,1fr) 24px;min-height:106px;padding:7px 15px 7px 5px;gap:13px;border-radius:14px}.ep-home.ep-home-v2 .ep-category img{width:92px;height:92px}.ep-home.ep-home-v2 .ep-category-copy{gap:6px}.ep-home.ep-home-v2 .ep-category-copy strong{font-size:23px}.ep-home.ep-home-v2 .ep-category-copy>span{font-size:11px}.ep-home.ep-home-v2 .ep-category-arrow svg{width:25px;height:25px}html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .woocommerce-loop-product__title{height:38px!important;min-height:38px!important;max-height:38px!important;flex-basis:38px!important;font-size:12px!important;line-height:19px!important;margin:9px 9px 5px!important}html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .price{font-size:16px!important;margin-inline:9px!important}}

/* Inherit alpha160 badge geometry; reserve room for the original protrusion. */
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product>a.button{display:block!important;position:static!important;align-self:stretch!important;width:auto!important;margin:10px 12px 0!important;padding:10px 8px!important;line-height:1.3!important;text-align:center!important}
.ep-home.ep-home-v2 .ep-home-carousel{padding:12px 4px 14px 16px;scroll-padding-inline:16px}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product,html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-products ul.products li.product .elenpriv-product-media{overflow:visible!important}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-recommended .ep-home-products ul.products{padding:12px 0 0 16px!important}
/* A sole enabled department uses the available row. */
.ep-home.ep-home-v2 .ep-home-categories:has(>.ep-category:only-child){grid-template-columns:minmax(0,1fr)}

/* Catalogue entry fills the content width on every screen. */
html body.elenpriv-store .ep-home .ep-home-catalog-link{width:100%;display:block}
html body.elenpriv-store .ep-home .ep-home-catalog-link>a{display:flex!important;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%!important;max-width:none!important;min-height:48px;margin:0!important;text-align:center}

/* Keep native horizontal position stable while images and fonts load.
   Arrow buttons request smooth scrolling explicitly in homepage.js. */
html body.elenpriv-store .site .ep-home .ep-home-carousel{
 scroll-snap-type:none!important;
 scroll-behavior:auto!important;
 overflow-anchor:none;
}
html body.elenpriv-store .site .ep-home .ep-home-carousel ul.products li.product{
 scroll-snap-align:none!important;
}

/* Align the carousel with the section while keeping the New badge inside it. */
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel{
 padding-inline:2px!important;
 scroll-padding-inline:2px;
}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .elenpriv-badge-new,
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .onsale{
 left:4px!important;
}

/* High contrast catalogue call to action. */
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a{
 background:#53643d!important;border:1px solid #53643d!important;
 color:#fff!important;font-size:16px!important;font-weight:600!important;
 min-height:48px;padding:13px 20px!important;gap:14px!important;
 box-shadow:0 3px 10px rgba(45,60,30,.12)!important;
}
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a svg{
 width:24px;height:24px;color:#fff!important;flex-shrink:0;
}
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a:hover,
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a:focus-visible{
 background:#435331!important;border-color:#435331!important;color:#fff!important;
}

/* Match the store's quiet grey action buttons. */
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a{
 background:#ededed!important;border-color:#d2d2d2!important;
 color:#555!important;font-weight:400!important;box-shadow:none!important;
}
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a svg{
 color:#555!important;
}
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a:hover,
html body.elenpriv-store .site .ep-home .ep-home-catalog-link>a:focus-visible{
 background:#e3e3e3!important;border-color:#bdbdbd!important;color:#444!important;
}

/* Keep New badges aligned with the top left corner without a wide gutter. */
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .elenpriv-badge-new,
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .onsale{
 left:-2px!important;top:-8px!important;
}

/* Use the same outside alignment for recommendations and new arrivals. */
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-recommended .ep-home-products ul.products{
 padding:12px 2px 0!important;
 width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-recommended .elenpriv-badge-new,
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-recommended .onsale{
 left:-2px!important;top:-8px!important;
}

/* Shared horizontal product tracks with a persistent, draggable scroll control. */
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .ep-home-products ul.products{
 display:flex!important;flex-wrap:nowrap!important;gap:16px!important;
 width:max-content!important;min-width:100%!important;padding:0!important;align-items:stretch!important;
}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .ep-home-products ul.products li.product{
 flex:0 0 auto!important;width:clamp(170px,calc((100vw - 150px)/5.45),245px)!important;
 max-width:none!important;
}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .ep-home-products ul.products .elenpriv-product-media{
 aspect-ratio:1/1.03!important;
}
.ep-home.ep-home-v2 .ep-home-carousel{scrollbar-width:none;padding-bottom:4px}
.ep-home-carousel::-webkit-scrollbar{display:none}
.ep-carousel-scrollbar{
 display:block!important;appearance:none;-webkit-appearance:none;box-sizing:border-box;
 width:100%!important;height:24px!important;margin:5px 0 0!important;padding:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;cursor:ew-resize;
 accent-color:#687b50;
}
.ep-carousel-scrollbar::-webkit-slider-runnable-track{height:6px;border-radius:5px;background:#e0e4d7}
.ep-carousel-scrollbar::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:52px;height:10px;margin-top:-2px;border:0;border-radius:6px;background:#687b50}
.ep-carousel-scrollbar::-moz-range-track{height:6px;border-radius:5px;background:#e0e4d7}
.ep-carousel-scrollbar::-moz-range-thumb{width:52px;height:10px;border:0;border-radius:6px;background:#687b50}
.ep-carousel-scrollbar:disabled{opacity:.45;cursor:default}
.ep-carousel-scrollbar:focus-visible{outline:2px solid #687b50;outline-offset:2px}
@media(max-width:700px){
 html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .ep-home-products ul.products{gap:12px!important}
 html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .ep-home-products ul.products li.product{width:43vw!important;max-width:230px!important}
}

/* Neutral, matching scroll controls for both product rows. */
.ep-carousel-scrollbar{accent-color:#888}
.ep-carousel-scrollbar::-webkit-slider-runnable-track{background:#e1e1e1}
.ep-carousel-scrollbar::-webkit-slider-thumb{background:#888}
.ep-carousel-scrollbar::-moz-range-track{background:#e1e1e1}
.ep-carousel-scrollbar::-moz-range-thumb{background:#888}
.ep-carousel-scrollbar:focus-visible{outline-color:#777}
.ep-recommended-tools{display:flex;align-items:center;gap:14px}
@media(max-width:700px){.ep-recommended-tools{position:relative}.ep-recommended-tools .ep-home-edit{position:absolute;right:0;bottom:calc(100% + 5px);white-space:nowrap;font-size:10px}}

/* Equal badge overhang on both edges, with enough track gutter to avoid clipping. */
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel{
 padding-left:8px!important;padding-right:8px!important;scroll-padding-inline:8px;
}
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .elenpriv-badge-new,
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-carousel .onsale,
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-recommended .elenpriv-badge-new,
html body.elenpriv-store .site .ep-home.ep-home-v2 .ep-home-recommended .onsale{
 left:-6px!important;top:-6px!important;
}
