/* ===========================================================
   EcoBen — Header & Footer
   =========================================================== */
:root{
	--ehf-navy:#0A1F44; --ehf-navy-soft:#1F3563; --ehf-navy-deep:#061331;
	--ehf-sage:#4A7C59; --ehf-sage-deep:#2F5239;
	--ehf-cream:#FAF8F4; --ehf-cream-warm:#F2EEE5; --ehf-paper:#fff;
	--ehf-ink:#1A1A1A; --ehf-ink-soft:#45433E; --ehf-ink-faint:#7A7770;
	--ehf-line:#E8E5DE; --ehf-gold:#C19A4B;
}
body.ecoben-hf-locked{ overflow:hidden; }

/* ---------- HEADER ---------- */
.ecoben-hf-header{ position:sticky; top:0; z-index:9990; background:var(--ehf-paper); font-family:'Outfit',sans-serif; transition:box-shadow .2s; }
.ecoben-hf-header.is-stuck{ box-shadow:0 4px 20px rgba(10,31,68,.06); }
body.admin-bar .ecoben-hf-header{ top:32px; }
@media (max-width:782px){ body.admin-bar .ecoben-hf-header{ top:46px; } }

.ecoben-hf-announce{ background:var(--ehf-navy-deep); color:var(--ehf-cream); text-align:center; font-size:13px; letter-spacing:.02em; padding:9px 16px; }
.ecoben-hf-announce strong{ color:var(--ehf-gold); }

.ecoben-hf-bar{ max-width:1290px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; gap:24px; }
.ecoben-hf-logo{ text-decoration:none; display:inline-flex; align-items:center; }
.ecoben-hf-logo-text{ font-family:'Instrument Serif',serif; font-size:27px; color:var(--ehf-navy); letter-spacing:-.01em; }
.ecoben-hf-logo-img{ max-height:46px; width:auto; display:block; }

