/* E-commerce Theme — base, header, footer, drawers. Colors/sizes come from Theme Panel CSS variables. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--ect-bg);color:var(--ect-text);font-family:var(--ect-body-font);font-size:var(--ect-font-size);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg,video{max-width:100%;height:auto}
img{display:block}
a{color:var(--ect-link);text-decoration:none;transition:color .15s}
a:hover{color:var(--ect-primary-hover)}
h1,h2,h3,h4,h5,h6{font-family:var(--ect-heading-font);font-weight:var(--ect-heading-weight);color:var(--ect-heading);line-height:1.25;margin:0 0 .6em}
h1{font-size:clamp(1.7rem,4vw,2.5rem)}h2{font-size:clamp(1.4rem,3vw,2rem)}h3{font-size:1.25rem}
p{margin:0 0 1em}
button,input,select,textarea{font:inherit;color:inherit}
input[type=text],input[type=email],input[type=tel],input[type=search],input[type=password],input[type=number],input[type=url],select,textarea{width:100%;padding:.7em 1em;border:1px solid var(--ect-border);border-radius:10px;background:var(--ect-surface);color:var(--ect-text);outline:none;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{border-color:var(--ect-primary);box-shadow:0 0 0 3px var(--ect-primary-soft)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.ect-skip:focus{position:fixed!important;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:9999;background:var(--ect-surface);padding:8px 14px;border-radius:8px}
.ect-container{width:100%;max-width:var(--ect-container);margin:0 auto;padding:0 20px}
.ect-icon{display:block;flex-shrink:0}
.ect-hidden-field{display:none!important}

/* Buttons */
.ect-btn,.button,button.button,input[type=submit],.wp-block-button__link,.wp-element-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:.75em 1.6em;border:2px solid var(--ect-button-bg);border-radius:var(--ect-btn-radius);background:var(--ect-button-bg);color:var(--ect-button-text);font-weight:600;font-size:.93rem;line-height:1.2;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s,transform .15s,color .15s}
.ect-btn:hover,.button:hover,button.button:hover,input[type=submit]:hover,.wp-block-button__link:hover,.wp-element-button:hover{background:var(--ect-primary-hover);border-color:var(--ect-primary-hover);color:var(--ect-button-text)}
.ect-btn:active{transform:translateY(1px)}
.ect-btn-ghost{background:transparent;color:var(--ect-primary)}
.ect-btn-ghost:hover{color:var(--ect-button-text)}
.ect-btn-wa{background:#25d366;border-color:#25d366;color:#fff}
.ect-btn-wa:hover{background:#1da851;border-color:#1da851;color:#fff}
.ect-btn-block{width:100%}
.ect-icon-btn{display:inline-flex;align-items:center;justify-content:center;position:relative;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ect-header-text);cursor:pointer;transition:background .15s,color .15s}
.ect-icon-btn:hover{background:var(--ect-primary-soft);color:var(--ect-primary)}

/* Announcement bar */
.ect-topbar{background:var(--ect-topbar-bg);color:var(--ect-topbar-text);font-size:.82rem;text-align:center;padding:8px 0;letter-spacing:.02em}
.ect-topbar a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* Header */
.ect-header{background:var(--ect-header-bg);color:var(--ect-header-text);position:relative;z-index:50}
.ect-header.has-shadow{box-shadow:0 2px 18px rgba(0,0,0,.06)}
.ect-sticky-header .ect-header{position:sticky;top:0}
.admin-bar.ect-sticky-header .ect-header{top:32px}
.ect-header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:var(--ect-header-h);gap:16px}
.ect-zone{display:flex;align-items:center;gap:6px;min-width:0}
.ect-zone-left{justify-content:flex-start}
.ect-zone-center{justify-content:center}
.ect-zone-right{justify-content:flex-end}
.ect-zone:empty{display:none}
.ect-header-inner:has(.ect-zone-center:empty){grid-template-columns:auto 1fr}
.ect-header-inner:has(.ect-zone-center:empty) .ect-zone-right{justify-content:flex-end}
.ect-logo{display:inline-flex;align-items:center}
.ect-logo-img{height:var(--ect-logo-h);width:auto;max-width:260px;object-fit:contain}
.ect-site-title{font-family:var(--ect-heading-font);font-size:1.5rem;font-weight:700;color:var(--ect-header-text)}
.ect-zone .ect-branding{margin-right:18px}
.ect-zone-center .ect-branding,.ect-zone-right .ect-branding{margin:0 12px}

