/* 1.7: independent product gallery, full-width description and foreground autocomplete. */
body.ep-theme.single-product .ep-layout:has(.ep-product-layout){display:grid;grid-template-columns:232px minmax(0,1fr);gap:24px 28px;align-items:start}
body.ep-theme.single-product .ep-layout:has(.ep-product-layout)>.ep-content{display:contents}
body.ep-theme.single-product .ep-layout:has(.ep-product-layout)>.ep-sidebar{grid-column:1;grid-row:1/span 2;align-self:start}
body.ep-theme.single-product .ep-content>:is(.woocommerce-breadcrumb,.wp-block-woocommerce-breadcrumbs){grid-column:2;grid-row:1;margin:0}
body.ep-theme.single-product .ep-content>.ep-product-layout{grid-column:2;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start!important;gap:24px;margin:0!important;min-width:0}
body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column{align-self:start!important;height:auto!important;min-height:0!important;min-width:0;width:100%;margin:0;position:static!important}
body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:first-child{height:fit-content!important;align-self:start!important;padding:20px;background:#fff}
body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:last-child{padding:25px}
body.ep-theme.single-product .ep-product-layout .woocommerce-product-gallery{width:100%!important;height:auto!important;min-height:0!important;float:none!important;margin:0!important}
body.ep-theme.single-product .ep-product-layout .woocommerce-product-gallery .flex-viewport{height:auto!important;max-height:500px;min-height:0}
body.ep-theme.single-product .ep-product-layout .woocommerce-product-gallery__image>a{display:flex;align-items:center;justify-content:center;min-height:0;background:#fff}
body.ep-theme.single-product .ep-product-layout .woocommerce-product-gallery__image img:not(.zoomImg){display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:460px!important;object-fit:contain!important;margin:0 auto;background:#fff}
body.ep-theme.single-product .ep-product-layout .woocommerce-product-gallery__image--placeholder img{width:auto!important;height:auto!important;max-height:390px;max-width:100%;object-fit:contain;margin:auto}
body.ep-theme.single-product .ep-product-layout .flex-control-thumbs img{width:100%!important;height:65px!important;max-height:65px!important;object-fit:contain}
body.ep-theme.single-product .ep-product-layout h1{font-size:clamp(24px,2.2vw,31px)!important;line-height:1.23!important;letter-spacing:-.025em!important;margin-bottom:18px}
body.ep-theme.single-product .ep-product-layout .wp-block-post-excerpt{font-size:13px;line-height:1.85;color:#5d788b}
body.ep-theme.single-product .ep-content>:not(.woocommerce-breadcrumb):not(.wp-block-woocommerce-breadcrumbs):not(.ep-product-layout){grid-column:1/-1;min-width:0}
body.ep-theme.single-product .ep-content>.wp-block-woocommerce-store-notices:empty{display:none}
body.ep-theme.single-product .ep-content>.wp-block-woocommerce-product-details{width:100%;max-width:100%;margin:3px auto 0;padding:30px;background:#fff;border:1px solid #e0e8ef;border-radius:15px}
body.ep-theme.single-product .woocommerce-tabs ul.tabs{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin:0 0 25px!important;padding:0!important}
body.ep-theme.single-product .woocommerce-tabs ul.tabs li{margin:0!important;padding:0 4px}
body.ep-theme.single-product .woocommerce-tabs .woocommerce-Tabs-panel{max-width:1120px;margin-inline:auto!important;font-size:14px;line-height:1.9}
body.ep-theme.single-product .woocommerce-tabs .woocommerce-Tabs-panel>h2:first-child{text-align:center;font-size:25px;margin-bottom:22px}
body.ep-theme.single-product .wp-block-woocommerce-product-collection{width:100%;margin-inline:auto}
/* The search row is its own foreground stacking context above the entire navigation row. */
body.ep-theme .ep-header{position:relative;z-index:1000;overflow:visible!important}
body.ep-theme .ep-header-main{position:relative;z-index:200!important;isolation:isolate;overflow:visible!important}
body.ep-theme .ep-nav-row{position:relative;z-index:10!important;isolation:isolate;overflow:visible}
body.ep-theme .wp-block-emil-photo-search{position:relative;z-index:5;overflow:visible!important}
body.ep-theme .ep-search{position:relative;z-index:5;overflow:visible!important}
body.ep-theme .ep-search-suggestions{z-index:1000!important;background:#fff!important;opacity:1;box-shadow:0 12px 28px #173e5920}
body.ep-theme .ep-menu-primary .ep-menu-list>li>a{display:flex;align-items:center;gap:9px;min-height:50px;padding:13px 17px 13px 10px;color:#365c76;font-weight:650}
body.ep-theme .ep-menu-primary .ep-primary-icon{display:block;flex:0 0 21px;width:21px;height:21px;color:#2b668f;margin:0}
body.ep-theme .ep-menu-primary .ep-primary-label{min-width:0;line-height:1.5}
@media(max-width:1100px) and (min-width:961px){body.ep-theme.single-product .ep-layout:has(.ep-product-layout){grid-template-columns:215px minmax(0,1fr);column-gap:22px}body.ep-theme.single-product .ep-content>.ep-product-layout{gap:18px}body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:first-child,body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:last-child{padding:18px}}
@media(max-width:960px){
 body.ep-theme.single-product .ep-layout:has(.ep-product-layout){grid-template-columns:minmax(0,1fr);gap:22px}
 body.ep-theme.single-product .ep-layout:has(.ep-product-layout)>.ep-sidebar,body.ep-theme.single-product .ep-content>:is(.woocommerce-breadcrumb,.wp-block-woocommerce-breadcrumbs),body.ep-theme.single-product .ep-content>.ep-product-layout{grid-column:1;grid-row:auto}
}
@media(max-width:640px){
 body.ep-theme.single-product .ep-content>.ep-product-layout{grid-template-columns:minmax(0,1fr);gap:17px}
 body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:first-child,body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:last-child{padding:18px}
 body.ep-theme.single-product .ep-product-layout .woocommerce-product-gallery__image img:not(.zoomImg){max-height:330px!important}
 body.ep-theme.single-product .ep-content>.wp-block-woocommerce-product-details{padding:20px 17px;margin-top:0}
 body.ep-theme.single-product .woocommerce-tabs ul.tabs{gap:12px;margin-bottom:20px!important}
 body.ep-theme.single-product .woocommerce-tabs ul.tabs li a{font-size:12px!important;line-height:1.5;padding:12px 2px}
 body.ep-theme.single-product .woocommerce-tabs .woocommerce-Tabs-panel{font-size:13px;line-height:1.85}
 body.ep-theme .ep-menu-primary .ep-menu-list>li>a{padding:12px 40px 12px 8px;min-height:48px}
}
/* 1.8: one composed product surface, with a concise introduction before purchase. */
body.ep-theme.single-product .ep-content>.ep-product-layout{padding:28px!important;gap:32px;background:#fff;border:1px solid #dfe7ee;border-radius:18px;box-shadow:0 5px 22px #173e5905;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr)}
body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:first-child,body.ep-theme.single-product .ep-content>.ep-product-layout>.wp-block-column:last-child{padding:0!important;background:#fff;border:0!important;border-radius:0;box-shadow:none!important}
body.ep-theme.single-product .ep-product-layout h1{font-size:clamp(23px,2vw,29px)!important;color:#173e59;line-height:1.25!important;margin:0 0 18px!important}
body.ep-theme.single-product .ep-product-layout .wp-block-woocommerce-product-price{padding:0 0 16px;margin:0 0 15px;border-bottom:1px solid #e8eef3;font-size:30px;font-weight:700}
body.ep-theme.single-product .ep-product-layout .ep-product-intro{font-size:14px;line-height:1.75;color:#566b7c;margin:16px 0 22px}
body.ep-theme.single-product .ep-product-intro p{margin:0 0 7px}
body.ep-theme.single-product .ep-product-intro a{font-size:12px;font-weight:700;color:#22699c;text-decoration:none}
body.ep-theme.single-product .ep-product-layout form.cart{margin:20px 0!important;gap:12px;align-items:center}
body.ep-theme.single-product .ep-product-layout .single_add_to_cart_button{min-height:52px;border-radius:9px;font-size:15px;font-weight:700}
body.ep-theme.single-product .ep-product-layout .wp-block-post-terms{font-size:11px;line-height:1.65;color:#6a8091;border-top:1px solid #e8eef3;margin-top:20px;padding-top:16px}
body.ep-theme.single-product .ep-content>.wp-block-woocommerce-product-details{margin-top:4px;padding:30px 40px;border-radius:18px}
body.ep-theme.single-product .woocommerce-tabs .woocommerce-Tabs-panel{max-width:960px;font-size:15px;line-height:1.9}
body.ep-theme.logged-in .ep-login-cta{display:none!important}
@media(max-width:1100px){body.ep-theme.single-product .ep-content>.ep-product-layout{padding:22px!important;gap:24px}}
@media(max-width:640px){body.ep-theme.single-product .ep-content>.ep-product-layout{grid-template-columns:minmax(0,1fr);padding:20px!important;gap:23px}body.ep-theme.single-product .ep-product-layout h1{font-size:24px!important}body.ep-theme.single-product .ep-product-layout .ep-product-intro{font-size:13px;margin:14px 0 18px}body.ep-theme.single-product .ep-content>.wp-block-woocommerce-product-details{padding:22px 19px}body.ep-theme.single-product .woocommerce-tabs .woocommerce-Tabs-panel{font-size:13px;line-height:1.85}}