.ecoben-hf-nav{ flex:1; display:flex; justify-content:center; }
.ecoben-hf-menu{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.ecoben-hf-menu li{ position:relative; }
.ecoben-hf-menu a{ color:var(--ehf-ink-soft); text-decoration:none; font-size:15px; font-weight:500; padding:8px 0; display:inline-block; transition:color .15s; }
.ecoben-hf-menu a:hover{ color:var(--ehf-navy); }
.ecoben-hf-menu .current-menu-item > a{ color:var(--ehf-navy); }
.ecoben-hf-menu .sub-menu{ position:absolute; top:100%; left:0; min-width:210px; background:var(--ehf-paper); border:1px solid var(--ehf-line); border-radius:14px; box-shadow:0 16px 40px rgba(10,31,68,.1); padding:8px; list-style:none; margin:8px 0 0; opacity:0; visibility:hidden; transform:translateY(6px); transition:.18s; z-index:5; }
.ecoben-hf-menu li:hover > .sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.ecoben-hf-menu .sub-menu a{ display:block; padding:9px 12px; border-radius:8px; font-weight:400; }
.ecoben-hf-menu .sub-menu a:hover{ background:var(--ehf-cream); }

.ecoben-hf-side{ display:flex; align-items:center; }
.ecoben-hf-icons{ gap:4px; }
.ecoben-hf-iconbtn{ position:relative; width:42px; height:42px; border:0; background:none; color:var(--ehf-ink); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; border-radius:50%; transition:background .15s,color .15s; text-decoration:none; }
.ecoben-hf-iconbtn svg{ width:22px !important; height:22px !important; flex:0 0 auto; display:block; }
.ecoben-hf-burger svg{ width:24px !important; height:24px !important; }
.ecoben-hf-modal-close svg,.ecoben-hf-search-close svg,.ecoben-hf-menu-close svg{ width:20px !important; height:20px !important; }
.ecoben-hf-iconbtn:hover{ background:var(--ehf-cream-warm); color:var(--ehf-navy); }
.ecoben-hf-cart .ecoben-cart-count,.ecoben-hf-cart-count{ position:absolute; top:5px; right:2px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:var(--ehf-navy); color:#fff; font-size:10px; font-weight:700; line-height:1; display:flex; align-items:center; justify-content:center; }
.ecoben-hf-burger{ display:none; }

/* ---------- SEARCH PANEL ---------- */
.ecoben-hf-search{ border-top:1px solid var(--ehf-line); background:var(--ehf-paper); overflow:hidden; max-height:0; transition:max-height .3s ease; }
.ecoben-hf-search.open{ max-height:80vh; overflow:auto; }
.ecoben-hf-search-inner{ max-width:1290px; margin:0 auto; padding:0 24px 18px; }
.ecoben-hf-search-form{ display:flex; align-items:center; gap:12px; padding:18px 0; border-bottom:1px solid var(--ehf-line); }
.ecoben-hf-search-form svg{ width:22px !important; height:22px !important; color:var(--ehf-ink-faint); flex:0 0 auto; }
.ecoben-hf-search-input{ flex:1; border:0; outline:0; background:none; font-family:'Outfit',sans-serif; font-size:18px; color:var(--ehf-ink); }
.ecoben-hf-search-close{ width:38px; height:38px; }
.ecoben-hf-search-popular{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:14px 0 0; font-size:13px; color:var(--ehf-ink-faint); }
.ecoben-hf-pop{ border:1px solid var(--ehf-line); background:var(--ehf-paper); border-radius:999px; padding:6px 14px; font-size:13px; cursor:pointer; color:var(--ehf-ink-soft); font-family:'Outfit',sans-serif; }
.ecoben-hf-pop:hover{ border-color:var(--ehf-navy); color:var(--ehf-navy); }
.ecoben-hf-search-results{ padding-top:6px; }
.ecoben-hf-sr-loading,.ecoben-hf-sr-empty{ padding:18px 0; color:var(--ehf-ink-faint); font-size:14px; }
.ecoben-hf-sr-list{ list-style:none; margin:0; padding:8px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.ecoben-hf-sr-item a{ display:flex; align-items:center; gap:12px; padding:10px; border-radius:12px; text-decoration:none; transition:background .15s; }
.ecoben-hf-sr-item a:hover{ background:var(--ehf-cream); }
.ecoben-hf-sr-img{ width:48px; height:48px; border-radius:8px; overflow:hidden; background:var(--ehf-cream); flex:0 0 auto; }
.ecoben-hf-sr-img img{ width:100%; height:100%; object-fit:cover; }
.ecoben-hf-sr-info{ display:flex; flex-direction:column; min-width:0; }
.ecoben-hf-sr-name{ font-size:13.5px; font-weight:600; color:var(--ehf-ink); line-height:1.3; }
.ecoben-hf-sr-price{ font-size:13px; color:var(--ehf-navy); }
.ecoben-hf-sr-all{ display:inline-block; margin-top:10px; font-size:14px; color:var(--ehf-navy); text-decoration:underline; text-underline-offset:3px; }

/* ---------- OVERLAY / DRAWER (mobile menu) ---------- */
.ecoben-hf-overlay{ position:fixed; inset:0; background:rgba(6,19,49,.5); opacity:0; visibility:hidden; transition:opacity .3s; z-index:9995; }
.ecoben-hf-overlay.show{ opacity:1; visibility:visible; }
.ecoben-hf-drawer{ position:fixed; top:0; left:0; bottom:0; width:330px; max-width:88vw; background:var(--ehf-paper); z-index:9996; transform:translateX(-100%); transition:transform .32s cubic-bezier(.2,.7,.3,1); display:flex; flex-direction:column; font-family:'Outfit',sans-serif; }
.ecoben-hf-drawer.open{ transform:translateX(0); }
.ecoben-hf-drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--ehf-line); }
.ecoben-hf-mnav{ flex:1; overflow-y:auto; padding:8px 0; }
.ecoben-hf-mmenu{ list-style:none; margin:0; padding:0; }
.ecoben-hf-mmenu li{ border-bottom:1px solid var(--ehf-line); }
.ecoben-hf-mmenu a{ display:block; padding:15px 20px; color:var(--ehf-ink); text-decoration:none; font-size:15.5px; font-weight:500; }
.ecoben-hf-mmenu .sub-menu{ list-style:none; margin:0; padding:0; max-height:0; overflow:hidden; transition:max-height .3s; background:var(--ehf-cream); }
.ecoben-hf-mmenu .menu-item-has-children.open > .sub-menu{ max-height:600px; }
.ecoben-hf-mmenu .sub-menu a{ padding-left:34px; font-weight:400; font-size:14px; }
.ecoben-hf-drawer-foot{ padding:16px 20px; border-top:1px solid var(--ehf-line); }
.ecoben-hf-drawer-acc{ display:flex; align-items:center; gap:10px; width:100%; background:var(--ehf-navy); color:var(--ehf-cream); border:0; border-radius:12px; padding:14px 16px; font-family:'Outfit',sans-serif; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; justify-content:center; }
.ecoben-hf-drawer-acc svg{ width:20px; height:20px; }

/* ---------- LOGIN MODAL ---------- */
.ecoben-hf-modal{ position:fixed; left:50%; top:50%; transform:translate(-50%,-46%); opacity:0; visibility:hidden; transition:opacity .3s,transform .3s cubic-bezier(.2,.7,.3,1); z-index:9997; width:440px; max-width:94vw; max-height:90vh; overflow:auto; background:var(--ehf-paper); border-radius:22px; box-shadow:0 40px 90px rgba(6,19,49,.35); font-family:'Outfit',sans-serif; padding:30px 30px 26px; }
.ecoben-hf-modal.open{ opacity:1; visibility:visible; transform:translate(-50%,-50%); }
.ecoben-hf-modal-close{ position:absolute; top:14px; right:14px; width:38px; height:38px; background:var(--ehf-cream-warm); border-radius:50%; }
.ecoben-hf-tabs{ display:flex; gap:8px; background:var(--ehf-cream-warm); border-radius:12px; padding:5px; margin-bottom:22px; }
.ecoben-hf-tab{ flex:1; border:0; background:none; padding:11px; border-radius:9px; font-family:'Outfit',sans-serif; font-size:14.5px; font-weight:600; color:var(--ehf-ink-soft); cursor:pointer; transition:.15s; }
.ecoben-hf-tab.is-active{ background:var(--ehf-paper); color:var(--ehf-navy); box-shadow:0 2px 8px rgba(10,31,68,.08); }
.ecoben-hf-form{ display:none; }
.ecoben-hf-form.is-active{ display:block; }
.ecoben-hf-field{ margin-bottom:14px; }
.ecoben-hf-field label{ display:block; font-size:13px; font-weight:600; color:var(--ehf-ink-soft); margin-bottom:6px; }
.ecoben-hf-field input{ width:100%; height:48px; border:1px solid var(--ehf-line); border-radius:12px; padding:0 14px; font-family:'Outfit',sans-serif; font-size:15px; color:var(--ehf-ink); background:#fff; }
.ecoben-hf-field input:focus{ outline:0; border-color:var(--ehf-navy); }
.ecoben-hf-remember{ display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ehf-ink-soft); margin-bottom:14px; }
.ecoben-hf-submit{ width:100%; background:var(--ehf-navy); color:var(--ehf-cream); border:0; border-radius:14px; padding:15px; font-family:'Outfit',sans-serif; font-weight:600; font-size:15px; cursor:pointer; transition:background .2s; }
.ecoben-hf-submit:hover{ background:var(--ehf-navy-soft); }
.ecoben-hf-submit[disabled]{ opacity:.7; cursor:progress; }
.ecoben-hf-lost{ display:block; width:100%; text-align:center; margin-top:14px; padding:0; background:none; border:0; cursor:pointer; font-family:'Outfit',sans-serif; font-size:13.5px; color:var(--ehf-ink-faint); text-decoration:underline; text-underline-offset:3px; }
.ecoben-hf-lost:hover{ color:var(--ehf-ink); }
/* Widok resetu hasła w popupie (spójnie z checkout): chowamy zakładki + social, pokazujemy formularz resetu. */
.ecoben-hf-login.is-reset .ecoben-hf-tabs,
.ecoben-hf-login.is-reset .ecoben-hf-social{ display:none; }
.ecoben-hf-reset-sub{ font-family:'Outfit',sans-serif; font-size:14px; line-height:1.5; color:var(--ehf-ink-faint); margin:0 0 16px; }
.ecoben-hf-back-login{ display:block; width:100%; margin-top:12px; padding:0; background:none; border:0; cursor:pointer; font-family:'Outfit',sans-serif; font-size:13.5px; color:var(--ehf-ink-faint); text-align:center; }
.ecoben-hf-back-login:hover{ color:var(--ehf-ink); }
.ecoben-hf-terms{ font-size:12px; color:var(--ehf-ink-faint); text-align:center; margin:12px 0 0; }
.ecoben-hf-msg{ font-size:13.5px; margin:4px 0 12px; min-height:0; }
.ecoben-hf-msg.error{ color:#B85447; }
.ecoben-hf-msg.ok{ color:var(--ehf-sage-deep); }

/* ---------- LOGOWANIE SPOŁECZNOŚCIOWE ---------- */
.ecoben-hf-social{ display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.ecoben-hf-social-btn{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:50px; border:1px solid var(--ehf-line); border-radius:14px; background:var(--ehf-paper); font-family:'Outfit',sans-serif; font-size:15px; font-weight:600; color:var(--ehf-ink); text-decoration:none; cursor:pointer; transition:background .15s,border-color .15s,box-shadow .15s; }
.ecoben-hf-social-btn svg{ flex:0 0 auto; }
.ecoben-hf-social-btn:hover{ background:var(--ehf-cream); box-shadow:0 4px 14px rgba(10,31,68,.07); }
.ecoben-hf-social-fb{ background:#1877F2; border-color:#1877F2; color:#fff; }
.ecoben-hf-social-fb svg path{ fill:#fff; }
.ecoben-hf-social-fb:hover{ background:#1466d6; border-color:#1466d6; }
.ecoben-hf-or{ position:relative; text-align:center; margin:0 0 18px; }
.ecoben-hf-or::before{ content:""; position:absolute; top:50%; left:0; right:0; height:1px; background:var(--ehf-line); }
.ecoben-hf-or span{ position:relative; background:var(--ehf-paper); padding:0 12px; font-size:12.5px; color:var(--ehf-ink-faint); }

/* ---------- FOOTER (premium) ---------- */
.ecoben-hf-footer{ background:linear-gradient(180deg,#0c2550 0%,var(--ehf-navy) 55%,var(--ehf-navy-deep) 100%); color:rgba(250,248,244,.82); font-family:'Outfit',sans-serif; margin-top:64px; }

/* Pasek korzyści */
.ecoben-hf-foot-features{ border-bottom:1px solid rgba(255,255,255,.1); }
.ecoben-hf-foot-features-in{ max-width:1290px; margin:0 auto; padding:26px 24px; display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.ecoben-hf-feat{ display:flex; align-items:center; gap:13px; }
.ecoben-hf-feat-ic{ flex:0 0 auto; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color:var(--ehf-sage); display:inline-flex; align-items:center; justify-content:center; }
.ecoben-hf-feat-ic svg{ width:22px; height:22px; }
.ecoben-hf-feat-txt{ display:flex; flex-direction:column; line-height:1.25; }
.ecoben-hf-feat-txt strong{ color:#fff; font-size:14px; font-weight:600; }
.ecoben-hf-feat-txt span{ font-size:12px; color:rgba(250,248,244,.6); }

/* Sekcja główna */
.ecoben-hf-footer-top{ max-width:1290px; margin:0 auto; padding:54px 24px 42px; display:grid; grid-template-columns:1.7fr 1fr 1fr 1.3fr; gap:44px; }
.ecoben-hf-footer .ecoben-hf-logo-text{ color:#fff; }
.ecoben-hf-foot-brand{ display:inline-flex; align-items:center; gap:14px; text-decoration:none; margin-bottom:18px; }
.ecoben-hf-foot-symbol{ width:54px; height:auto; display:block; }
.ecoben-hf-foot-wordmark{ font-family:'Instrument Serif',serif; font-size:30px; color:#fff; line-height:1; letter-spacing:-.01em; }
.ecoben-hf-foot-desc{ font-size:14px; line-height:1.65; margin:0 0 20px; color:rgba(250,248,244,.7); max-width:360px; }
.ecoben-hf-foot-social{ display:flex; gap:10px; }
.ecoben-hf-soc{ width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.16); display:inline-flex; align-items:center; justify-content:center; color:rgba(250,248,244,.85); transition:background .15s,border-color .15s,transform .15s,color .15s; }
.ecoben-hf-soc:hover{ background:var(--ehf-sage); border-color:var(--ehf-sage); color:#fff; transform:translateY(-2px); }
.ecoben-hf-soc svg{ width:18px; height:18px; }

.ecoben-hf-col-title{ font-family:'Outfit',sans-serif; font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; color:#fff; margin:4px 0 18px; font-weight:600; }
.ecoben-hf-foot-menu{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.ecoben-hf-foot-menu a{ color:rgba(250,248,244,.72); text-decoration:none; font-size:14px; transition:color .15s,padding .15s; }
.ecoben-hf-foot-menu a:hover{ color:#fff; padding-left:4px; }
.ecoben-hf-foot-menu li{ font-size:14px; color:rgba(250,248,244,.72); }

.ecoben-hf-foot-contact{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:13px; }
.ecoben-hf-foot-contact li{ display:flex; align-items:center; gap:10px; font-size:14px; color:rgba(250,248,244,.72); }
.ecoben-hf-foot-contact a{ color:rgba(250,248,244,.72); text-decoration:none; transition:color .15s; }
.ecoben-hf-foot-contact a:hover{ color:#fff; }
.ecoben-hf-ci{ flex:0 0 auto; color:var(--ehf-sage); display:inline-flex; }
.ecoben-hf-ci svg{ width:16px; height:16px; }

/* Pasek dolny */
.ecoben-hf-footer-bottom{ border-top:1px solid rgba(255,255,255,.12); max-width:1290px; margin:0 auto; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12.5px; color:rgba(250,248,244,.6); }
.ecoben-hf-foot-legal{ display:flex; flex-wrap:wrap; align-items:center; gap:18px; }
.ecoben-hf-foot-legal a{ color:rgba(250,248,244,.6); text-decoration:none; transition:color .15s; }
.ecoben-hf-foot-legal a:hover{ color:#fff; }
.ecoben-hf-foot-pay{ display:flex; flex-wrap:wrap; gap:8px; }
.ecoben-hf-pay-badge{ background:rgba(255,255,255,.92); color:#0c2550; font-size:11px; font-weight:700; letter-spacing:.02em; padding:6px 11px; border-radius:7px; line-height:1; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width:1024px){
	.ecoben-hf-bar{ display:grid; grid-template-columns:1fr auto 1fr; gap:8px; padding:12px 16px; }
	.ecoben-hf-left{ justify-self:start; }
	.ecoben-hf-logo{ justify-self:center; }
	.ecoben-hf-icons{ justify-self:end; }
	.ecoben-hf-nav{ display:none; }
	.ecoben-hf-burger{ display:inline-flex; }
	.ecoben-hf-logo-text{ font-size:23px; }
	.ecoben-hf-iconbtn{ width:40px; height:40px; }
	.ecoben-hf-foot-features-in{ grid-template-columns:1fr 1fr; gap:18px; padding:24px 18px; }
	.ecoben-hf-footer-top{ grid-template-columns:1fr 1fr; gap:30px 24px; padding:40px 18px 30px; }
	.ecoben-hf-col-brand{ grid-column:1 / -1; }
	.ecoben-hf-sr-list{ grid-template-columns:1fr; }
}
@media (max-width:560px){
	.ecoben-hf-footer-top{ grid-template-columns:1fr 1fr; }
	.ecoben-hf-col-brand{ grid-column:1 / -1; }
	.ecoben-hf-foot-features-in{ grid-template-columns:1fr; gap:16px; }
	.ecoben-hf-footer-bottom{ flex-direction:column-reverse; text-align:center; gap:14px; }
	.ecoben-hf-foot-legal{ justify-content:center; }
	.ecoben-hf-foot-pay{ justify-content:center; }
	.ecoben-hf-announce{ font-size:11.5px; padding:8px 12px; }
	.ecoben-hf-modal{ padding:26px 20px 22px; }
}