.ect-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.ect-menu li{position:relative}
.ect-menu>li>a{display:block;padding:10px 14px;color:var(--ect-header-text);font-size:var(--ect-menu-size);font-weight:500;border-radius:30px;white-space:nowrap}
.ect-menu-upper .ect-menu>li>a{text-transform:uppercase;letter-spacing:.04em}
.ect-menu>li>a:hover,.ect-menu>li.current-menu-item>a,.ect-menu>li.current-menu-ancestor>a,.ect-menu>li.current_page_item>a{color:var(--ect-primary);background:var(--ect-primary-soft)}
.ect-menu .menu-item-has-children>a::after{content:"";display:inline-block;width:6px;height:6px;margin-left:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-3px)}
.ect-menu .sub-menu{list-style:none;margin:0;padding:8px;position:absolute;top:100%;left:0;min-width:210px;background:var(--ect-surface);border:1px solid var(--ect-border);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.1);opacity:0;visibility:hidden;transform:translateY(6px);transition:.15s;z-index:20}
.ect-menu .sub-menu .sub-menu{top:0;left:100%}
.ect-menu li:hover>.sub-menu,.ect-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.ect-menu .sub-menu a{display:block;padding:8px 12px;border-radius:8px;color:var(--ect-text);font-size:.9rem}
.ect-menu .sub-menu a:hover{background:var(--ect-primary-soft);color:var(--ect-primary)}

.ect-header.is-stacked .ect-header-menu-row{border-top:1px solid var(--ect-border)}
.ect-header.is-stacked .ect-header-menu-row .ect-menu{justify-content:center;padding:4px 0}

.ect-cart-count{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ect-primary);color:var(--ect-button-text);font-size:11px;font-weight:700;line-height:18px;text-align:center}
.ect-cart-count[data-count="0"]{background:var(--ect-secondary)}
.ect-drawer-head .ect-cart-count{position:static;display:inline-block;margin-left:6px}
.ect-header-wa{padding:.55em 1.1em;font-size:.85rem;margin-left:6px}

.ect-mode-toggle .ect-icon-sun{display:none}
html[data-ect-mode="dark"] .ect-mode-toggle .ect-icon-sun{display:block}
html[data-ect-mode="dark"] .ect-mode-toggle .ect-icon-moon{display:none}

.ect-menu-toggle{display:none}

/* Search panel */
.ect-search-panel{background:var(--ect-header-bg);border-top:1px solid var(--ect-border);padding:16px 0;box-shadow:0 12px 24px rgba(0,0,0,.06)}
.ect-search-panel form,.ect-mobile-search form{display:flex;gap:8px;max-width:640px;margin:0 auto}
.ect-search-panel input[type=search],.ect-mobile-search input[type=search]{border-radius:30px}
.ect-search-panel button,.ect-mobile-search button{flex-shrink:0;border-radius:30px;padding:.7em 1.3em;border:0;background:var(--ect-button-bg);color:var(--ect-button-text);font-weight:600;cursor:pointer}
.ect-search-panel label,.ect-mobile-search label{flex:1}

/* Drawers (mobile menu, side cart, mobile filters) */
.ect-drawer{position:fixed;top:0;bottom:0;width:min(400px,88vw);background:var(--ect-surface);z-index:1000;display:flex;flex-direction:column;transition:transform .28s ease;box-shadow:0 0 40px rgba(0,0,0,.18)}
.ect-mobile-drawer{left:0;transform:translateX(-105%);background:var(--ect-mobile-bg);color:var(--ect-mobile-text)}
.ect-cart-drawer{right:0;transform:translateX(105%)}
.ect-drawer.is-open{transform:none}
.ect-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--ect-border)}
.ect-drawer-head .ect-logo-img{height:44px}
.ect-drawer-head .ect-icon-btn{color:inherit}
.ect-drawer-body{flex:1;overflow-y:auto;padding:18px}
.ect-overlay{position:fixed;inset:0;background:rgba(15,10,14,.45);z-index:999;backdrop-filter:blur(2px)}
body.ect-locked{overflow:hidden}
.admin-bar .ect-drawer{top:32px}

.ect-mobile-search{margin-bottom:16px}
.ect-mobile-nav{list-style:none;margin:0 0 20px;padding:0}
.ect-mobile-nav ul{list-style:none;margin:0;padding:0 0 0 14px}
.ect-mobile-nav a{display:block;padding:13px 4px;color:var(--ect-mobile-text);font-weight:500;border-bottom:1px solid var(--ect-border)}
.ect-mobile-nav .current-menu-item>a{color:var(--ect-primary)}

