/*
Theme Name: Elmahalawy V2 Work Preview
Theme URI: https://elmahalawystores.com
Author: Elmahalawy / CoreNexas
Description: Premium mobile-first WooCommerce storefront for Elmahalawy Stores with structured departments, real cart checkout, live search and Android app promotion.
Version: 2.10.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: elmahalawy-v2
Tags: rtl, e-commerce, woocommerce, supermarket, responsive
*/

:root{
  --em-red:#e21b17;
  --em-red-dark:#b91311;
  --em-blue:#083f83;
  --em-blue-2:#0b5eb4;
  --em-ink:#122033;
  --em-muted:#64748b;
  --em-bg:#f5f8fc;
  --em-card:#fff;
  --em-line:#dfe7f1;
  --em-green:#10a958;
  --em-yellow:#ffcc34;
  --em-radius:20px;
  --em-shadow:0 16px 44px rgba(8,63,131,.10);
  --em-shadow-sm:0 8px 24px rgba(8,63,131,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;direction:rtl;text-align:right;background:var(--em-bg);color:var(--em-ink);font-family:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(1380px,calc(100% - 32px));margin-inline:auto}
.em-topbar{background:var(--em-blue);color:#fff;font-size:13px}
.em-topbar .container{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.em-topbar-links{display:flex;gap:22px;align-items:center;white-space:nowrap}
.em-topbar a{font-weight:800}
.em-slogan{font-weight:900;letter-spacing:.1px}
.em-site-header{position:sticky;top:0;z-index:120;background:#fff;border-bottom:1px solid var(--em-line);box-shadow:0 5px 18px rgba(15,23,42,.04)}
.admin-bar .em-site-header{top:32px}
.em-header-main{min-height:88px;display:grid;grid-template-columns:260px minmax(280px,1fr) auto;gap:20px;align-items:center}
.em-brand{display:flex;align-items:center;gap:12px;min-width:0}
.em-logo{width:62px;height:62px;object-fit:contain;background:#fff;border-radius:16px}
.em-brand-copy strong{display:block;color:var(--em-blue);font-size:21px;line-height:1.2;font-weight:900}
.em-brand-copy span{display:block;color:var(--em-muted);font-size:12px;font-weight:700;margin-top:3px}
.em-search{position:relative}
.em-search-form{height:54px;border:2px solid #cfe0f2;border-radius:15px;display:flex;background:#fff;overflow:hidden;transition:.2s}
.em-search-form:focus-within{border-color:var(--em-blue-2);box-shadow:0 0 0 4px rgba(11,94,180,.08)}
.em-search-form input{flex:1;border:0;outline:0;padding:0 18px;background:transparent;font-size:15px;color:var(--em-ink)}
.em-search-form button{width:60px;border:0;background:var(--em-blue);color:#fff;font-size:20px}
.em-live-search{display:none;position:absolute;top:calc(100% + 8px);right:0;left:0;background:#fff;border:1px solid var(--em-line);border-radius:16px;box-shadow:var(--em-shadow);padding:8px;z-index:180;max-height:430px;overflow:auto}
.em-live-search.is-open{display:block}
.em-live-row{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;padding:9px;border-radius:12px}
.em-live-row:hover{background:#f3f7fb}
.em-live-row img{width:54px;height:54px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid #eef2f7}
.em-live-row strong{display:block;font-size:14px}
.em-live-row span{font-size:13px;color:var(--em-red);font-weight:900}
.em-header-actions{display:flex;align-items:center;gap:10px}
.em-action{min-height:48px;border:1px solid var(--em-line);border-radius:14px;padding:7px 12px;background:#fff;display:flex;align-items:center;gap:9px;font-weight:800;color:var(--em-blue);white-space:nowrap}
.em-action svg{width:21px;height:21px}
.em-cart{background:var(--em-red);color:#fff;border-color:var(--em-red);position:relative}
.em-cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#fff;color:var(--em-red);font-size:12px;font-weight:900}
.em-nav{border-top:1px solid #edf2f7;background:#fff}
.em-nav-inner{height:52px;display:flex;align-items:center;gap:18px;position:relative}
.em-dept-trigger{height:38px;border:0;border-radius:11px;background:var(--em-blue);color:#fff;padding:0 16px;display:flex;align-items:center;gap:8px;font-weight:900}
.em-quick-nav{display:flex;align-items:center;gap:20px;overflow:auto;flex:1;white-space:nowrap;scrollbar-width:none}
.em-quick-nav::-webkit-scrollbar{display:none}
.em-quick-nav a{font-size:14px;font-weight:800;color:#27445f}
.em-quick-nav a:hover{color:var(--em-red)}
.em-mega{display:none;position:absolute;right:0;left:0;top:48px;background:#fff;border:1px solid var(--em-line);border-radius:0 0 22px 22px;box-shadow:var(--em-shadow);padding:24px;grid-template-columns:repeat(5,1fr);gap:20px;z-index:160;max-height:70vh;overflow:auto}
.em-mega.is-open{display:grid}
.em-mega-group{min-width:0}
.em-mega-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:900;color:var(--em-blue);margin-bottom:9px}
.em-mega-icon{width:34px;height:34px;border-radius:10px;background:#eef5ff;color:var(--em-blue);display:grid;place-items:center;flex:none}
.em-mega-icon svg{width:19px;height:19px}
.em-mega-links{display:grid;gap:5px}
.em-mega-links a{font-size:13px;color:#52677a;padding:3px 0}
.em-mega-links a:hover{color:var(--em-red)}
.em-mobile-toggle{display:none;width:46px;height:46px;border:0;border-radius:13px;background:var(--em-blue);color:#fff;font-size:22px}

.em-hero{padding:24px 0 14px}
.em-hero-card{display:grid;grid-template-columns:1.05fr .95fr;min-height:410px;background:linear-gradient(135deg,#fff 0%,#f7fbff 56%,#eef6ff 100%);border:1px solid var(--em-line);border-radius:28px;overflow:hidden;box-shadow:var(--em-shadow)}
.em-hero-copy{padding:54px;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2}
.em-eyebrow{display:inline-flex;align-items:center;gap:8px;width:max-content;background:#edf5ff;color:var(--em-blue);border-radius:99px;padding:7px 13px;font-size:13px;font-weight:900;margin-bottom:16px}
.em-eyebrow i{width:8px;height:8px;background:var(--em-red);border-radius:50%}
.em-hero h1{margin:0;color:var(--em-blue);font-size:clamp(34px,4vw,60px);line-height:1.16;font-weight:1000;letter-spacing:-1.4px}
.em-hero h1 em{font-style:normal;color:var(--em-red);display:block}
.em-hero p{font-size:17px;color:#54677b;max-width:660px;margin:18px 0 0}
.em-hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:26px}
.em-btn{min-height:50px;border-radius:13px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:900;border:1px solid transparent}
.em-btn-primary{background:var(--em-red);color:#fff;box-shadow:0 10px 24px rgba(226,27,23,.20)}
.em-btn-secondary{background:#fff;color:var(--em-blue);border-color:#cfe0f2}
.em-hero-media{position:relative;overflow:hidden;background:#edf5ff;min-height:410px}
.em-hero-media img{position:absolute;inset:0;width:205%;max-width:none;height:100%;object-fit:cover;object-position:right center;transform:translateX(0)}
.em-hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.20) 22%,rgba(255,255,255,0) 48%)}
.em-hero-app{position:absolute;left:24px;bottom:22px;z-index:2;background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.9);box-shadow:var(--em-shadow-sm);border-radius:16px;padding:11px 14px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:900;color:var(--em-blue)}
.em-hero-app svg{width:26px;height:26px;color:var(--em-green)}

.em-trust{padding:0 0 18px}
.em-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.em-trust-item{background:#fff;border:1px solid var(--em-line);border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:12px;box-shadow:var(--em-shadow-sm)}
.em-trust-item b{display:block;font-size:14px}
.em-trust-item span{display:block;color:var(--em-muted);font-size:12px;margin-top:2px}
.em-trust-icon{width:42px;height:42px;border-radius:13px;background:#eef5ff;color:var(--em-blue);display:grid;place-items:center;flex:none}
.em-trust-icon svg{width:22px;height:22px}

.em-section{padding:28px 0}
.em-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}
.em-section-head h2{font-size:29px;line-height:1.25;margin:0;color:var(--em-ink);font-weight:1000}
.em-section-head p{margin:5px 0 0;color:var(--em-muted);font-size:14px}
.em-view-all{font-weight:900;color:var(--em-blue);font-size:14px;white-space:nowrap}
.em-cat-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:11px}
.em-cat-card{background:#fff;border:1px solid var(--em-line);border-radius:18px;padding:16px 10px;text-align:center;min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;transition:.18s;box-shadow:0 5px 15px rgba(8,63,131,.035)}
.em-cat-card:hover{transform:translateY(-3px);border-color:#b9d0e9;box-shadow:var(--em-shadow-sm)}
.em-cat-icon{width:52px;height:52px;border-radius:16px;background:#eef5ff;color:var(--em-blue);display:grid;place-items:center}
.em-cat-icon svg{width:27px;height:27px}
.em-cat-card strong{font-size:13px;line-height:1.35}
.em-cat-card small{color:var(--em-muted);font-size:11px}

.em-products{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}
.em-product{position:relative;background:#fff;border:1px solid var(--em-line);border-radius:19px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 7px 20px rgba(8,63,131,.045);transition:.18s}
.em-product:hover{transform:translateY(-3px);box-shadow:var(--em-shadow-sm)}
.em-product-media{display:block;aspect-ratio:1/1;background:#fff;padding:15px;border-bottom:1px solid #eef2f7}
.em-product-media img{width:100%;height:100%;object-fit:contain}
.em-product-placeholder{width:100%;height:100%;display:grid;place-items:center;background:#f4f7fb;border-radius:13px;color:#a3b0be;font-weight:900;font-size:34px}
.em-badge{position:absolute;top:10px;right:10px;background:var(--em-red);color:#fff;border-radius:9px;padding:4px 8px;font-size:11px;font-weight:900;z-index:2}
.em-badge.new{background:var(--em-blue)}
.em-product-body{padding:13px;display:flex;flex-direction:column;flex:1}
.em-product-title{font-size:14px;line-height:1.55;font-weight:900;margin:0;min-height:43px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.em-product-meta{color:var(--em-muted);font-size:11px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.em-price{margin-top:10px;min-height:38px;font-size:17px;font-weight:1000;color:var(--em-red)}
.em-price del{font-size:12px;color:#94a3b8;font-weight:700;margin-left:4px}
.em-price ins{text-decoration:none}
.em-product-actions{margin-top:auto;padding-top:10px;display:grid;grid-template-columns:1fr 42px;gap:7px}
.em-add{height:42px;border:0;border-radius:11px;background:var(--em-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.em-add:hover{background:var(--em-blue-2)}
.em-details{height:42px;border:1px solid var(--em-line);border-radius:11px;background:#fff;color:var(--em-blue);display:grid;place-items:center}
.em-details svg{width:18px;height:18px}
.em-stock-out{background:#eef2f7;color:#64748b}

.em-fresh{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;background:linear-gradient(135deg,#063d7c,#0b5eb4);border-radius:25px;overflow:hidden;color:#fff;min-height:300px}
.em-fresh-copy{padding:38px;display:flex;flex-direction:column;justify-content:center}
.em-fresh h2{font-size:36px;margin:0 0 10px;font-weight:1000}
.em-fresh p{margin:0;color:#dceaff;max-width:540px}
.em-fresh .em-btn{margin-top:20px;width:max-content;background:#fff;color:var(--em-blue)}
.em-fresh-media{position:relative;overflow:hidden;min-height:300px}
.em-fresh-media img{position:absolute;inset:0;width:200%;max-width:none;height:100%;object-fit:cover;object-position:right center}

.em-app-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;background:#fff;border:1px solid var(--em-line);border-radius:25px;padding:28px 32px;box-shadow:var(--em-shadow-sm)}
.em-app-copy{display:flex;align-items:center;gap:18px}
.em-app-mark{width:68px;height:68px;border-radius:19px;background:#eef5ff;display:grid;place-items:center;flex:none}
.em-app-mark img{width:48px;height:48px;object-fit:contain}
.em-app-card h2{margin:0;font-size:27px}
.em-app-card p{margin:5px 0 0;color:var(--em-muted)}
.em-app-actions{display:flex;align-items:center;gap:14px}
.em-play-btn{min-height:54px;background:#111827;color:#fff;border-radius:14px;padding:0 18px;display:flex;align-items:center;gap:10px;font-weight:900;white-space:nowrap}
.em-play-btn svg{width:28px;height:28px}
.em-app-qr{width:78px;height:78px;padding:5px;background:#fff;border:1px solid var(--em-line);border-radius:12px}

.em-page{padding:26px 0 42px}
.em-page-card{background:#fff;border:1px solid var(--em-line);border-radius:24px;padding:28px;box-shadow:var(--em-shadow-sm)}
.em-page h1{font-size:34px;margin:0 0 18px}
.em-all-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.em-all-category{border:1px solid var(--em-line);border-radius:18px;padding:17px;background:#fff}
.em-all-category-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.em-all-category-head strong{font-size:15px;color:var(--em-blue)}
.em-sub-grid{display:flex;flex-wrap:wrap;gap:7px}
.em-sub-grid a{font-size:12px;background:#f5f8fc;color:#52677a;border-radius:99px;padding:5px 9px}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb{color:var(--em-muted);font-size:13px;margin-bottom:16px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(5,1fr);gap:13px;margin:0!important}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;border:1px solid var(--em-line);border-radius:18px;padding:13px;box-shadow:0 6px 18px rgba(8,63,131,.04)}
.woocommerce ul.products li.product img{aspect-ratio:1/1;object-fit:contain;margin:0 0 10px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;line-height:1.5;font-weight:900;color:var(--em-ink)}
.woocommerce ul.products li.product .price{color:var(--em-red)!important;font-weight:1000;font-size:17px!important}
.woocommerce ul.products li.product .button{width:100%;text-align:center;background:var(--em-blue)!important;color:#fff!important;border-radius:11px!important;font-weight:900!important;margin-top:8px!important}
.woocommerce span.onsale{background:var(--em-red)!important;border-radius:9px!important;min-height:auto!important;line-height:1.2!important;padding:6px 8px!important}
.woocommerce div.product{background:#fff;border:1px solid var(--em-line);border-radius:22px;padding:24px}
.woocommerce div.product .product_title{font-size:31px;font-weight:1000}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--em-red);font-weight:1000}
.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce #respond input#submit.alt{background:var(--em-blue)!important;border-radius:11px!important}
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce,.woocommerce-account .woocommerce{background:#fff;border:1px solid var(--em-line);border-radius:22px;padding:22px}
.woocommerce table.shop_table{border-color:var(--em-line);border-radius:15px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{min-height:46px;border:1px solid #d8e2ed;border-radius:10px;padding:8px 11px}

.em-footer{background:#082f61;color:#dce9f8;margin-top:38px;padding-top:42px}
.em-footer-grid{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:32px}
.em-footer h3,.em-footer h4{color:#fff;margin:0 0 12px}
.em-footer p{color:#c7d9ed;margin:7px 0;font-size:13px}
.em-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.em-footer li,.em-footer a{color:#dce9f8;font-size:13px}
.em-footer-bottom{margin-top:30px;border-top:1px solid rgba(255,255,255,.12);padding:16px 0;font-size:12px;color:#a9c3df;display:flex;justify-content:space-between;gap:12px}
.em-whatsapp{position:fixed;left:18px;bottom:18px;width:54px;height:54px;border-radius:50%;background:#10b981;color:#fff;display:grid;place-items:center;box-shadow:0 12px 28px rgba(16,185,129,.32);z-index:110}
.em-whatsapp svg{width:27px;height:27px}
.em-mobile-bar{display:none}

@media(max-width:1180px){
  .em-header-main{grid-template-columns:210px 1fr auto}.em-account-label{display:none}.em-cat-grid{grid-template-columns:repeat(5,1fr)}.em-products{grid-template-columns:repeat(4,1fr)}.em-mega{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:900px){
  .admin-bar .em-site-header{top:46px}.em-topbar-links span:nth-child(n+2){display:none}.em-header-main{grid-template-columns:auto 1fr auto;min-height:74px}.em-brand-copy{display:none}.em-logo{width:52px;height:52px}.em-header-actions .em-action:not(.em-cart){display:none}.em-search{grid-column:1/-1;grid-row:2;margin-bottom:12px}.em-mobile-toggle{display:block}.em-nav-inner{height:auto;min-height:50px;flex-wrap:wrap}.em-quick-nav{padding:7px 0}.em-dept-trigger{display:none}.em-mega{position:fixed;top:0;right:0;left:auto;width:min(92vw,420px);height:100vh;max-height:none;border-radius:0;grid-template-columns:1fr 1fr;z-index:250;padding:20px;padding-top:70px}.em-mega.is-open{display:grid}.em-hero-card{grid-template-columns:1fr}.em-hero-copy{padding:34px}.em-hero-media{min-height:280px}.em-trust-grid{grid-template-columns:1fr 1fr}.em-products{grid-template-columns:repeat(3,1fr)}.em-fresh{grid-template-columns:1fr}.em-fresh-media{min-height:260px}.em-app-card{grid-template-columns:1fr}.em-footer-grid{grid-template-columns:1fr 1fr}.em-all-categories{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  body{padding-bottom:68px}.container{width:min(100% - 20px,1380px)}.em-topbar .container{min-height:32px}.em-slogan{font-size:11px}.em-topbar-links{font-size:11px}.em-site-header{position:relative;top:auto}.admin-bar .em-site-header{top:auto}.em-header-main{gap:9px}.em-header-actions{gap:6px}.em-cart{padding:7px 10px}.em-cart .em-cart-label{display:none}.em-search-form{height:48px}.em-nav{display:none}.em-hero{padding-top:12px}.em-hero-card{border-radius:20px}.em-hero-copy{padding:28px 22px}.em-hero h1{font-size:36px}.em-hero p{font-size:14px}.em-hero-actions{display:grid;grid-template-columns:1fr 1fr}.em-btn{padding:0 11px;font-size:13px}.em-hero-media{min-height:230px}.em-hero-app{left:12px;bottom:12px}.em-trust-grid{grid-template-columns:1fr 1fr;gap:8px}.em-trust-item{padding:12px;align-items:flex-start}.em-trust-item span{display:none}.em-section{padding:21px 0}.em-section-head{align-items:center}.em-section-head h2{font-size:23px}.em-section-head p{display:none}.em-cat-grid{grid-template-columns:repeat(4,1fr);gap:8px}.em-cat-card{min-height:110px;padding:10px 5px}.em-cat-icon{width:44px;height:44px}.em-cat-card strong{font-size:11px}.em-cat-card small{display:none}.em-products{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px;gap:10px}.em-product{flex:0 0 47%;scroll-snap-align:start}.em-product-title{font-size:12px}.em-price{font-size:15px}.em-product-actions{grid-template-columns:1fr 38px}.em-fresh-copy{padding:26px 22px}.em-fresh h2{font-size:28px}.em-app-card{padding:22px 18px}.em-app-copy{align-items:flex-start}.em-app-mark{width:54px;height:54px}.em-app-card h2{font-size:22px}.em-app-actions{flex-wrap:wrap}.em-app-qr{width:70px;height:70px}.em-all-categories{grid-template-columns:1fr}.woocommerce ul.products{grid-template-columns:1fr 1fr!important;gap:9px}.woocommerce ul.products li.product{padding:9px}.em-footer{margin-top:20px;padding-top:30px}.em-footer-grid{grid-template-columns:1fr}.em-footer-grid>div:nth-child(2),.em-footer-grid>div:nth-child(3){display:none}.em-footer-bottom{flex-direction:column}.em-whatsapp{bottom:82px;width:49px;height:49px}.em-mobile-bar{position:fixed;right:0;left:0;bottom:0;height:64px;background:#fff;border-top:1px solid var(--em-line);z-index:130;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 -8px 22px rgba(15,23,42,.08)}.em-mobile-bar a,.em-mobile-bar button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;font-weight:800;color:#52677a}.em-mobile-bar svg{width:21px;height:21px}.em-mobile-bar .active{color:var(--em-red)}
}

/* Full category directory */
.em-all-category-head span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.em-all-category-head small{font-size:10px;color:#9aa9b8;font-weight:900}
.em-all-category-head .em-cat-icon{width:44px;height:44px;flex:none}
.em-all-category-head .em-cat-icon svg{width:23px;height:23px}
.em-sub-grid span{font-size:12px;background:#f5f8fc;color:#7a8a9b;border-radius:99px;padding:5px 9px}


/* =========================================================
   V2.1 UI refinement: full search, rotating hero, rich cats,
   clean offers and sale countdowns.
   ========================================================= */
.em-search{min-width:0}
.em-search-form{height:56px;display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:stretch;padding:4px;border:2px solid #cfe0f2;border-radius:16px;overflow:visible;background:#fff}
.em-search-form input{display:block;width:100%;min-width:0;height:44px;padding:0 15px;border:0!important;border-radius:11px;background:#fff;outline:0}
.em-search-form button{width:100%;height:44px;border:0;border-radius:11px;background:linear-gradient(135deg,var(--em-red),var(--em-red-dark));color:#fff;display:grid;place-items:center;box-shadow:0 6px 15px rgba(226,27,23,.18)}
.em-search-form:focus-within{border-color:#87b2df;box-shadow:0 0 0 4px rgba(11,94,180,.08)}

/* Rotating hero: the image area uses only the product side of legacy artwork,
   so the approved V2 copy stays clean and never covers the merchandise. */
.em-hero-slider{position:relative;min-height:430px;background:#fff;border:1px solid var(--em-line);border-radius:28px;overflow:hidden;box-shadow:var(--em-shadow)}
.em-hero-slides{position:relative;min-height:430px}
.em-hero-slide{position:absolute;inset:0;display:grid;grid-template-columns:1.05fr .95fr;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .42s ease,visibility .42s ease;background:linear-gradient(135deg,#fff 0%,#f7fbff 58%,#edf5ff 100%)}
.em-hero-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:2}
.em-hero-slide .em-hero-copy{padding:50px 56px}
.em-hero-slide h1,.em-hero-slide h2{margin:0;color:var(--em-blue);font-size:clamp(35px,3.8vw,58px);line-height:1.14;font-weight:1000;letter-spacing:-1.2px}
.em-hero-slide h1 em,.em-hero-slide h2 em{font-style:normal;color:var(--em-red);display:block;margin-top:4px}
.em-hero-slide .em-hero-media{min-height:430px;border-right:1px solid rgba(223,231,241,.7)}
.em-hero-slide .em-hero-media img{position:absolute;right:0;left:auto;top:0;width:200%;max-width:none;height:100%;object-fit:cover;object-position:right center;transform:none}
.em-hero-slide .em-hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.80),rgba(255,255,255,.05) 24%,rgba(255,255,255,0) 45%);pointer-events:none}
.em-slider-arrow{position:absolute;top:50%;z-index:8;width:42px;height:42px;margin-top:-21px;border:1px solid rgba(255,255,255,.85);border-radius:50%;background:rgba(255,255,255,.92);color:var(--em-blue);box-shadow:0 8px 20px rgba(8,63,131,.16);font-size:29px;line-height:1;display:grid;place-items:center}
.em-slider-prev{right:16px}.em-slider-next{left:16px}
.em-slider-dots{position:absolute;z-index:8;right:50%;transform:translateX(50%);bottom:14px;display:flex;gap:7px;padding:6px 9px;border-radius:99px;background:rgba(255,255,255,.82);backdrop-filter:blur(6px)}
.em-slider-dot{width:9px;height:9px;border:0;border-radius:99px;padding:0;background:#aac1da;transition:.2s}
.em-slider-dot.is-active{width:27px;background:var(--em-red)}

/* Home category cards */
.em-cat-grid-rich{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.em-cat-card-rich{padding:0;min-height:270px;align-items:stretch;justify-content:flex-start;text-align:right;overflow:hidden;gap:0}
.em-cat-main-link{display:block}
.em-cat-photo{height:126px;display:grid;place-items:center;background:linear-gradient(135deg,#eef5ff,#f7fbff);overflow:hidden;border-bottom:1px solid #edf2f7}
.em-cat-photo img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.em-cat-card-rich:hover .em-cat-photo img{transform:scale(1.035)}
.em-cat-photo .em-cat-icon{width:68px;height:68px;border-radius:20px}
.em-cat-photo .em-cat-icon svg{width:34px;height:34px}
.em-cat-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 14px 8px}
.em-cat-title-row strong{font-size:15px;color:var(--em-blue);line-height:1.35}
.em-cat-title-row small{font-size:10px;color:var(--em-red);font-weight:900;white-space:nowrap}
.em-cat-subs{padding:0 14px 14px;display:flex;flex-wrap:wrap;gap:6px}
.em-cat-subs a,.em-cat-subs span{font-size:11px;line-height:1.3;background:#f4f7fb;border:1px solid #edf2f7;color:#52677a;border-radius:8px;padding:5px 7px}
.em-cat-subs a:hover{background:#eaf3ff;color:var(--em-blue);border-color:#cfe0f2}

/* Full category directory: larger cards and real category/product imagery */
.em-categories-page .em-section-head h1{font-size:34px;margin:0}
.em-all-categories-rich{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.em-all-category-rich{padding:0;overflow:hidden;border-radius:22px;box-shadow:0 8px 24px rgba(8,63,131,.055)}
.em-all-category-cover{display:grid;grid-template-columns:145px 1fr;align-items:stretch;min-height:130px;border-bottom:1px solid #edf2f7;background:linear-gradient(135deg,#fbfdff,#f5f9ff)}
.em-all-category-photo{display:grid;place-items:center;overflow:hidden;background:#edf5ff}
.em-all-category-photo img{width:100%;height:100%;min-height:130px;object-fit:cover}
.em-all-category-photo .em-cat-icon{width:72px;height:72px;border-radius:22px}
.em-all-category-title{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:17px}
.em-all-category-title small{color:#9aa9b8;font-size:10px;font-weight:900}
.em-all-category-title strong{font-size:18px;color:var(--em-blue);line-height:1.35}
.em-all-category-title em{font-style:normal;color:var(--em-muted);font-size:11px;font-weight:700}
.em-sub-grid-rich{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:15px 16px 10px}
.em-sub-grid-rich a,.em-sub-grid-rich .em-sub-placeholder{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;border-radius:10px;background:#f7f9fc;border:1px solid #edf2f7;padding:7px 9px;font-size:12px;color:#40566b}
.em-sub-grid-rich a:hover{background:#eaf3ff;border-color:#cfe0f2;color:var(--em-blue)}
.em-sub-grid-rich a small{font-size:9px;color:#9aa9b8;white-space:nowrap}
.em-category-open{display:block;margin:0 16px 15px;padding:9px 11px;border-radius:10px;background:#edf5ff;color:var(--em-blue);font-size:12px;font-weight:900;text-align:center}

/* Customer-facing offers page */
.em-offers-page{background:linear-gradient(180deg,#f7faff 0%,#fff8f8 34%,var(--em-bg) 100%)}
.em-offers-hero{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;padding:30px 34px;border-radius:26px;background:linear-gradient(135deg,#073f82 0%,#0b5eb4 55%,#e21b17 140%);color:#fff;box-shadow:var(--em-shadow);margin-bottom:14px;overflow:hidden}
.em-offers-hero .em-eyebrow{background:rgba(255,255,255,.13);color:#fff;margin-bottom:9px}
.em-offers-hero h1{font-size:38px;line-height:1.2;color:#fff;margin:0;font-weight:1000}
.em-offers-hero p{margin:8px 0 0;color:#e5effb;max-width:760px}
.em-offers-hero-actions{display:flex;align-items:center;gap:12px}
.em-offers-count{min-width:110px;min-height:82px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.em-offers-count b{font-size:26px;line-height:1}.em-offers-count small{font-size:10px;margin-top:6px;color:#e5effb}
.em-offers-hero .em-btn-primary{background:#fff;color:var(--em-blue);box-shadow:none}
.em-customer-note{background:#fff7e9;border:1px solid #f4d7a5;color:#8a4d14;border-radius:13px;padding:10px 14px;font-size:12px;font-weight:800;margin:0 0 24px}
.em-offers-heading{margin-bottom:14px}

/* Sale countdown */
.em-sale-countdown{margin-top:9px;display:grid;grid-template-columns:auto repeat(4,minmax(32px,1fr));gap:5px;align-items:center;padding:7px;border-radius:12px;background:linear-gradient(135deg,#fff7f6,#fff);border:1px solid #f6d2cf;color:#6b2b28}
.em-sale-countdown-label{font-size:9px;font-weight:900;white-space:nowrap;color:#a43b36;padding-inline:2px}
.em-time-unit{min-width:0;background:#fff;border:1px solid #f6ddda;border-radius:8px;text-align:center;padding:4px 3px;line-height:1.05}
.em-time-unit b{display:block;font-size:12px;color:var(--em-red);font-variant-numeric:tabular-nums}
.em-time-unit small{display:block;font-size:7px;color:#8f6a68;margin-top:3px}
.em-sale-countdown.is-expired{display:none}
.woocommerce ul.products li.product .em-sale-countdown{grid-template-columns:repeat(4,1fr);margin:8px 0}
.woocommerce ul.products li.product .em-sale-countdown-label{grid-column:1/-1;text-align:right}

@media(max-width:1180px){
  .em-cat-grid-rich{grid-template-columns:repeat(4,minmax(0,1fr))}
  .em-all-categories-rich{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .em-hero-slider,.em-hero-slides{min-height:650px}
  .em-hero-slide{grid-template-columns:1fr;grid-template-rows:auto 280px}
  .em-hero-slide .em-hero-copy{padding:32px 34px}
  .em-hero-slide .em-hero-media{min-height:280px;border-right:0;border-top:1px solid #edf2f7}
  .em-cat-grid-rich{grid-template-columns:repeat(3,minmax(0,1fr))}
  .em-offers-hero{grid-template-columns:1fr}.em-offers-hero-actions{justify-content:flex-start}
}
@media(max-width:620px){
  .em-search-form{height:50px;padding:3px;grid-template-columns:minmax(0,1fr) 50px}.em-search-form input,.em-search-form button{height:40px}
  .em-hero-slider,.em-hero-slides{min-height:560px;border-radius:20px}
  .em-hero-slide{grid-template-rows:auto 215px}
  .em-hero-slide .em-hero-copy{padding:24px 20px 26px}
  .em-hero-slide h1,.em-hero-slide h2{font-size:31px}
  .em-hero-slide .em-hero-copy p{font-size:13px;margin-top:10px}
  .em-hero-slide .em-hero-actions{margin-top:16px}
  .em-slider-arrow{width:36px;height:36px;margin-top:-18px;font-size:24px}.em-slider-prev{right:8px}.em-slider-next{left:8px}
  .em-cat-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .em-cat-card-rich{min-height:230px}.em-cat-photo{height:105px}.em-cat-title-row{display:block;padding:10px 10px 6px}.em-cat-title-row strong{font-size:13px}.em-cat-title-row small{display:block;margin-top:2px}.em-cat-subs{padding:0 10px 10px;gap:4px}.em-cat-subs a,.em-cat-subs span{font-size:9px;padding:4px 5px}
  .em-all-categories-rich{grid-template-columns:1fr}.em-all-category-cover{grid-template-columns:115px 1fr;min-height:110px}.em-all-category-photo img{min-height:110px}.em-all-category-title{padding:13px}.em-all-category-title strong{font-size:16px}
  .em-sub-grid-rich{grid-template-columns:1fr 1fr;padding:11px}.em-sub-grid-rich a,.em-sub-grid-rich .em-sub-placeholder{font-size:10px;min-height:33px;padding:6px}
  .em-offers-hero{padding:22px 18px;border-radius:20px}.em-offers-hero h1{font-size:29px}.em-offers-hero-actions{flex-wrap:wrap}.em-offers-count{min-height:64px;min-width:90px}.em-offers-count b{font-size:22px}
  .em-sale-countdown{grid-template-columns:repeat(4,1fr)}.em-sale-countdown-label{grid-column:1/-1}
}

/* === V2.2 visual pass: original banners, clearer categories, clean copy === */
.em-hero-original{padding:18px 0 8px}
.em-hero-slider-original,.em-hero-slider-original .em-hero-slides{min-height:0;aspect-ratio:3/1}
.em-hero-slider-original{border-radius:22px;background:#fff}
.em-hero-slider-original .em-hero-slide{display:block;background:#fff}
.em-original-banner{display:block;width:100%;height:100%}
.em-original-banner img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#fff}
.em-hero-slider-original .em-slider-dots{bottom:10px}
.em-hero-slider-original .em-slider-arrow{background:rgba(255,255,255,.94)}

.em-section-head{align-items:center;margin-bottom:16px}
.em-section-head h2,.em-section-head h1{margin:0}
.em-section-head p{display:none!important}

.em-cat-grid-rich{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.em-cat-card-rich{min-height:330px;border-radius:20px;background:#fff}
.em-cat-photo{height:178px;background:#fff;padding:8px;border-bottom:1px solid #edf2f7}
.em-cat-photo img{width:100%;height:100%;object-fit:contain!important;object-position:center;transform:none!important}
.em-cat-card-rich:hover .em-cat-photo img{transform:none!important}
.em-cat-title-row{padding:13px 14px 9px}
.em-cat-title-row strong{font-size:16px}
.em-cat-subs{padding:0 14px 15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.em-cat-subs a,.em-cat-subs span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:34px;font-size:11px;padding:6px 7px}

.em-all-category-cover{grid-template-columns:175px 1fr;min-height:150px;background:#fff}
.em-all-category-photo{background:#fff;padding:8px}
.em-all-category-photo img{width:100%;height:100%;min-height:134px;object-fit:contain!important;object-position:center}

/* Countdown: blue wording + strong red timer */
.em-sale-countdown{margin-top:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0;background:#fff;border:0;border-radius:12px;overflow:hidden;color:#fff}
.em-sale-countdown-label{grid-column:1/-1;display:block;background:#0759aa;color:#fff!important;font-size:11px;font-weight:1000;text-align:center;padding:7px 8px;white-space:normal}
.em-time-unit{background:#e51b16!important;border:1px solid #c91310!important;border-radius:8px;text-align:center;padding:6px 3px;line-height:1.05;box-shadow:0 3px 8px rgba(229,27,22,.16)}
.em-time-unit b{display:block;font-size:15px;color:#fff!important;font-weight:1000;font-variant-numeric:tabular-nums}
.em-time-unit small{display:block;font-size:8px;color:#fff!important;margin-top:4px;font-weight:800}
.woocommerce ul.products li.product .em-sale-countdown{grid-template-columns:repeat(4,1fr);margin:10px 0}
.woocommerce ul.products li.product .em-sale-countdown-label{grid-column:1/-1;text-align:center}

.em-offers-hero-clean{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;margin-bottom:22px}
.em-offers-hero-clean h1{margin:0;font-size:34px}
.em-customer-note{display:none!important}

@media(max-width:1180px){.em-cat-grid-rich{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
  .em-hero-slider-original,.em-hero-slider-original .em-hero-slides{aspect-ratio:3/1;min-height:0}
  .em-cat-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-cat-photo{height:155px}
}
@media(max-width:620px){
  .em-hero-original .container{width:100%}
  .em-hero-slider-original{border-radius:0;border-left:0;border-right:0}
  .em-hero-slider-original,.em-hero-slider-original .em-hero-slides{aspect-ratio:3/1;min-height:0}
  .em-cat-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .em-cat-card-rich{min-height:290px}.em-cat-photo{height:132px;padding:5px}
  .em-cat-subs{grid-template-columns:1fr;padding:0 10px 10px}
  .em-cat-subs a,.em-cat-subs span{font-size:10px;min-height:30px}
  .em-offers-hero-clean{padding:18px 16px;flex-direction:column;align-items:flex-start}.em-offers-hero-clean h1{font-size:28px}
  .em-sale-countdown-label{font-size:10px}.em-time-unit b{font-size:14px}.em-time-unit small{font-size:7px}
}

/* === V2.3 route + visual polish === */
.em-weekly-offers-v2{background:#f6f9fd}
.em-weekly-offers-v2 .em-offers-hero-clean{background:linear-gradient(135deg,#063d7c 0%,#0b5eb4 58%,#e21b17 145%);color:#fff;border-radius:24px;box-shadow:0 14px 35px rgba(8,63,131,.13)}
.em-offers-title-block{display:flex;flex-direction:column;gap:5px}
.em-offers-kicker{font-size:12px;font-weight:1000;color:#dceaff}
.em-weekly-offers-v2 .em-offers-hero-clean h1{color:#fff}
.em-weekly-offers-v2 .em-products{grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.em-weekly-offers-v2 .em-product{border-radius:20px;box-shadow:0 8px 24px rgba(8,63,131,.06)}
.em-weekly-offers-v2 .em-product-media{padding:13px}
.em-weekly-offers-v2 .em-sale-countdown-label{background:#0759aa!important;color:#fff!important}
.em-weekly-offers-v2 .em-time-unit{background:#e21b17!important;border-color:#c91512!important}
.em-weekly-offers-v2 .em-time-unit b,.em-weekly-offers-v2 .em-time-unit small{color:#fff!important}

/* Home category cards: clearly image-led, cleaner subcategory layout */
.home .em-cat-grid-rich{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.home .em-cat-card-rich{min-height:300px;border-radius:20px;overflow:hidden;padding:0}
.home .em-cat-photo{height:150px;padding:10px;background:#fff}
.home .em-cat-photo img{width:100%;height:100%;object-fit:contain!important;object-position:center!important}
.home .em-cat-title-row{padding:12px 12px 8px;border-top:1px solid #eef2f7}
.home .em-cat-title-row strong{font-size:15px;line-height:1.35}
.home .em-cat-title-row small{font-size:10px}
.home .em-cat-subs{grid-template-columns:1fr;gap:5px;padding:0 12px 12px}
.home .em-cat-subs a,.home .em-cat-subs span{min-height:28px;font-size:10px;background:#f4f8fc;border:1px solid #edf2f7;border-radius:9px}
@media(max-width:1280px){.home .em-cat-grid-rich{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.home .em-cat-grid-rich{grid-template-columns:repeat(3,minmax(0,1fr))}.em-weekly-offers-v2 .em-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.home .em-cat-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr))}.home .em-cat-photo{height:125px}.em-weekly-offers-v2 .em-products{display:flex;overflow-x:auto;gap:10px}.em-weekly-offers-v2 .em-product{flex:0 0 76%}}

/* === V2.4 unified category/shop journey === */
.em-product-archive-v2{padding:22px 0 42px;background:#f5f8fc}
.em-archive-breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#708399;font-size:12px;font-weight:800;margin:0 0 12px}
.em-archive-breadcrumbs a{color:var(--em-blue)}
.em-breadcrumb-sep{color:#a8b6c5}
.em-archive-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);min-height:245px;background:linear-gradient(135deg,#fff 0%,#f8fbff 56%,#eef5ff 100%);border:1px solid var(--em-line);border-radius:26px;overflow:hidden;box-shadow:0 12px 34px rgba(8,63,131,.08);margin-bottom:22px}
.em-archive-hero-copy{padding:34px 38px;display:flex;flex-direction:column;justify-content:center}
.em-archive-kicker{display:inline-flex;width:max-content;background:#edf5ff;color:var(--em-blue);border-radius:999px;padding:6px 12px;font-size:11px;font-weight:1000;margin-bottom:10px}
.em-archive-hero h1{margin:0;color:var(--em-blue);font-size:clamp(32px,4vw,50px);line-height:1.15;font-weight:1000}
.em-archive-description{max-width:720px;color:#63768b;font-size:13px;margin-top:10px}
.em-archive-description p{margin:0}
.em-archive-stats{display:flex;align-items:baseline;gap:7px;margin-top:16px;color:#6c7f93;font-size:12px;font-weight:800}
.em-archive-stats b{color:var(--em-red);font-size:23px;font-weight:1000}
.em-archive-hero-media{min-height:245px;display:grid;place-items:center;background:#fff;padding:16px;position:relative}
.em-archive-hero-media.has-image:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#f7fbff,#fff)}
.em-archive-hero-media img{position:relative;z-index:1;width:100%;height:100%;max-height:220px;object-fit:contain;object-position:center}
.em-archive-hero-icon{position:relative;z-index:1;width:128px;height:128px;border-radius:34px;display:grid;place-items:center;background:#edf5ff;color:var(--em-blue)}
.em-archive-hero-icon svg{width:68px;height:68px}
.em-archive-subsection{margin:0 0 26px}
.em-archive-subsection .em-section-head{margin-bottom:12px;align-items:center}
.em-archive-subsection h2{font-size:24px}
.em-archive-subhint{font-size:12px;color:#7b8da0;font-weight:800}
.em-archive-subcats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.em-archive-subcat{display:flex;align-items:center;gap:10px;min-height:104px;background:#fff;border:1px solid var(--em-line);border-radius:17px;padding:9px;box-shadow:0 5px 16px rgba(8,63,131,.04);transition:.18s;min-width:0}
.em-archive-subcat:hover{transform:translateY(-2px);border-color:#b8cfe8;box-shadow:0 9px 22px rgba(8,63,131,.08)}
.em-archive-subcat-media{width:78px;height:84px;flex:none;border-radius:13px;background:#f7faff;display:grid;place-items:center;overflow:hidden}
.em-archive-subcat-media img{width:100%;height:100%;object-fit:contain;object-position:center;padding:4px}
.em-archive-subcat-media .em-cat-icon{width:52px;height:52px}
.em-archive-subcat-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.em-archive-subcat-copy strong{font-size:13px;line-height:1.35;color:var(--em-blue)}
.em-archive-subcat-copy small{font-size:10px;color:#8a9bad}
.em-archive-products-section{background:#fff;border:1px solid var(--em-line);border-radius:24px;padding:20px;box-shadow:0 8px 28px rgba(8,63,131,.045)}
.em-archive-toolbar-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.em-archive-toolbar-head h2{margin:0;font-size:26px;color:var(--em-ink)}
.em-archive-toolbar-head span{display:block;color:#8393a4;font-size:11px;font-weight:800;margin-top:2px}
.em-clear-filters{border:1px solid #cfe0f2;color:var(--em-blue);border-radius:10px;padding:7px 11px;font-size:11px;font-weight:900;background:#f8fbff}
.em-archive-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(100px,.55fr)) minmax(170px,.75fr) auto auto auto;gap:9px;align-items:end;padding:12px;background:#f7faff;border:1px solid #e7eef7;border-radius:15px;margin-bottom:18px}
.em-archive-filters label{display:flex;flex-direction:column;gap:5px;min-width:0}
.em-archive-filters label>span{font-size:10px;color:#61758a;font-weight:900}
.em-archive-filters input[type="search"],.em-archive-filters input[type="number"],.em-archive-filters select{height:42px;width:100%;border:1px solid #d6e2ef;background:#fff;border-radius:10px;padding:0 11px;color:var(--em-ink);outline:0}
.em-archive-filters input:focus,.em-archive-filters select:focus{border-color:#7eaddd;box-shadow:0 0 0 3px rgba(11,94,180,.07)}
.em-filter-check{height:42px!important;flex-direction:row!important;align-items:center;gap:6px!important;border:1px solid #d6e2ef;border-radius:10px;background:#fff;padding:0 10px;white-space:nowrap}
.em-filter-check input{accent-color:var(--em-red)}
.em-filter-check span{font-size:11px!important;color:#375069!important}
.em-filter-apply{height:42px;border:0;border-radius:10px;background:var(--em-blue);color:#fff;padding:0 17px;font-size:12px;font-weight:1000}
.em-archive-products{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.em-archive-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:220px;border:1px dashed #d5e0eb;border-radius:17px;background:#fbfdff;color:#6f8296}
.em-archive-empty strong{font-size:19px;color:var(--em-blue)}
.em-archive-empty span{font-size:12px;margin-top:5px}
.em-archive-pagination{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:22px}
.em-archive-pagination .page-numbers{min-width:38px;height:38px;padding:0 10px;display:grid;place-items:center;border:1px solid #dbe5ef;border-radius:10px;background:#fff;color:var(--em-blue);font-size:12px;font-weight:900}
.em-archive-pagination .page-numbers.current{background:var(--em-blue);border-color:var(--em-blue);color:#fff}
.em-archive-pagination a.page-numbers:hover{border-color:#9dbfe2;background:#edf5ff}

@media(max-width:1180px){
  .em-archive-subcats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .em-archive-products{grid-template-columns:repeat(4,minmax(0,1fr))}
  .em-archive-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.em-filter-search{grid-column:span 2}
}
@media(max-width:900px){
  .em-archive-hero{grid-template-columns:1fr 240px}.em-archive-hero-copy{padding:26px}.em-archive-hero-media{min-height:220px}
  .em-archive-subcats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .em-archive-products{grid-template-columns:repeat(3,minmax(0,1fr))}
  .em-archive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.em-filter-search{grid-column:1/-1}.em-filter-apply{grid-column:1/-1}
}
@media(max-width:620px){
  .em-product-archive-v2{padding-top:12px}
  .em-archive-hero{grid-template-columns:1fr;min-height:0;border-radius:20px}.em-archive-hero-copy{padding:22px 18px}.em-archive-hero h1{font-size:31px}.em-archive-hero-media{min-height:170px;padding:8px}.em-archive-hero-media img{max-height:160px}.em-archive-hero-icon{width:92px;height:92px;border-radius:25px}.em-archive-hero-icon svg{width:48px;height:48px}
  .em-archive-subsection .em-section-head{align-items:flex-start}.em-archive-subhint{display:none}
  .em-archive-subcats{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;gap:9px}.em-archive-subcat{flex:0 0 72%;scroll-snap-align:start}
  .em-archive-products-section{padding:12px;border-radius:18px}
  .em-archive-toolbar-head h2{font-size:22px}
  .em-archive-filters{grid-template-columns:1fr 1fr;padding:9px}.em-filter-search,.em-filter-sort,.em-filter-apply{grid-column:1/-1}.em-filter-check{min-width:0}
  .em-archive-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .em-archive-products .em-product{flex:none}
  .em-archive-pagination .page-numbers{min-width:34px;height:34px}
}


/* =========================================================
   V2.4.1 Search overlay fix
   Keep live product results above the nav/page and fully visible.
   ========================================================= */
.em-site-header,
.em-site-header .container,
.em-header-main,
.em-search{overflow:visible!important}
.em-search{position:relative;z-index:5000}
.em-nav{position:relative;z-index:120}
.em-live-search{
  position:fixed!important;
  top:auto;right:auto;left:auto;
  z-index:999999!important;
  max-height:min(62vh,560px);
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#fff;
  border:1px solid #cddbea;
  border-radius:16px;
  box-shadow:0 24px 64px rgba(8,63,131,.24),0 4px 18px rgba(15,23,42,.12);
  padding:8px;
}
.em-live-search.is-open{display:block!important}
.em-live-search .em-live-heading{padding:7px 10px 9px;color:var(--em-blue);font-size:12px;font-weight:1000;border-bottom:1px solid #edf2f7;margin-bottom:3px}
.em-live-row{grid-template-columns:64px minmax(0,1fr) auto;min-height:76px;padding:8px 9px;border-bottom:1px solid #edf2f7;border-radius:10px;gap:12px;background:#fff}
.em-live-row:last-child{border-bottom:0}
.em-live-row:hover,.em-live-row:focus{background:#f3f8fe;outline:0}
.em-live-row img{width:64px;height:64px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid #e7eef6}
.em-live-row strong{font-size:13px;line-height:1.45;color:#163a63;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.em-live-row span{font-size:13px;color:var(--em-red);font-weight:1000;white-space:nowrap}
.em-live-empty,.em-live-loading{padding:18px 12px;text-align:center;color:#64748b;font-size:13px;font-weight:800}
body.em-search-open{overflow-x:hidden}
@media(max-width:620px){
  .em-live-search{border-radius:14px;max-height:58vh;padding:6px}
  .em-live-row{grid-template-columns:54px minmax(0,1fr);min-height:68px}
  .em-live-row img{width:54px;height:54px}
  .em-live-row span{grid-column:2;justify-self:start;margin-top:-3px}
}

/* V2.4.2 search price cleanup */
.em-live-row span{direction:ltr;unicode-bidi:isolate;display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:5px 8px;border:1px solid #ffd3d1;border-radius:9px;background:#fff4f3;color:var(--em-red);font-weight:1000;line-height:1.2}
@media(max-width:640px){.em-live-row span{min-width:0;width:max-content;padding:4px 7px}}


/* V2.5 premium category journey: large category headers + visual subgroups */
.em-archive-hero-premium{min-height:300px;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);background:linear-gradient(135deg,#ffffff 0%,#f7fbff 48%,#eef5ff 100%);border:1px solid #d9e7f5;box-shadow:0 18px 50px rgba(8,63,131,.10)}
.em-archive-hero-premium .em-archive-hero-copy{padding:42px 46px;position:relative;z-index:2}
.em-archive-parent-chip{display:inline-flex;width:max-content;align-items:center;gap:6px;padding:7px 13px;border-radius:999px;background:#fff1f0;color:var(--em-red);border:1px solid #ffd3d0;font-size:11px;font-weight:1000;margin-bottom:11px}
.em-archive-hero-premium .em-archive-hero-media{min-height:300px;padding:20px;background:linear-gradient(145deg,#edf5ff,#fff);overflow:hidden}
.em-archive-hero-premium .em-archive-hero-media:after{content:"";position:absolute;inset:auto 22px 18px 22px;height:16px;border-radius:50%;background:rgba(8,63,131,.10);filter:blur(10px)}
.em-archive-hero-premium .em-archive-hero-media img{max-height:270px;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(15,23,42,.12))}
.em-archive-subsection{padding:2px 0 4px}
.em-archive-subsection .em-section-head h2{font-size:27px}
.em-archive-subcats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.em-archive-subcat-visual{display:block;min-height:0;padding:0;border-radius:20px;overflow:hidden;background:#fff;border:1px solid #dce7f2;box-shadow:0 10px 26px rgba(8,63,131,.06)}
.em-archive-subcat-visual:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(8,63,131,.12)}
.em-archive-subcat-visual .em-archive-subcat-media{width:100%;height:170px;border-radius:0;background:linear-gradient(145deg,#f4f8fd,#fff);padding:12px;position:relative}
.em-archive-subcat-visual .em-archive-subcat-media img{width:100%;height:100%;object-fit:contain;object-position:center;padding:0;filter:drop-shadow(0 10px 18px rgba(15,23,42,.08))}
.em-archive-subcat-visual .em-archive-subcat-copy{padding:14px 15px 16px;gap:4px;background:#fff}
.em-archive-subcat-visual .em-archive-subcat-copy strong{font-size:16px;color:var(--em-blue);line-height:1.35}
.em-archive-subcat-visual .em-archive-subcat-copy small{font-size:11px;color:#7d8ea0}
.em-archive-subcat-visual .em-archive-subcat-copy em{font-style:normal;color:var(--em-red);font-size:11px;font-weight:900;margin-top:3px}
.em-all-category-rich .em-all-category-photo img,.em-cat-card-rich .em-cat-photo img{object-fit:contain!important;padding:10px;background:linear-gradient(145deg,#f7fbff,#fff)}
@media(max-width:1100px){.em-archive-subcats{grid-template-columns:repeat(3,minmax(0,1fr))}.em-archive-hero-premium{grid-template-columns:1fr 320px}}
@media(max-width:780px){.em-archive-hero-premium{grid-template-columns:1fr}.em-archive-hero-premium .em-archive-hero-copy{padding:24px 20px}.em-archive-hero-premium .em-archive-hero-media{min-height:220px}.em-archive-hero-premium .em-archive-hero-media img{max-height:205px}.em-archive-subcats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.em-archive-subcat{flex:none}.em-archive-subcat-visual .em-archive-subcat-media{height:135px}.em-archive-subcat-visual .em-archive-subcat-copy strong{font-size:14px}}
@media(max-width:520px){.em-archive-subcats{grid-template-columns:1fr 1fr;gap:9px}.em-archive-subcat-visual .em-archive-subcat-media{height:115px}.em-archive-subcat-visual .em-archive-subcat-copy{padding:10px}.em-archive-subcat-visual .em-archive-subcat-copy strong{font-size:13px}.em-archive-subcat-visual .em-archive-subcat-copy em{display:none}}


/* === V2.5.1 premium category visual system: dynamic real-product collages === */
.em-term-collage{display:grid;width:100%;height:100%;gap:9px;position:relative;z-index:2}
.em-term-shot{display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#fff,#f5f9ff);border:1px solid #e1ebf5;border-radius:16px;box-shadow:0 8px 22px rgba(8,63,131,.08)}
.em-term-shot img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important;padding:10px!important;filter:none!important;transform:none!important;background:transparent!important}
.em-term-collage-empty{display:grid;place-items:center;width:100%;height:100%;min-height:130px;border-radius:18px;background:linear-gradient(145deg,#edf5ff,#fff);color:var(--em-blue)}
.em-term-collage-empty svg{width:56px;height:56px}

/* Hero = editorial product mosaic instead of a stretched/repeated category graphic */
.em-archive-hero-collage{padding:18px!important;background:radial-gradient(circle at 78% 24%,rgba(255,255,255,.96),rgba(231,241,252,.92) 48%,rgba(220,233,248,.96) 100%)!important;overflow:hidden}
.em-archive-hero-collage:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(8,63,131,.04),transparent 40%,rgba(226,27,23,.035));pointer-events:none}
.em-archive-hero-collage:after{display:none!important}
.em-term-collage-hero{grid-template-columns:1.35fr .85fr .85fr;grid-template-rows:1fr 1fr;height:264px}
.em-term-collage-hero .shot-1{grid-column:1;grid-row:1/3;border-radius:24px;background:#fff}
.em-term-collage-hero .shot-2{grid-column:2;grid-row:1}
.em-term-collage-hero .shot-3{grid-column:3;grid-row:1}
.em-term-collage-hero .shot-4{grid-column:2;grid-row:2}
.em-term-collage-hero .shot-5{grid-column:3;grid-row:2}
.em-term-collage-hero .shot-1 img{padding:18px!important}

/* Subcategory cards use their own products, never the same inherited parent art */
.em-archive-subcat-visual .em-archive-subcat-media{height:168px!important;padding:10px!important;background:linear-gradient(145deg,#f8fbff,#eef5fb)!important}
.em-term-collage-card{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;height:100%;gap:6px}
.em-term-collage-card .em-term-shot{border-radius:11px;box-shadow:none;background:#fff}
.em-term-collage-card .em-term-shot img{padding:6px!important}
.em-archive-subcat-visual:hover .em-term-shot{border-color:#c8daec}

/* Home department cards use a 2x2 real product collage */
.home .em-cat-photo{height:156px!important;padding:9px!important;background:linear-gradient(145deg,#f8fbff,#eef5fb)!important}
.em-term-collage-home{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;height:100%;gap:6px}
.em-term-collage-home .em-term-shot{border-radius:11px;box-shadow:none;background:#fff}
.em-term-collage-home .em-term-shot img{padding:5px!important}
.home .em-cat-card-rich:hover .em-term-shot{border-color:#c8daec}
.home .em-cat-card-rich:hover .em-term-shot img{transform:none!important}

/* Full category directory gets the same real-product visual language */
.em-all-category-photo{padding:8px;background:linear-gradient(145deg,#f8fbff,#eef5fb)!important}
.em-term-collage-directory{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;min-height:114px;height:100%;gap:5px}
.em-term-collage-directory .em-term-shot{border-radius:9px;box-shadow:none;background:#fff}
.em-term-collage-directory .em-term-shot img{padding:4px!important}

/* Reduce visual noise from legacy single-image rules now that collages are active */
.em-archive-hero-media img,.em-archive-subcat-media img,.em-cat-photo img,.em-all-category-photo img{filter:none}

@media(max-width:1100px){
  .em-term-collage-hero{grid-template-columns:1.2fr .8fr;grid-template-rows:1fr 1fr}
  .em-term-collage-hero .shot-1{grid-column:1;grid-row:1/3}
  .em-term-collage-hero .shot-2{grid-column:2;grid-row:1}
  .em-term-collage-hero .shot-3{grid-column:2;grid-row:2}
  .em-term-collage-hero .shot-4,.em-term-collage-hero .shot-5{display:none}
}
@media(max-width:780px){
  .em-archive-hero-collage{padding:12px!important}
  .em-term-collage-hero{height:210px;grid-template-columns:1.3fr .7fr;gap:7px}
  .em-term-collage-hero .em-term-shot{border-radius:13px}
  .em-archive-subcat-visual .em-archive-subcat-media{height:138px!important}
}
@media(max-width:520px){
  .em-term-collage-hero{height:185px}
  .home .em-cat-photo{height:130px!important}
  .em-archive-subcat-visual .em-archive-subcat-media{height:118px!important;padding:7px!important}
  .em-term-collage-card,.em-term-collage-home{gap:4px}
  .em-term-shot img{padding:4px!important}
}


/* === V2.5.2 HOTFIX: safe taxonomy-only category visuals === */
.em-term-collage.count-1{display:block!important}
.em-term-collage.count-1 .em-term-shot{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#f6f9fd,#fff);border-radius:18px;overflow:hidden}
.em-term-collage.count-1 .em-term-shot img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:10px!important}
.em-term-collage-empty{position:relative;gap:10px;align-content:center;text-align:center;padding:18px}
.em-term-collage-empty .em-term-empty-label{display:block;font-weight:900;font-size:15px;color:var(--em-blue);line-height:1.4}
.em-term-collage-empty svg{opacity:.9}
.em-archive-hero .em-term-collage.count-1 .em-term-shot img{padding:20px!important;max-height:260px}


/* === V2.6.0 CURATED CATEGORY ART === */
.em-term-art{display:block;width:100%;height:100%;overflow:hidden;position:relative;background:linear-gradient(145deg,#eef5ff,#fff)}
.em-term-art img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;filter:none!important;transform:none!important}
.em-term-art-hero{height:280px;border-radius:24px;box-shadow:0 20px 44px rgba(8,63,131,.10)}
.em-term-art-card{height:168px;border-radius:0}
.em-term-art-home{height:100%;min-height:150px;border-radius:0}
.em-term-art-directory{height:100%;min-height:134px;border-radius:12px}
.em-archive-hero-media:has(.em-term-art){padding:14px!important;background:linear-gradient(145deg,#edf5ff,#fff)!important}
.em-archive-hero-media .em-term-art img{max-height:none!important}
.em-archive-subcat-visual .em-archive-subcat-media:has(.em-term-art){padding:0!important;background:#fff!important}
.em-cat-card-rich .em-cat-photo:has(.em-term-art),.em-all-category-photo:has(.em-term-art){padding:0!important;background:#fff!important}
.em-cat-card-rich .em-cat-photo .em-term-art img,.em-all-category-photo .em-term-art img{object-fit:cover!important;background:#fff!important}
.em-term-collage-empty{background:linear-gradient(145deg,#edf5ff,#f9fbff)!important;border:1px solid #dbe7f3}
.em-term-collage-empty .em-term-empty-label{font-size:14px}
@media(max-width:780px){.em-term-art-hero{height:220px}.em-term-art-card{height:138px}}
@media(max-width:520px){.em-term-art-hero{height:185px}.em-term-art-card{height:118px}.em-term-art-home{min-height:125px}}


/* === V2.6.1 MAIN CATEGORY CARDS: fixed visual canvas + no subcategory clutter outside === */
/* Main departments are the only thing shown on home/directory. Subcategories belong inside the department page. */
.home .em-cat-grid-main-only{grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.home .em-cat-card-main-only{min-height:0!important;border-radius:20px!important;overflow:hidden!important;background:#fff!important;padding:0!important;box-shadow:0 8px 24px rgba(8,63,131,.055)!important}
.home .em-cat-card-main-only .em-cat-main-link{display:block;height:100%}
.home .em-cat-card-main-only .em-cat-photo{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/10!important;padding:0!important;background:#f3f7fb!important;overflow:hidden!important;border-bottom:1px solid #e8eef5!important}
.home .em-cat-card-main-only .em-cat-photo>*{width:100%!important;height:100%!important}
.home .em-cat-card-main-only .em-cat-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important}
.home .em-cat-card-main-only .em-cat-title-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:13px 14px 14px!important;border:0!important;background:#fff!important}
.home .em-cat-card-main-only .em-cat-title-row strong{font-size:14px!important;line-height:1.35!important;color:var(--em-blue)!important}
.home .em-cat-card-main-only .em-cat-title-row small{display:block!important;font-size:10px!important;color:#8a9bad!important;white-space:nowrap!important}
.home .em-cat-card-main-only:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(8,63,131,.10)!important}

/* Full category directory: clean image card, no child chips, no duplicate navigation. */
.em-main-directory-only{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
.em-main-directory-card{padding:0!important;overflow:hidden!important;border-radius:22px!important;background:#fff!important;box-shadow:0 8px 24px rgba(8,63,131,.055)!important}
.em-main-directory-card .em-all-category-cover{display:block!important;min-height:0!important;background:#fff!important;border:0!important}
.em-main-directory-card .em-all-category-photo{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;padding:0!important;background:#f3f7fb!important;overflow:hidden!important;border-bottom:1px solid #e8eef5!important}
.em-main-directory-card .em-all-category-photo>*{width:100%!important;height:100%!important}
.em-main-directory-card .em-all-category-photo img{width:100%!important;height:100%!important;min-height:0!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important}
.em-main-directory-card .em-all-category-title{display:grid!important;grid-template-columns:auto 1fr!important;grid-template-areas:"num title" "count count"!important;align-items:center!important;column-gap:8px!important;row-gap:4px!important;padding:14px 15px 16px!important}
.em-main-directory-card .em-all-category-title small{grid-area:num;font-size:10px!important;color:#a0adba!important}
.em-main-directory-card .em-all-category-title strong{grid-area:title;font-size:17px!important;color:var(--em-blue)!important;line-height:1.3!important}
.em-main-directory-card .em-all-category-title em{grid-area:count;font-size:11px!important;color:#7f90a2!important}
.em-main-directory-card:hover{transform:translateY(-3px);box-shadow:0 15px 34px rgba(8,63,131,.10)!important}

/* Fixed image canvases: the artwork is designed/cropped to these ratios. */
.em-archive-hero-media .em-term-art-hero{width:100%!important;height:auto!important;aspect-ratio:16/7!important;border-radius:20px!important}
.em-archive-subcat-visual .em-archive-subcat-media{height:auto!important;aspect-ratio:4/3!important;padding:0!important;background:#f4f8fc!important}
.em-archive-subcat-visual .em-archive-subcat-media .em-term-art-card{width:100%!important;height:100%!important}
.em-archive-subcat-visual .em-archive-subcat-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important}

@media(max-width:1280px){
  .home .em-cat-grid-main-only{grid-template-columns:repeat(4,minmax(0,1fr))}
  .em-main-directory-only{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .home .em-cat-grid-main-only{grid-template-columns:repeat(3,minmax(0,1fr))}
  .em-main-directory-only{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .home .em-cat-grid-main-only{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home .em-cat-card-main-only .em-cat-title-row{display:block!important;padding:10px 10px 12px!important}
  .home .em-cat-card-main-only .em-cat-title-row strong{display:block;font-size:12px!important}
  .home .em-cat-card-main-only .em-cat-title-row small{margin-top:3px;font-size:9px!important}
  .em-main-directory-only{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .em-main-directory-card .em-all-category-title{padding:10px!important}
  .em-main-directory-card .em-all-category-title strong{font-size:13px!important}
  .em-main-directory-card .em-all-category-title em{font-size:9px!important}
  .em-archive-hero-media .em-term-art-hero{aspect-ratio:16/8!important}
}

/* =========================================================
   V2.7.0 - CARREFOUR-INSPIRED STRUCTURE / ELMAHALAWY IDENTITY
   Clean main departments outside, subcategories only inside.
   ========================================================= */
.em-v270-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--em-blue-2);font-size:12px;font-weight:1000;margin-bottom:4px}
.em-v270-kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--em-blue-2)}
.em-v270-kicker.is-red{color:var(--em-red)}.em-v270-kicker.is-red:before{background:var(--em-red)}
.em-v270-kicker.light{color:#d8e9ff}.em-v270-kicker.light:before{background:#fff}
.em-v270-section-head{align-items:center;margin-bottom:16px}
.em-v270-section-head h2{font-size:28px;margin:0}
.em-v270-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:1px solid #d6e3f0;border-radius:11px;background:#fff}
.em-v270-link:hover{border-color:#b9d2eb;background:#f8fbff}

/* Header/mega menu: less visual noise, clearer hierarchy. */
.em-mega{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 22px;padding:20px 22px;max-height:68vh}
.em-mega-group{padding:12px 12px 10px;border:1px solid #edf2f7;border-radius:14px;background:#fff}
.em-mega-group:hover{border-color:#d5e3f0;background:#fbfdff}
.em-mega-title{font-size:14px;margin-bottom:7px}
.em-mega-icon{width:30px;height:30px;border-radius:9px}
.em-mega-links{grid-template-columns:1fr 1fr;gap:2px 9px}
.em-mega-links a,.em-mega-links span{font-size:11px;line-height:1.6;color:#607386;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Home: consistent department canvas; no child-category chips outside. */
.em-v270-departments{padding-top:22px}
.em-v270-cat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.em-v270-cat-card{display:block;background:#fff;border:1px solid #dfe8f2;border-radius:18px;overflow:hidden;box-shadow:0 7px 20px rgba(8,63,131,.045);transition:.18s ease}
.em-v270-cat-card:hover{transform:translateY(-4px);border-color:#bfd5e9;box-shadow:0 14px 30px rgba(8,63,131,.10)}
.em-v270-cat-media{display:block;width:100%;aspect-ratio:4/3;background:#f5f8fc;overflow:hidden}
.em-v270-cat-media>*{width:100%;height:100%;display:block}
.em-v270-cat-media .em-term-art img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;background:#f5f8fc!important}
.em-v270-cat-media .em-term-collage{display:grid;place-items:center;background:linear-gradient(145deg,#f4f8fd,#fff)}
.em-v270-cat-media .em-term-collage-empty{display:grid;place-items:center;gap:8px;width:100%;height:100%;color:var(--em-blue)}
.em-v270-cat-media .em-term-empty-label{display:none}
.em-v270-cat-name{display:flex;align-items:center;justify-content:center;min-height:52px;padding:10px 12px;text-align:center;color:var(--em-blue);font-weight:1000;font-size:14px;line-height:1.35;background:#fff}
.em-v270-offers{padding-top:24px}
.em-v270-fresh{box-shadow:0 16px 40px rgba(8,63,131,.14)}

/* All categories directory: clean department cards only. */
.em-v270-directory{padding-top:28px}
.em-v270-directory-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px;padding:22px 24px;border:1px solid #dce7f2;border-radius:20px;background:linear-gradient(135deg,#fff,#f7fbff);box-shadow:0 10px 26px rgba(8,63,131,.05)}
.em-v270-directory-head h1{margin:0!important;font-size:34px;color:var(--em-ink)}
.em-v270-directory-head p{margin:5px 0 0;color:var(--em-muted);font-size:13px}
.em-v270-directory-shop{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:12px;background:var(--em-blue);color:#fff;font-weight:900;white-space:nowrap}
.em-v270-directory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.em-v270-directory-card{display:block;background:#fff;border:1px solid #dfe7f0;border-radius:18px;overflow:hidden;box-shadow:0 7px 20px rgba(8,63,131,.045);transition:.18s ease}
.em-v270-directory-card:hover{transform:translateY(-4px);box-shadow:0 15px 34px rgba(8,63,131,.10);border-color:#bfd5e9}
.em-v270-directory-media{display:block;width:100%;aspect-ratio:4/3;background:#f5f8fc;overflow:hidden}
.em-v270-directory-media>*{display:block;width:100%;height:100%}
.em-v270-directory-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;background:#f5f8fc!important}
.em-v270-directory-copy{display:grid;grid-template-columns:1fr auto;grid-template-areas:"name count" "cta cta";gap:4px 8px;padding:12px 14px 14px;align-items:center}
.em-v270-directory-copy strong{grid-area:name;color:var(--em-blue);font-size:15px;line-height:1.35}
.em-v270-directory-copy small{grid-area:count;color:#8a99aa;font-size:10px;white-space:nowrap}
.em-v270-directory-copy em{grid-area:cta;font-style:normal;color:var(--em-red);font-size:11px;font-weight:900}

/* Category journey: compact editorial hero, not an oversized card. */
.em-v270-archive{padding-top:18px}
.em-v270-breadcrumbs{margin-bottom:12px!important;font-size:12px!important}
.em-v270-archive-hero{display:grid;grid-template-columns:minmax(0,1fr) 46%;min-height:260px;border:1px solid #dce7f2;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 12px 30px rgba(8,63,131,.065);margin-bottom:24px}
.em-v270-archive-copy{padding:34px 38px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.em-v270-archive-copy h1{margin:2px 0 8px!important;font-size:clamp(30px,3.6vw,48px)!important;line-height:1.12;color:var(--em-ink)}
.em-v270-archive-copy p{margin:0;color:#607286;font-size:14px;max-width:620px}
.em-v270-parent-link{display:inline-flex;width:max-content;color:var(--em-blue);font-size:12px;font-weight:900;margin-bottom:5px}
.em-v270-archive-meta{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-top:18px;padding:7px 11px;border-radius:99px;background:#eef5ff;color:var(--em-blue)}
.em-v270-archive-meta b{font-size:16px}.em-v270-archive-meta span{font-size:11px;font-weight:800}
.em-v270-archive-media{position:relative;min-height:260px;background:#f3f7fb;overflow:hidden}
.em-v270-archive-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.em-v270-archive-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.06),transparent 35%);pointer-events:none}
.em-v270-archive-icon{position:absolute;inset:0;display:grid;place-items:center;color:var(--em-blue)}
.em-v270-archive-icon svg{width:86px;height:86px}
.is-child-archive .em-v270-archive-hero{min-height:210px}
.is-child-archive .em-v270-archive-media{min-height:210px}
.is-child-archive .em-v270-archive-copy{padding-top:28px;padding-bottom:28px}

/* Subcategories exist only inside the current parent category. */
.em-v270-subsection{margin-bottom:28px}
.em-v270-subcat-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.em-v270-subcat{display:block;background:#fff;border:1px solid #dfe7f0;border-radius:17px;overflow:hidden;box-shadow:0 6px 18px rgba(8,63,131,.04);transition:.18s}
.em-v270-subcat:hover{transform:translateY(-3px);border-color:#bfd5e9;box-shadow:0 12px 28px rgba(8,63,131,.09)}
.em-v270-subcat-media{display:block;width:100%;aspect-ratio:4/3;background:#f5f8fc;overflow:hidden}
.em-v270-subcat-media>*{display:block;width:100%;height:100%}
.em-v270-subcat-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important}
.em-v270-subcat-copy{display:grid;gap:2px;padding:11px 12px 13px}
.em-v270-subcat-copy strong{font-size:13px;color:var(--em-blue);line-height:1.35}
.em-v270-subcat-copy small{font-size:10px;color:#8a99aa}

/* Products/filter zone starts earlier and feels lighter. */
.em-v270-product-zone{padding-top:3px}
.em-v270-product-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:12px}
.em-v270-product-head h2{margin:0;font-size:28px}.em-v270-product-head small{color:var(--em-muted);font-size:11px}
.em-v270-filterbar{display:grid;grid-template-columns:minmax(190px,1.3fr) 105px 105px minmax(150px,.9fr) auto auto auto;gap:9px;align-items:end;background:#fff;border:1px solid #dfe7f0;border-radius:16px;padding:12px;margin-bottom:16px;box-shadow:0 6px 18px rgba(8,63,131,.035)}
.em-v270-filterbar label{display:grid;gap:4px}.em-v270-filterbar label>span{font-size:10px;font-weight:900;color:#718296}
.em-v270-filterbar input[type="search"],.em-v270-filterbar input[type="number"],.em-v270-filterbar select{height:40px;border:1px solid #dbe5ef;border-radius:10px;background:#fff;padding:0 10px;outline:0;color:var(--em-ink);min-width:0}
.em-v270-filterbar input:focus,.em-v270-filterbar select:focus{border-color:#9dc1e3;box-shadow:0 0 0 3px rgba(11,94,180,.06)}
.em-v270-check{display:flex!important;align-items:center!important;gap:6px!important;height:40px;padding:0 10px;border:1px solid #dbe5ef;border-radius:10px;background:#f8fbff;white-space:nowrap}
.em-v270-check input{accent-color:var(--em-blue)}.em-v270-check span{font-size:11px!important;color:#4e647a!important}
.em-v270-filter-apply{height:40px;border:0;border-radius:10px;background:var(--em-blue);color:#fff;padding:0 18px;font-weight:900}
.em-v270-filter-apply:hover{background:var(--em-blue-2)}

/* Keep category/photo canvases predictable across the entire V2. */
.em-v270-cat-media,.em-v270-directory-media,.em-v270-subcat-media{isolation:isolate}
.em-v270-cat-media img,.em-v270-directory-media img,.em-v270-subcat-media img{display:block}

@media(max-width:1180px){
  .em-v270-cat-grid,.em-v270-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .em-v270-subcat-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
  .em-v270-filterbar{grid-template-columns:minmax(220px,1.5fr) 100px 100px minmax(150px,1fr);}
  .em-v270-check,.em-v270-filter-apply{grid-row:2}
}
@media(max-width:900px){
  .em-v270-cat-grid,.em-v270-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .em-v270-archive-hero{grid-template-columns:1fr 42%;min-height:230px}
  .em-v270-archive-media{min-height:230px}
  .em-v270-archive-copy{padding:28px}
  .em-v270-subcat-rail{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;gap:10px}
  .em-v270-subcat{flex:0 0 31%;scroll-snap-align:start}
  .em-v270-filterbar{grid-template-columns:1fr 1fr 1fr;}
  .em-v270-filter-search,.em-v270-filter-sort{grid-column:span 2}
  .em-v270-filter-apply{grid-row:auto}
}
@media(max-width:620px){
  .em-v270-section-head h2{font-size:22px}
  .em-v270-cat-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px;padding-bottom:6px}
  .em-v270-cat-card{flex:0 0 42%;scroll-snap-align:start}
  .em-v270-cat-name{font-size:12px;min-height:46px}
  .em-v270-directory-head{display:block;padding:18px}
  .em-v270-directory-head h1{font-size:28px!important}.em-v270-directory-head p{font-size:12px}
  .em-v270-directory-shop{margin-top:12px;min-height:40px}
  .em-v270-directory-grid{grid-template-columns:1fr 1fr;gap:9px}
  .em-v270-directory-copy{display:block;padding:10px}.em-v270-directory-copy strong{display:block;font-size:13px}.em-v270-directory-copy small{display:block;margin-top:2px}.em-v270-directory-copy em{display:none}
  .em-v270-archive{padding-top:10px}
  .em-v270-archive-hero{grid-template-columns:1fr;min-height:0;border-radius:18px}
  .em-v270-archive-copy{padding:21px 18px;order:2}.em-v270-archive-copy h1{font-size:30px!important}
  .em-v270-archive-media{min-height:190px;order:1}
  .is-child-archive .em-v270-archive-media{min-height:170px}
  .em-v270-subcat{flex:0 0 46%}
  .em-v270-subcat-copy strong{font-size:12px}
  .em-v270-product-head h2{font-size:23px}
  .em-v270-filterbar{grid-template-columns:1fr 1fr;gap:7px;padding:9px}
  .em-v270-filter-search,.em-v270-filter-sort{grid-column:1/-1}
  .em-v270-check{height:38px}.em-v270-filter-apply{height:38px}
  .em-mega{grid-template-columns:1fr!important}.em-mega-group{padding:10px}.em-mega-links{grid-template-columns:1fr 1fr}
}

/* ===== V2.8.0 CURATED CATEGORY ART ===== */
.home .em-cat-card-main-only .em-cat-photo,
.em-v270-directory-media{aspect-ratio:16/10!important;height:auto!important;background:#f4f7fb!important;padding:0!important;overflow:hidden!important}
.home .em-cat-card-main-only .em-cat-photo img,
.em-v270-directory-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;display:block!important}
.em-v270-archive-media{aspect-ratio:16/7!important;min-height:0!important;background:#edf3f8!important}
.em-v270-archive-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important}
.em-v270-subcat-media{aspect-ratio:4/3!important;background:#f4f7fb!important}
.em-v270-subcat-media img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important}
.em-cat-card-main-only,.em-v270-subcat,.em-v270-directory-card{box-shadow:0 8px 24px rgba(8,63,131,.055)!important}
.em-cat-card-main-only:hover,.em-v270-subcat:hover,.em-v270-directory-card:hover{box-shadow:0 16px 34px rgba(8,63,131,.11)!important;transform:translateY(-3px)}
@media(max-width:780px){.em-v270-archive-media{aspect-ratio:16/9!important}.em-v270-subcat-media{aspect-ratio:4/3!important}}

/* =========================================================
   V2.9.0 — Reference Design implementation
   Category journey mirrors the approved visual mockups.
   ========================================================= */
.em-v290-archive{padding-top:14px;background:#f7f9fc}
.em-v290-breadcrumbs{display:flex;align-items:center;gap:7px;margin:2px 0 12px;font-size:12px;color:#6f8194}
.em-v290-breadcrumbs a{color:#0b4d98;font-weight:800}
.em-v290-archive-hero{position:relative;min-height:255px;border-radius:20px;overflow:hidden;margin-bottom:22px;background:#18314a var(--em-v290-hero) center/cover no-repeat;box-shadow:0 10px 28px rgba(21,54,89,.10)}
.em-v290-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(19,35,48,.84) 0%,rgba(19,35,48,.69) 32%,rgba(19,35,48,.22) 59%,rgba(19,35,48,.02) 100%)}
.em-v290-archive-copy{position:relative;z-index:2;width:min(48%,610px);min-height:255px;margin-right:auto;padding:34px 38px;display:flex;flex-direction:column;justify-content:center;color:#fff}
.em-v290-parent-link,.em-v290-kicker{display:inline-flex;width:max-content;align-items:center;margin-bottom:7px;font-size:11px;font-weight:900;color:#dcecff}
.em-v290-archive-copy h1{margin:0 0 8px!important;font-size:clamp(32px,3.4vw,50px)!important;line-height:1.05;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.12)}
.em-v290-archive-copy p{max-width:520px;margin:0;color:#f1f5f9;font-size:14px;line-height:1.8}
.em-v290-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.em-v290-badges span{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 11px;border-radius:999px;background:rgba(255,255,255,.94);color:#0b4d98;font-size:11px;font-weight:900;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.em-v290-badges svg{width:17px;height:17px}
.em-v290-hero-empty{position:absolute;inset:0;display:grid;place-items:center;color:#fff}.em-v290-hero-empty svg{width:82px;height:82px}
.em-v290-title-row,.em-v290-product-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 12px}
.em-v290-title-row h2,.em-v290-product-head h2{margin:0!important;font-size:27px;color:#17233a}
.em-v290-kicker.dark{color:#688099;margin-bottom:3px}.em-v290-product-head small{color:#8797a8;font-size:11px}
.em-v290-subsection{margin-bottom:24px}
.em-v290-subcat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.em-v290-subcat{display:block;background:#fff;border:1px solid #e1e8f0;border-radius:14px;overflow:hidden;box-shadow:0 5px 15px rgba(14,55,93,.04);transition:.18s ease}
.em-v290-subcat:hover{transform:translateY(-3px);border-color:#c4d9ed;box-shadow:0 12px 28px rgba(14,55,93,.11)}
.em-v290-subcat-media{display:block;width:100%;aspect-ratio:1.12/1;background:#f2f5f9;overflow:hidden}
.em-v290-subcat-media>*{display:block;width:100%;height:100%}.em-v290-subcat-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important}
.em-v290-subcat .em-term-collage-empty{display:grid!important;place-items:center!important;width:100%;height:100%;background:linear-gradient(135deg,#f3f7fb,#e8f0f8);color:#0b4d98}
.em-v290-subcat .em-term-empty-label{display:block;font-weight:900;font-size:12px;text-align:center;padding:8px}
.em-v290-subcat-copy{display:grid;gap:3px;padding:10px 11px 12px}.em-v290-subcat-copy strong{font-size:12.5px;color:#0b4d98;line-height:1.3}.em-v290-subcat-copy small{font-size:10px;color:#8795a5}
.em-v290-product-zone{padding-top:3px}
.em-v290-catalog-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:16px;align-items:start}
.em-v290-filter-side{position:sticky;top:145px}
.em-v290-filterbar{display:grid;gap:11px;padding:14px;background:#fff;border:1px solid #e0e7ef;border-radius:15px;box-shadow:0 7px 20px rgba(14,55,93,.04)}
.em-v290-filter-title{font-size:14px;font-weight:950;color:#173b6d;padding-bottom:9px;border-bottom:1px solid #e8edf3}
.em-v290-filterbar label{display:grid;gap:5px}.em-v290-filterbar label>span{font-size:10px;font-weight:900;color:#718296}
.em-v290-filterbar input[type="search"],.em-v290-filterbar input[type="number"],.em-v290-filterbar select{width:100%;height:40px;border:1px solid #dbe5ef;border-radius:10px;background:#fff;padding:0 10px;outline:0;color:#17233a;min-width:0}
.em-v290-filterbar input:focus,.em-v290-filterbar select:focus{border-color:#8bb8e3;box-shadow:0 0 0 3px rgba(11,94,180,.06)}
.em-v290-price-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.em-v290-check{display:flex!important;align-items:center!important;gap:7px!important;min-height:38px;padding:0 9px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fbff}.em-v290-check input{accent-color:#0b4d98}.em-v290-check span{font-size:11px!important;color:#4d6278!important}
.em-v290-filter-apply{height:41px;border:0;border-radius:10px;background:#d71920;color:#fff;font-weight:950;cursor:pointer}.em-v290-filter-apply:hover{background:#b9151b}
.em-v290-results{min-width:0}.em-v290-results .em-products{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.em-v290-results .em-product{box-shadow:0 5px 18px rgba(14,55,93,.05);border-color:#e1e8f0}

/* Homepage category cards: same compact photo-led language as the approved reference. */
.em-v270-cat-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
.em-v270-cat-card{border-radius:14px!important;border:1px solid #e1e8f0!important;box-shadow:0 5px 16px rgba(14,55,93,.04)!important;overflow:hidden;background:#fff!important;padding:0!important}
.em-v270-cat-media{aspect-ratio:16/9!important;background:#f3f6fa!important}.em-v270-cat-media img{width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important}
.em-v270-cat-name{display:block!important;min-height:0!important;padding:10px 11px 3px!important;font-size:13px!important;color:#0b4d98!important;font-weight:900!important;text-align:right!important}
.em-v290-cat-count{display:block;padding:0 11px 10px;color:#8a98a8;font-size:10px;text-align:right}

@media(max-width:1180px){
 .em-v290-subcat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .em-v290-results .em-products{grid-template-columns:repeat(3,minmax(0,1fr))}
 .em-v270-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 .em-v290-archive-hero{min-height:230px}.em-v290-archive-copy{width:62%;min-height:230px;padding:28px}
 .em-v290-catalog-layout{grid-template-columns:1fr}.em-v290-filter-side{position:static}.em-v290-filterbar{grid-template-columns:2fr 1fr 1fr 1.2fr auto auto auto;align-items:end}.em-v290-filter-title{display:none}.em-v290-price-row{display:contents}.em-v290-filter-apply{padding:0 14px}
 .em-v290-results .em-products{grid-template-columns:repeat(3,minmax(0,1fr))}
 .em-v270-cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:680px){
 .em-v290-archive{padding-top:8px}.em-v290-archive-hero{min-height:330px;border-radius:16px;background-position:center}.em-v290-hero-overlay{background:linear-gradient(0deg,rgba(13,29,45,.92) 0%,rgba(13,29,45,.64) 52%,rgba(13,29,45,.06) 100%)}
 .em-v290-archive-copy{position:absolute;right:0;left:0;bottom:0;width:auto;min-height:0;padding:20px 18px}.em-v290-archive-copy h1{font-size:30px!important}.em-v290-archive-copy p{font-size:12px;line-height:1.6}.em-v290-badges{margin-top:12px;gap:5px}.em-v290-badges span{min-height:31px;padding:0 8px;font-size:9px}
 .em-v290-subcat-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px;padding-bottom:5px}.em-v290-subcat{flex:0 0 42%;scroll-snap-align:start}
 .em-v290-title-row h2,.em-v290-product-head h2{font-size:22px}
 .em-v290-filterbar{grid-template-columns:1fr 1fr}.em-v290-filter-search,.em-v290-filter-sort,.em-v290-filter-apply{grid-column:1/-1}.em-v290-check{min-height:36px}
 .em-v290-results .em-products{display:flex;overflow-x:auto;gap:10px}.em-v290-results .em-product{flex:0 0 72%}
 .em-v270-cat-grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px!important}.em-v270-cat-card{flex:0 0 45%;scroll-snap-align:start}
}

/* Category visual batch in progress: required card proportions. */
.em-v270-cat-media,.em-v270-directory-media{aspect-ratio:16/10!important}
.em-v290-subcat-media{aspect-ratio:4/3!important}

/* Batch visual contract: desktop heroes use 16:7; mobile copy stays legible. */
@media(min-width:781px){
 .em-v290-archive-hero{aspect-ratio:16/7;min-height:0;display:flex;align-items:center}
 .em-v290-archive-copy{min-height:0}
}

.em-v290-hero-photo{display:none}
@media(max-width:780px){
 .em-v290-archive-hero{min-height:0;background:#18314a}
 .em-v290-hero-photo{display:block;width:100%;aspect-ratio:16/7;background:var(--em-v290-hero) center/cover no-repeat}
 .em-v290-archive-hero .em-v290-hero-overlay{display:none}
 .em-v290-archive-copy{width:100%;min-height:0;padding:20px}
}

/* Keep the artwork inside its declared card aspect ratio. */
.em-v270-cat-media .em-term-art,.em-v270-directory-media .em-term-art,.em-v290-subcat-media .em-term-art{width:100%;height:100%!important;min-height:0!important}

/* Scope legacy chrome cleanup to this V2 theme; no snippet/database changes. */
body.em-v2100-category-visuals .elm-ecom-pro-v1,
body.em-v2100-category-visuals .elm-shop-home-v1,
body.em-v2100-category-visuals .elm-home-premium-v2,
body.em-v2100-category-visuals .elmah-commerce-hub,
body.em-v2100-category-visuals #ems-vip-footer-v2,
body.em-v2100-category-visuals #elmahalawy-whatsapp-floating{display:none!important}
body.em-v2100-category-visuals .em-footer{display:block!important}

@media(max-width:780px){.em-v290-archive-copy{position:relative;right:auto;left:auto;bottom:auto;margin:0}.em-v290-archive-hero{display:block}}
.em-v290-subcat:focus-visible,.em-v270-cat-card:focus-visible,.em-v270-directory-card:focus-visible{outline:3px solid #d71920;outline-offset:3px}

.em-v2100-subcat-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.em-v2100-subcat-links a{padding:10px 14px;border:1px solid #dce5ee;border-radius:10px;background:#fff;color:#083f83;font-weight:700;font-size:13px}.em-v2100-subcat-links a:hover{border-color:#d71920;color:#d71920}

/* Override the legacy VIP footer selector without changing its global snippet. */
body.em-v2100-category-visuals footer.em-footer:not(#ems-vip-footer-v2){display:block!important}
body.em-v2100-category-visuals .em-footer .em-footer-grid{display:grid!important}
body.em-v2100-category-visuals .em-footer .em-footer-bottom{display:flex!important}
@media(max-width:680px){
 .em-topbar .container{flex-direction:column;align-items:stretch;gap:4px;padding-top:6px;padding-bottom:6px}
 .em-slogan{text-align:center}
 .em-topbar-links{max-width:100%;min-width:0;justify-content:center;flex-wrap:wrap}
}

/* Keep legacy injected home widgets out of the V2 layout. */
body.em-v2100-category-visuals #ems-home-quick-pages-v9-clean-restore-upgrade,
body.em-v2100-category-visuals .ems-home-quick-pages-safe{display:none!important}
.em-v2100-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.em-v2100-help-grid a{display:flex;flex-direction:column;gap:6px;min-width:0;padding:22px;background:#fff;border:1px solid var(--em-line);border-radius:16px;box-shadow:var(--em-shadow-sm)}
.em-v2100-help-grid strong{font-size:18px;color:var(--em-blue)}
.em-v2100-help-grid span{font-size:14px;color:var(--em-muted)}
.em-v2100-help-grid a:hover{border-color:var(--em-blue)}
.em-v2100-help-grid a:focus-visible{outline:3px solid var(--em-blue);outline-offset:3px}
@media(max-width:780px){.em-v2100-help-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.em-v2100-help-grid a{padding:16px}.em-v2100-help-grid strong{font-size:15px}}
@media(max-width:380px){.em-v2100-help-grid{grid-template-columns:1fr}}

/* Home and app promotion: scoped against legacy global anchor rules. */
body.em-v2100-category-visuals .em-header-main{grid-template-columns:245px minmax(240px,1fr) auto;min-height:96px;gap:18px}
body.em-v2100-category-visuals .em-brand-copy strong{font-size:22px}
body.em-v2100-category-visuals .em-search-form{height:56px}
body.em-v2100-category-visuals a.em-v211-app-header{display:flex!important;align-items:center;gap:6px;background:#e21b17!important;color:#fff!important;padding:12px 14px!important;border:0!important;border-radius:12px!important;font-size:13px;font-weight:900;white-space:nowrap}
.em-v211-app-header svg{width:20px;height:20px}
.em-v211-home-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 0 24px}
.em-v211-eyebrow{font-size:13px;font-weight:900;color:var(--em-blue)}
.em-v211-home-intro h1{margin:7px 0;font-size:clamp(28px,3vw,44px);line-height:1.35;color:var(--em-blue);font-weight:900}
.em-v211-home-intro h1 span{color:var(--em-red)}
.em-v211-home-intro p{margin:0;font-size:16px;color:#4b627a;font-weight:700}
.em-v211-intro-actions{display:flex;gap:10px;flex-shrink:0}
body.em-v2100-category-visuals a.em-v211-cta{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:15px 20px!important;background:var(--em-red)!important;color:white!important;border-radius:12px!important;border:0!important;font-size:15px;font-weight:900;white-space:nowrap}
body.em-v2100-category-visuals a.em-v211-cta-blue{background:var(--em-blue)!important}
.em-v211-cta svg{width:22px;height:22px}
body.em-v2100-category-visuals .em-v2100-help-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.em-v2100-category-visuals .em-v2100-help-grid a{border-radius:14px!important;padding:17px 20px!important;min-height:104px;display:grid!important;grid-template-columns:40px minmax(0,1fr);column-gap:12px;row-gap:3px;align-content:center;background:white!important;text-align:right!important}
.em-v2100-help-grid a svg{grid-row:1/3;width:36px;height:36px;padding:7px;background:#eef4fb;border-radius:10px;color:var(--em-blue);align-self:center}
body.em-v2100-category-visuals .em-v2100-help-grid strong{font-size:16px}
body.em-v2100-category-visuals .em-v2100-help-grid span{font-size:12px}
.em-v211-app-banner{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center;padding:48px 56px;border-radius:28px;background:linear-gradient(120deg,#07346d,#0c559a);color:white;overflow:hidden}
.em-v211-app-badge{display:inline-block;padding:7px 14px;border:1px solid #ffffff55;border-radius:8px;font-size:13px;font-weight:800}
.em-v211-app-copy h2{font-size:clamp(36px,4vw,58px);line-height:1.2;margin:18px 0;font-weight:900;color:#fff}
.em-v211-app-copy h2 span{color:#ffd756}
.em-v211-app-copy p{font-size:17px;line-height:1.9;color:#e3efff;margin:0 0 22px}
body.em-v2100-category-visuals a.em-v211-app-download{display:inline-flex!important;align-items:center;gap:16px;padding:14px 22px!important;background:#e21b17!important;color:white!important;border:0!important;border-radius:14px!important;box-shadow:0 12px 26px #00234655}
.em-v211-app-download svg{width:30px;height:30px}
.em-v211-app-download small,.em-v211-app-download strong{display:block}
.em-v211-app-download strong{font-size:23px;line-height:1.3}
.em-v211-app-download small{font-size:12px}
.em-v211-app-note{display:block;margin-top:12px;color:#d6e5f8}
.em-v211-app-brand{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.em-v211-app-logo{width:126px;height:126px;object-fit:contain;background:#fff;border-radius:28px;padding:20px;box-shadow:0 20px 40px #00254c55}
.em-v211-app-brand>strong{font-size:20px}
.em-v211-qr{display:flex;align-items:center;gap:18px;padding:18px 22px;border:1px solid #ffffff40;background:#ffffff12;border-radius:20px;text-align:right}
.em-v211-qr img{width:112px;height:112px;object-fit:contain;padding:8px;border-radius:10px;background:white}
.em-v211-qr strong,.em-v211-qr span{display:block}
.em-v211-qr span{font-size:13px;color:#d6e5f8;margin-top:5px}
@media(max-width:1100px){body.em-v2100-category-visuals .em-header-main{grid-template-columns:215px minmax(200px,1fr) auto}.em-v211-home-intro{align-items:flex-start;flex-direction:column;gap:16px}.em-v211-app-banner{padding:32px;gap:24px}}
@media(max-width:780px){body.em-v2100-category-visuals .em-header-main{grid-template-columns:1fr auto;gap:10px;padding-top:10px;min-height:0}body.em-v2100-category-visuals .em-brand-copy{display:block}body.em-v2100-category-visuals .em-brand-copy strong{font-size:15px}.em-brand-copy>span{display:none}.em-logo{width:44px;height:44px}body.em-v2100-category-visuals a.em-v211-app-header{padding:9px!important}body.em-v2100-category-visuals .em-v211-app-header span{display:none}.em-v211-intro-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}body.em-v2100-category-visuals a.em-v211-cta{padding:12px 10px!important;font-size:12px}.em-v211-home-intro p{font-size:13px}.em-v211-app-banner{grid-template-columns:1fr;padding:28px 22px;gap:28px;border-radius:22px}.em-v211-app-copy h2{font-size:40px}.em-v211-app-copy p{font-size:15px}.em-v211-app-logo{width:90px;height:90px}.em-v211-qr{padding:14px;gap:12px;width:100%;justify-content:center}.em-v211-qr img{width:92px;height:92px}.em-v211-qr strong{font-size:13px}.em-v211-qr span{font-size:11px}body.em-v2100-category-visuals .em-v2100-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.em-v2100-category-visuals .em-v2100-help-grid a{grid-template-columns:1fr;padding:14px!important;gap:7px}.em-v2100-help-grid a svg{grid-row:auto}.em-v2100-help-grid strong{font-size:14px!important}}
@media(max-width:380px){body.em-v2100-category-visuals .em-brand-copy strong{font-size:12px}.em-v211-home-intro h1{font-size:29px}body.em-v2100-category-visuals .em-v2100-help-grid{grid-template-columns:1fr}body.em-v2100-category-visuals .em-v2100-help-grid a{grid-template-columns:36px minmax(0,1fr)}.em-v2100-help-grid a svg{grid-row:1/3}}

.em-product-photo-missing{display:flex;align-items:center;justify-content:center;min-height:180px;width:100%;padding:20px;text-align:center;color:#63758a;background:#f5f7fa;font-size:13px;font-weight:700}.em-live-no-photo{width:54px;height:54px;background:#f3f6fa;border-radius:10px}

/* Keep one search experience when legacy live-search snippets are enabled. */
body.em-v2100-category-visuals .elmah-live-results{display:none!important}

/* Restore WooCommerce's live totals and remove stale legacy promotion totals. */
body.em-v2100-category-visuals .wc-block-components-totals-footer-item{display:flex!important;flex-wrap:wrap}
body.em-v2100-category-visuals #elmah-block-cart-boost{display:none!important}
body.em-v2100-category-visuals .wc-block-cart__submit-button{background:#0b4384!important;color:#fff!important;border-radius:10px}

/* Product enhancements must fit the V2 container instead of the legacy viewport. */
body.em-v2100-category-visuals.single-product main .em-page-card>div.product{width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box}
@media(max-width:780px){
body.em-v2100-category-visuals.single-product main .container{width:calc(100% - 20px)!important;margin-inline:auto!important}
body.em-v2100-category-visuals.single-product .em-page-card{padding:16px!important}
body.em-v2100-category-visuals.single-product main .em-page-card>div.product{padding:0!important}
}

/* Native block-cart controls stay usable in narrow previews. */
body.em-v2100-category-visuals .wc-block-cart__submit-container{display:block!important;position:static!important;inset:auto!important;width:100%!important}
@media(max-width:600px){
body.em-v2100-category-visuals.woocommerce-cart .em-page-card,body.em-v2100-category-visuals.woocommerce-checkout .em-page-card{padding:16px!important}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-items{display:block;width:100%!important;min-width:0!important}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-items tbody{display:block;width:100%}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-items__row{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:12px!important;width:100%!important;padding:16px 0!important}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-items__row>td{width:auto!important;min-width:0!important;padding:0!important}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-item__image{grid-column:1;grid-row:1}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-item__image img{width:56px!important;height:auto}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-item__product{grid-column:2;grid-row:1}
body.em-v2100-category-visuals .wc-block-cart.is-mobile .wc-block-cart-item__total{grid-column:2;grid-row:2;justify-content:flex-start!important}
body.em-v2100-category-visuals .wc-block-cart-item__prices,body.em-v2100-category-visuals .wc-block-components-product-name{white-space:normal!important;overflow-wrap:anywhere}
}

/* Account widgets must fit the V2 page instead of the old theme viewport. */
body.em-v2100-category-visuals.woocommerce-account .em-page-card>.woocommerce{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box}
@media(max-width:780px){
body.em-v2100-category-visuals.woocommerce-account main .container{width:calc(100% - 20px)!important;margin-inline:auto!important}
body.em-v2100-category-visuals.woocommerce-account .em-page-card{padding:16px!important}
body.em-v2100-category-visuals.woocommerce-account .em-page-card>.woocommerce{padding:12px!important}
}
