/* ═══════════════════════════════════════════════════════════════
   Eletrofrio — HEADER CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset Storefront header ── */
.site-header { padding: 0 !important; background: transparent !important; box-shadow: none !important; position: static !important; }
.site-header .col-full { display: none !important; }
.storefront-breadcrumb { display: none; }
#content .col-full { padding-top: 0 !important; }

/* ════════════════════════════════════════════════════
   TOPBAR
   ════════════════════════════════════════════════════ */
.ef-header { position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 16px rgba(0,0,0,.12); }

.ef-topbar {
  background: #0F172A;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}
.ef-topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; gap: 16px;
}
.ef-topbar__left { display: flex; align-items: center; gap: 16px; }
.ef-topbar__left a, .ef-topbar__right a {
  color: rgba(255,255,255,.65); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; transition: color .2s;
}
.ef-topbar__left a:hover, .ef-topbar__right a:hover { color: #fff; }
.ef-topbar__sep { color: rgba(255,255,255,.2); }
.ef-topbar__right { display: flex; align-items: center; gap: 12px; }
.ef-topbar__badge {
  background: rgba(0,174,204,.2); border: 1px solid rgba(0,174,204,.4);
  color: #5EEAD4 !important; padding: 2px 10px; border-radius: 12px; font-weight: 600;
}
.ef-topbar__badge:hover { background: rgba(0,174,204,.3) !important; color: #fff !important; }

/* ════════════════════════════════════════════════════
   MAIN HEADER
   ════════════════════════════════════════════════════ */
.ef-header__main {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
}
.ef-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: 68px;
}

/* Logo */
.ef-logo { text-decoration: none; flex-shrink: 0; display: flex; align-items: center; }
.ef-logo img { max-height: 44px; width: auto; }
.ef-logo__text {
  font-family: 'Barlow Condensed', sans-serif; font-size: 26px;
  font-weight: 900; color: #1B2F8A; letter-spacing: -.02em; text-transform: uppercase;
}

/* Search */
.ef-search-wrap { flex: 1; max-width: 520px; }
.ef-search-form { width: 100%; }
.ef-search-inner {
  display: flex; align-items: center;
  border: 2px solid #E2E8F0; border-radius: 8px; overflow: hidden;
  transition: border-color .2s;
  background: #F8FAFC;
}
.ef-search-inner:focus-within { border-color: #00AECC; background: #fff; box-shadow: 0 0 0 3px rgba(0,174,204,.1); }

.ef-search-type { position: relative; flex-shrink: 0; }
.ef-search-type__btn {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px; height: 42px; background: transparent; border: none;
  border-right: 1px solid #E2E8F0; font-size: 12px; font-weight: 600;
  color: #475569; cursor: pointer; white-space: nowrap;
}
.ef-search-type__btn:hover { color: #1B2F8A; }
.ef-search-type__dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 180px; padding: 6px;
}
.ef-search-type__dropdown.is-open { display: block; }
.ef-search-type__dropdown a {
  display: block; padding: 8px 12px; font-size: 13px; color: #374151;
  text-decoration: none; border-radius: 4px;
}
.ef-search-type__dropdown a:hover { background: #F0F9FF; color: #00AECC; }

.ef-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: #0F172A; padding: 0 12px; min-width: 0; height: 42px;
}
.ef-search-input::placeholder { color: #94A3B8; }
.ef-search-btn {
  background: #1B2F8A; color: #fff; border: none; padding: 0 16px;
  height: 42px; cursor: pointer; flex-shrink: 0; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.ef-search-btn:hover { background: #15256e; }

/* Header actions */
.ef-header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.ef-header__action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  color: #475569; font-size: 11px; font-weight: 600; transition: all .2s; position: relative;
}
.ef-header__action:hover { background: #F0F9FF; color: #00AECC; }
.ef-header__action svg { color: inherit; }

.ef-cart-count {
  position: absolute; top: 4px; right: 8px;
  background: #DC2626; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
}
.ef-cart-count--active { display: flex; }

/* Hamburger */
.ef-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 8px;
}
.ef-hamburger span {
  display: block; width: 100%; height: 2px; background: #475569;
  border-radius: 2px; transition: all .3s;
}
.ef-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ef-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ef-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════
   NAV PRINCIPAL
   ════════════════════════════════════════════════════ */
.ef-nav {
  background: #1B2F8A;
  border-bottom: 3px solid #00AECC;
}
.ef-nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.ef-nav__menu {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0;
}
.ef-nav__item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 16px; height: 44px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(255,255,255,.8); text-decoration: none; transition: all .2s;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.ef-nav__item > a:hover, .ef-nav__item:hover > a { color: #fff; border-bottom-color: #00AECC; }
.ef-nav__item--mega { position: relative; }

/* Megamenu */
.ef-megamenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 100;
  background: #fff; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.15);
  border: 1px solid #E2E8F0; margin-top: 6px; min-width: 700px;
}
.ef-nav__item--mega:hover .ef-megamenu { display: block; }
.ef-megamenu__inner { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; padding: 24px; }
.ef-megamenu__col { padding: 0 16px; border-right: 1px solid #F1F5F9; }
.ef-megamenu__col:last-child { border-right: none; }
.ef-megamenu__col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #1B2F8A; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #E2E8F0;
}
.ef-megamenu__col a {
  display: block; font-size: 13px; color: #374151; text-decoration: none;
  padding: 5px 0; transition: color .15s;
}
.ef-megamenu__col a:hover { color: #00AECC; }
.ef-megamenu__col a:last-child { color: #00AECC; font-weight: 600; margin-top: 4px; }

/* Nav promo */
.ef-nav__promo {
  font-size: 12px; white-space: nowrap;
  background: rgba(255,199,44,.15); border: 1px solid rgba(255,199,44,.3);
  border-radius: 6px; padding: 4px 12px;
}
.ef-nav__promo a { color: #FFC72C; text-decoration: none; font-weight: 600; }
.ef-nav__promo a:hover { color: #fff; }

/* ════════════════════════════════════════════════════
   MOBILE MENU
   ════════════════════════════════════════════════════ */
.ef-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: #0F172A; overflow-y: auto; padding: 24px;
}
.ef-mobile-menu.is-open { display: block; }
.ef-mobile-menu__inner { max-width: 400px; margin: 0 auto; padding-top: 60px; }
.ef-mobile-menu__inner form {
  display: flex; gap: 8px; margin-bottom: 32px;
}
.ef-mobile-menu__inner input[type="search"] {
  flex: 1; padding: 10px 14px; border-radius: 6px; border: 1px solid #334155;
  background: #1E293B; color: #fff; font-size: 14px; outline: none;
}
.ef-mobile-menu__inner button[type="submit"] {
  background: #00AECC; color: #fff; border: none; border-radius: 6px;
  padding: 10px 16px; font-weight: 600; cursor: pointer;
}
.ef-mobile-menu__inner nav { display: flex; flex-direction: column; gap: 4px; }
.ef-mobile-menu__inner nav a {
  display: block; padding: 14px 16px; color: rgba(255,255,255,.8);
  text-decoration: none; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s;
}
.ef-mobile-menu__inner nav a:hover { color: #00AECC; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ef-topbar__left span:last-child { display: none; }
  .ef-nav { display: none; }
  .ef-hamburger { display: flex; }
  .ef-header__action span { display: none; }
  .ef-header__action { padding: 8px; }
}
@media (max-width: 640px) {
  .ef-topbar { display: none; }
  .ef-header__inner { padding: 0 16px; height: 56px; gap: 12px; }
  .ef-search-type { display: none; }
  .ef-search-input { font-size: 14px; }
}