/* Content */
.ect-content{min-height:50vh}
.ect-page-wrap{padding-top:36px;padding-bottom:56px}
.ect-page-head{margin-bottom:24px}
.ect-page-title{margin:0}
.ect-entry>*:last-child{margin-bottom:0}
.ect-entry img{border-radius:var(--ect-card-radius)}
.ect-entry .alignwide{margin-left:-40px;margin-right:-40px}
.ect-builder-content{width:100%}
.ect-builder-page .ect-content{min-height:0}

.ect-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ect-post-card{background:var(--ect-surface);border:1px solid var(--ect-border);border-radius:var(--ect-card-radius);overflow:hidden}
.ect-post-card-media img{width:100%;aspect-ratio:16/10;object-fit:cover}
.ect-post-card-body{padding:18px}
.ect-post-card-title{font-size:1.15rem;margin:.2em 0 .5em}
.ect-post-card-title a{color:var(--ect-heading)}
.ect-post-meta{font-size:.8rem;color:var(--ect-text-muted)}
.ect-single{max-width:860px}
.ect-single-media img{width:100%;border-radius:var(--ect-card-radius);margin-bottom:24px}
.nav-links{display:flex;gap:6px;justify-content:center;margin-top:32px;flex-wrap:wrap}
.nav-links .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:20px;background:var(--ect-surface);border:1px solid var(--ect-border);color:var(--ect-text)}
.nav-links .page-numbers.current,.nav-links .page-numbers:hover{background:var(--ect-primary);border-color:var(--ect-primary);color:var(--ect-button-text)}
.ect-empty{text-align:center;padding:40px 0}
.ect-404{text-align:center;max-width:620px}
.ect-404-code{font-family:var(--ect-heading-font);font-size:6rem;line-height:1;color:var(--ect-primary);margin:0 0 10px;font-weight:800}
.ect-404 form{display:flex;gap:8px;margin:24px 0}
.ect-404-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.ect-comments{margin-top:40px}
.ect-comment-list{list-style:none;padding:0}

/* Widgets */
.ect-widget{margin-bottom:28px}
.ect-widget-title{font-size:1rem;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--ect-primary-soft)}
.ect-widget ul{list-style:none;margin:0;padding:0}
.ect-widget li{padding:6px 0}
.ect-widget li a{color:var(--ect-text)}
.ect-widget li a:hover{color:var(--ect-primary)}

