:root {
    --eco-accent: #2b6cb0;
    --eco-text: #1d2327;
    --eco-border: #e6e6e6;
    --eco-topbar-bg: #1d2327;
}

.eco-header {
    background: #fff;
}

.eco-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.eco-topbar { background: var(--eco-topbar-bg); color: #fff; font-size: 13px; text-align: center; padding: 7px 0; }

/* Zone principale */
.eco-main { border-bottom: 1px solid var(--eco-border); }
.eco-main-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search actions";
    gap: 32px;
    align-items: center;
    padding: 18px 20px;
}
.eco-logo  { grid-area: logo; }
.eco-search{ grid-area: search; max-width: 640px; width: 100%; justify-self: center; }
.eco-actions { grid-area: actions; display: flex; gap: 22px; }

.eco-logo img { max-height: 55px; width: auto; }
.eco-site-title { font-size: 26px; font-weight: 700; color: var(--eco-text); text-decoration: none; }

/* Actions */
.eco-action {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--eco-text); text-decoration: none; font-size: 12px;
}
.eco-action svg { width: 24px; height: 24px; }
.eco-action:hover { color: var(--eco-accent); }
.eco-count {
    position: absolute; top: -8px; right: -10px;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--eco-accent); color: #fff;
    border-radius: 10px; font-size: 11px; font-weight: 700;
    line-height: 19px; text-align: center;
}

/* Navigation */
.eco-nav { border-bottom: 3px solid var(--eco-accent); }
.eco-nav-inner { display: flex; align-items: center; }
.eco-menu { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.eco-menu > li { position: relative; }
.eco-menu a {
    display: block; padding: 14px 16px;
    color: var(--eco-text); text-decoration: none;
    font-weight: 600; font-size: 15px;
}
.eco-menu > li > a:hover { color: var(--eco-accent); }

/* Sous-menus */
.eco-menu ul {
    display: none; position: absolute; top: 100%; left: 0; z-index: 999;
    min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
    background: #fff; border: 1px solid var(--eco-border);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.eco-menu li:hover > ul { display: block; }
.eco-menu ul a { padding: 9px 16px; font-weight: 400; }

/* Burger (mobile) */
.eco-burger { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.eco-burger span { display: block; width: 24px; height: 2px; background: var(--eco-text); margin: 5px 0; }

/* Mobile */
@media (max-width: 782px) {
    .eco-main-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas: "logo actions" "search search";
        gap: 12px;
        padding: 14px 20px;
    }
    .eco-search { max-width: 100%; }
    .eco-action .eco-label { display: none; }
    .eco-burger { display: block; }
    .eco-menu { display: none; flex-direction: column; width: 100%; }
    body.eco-menu-open .eco-menu { display: flex; }
    .eco-menu ul { position: static; box-shadow: none; border: 0; }
}

/* Footer */
.eco-footer { background: var(--eco-topbar-bg); color: #cfcfcf; padding: 24px 0; margin-top: 40px; font-size: 14px; }
.eco-footer p { margin: 0; }


/* ===== STICKY HEADER ===== */
.eco-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Topbar : se rétracte au scroll */
.eco-topbar {
    max-height: 40px;
    overflow: hidden;
    padding: 7px 0;
    transition: max-height .3s ease, padding .3s ease;
}
.eco-header.eco-scrolled .eco-topbar {
    max-height: 0;
    padding: 0;
}

/* Réduction de la zone principale au scroll */
.eco-main-inner { transition: padding .3s ease; }
.eco-header.eco-scrolled .eco-main-inner { padding-top: 10px; padding-bottom: 10px; }
.eco-logo img { transition: max-height .3s ease; }
.eco-header.eco-scrolled .eco-logo img { max-height: 42px; }

/* Ombre une fois scollé */
.eco-header.eco-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.10); }

/* Comparateur YITH masqué temporairement */
a.compare,
.add-to-compare-link,
.widget.yith-woocompare-widget { display: none !important; }