/* EZCatalog v0.9.5: unified header is present only on v2 storefront and routed product templates. */
body.ezcat-theme-v2:has(.ezcat-unified-header) #masthead,
body.ezcat-theme-v2:has(.ezcat-unified-header) header.site-header {display:none!important}
body.ezcat-theme-classic.single-product:has(.ezcat-unified-header) #masthead,
body.ezcat-theme-classic.single-product:has(.ezcat-unified-header) header.site-header {display:none!important}
body.ezcat-theme-v2 .ezcat-unified-header{--ezcat-uh-accent:var(--ezcat-primary,#2563eb);--ezcat-uh-ink:#182230;--ezcat-uh-muted:#667085;--ezcat-uh-border:#e9edf2;--ezcat-uh-soft:#f5f7fa;display:block;position:relative;isolation:isolate;z-index:101;width:100%;max-width:100%;padding:0 18px;background:#fff;border:1px solid var(--ezcat-uh-border);border-radius:16px;box-shadow:0 4px 20px rgba(16,24,40,.055);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--ezcat-uh-ink);box-sizing:border-box;line-height:1.4;margin-bottom:20px}
body.ezcat-theme-v2 .ezcat-unified-header *{box-sizing:border-box}
body.ezcat-theme-v2 .ezcat-unified-header.is-sticky{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:1000}
body.ezcat-theme-v2 .ezcat-uh-main{min-height:75px;display:flex;align-items:center;gap:clamp(9px,2vw,26px)}
body.ezcat-theme-v2 .ezcat-uh-brand{flex:0 1 260px;min-width:0;display:flex;align-items:center;gap:10px;color:var(--ezcat-uh-ink);text-decoration:none!important}
body.ezcat-theme-v2 .ezcat-uh-symbol{display:flex;flex:none;width:44px;height:44px;align-items:center;justify-content:center;background:var(--ezcat-uh-accent);color:#fff;border-radius:13px;overflow:hidden}
body.ezcat-theme-v2 .ezcat-uh-symbol>svg{width:24px;height:24px}
body.ezcat-theme-v2 .ezcat-uh-symbol img{width:100%;height:100%;object-fit:cover;border-radius:12px}
body.ezcat-theme-v2 .ezcat-uh-identity{display:flex;flex-direction:column;min-width:0;gap:2px}
body.ezcat-theme-v2 .ezcat-uh-identity strong{font-size:16px!important;line-height:1.2!important;font-weight:800;color:var(--ezcat-uh-ink)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px;display:block;letter-spacing:-.2px}
body.ezcat-theme-v2 .ezcat-uh-identity small{font-size:10px;color:var(--ezcat-uh-muted);white-space:nowrap}
body.ezcat-theme-v2 .ezcat-uh-search{flex:1 1 auto;min-width:120px;max-width:640px;min-height:46px;border:1px solid #e7eaf0;border-radius:999px;background:#f6f8fb;display:flex;align-items:center;gap:10px;padding:4px 5px 4px 16px;margin:0;box-shadow:none}
body.ezcat-theme-v2 .ezcat-uh-search>svg{flex:none;width:19px;height:19px;color:#7a8494}
body.ezcat-theme-v2 .ezcat-uh-search input[type=search]{flex:1;min-width:0;max-width:none;min-height:34px!important;height:34px!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;outline:none!important;background:transparent!important;color:var(--ezcat-uh-ink)!important;font-size:13px!important;font-weight:500;border-radius:0!important}
body.ezcat-theme-v2 .ezcat-uh-search input::placeholder{color:#8c94a0!important;opacity:1}
body.ezcat-theme-v2 .ezcat-uh-search:focus-within{border-color:var(--ezcat-uh-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--ezcat-uh-accent) 13%,transparent)}
body.ezcat-theme-v2 .ezcat-uh-search-submit{flex:none!important;width:36px!important;height:36px!important;min-height:36px!important;display:grid!important;place-items:center!important;background:var(--ezcat-uh-accent)!important;color:#fff!important;border:0!important;border-radius:50%!important;padding:0!important;box-shadow:none!important;cursor:pointer}
body.ezcat-theme-v2 .ezcat-uh-search-submit svg{width:17px;height:17px}
body.ezcat-theme-v2 .ezcat-uh-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none;margin-left:auto}
body.ezcat-theme-v2 .ezcat-uh-action{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:1px solid transparent!important;display:grid!important;place-items:center!important;background:#fff!important;color:#313c4b!important;border-radius:12px!important;box-shadow:none!important;cursor:pointer;text-decoration:none!important;position:relative}
body.ezcat-theme-v2 .ezcat-uh-action:hover{border-color:var(--ezcat-uh-border)!important;background:var(--ezcat-uh-soft)!important;color:var(--ezcat-uh-accent)!important}
body.ezcat-theme-v2 .ezcat-uh-action svg{width:21px;height:21px}
body.ezcat-theme-v2 .ezcat-uh-count{position:absolute;top:0;right:-2px;min-width:17px;padding:0 4px;font-weight:800;font-size:10px;border-radius:20px;background:var(--ezcat-uh-accent);color:#fff;text-align:center;line-height:17px}
body.ezcat-theme-v2 .ezcat-uh-secondary{display:flex;align-items:center;gap:22px;min-height:42px;border-top:1px solid var(--ezcat-uh-border);font-size:12px;font-weight:650;overflow-x:auto;scrollbar-width:none}
body.ezcat-theme-v2 .ezcat-uh-secondary::-webkit-scrollbar{display:none}
body.ezcat-theme-v2 .ezcat-uh-secondary a{display:inline-flex;align-items:center;min-height:38px;color:#657080;text-decoration:none!important;white-space:nowrap;font-weight:650}
body.ezcat-theme-v2 .ezcat-uh-secondary a:hover,body.ezcat-theme-v2 .ezcat-uh-secondary a.is-active{color:var(--ezcat-uh-accent)}
body.ezcat-theme-v2 .ezcat-uh-product-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#87909e;font-size:11px}
body.ezcat-theme-v2 .ezcat-uh-feedback:not([hidden]){padding:7px 0;font-size:12px;color:var(--ezcat-uh-muted);margin:0}
body.ezcat-theme-v2 .ezcat-uh-back{display:none!important}
/* Keep existing sort controls but avoid a second search bar on the storefront. */
body.ezcat-theme-classic:has(.ezcat-unified-header) .ezcat-classic-controls .ezcat-classic-search,
body.ezcat-theme-marketplace-pro:has(.ezcat-unified-header) .ezcat-pro-tools .ezcat-pro-search,
body.ezcat-theme-marketplace-pro-2:has(.ezcat-unified-header) .ezcat-pro2-searchbar .ezcat-pro2-search-field{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;left:-9999px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important}
body.ezcat-theme-classic:has(.ezcat-unified-header) .ezcat-classic-controls,
body.ezcat-theme-marketplace-pro:has(.ezcat-unified-header) .ezcat-pro-tools,
body.ezcat-theme-marketplace-pro-2:has(.ezcat-unified-header) .ezcat-pro2-searchbar{justify-content:flex-end!important}
/* Existing CSS v0.9.4 explicitly displayed Astra's header on product pages; suppress it only when the shared header actually renders. */
body.ezcat-theme-classic.single-product:has(.ezcat-unified-header) #masthead,
body.ezcat-theme-classic.single-product:has(.ezcat-unified-header) header.site-header{display:none!important}
body.ezcat-theme-v2 .ezcat-unified-header :is(a,button,input):focus-visible{outline:3px solid color-mix(in srgb,var(--ezcat-uh-accent) 55%,transparent)!important;outline-offset:2px}
@media(max-width:760px){
 body.ezcat-theme-v2 .ezcat-unified-header{padding:0 12px;border-radius:0 0 12px 12px;margin-bottom:12px}
 body.ezcat-theme-v2 .ezcat-unified-header.is-sticky{top:var(--wp-admin--admin-bar--height,0px)}
 body.ezcat-theme-v2 .ezcat-uh-main{min-height:57px;gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand actions' 'search search';padding:8px 0 10px}
 body.ezcat-theme-v2 .ezcat-uh-brand{grid-area:brand;min-width:0}
 body.ezcat-theme-v2 .ezcat-uh-symbol{width:38px;height:38px;border-radius:11px}
 body.ezcat-theme-v2 .ezcat-uh-symbol>svg{width:21px;height:21px}
 body.ezcat-theme-v2 .ezcat-uh-identity strong{font-size:14px!important;max-width:185px}
 body.ezcat-theme-v2 .ezcat-uh-identity small{font-size:9px}
 body.ezcat-theme-v2 .ezcat-uh-actions{grid-area:actions;gap:0}
 body.ezcat-theme-v2 .ezcat-uh-action{min-width:36px!important;width:36px!important;height:36px!important;min-height:36px!important;border-radius:10px!important}
 body.ezcat-theme-v2 .ezcat-uh-action svg{width:19px;height:19px}
 body.ezcat-theme-v2 .ezcat-uh-search{grid-area:search;max-width:none;width:100%;min-height:43px;padding:3px 4px 3px 13px}
 body.ezcat-theme-v2 .ezcat-uh-search input[type=search]{font-size:12px!important}
 body.ezcat-theme-v2 .ezcat-uh-search-submit{width:34px!important;height:34px!important;min-height:34px!important}
 body.ezcat-theme-v2 .ezcat-uh-back{display:grid!important}
 body.ezcat-theme-v2 .ezcat-uh-secondary{gap:20px;min-height:34px;font-size:11px}
 body.ezcat-theme-v2 .ezcat-uh-secondary a{min-height:34px}
 body.ezcat-theme-v2 .ezcat-uh-product-label{font-size:10px}
}
@media(max-width:360px){
 body.ezcat-theme-v2 .ezcat-unified-header{padding:0 9px}
 body.ezcat-theme-v2 .ezcat-uh-main{column-gap:2px}
 body.ezcat-theme-v2 .ezcat-uh-brand{gap:7px}
 body.ezcat-theme-v2 .ezcat-uh-identity strong{max-width:145px;font-size:12px!important}
 body.ezcat-theme-v2 .ezcat-uh-identity small{font-size:9px}
 body.ezcat-theme-v2 .ezcat-uh-symbol{width:34px;height:34px}
 body.ezcat-theme-v2 .ezcat-uh-action{min-width:33px!important;width:33px!important}
}
@media(prefers-reduced-motion:reduce){body.ezcat-theme-v2 .ezcat-unified-header *{scroll-behavior:auto!important;transition:none!important}}
/* Keep the accessible field label out of the flex sizing calculation, even if the active WordPress theme omits screen-reader-text styling. */
body.ezcat-theme-v2 .ezcat-unified-header .ezcat-uh-search>.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
/* The existing global WhatsApp-first share handler inserts a menu next to
   the clicked action. Give the menu an isolated popover layout in the header. */
body.ezcat-theme-v2 .ezcat-uh-actions{position:relative}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu{display:block!important;position:absolute!important;right:0!important;top:calc(100% + 10px)!important;left:auto!important;width:min(310px,calc(100vw - 22px))!important;min-width:245px!important;padding:13px!important;border:1px solid #e5eaf1!important;background:#fff!important;box-shadow:0 14px 38px rgba(16,24,40,.18)!important;border-radius:14px!important;z-index:1001!important;color:#344054!important}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-heading{font-size:14px;font-weight:750;margin:0 0 12px}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-icon-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-tile{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-height:70px!important;padding:6px 2px!important;margin:0!important;border:0!important;border-radius:9px!important;box-shadow:none!important;background:transparent!important;color:#344054!important;text-align:center!important;text-decoration:none!important;line-height:1.25!important;font-size:10px!important;font-weight:650!important;cursor:pointer!important}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-tile-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;background:#f3f6fa;border-radius:50%;color:var(--ezcat-uh-accent)}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-tile-icon svg{width:20px;height:20px}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-whatsapp .ezcat-share-tile-icon{color:#167d43;background:#e7f8ed}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-more{flex-direction:row!important;justify-content:center!important;align-items:center!important;min-height:38px!important;margin-top:8px!important;background:#f5f7fa!important;width:100%!important}
body.ezcat-theme-v2 .ezcat-uh-actions>.ezcat-share-menu .ezcat-share-more .ezcat-share-tile-icon{width:28px;height:28px}

/* v0.9.6 seller account access — isolated to the unified v2 header. */
body.ezcat-theme-v2 .ezcat-uh-seller-root {position:relative;display:inline-flex;align-items:center;flex:none;z-index:4}
body.ezcat-theme-v2 .ezcat-uh-seller-toggle {position:relative;flex:none}
body.ezcat-theme-v2 .ezcat-uh-seller-dot {position:absolute;right:5px;bottom:5px;width:7px;height:7px;background:#12a36b;border:2px solid #fff;border-radius:50%}
body.ezcat-theme-v2 .ezcat-uh-seller-panel[hidden],body.ezcat-theme-v2 .ezcat-uh-seller-backdrop[hidden] {display:none!important}
body.ezcat-theme-v2 .ezcat-uh-seller-panel {position:absolute;top:calc(100% + 12px);right:0;z-index:10020;width:305px;max-width:calc(100vw - 24px);padding:9px;background:#fff;border:1px solid #e1e7ef;border-radius:17px;box-shadow:0 18px 45px rgba(15,23,42,.17);color:#192334;text-align:left;line-height:1.35}
body.ezcat-theme-v2 .ezcat-uh-seller-panel-heading {display:flex;align-items:flex-start;gap:8px;justify-content:space-between;padding:12px 12px 14px;border-bottom:1px solid #edf0f5}
body.ezcat-theme-v2 .ezcat-uh-seller-panel-heading>div {min-width:0;display:flex;flex-direction:column;gap:3px}
body.ezcat-theme-v2 .ezcat-uh-seller-eyebrow {font-size:10px!important;letter-spacing:.08em;font-weight:750;color:var(--ezcat-uh-accent,#2563eb)}
body.ezcat-theme-v2 .ezcat-uh-seller-panel-heading strong {display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1d2939;font-size:15px!important;font-weight:750;line-height:1.3}
body.ezcat-theme-v2 .ezcat-uh-seller-panel-heading small {font-size:11px;color:#667085;line-height:1.4}
body.ezcat-theme-v2 .ezcat-uh-seller-close {background:#f2f4f7!important;flex:none;border:0!important;border-radius:9px!important;min-height:30px!important;width:30px!important;height:30px!important;line-height:1!important;display:grid;place-items:center;color:#536075!important;font-size:23px!important;font-weight:400!important;margin:0!important;padding:0!important;cursor:pointer}
body.ezcat-theme-v2 .ezcat-uh-seller-links {display:flex;flex-direction:column;gap:2px;padding:8px 2px 1px}
body.ezcat-theme-v2 .ezcat-uh-seller-links a.ezcat-uh-seller-link {display:flex;align-items:center;gap:12px;min-height:42px;width:100%;padding:10px 12px!important;background:transparent!important;border:0!important;border-radius:10px;color:#344054!important;text-align:left;text-decoration:none!important;font-size:13px!important;font-weight:600!important;white-space:normal;line-height:1.35;box-shadow:none!important}
body.ezcat-theme-v2 .ezcat-uh-seller-links a.ezcat-uh-seller-link:hover,body.ezcat-theme-v2 .ezcat-uh-seller-links a.ezcat-uh-seller-link:focus-visible {background:#f3f7fb!important;color:var(--ezcat-uh-accent)!important}
body.ezcat-theme-v2 .ezcat-uh-seller-links a.ezcat-uh-seller-link.is-primary {background:color-mix(in srgb,var(--ezcat-uh-accent) 8%,white)!important;color:var(--ezcat-uh-accent)!important}
body.ezcat-theme-v2 .ezcat-uh-seller-link svg,body.ezcat-theme-v2 .ezcat-uh-footer-seller-link svg {width:18px;height:18px;flex:none}
body.ezcat-theme-v2 .ezcat-uh-seller-divider {height:1px;background:#edf0f4;margin:6px 10px}
body.ezcat-theme-v2 .ezcat-uh-seller-link.is-logout {color:#b42318!important}
body.ezcat-theme-v2 .ezcat-uh-secondary>.ezcat-uh-seller-root {margin-left:auto}
body.ezcat-theme-v2 .ezcat-uh-secondary>.ezcat-uh-seller-root .ezcat-uh-seller-panel {top:calc(100% + 2px)}
body.ezcat-theme-v2 .ezcat-uh-secondary>.ezcat-uh-seller-root .ezcat-uh-seller-toggle {height:34px!important;min-height:34px!important;width:34px!important;min-width:34px!important}
body.ezcat-theme-v2 a.ezcat-uh-footer-seller-link {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid var(--ezcat-primary,#2563eb);border-radius:999px;text-decoration:none!important;color:var(--ezcat-primary,#2563eb)!important;background:#fff;font-size:12px;font-weight:750;white-space:nowrap}
body.ezcat-theme-v2 a.ezcat-uh-footer-seller-link:hover {background:color-mix(in srgb,var(--ezcat-primary,#2563eb) 8%,white)}
body.ezcat-theme-v2 .ezcat-unified-header:has(.ezcat-uh-seller-root.is-open) {z-index:100200!important}
@media(max-width:760px) {
 body.ezcat-seller-drawer-open {overflow:hidden!important}
 body.ezcat-theme-v2 .ezcat-uh-seller-backdrop:not([hidden]) {display:block!important;position:fixed;inset:0;z-index:100210;background:rgba(16,24,40,.42)}
 body.ezcat-theme-v2 .ezcat-uh-seller-panel:not([hidden]) {position:fixed;bottom:0;left:0;right:0;top:auto;z-index:100211;width:100%;max-width:100%;max-height:min(84dvh,700px);overflow-y:auto;overscroll-behavior:contain;border-radius:22px 22px 0 0;border-bottom:0;padding:12px 14px max(14px,env(safe-area-inset-bottom));box-shadow:0 -16px 44px rgba(15,23,42,.17)}
 body.ezcat-theme-v2 .ezcat-uh-seller-panel-heading {padding:12px 10px 17px}
 body.ezcat-theme-v2 .ezcat-uh-seller-links a.ezcat-uh-seller-link {min-height:47px!important;font-size:14px!important}
 body.ezcat-theme-v2 .ezcat-uh-secondary>.ezcat-uh-seller-root {position:static}
 body.ezcat-theme-v2 .ezcat-uh-seller-root.is-open {z-index:100212}
}
/* Secondary-row account placement must not clip its popover. */
body.ezcat-theme-v2 .ezcat-uh-secondary:has(>.ezcat-uh-seller-root){overflow:visible;flex-wrap:wrap;column-gap:14px;row-gap:0}
@media(max-width:760px){body.ezcat-theme-v2 .ezcat-uh-secondary:has(>.ezcat-uh-seller-root){gap:5px 12px}}