/* Footer */
.ect-footer{background:var(--ect-footer-bg);color:var(--ect-footer-text);padding-top:56px;font-size:.92rem}
.ect-footer a{color:var(--ect-footer-text)}
.ect-footer a:hover{color:var(--ect-footer-head)}
.ect-footer-grid{display:grid;gap:36px;padding-bottom:40px}
.ect-footer-cols-1{grid-template-columns:1fr}
.ect-footer-cols-2{grid-template-columns:repeat(2,1fr)}
.ect-footer-cols-3{grid-template-columns:1.4fr 1fr 1fr}
.ect-footer-cols-4{grid-template-columns:1.4fr 1fr 1fr 1.2fr}
.ect-footer-title,.ect-footer .ect-widget-title{color:var(--ect-footer-head);font-size:1.05rem;margin-bottom:16px;border:0;padding:0}
.ect-footer-brand{margin-bottom:14px}
.ect-footer-brand .ect-logo-img{height:70px;background:#fff;border-radius:12px;padding:6px}
.ect-footer-brand .ect-site-title{color:var(--ect-footer-head)}
.ect-footer-about p{margin-bottom:14px}
.ect-footer-menu{list-style:none;margin:0;padding:0}
.ect-footer-menu li{margin-bottom:9px}
.ect-contact-list{list-style:none;margin:0;padding:0}
.ect-contact-list li{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}
.ect-contact-list .ect-icon{margin-top:3px;color:var(--ect-footer-head);opacity:.85}
.ect-socials{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.ect-socials a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.1);color:var(--ect-footer-head)}
.ect-socials a:hover{background:var(--ect-primary);color:#fff}
.ect-footer-bar{border-top:1px solid rgba(255,255,255,.12);padding:18px 0}
.ect-footer-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ect-copyright{margin:0;font-size:.85rem}
.ect-footer-bottom-menu{list-style:none;margin:0;padding:0;display:flex;gap:18px;flex-wrap:wrap;font-size:.85rem}
.ect-pay-badges{display:flex;gap:6px;flex-wrap:wrap}
.ect-pay-badges span{font-size:.72rem;font-weight:600;padding:4px 9px;border-radius:6px;background:rgba(255,255,255,.1);color:var(--ect-footer-head);letter-spacing:.02em}

/* Floating buttons */
.ect-wa-float{position:fixed;bottom:22px;z-index:90;width:58px;height:58px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(37,211,102,.45);transition:transform .2s}
.ect-wa-float:hover{color:#fff;transform:scale(1.07)}
.ect-wa-right{right:20px}.ect-wa-left{left:20px}
.ect-to-top{position:fixed;bottom:26px;z-index:89;width:44px;height:44px;border-radius:50%;border:0;background:var(--ect-secondary);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.ect-to-top[hidden]{display:none}
.ect-to-top-right{right:20px}.ect-to-top-left{left:20px}

/* Elementor pages during the move to Composer */
.ect-builder-content .elementor-section.elementor-section-boxed>.elementor-container{max-width:var(--ect-container)}

/* ── Tablet ── */
@media (max-width:1024px){
	.ect-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.ect-footer-cols-4,.ect-footer-cols-3{grid-template-columns:repeat(2,1fr)}
	.ect-menu>li>a{padding:10px 10px}
}

/* ── Mobile header: its own bar (logo · icons · menu button) ── */
.ect-mobile-bar{display:none}
.ect-mobile-account{display:flex;align-items:center;gap:10px;padding:13px 4px;margin-bottom:18px;color:var(--ect-mobile-text);font-weight:600;border-bottom:1px solid var(--ect-border)}
@media (max-width:900px){
	.ect-header-inner,.ect-header-menu-row{display:none!important}
	.ect-header .ect-mobile-bar{display:flex;align-items:center;gap:8px;padding:10px 14px;min-height:0}
	.ect-mobile-bar .ect-branding{flex:1;min-width:0;margin:0;display:flex;align-items:center}
	.ect-mobile-bar .ect-logo-img{height:var(--ect-logo-h-m);max-width:min(240px,58vw);object-fit:contain;object-position:left center}
	.ect-mobile-bar .ect-site-title{font-size:1.25rem}
	.ect-mobile-icons{display:flex;align-items:center;gap:8px}
	.ect-mobile-bar .ect-menu-toggle{display:inline-flex;order:-1}
	.ect-mtoggle-right .ect-mobile-bar .ect-menu-toggle{order:3}

	/* Bigger touch targets */
	.ect-mobile-bar .ect-icon-btn{width:46px;height:46px;border-radius:12px}
	.ect-mobile-bar .ect-icon-btn .ect-icon{width:24px;height:24px}
	.ect-mobile-bar .ect-menu-toggle .ect-icon{width:26px;height:26px}
	.ect-micons-boxed .ect-mobile-bar .ect-icon-btn{background:color-mix(in srgb,var(--ect-header-text) 12%,transparent)}
	.ect-micons-boxed .ect-mobile-bar .ect-icon-btn:hover{background:color-mix(in srgb,var(--ect-header-text) 20%,transparent);color:var(--ect-header-text)}
	.ect-mobile-bar .ect-cart-count{top:-5px;right:-5px;min-width:20px;height:20px;line-height:20px;border-radius:10px;font-size:11.5px;box-shadow:0 0 0 2px var(--ect-header-bg)}

	/* Centered logo variant */
	.ect-header.ect-mlogo-center .ect-mobile-bar{display:grid;grid-template-columns:1fr auto 1fr}
	.ect-mlogo-center .ect-mobile-bar .ect-branding{justify-content:center}
	.ect-mlogo-center .ect-mobile-bar .ect-logo-img{object-position:center}
	.ect-mlogo-center .ect-mobile-bar .ect-menu-toggle{order:0;justify-self:start}
	.ect-mlogo-center .ect-mobile-icons{justify-self:end}
	.ect-mlogo-center.ect-mtoggle-right .ect-mobile-bar{grid-template-columns:auto 1fr auto}
	.ect-mlogo-center.ect-mtoggle-right .ect-mobile-bar .ect-branding{order:-1;justify-content:flex-start}
	.ect-mlogo-center.ect-mtoggle-right .ect-mobile-bar .ect-menu-toggle{order:3}

	.admin-bar.ect-sticky-header .ect-header{top:46px}
	.admin-bar .ect-drawer{top:46px}
}
@media (max-width:640px){
	.ect-hide-mobile{display:none}
	.ect-container{padding:0 16px}
	.ect-post-grid{grid-template-columns:1fr}
	.ect-footer-cols-4,.ect-footer-cols-3,.ect-footer-cols-2{grid-template-columns:1fr}
	.ect-footer{padding-top:40px}
	.ect-footer-bar-inner{flex-direction:column;text-align:center}
	.ect-page-wrap{padding-top:24px;padding-bottom:40px}
	.ect-wa-float{width:52px;height:52px;bottom:16px}
	.ect-to-top{bottom:20px}
	.ect-entry .alignwide{margin-left:0;margin-right:0}
}
@media (max-width:600px){
	.admin-bar.ect-sticky-header .ect-header{top:0}
}
