@import url("meai-product-cards.css?v=2");

/* MEAI header v4: one visual header for every viewport. */
.meai-header-2026 {
  --navy: #071426;
  --text: #121b2b;
  --muted: #657084;
  --line: #e8ebef;
  display: block !important;
  position: relative;
  z-index: 60;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.meai-header-2026 * { box-sizing: border-box; }
.meai-header-2026 .meai-shell { width: 100%; max-width: 1460px; margin: 0 auto; padding: 0 28px; }

/* top strip */
.meai-header-2026 .meai-top-strip { height: 30px; background: var(--navy); color: #fff; font-size: 11px; }
.meai-header-2026 .meai-top-strip-inner { height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.meai-header-2026 .meai-top-left,
.meai-header-2026 .meai-top-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.meai-header-2026 .meai-top-right { margin-left: auto; }
.meai-header-2026 .meai-top-item { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; text-decoration: none !important; white-space: nowrap; line-height: 1; }
.meai-header-2026 .meai-dot-icon { font-size: 8px; }
.meai-header-2026 .meai-top-sep { opacity: .4; }

/* main row */
.meai-header-2026 .meai-main-row { background: #fff; border-bottom: 1px solid var(--line); }
.meai-header-2026 .meai-main-row-inner {
  height: 82px;
  display: grid;
  grid-template-columns: 225px minmax(350px,1fr) 250px;
  align-items: center;
  column-gap: 38px;
}
.meai-header-2026 .meai-logo-wrap { display: flex; align-items: center; justify-content: flex-start; min-width: 0; }
.meai-header-2026 .meai-logo-wrap #logo,
.meai-header-2026 .meai-logo-wrap #logo a { display: flex; align-items: center; }
.meai-header-2026 .meai-logo-wrap img { display: block; width: auto !important; height: auto !important; max-width: 195px !important; max-height: 64px !important; object-fit: contain; }
.meai-header-2026 .meai-search-wrap { width: 100%; max-width: 680px; margin: 0 auto; position: relative; }
.meai-header-2026 .meai-search-wrap .search-categories { display: none !important; }
.meai-header-2026 .meai-search-wrap .header-search { position: relative !important; display: block !important; }
.meai-header-2026 .meai-search-wrap .search-input,
.meai-header-2026 .meai-search-wrap input[type=text],
.meai-header-2026 .meai-search-wrap input[type=search] {
  width: 100% !important; height: 44px !important; min-height: 44px !important;
  border: 1px solid #dfe4ea !important; border-radius: 24px !important; background: #fff !important;
  padding: 0 58px 0 19px !important; font-size: 13px !important; color: var(--text) !important; box-shadow: none !important;
}
.meai-header-2026 .meai-search-wrap .search-button {
  position: absolute !important; right: 0 !important; top: 0 !important;
  width: 50px !important; min-width: 50px !important; height: 44px !important;
  border: 0 !important; border-radius: 0 24px 24px 0 !important; background: var(--navy) !important; color: #fff !important;
}
.meai-header-2026 .meai-main-actions { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.meai-header-2026 .meai-main-action { width: 32px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--text) !important; text-decoration: none !important; font-size: 12px; font-weight: 600; }
.meai-header-2026 .meai-main-action span { display: none; }
.meai-header-2026 .meai-main-action svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.meai-header-2026 .meai-account-action svg { stroke-linecap: round; stroke-linejoin: round; }
.meai-header-2026 .meai-action-divider { height: 30px; width: 1px; background: var(--line); }
.meai-header-2026 .meai-cart-wrap { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 40px; }
.meai-header-2026 .meai-cart-wrap .cart-heading,
.meai-header-2026 .meai-cart-wrap .btn-cart { background: transparent !important; color: var(--text) !important; border: 0 !important; box-shadow: none !important; }
.meai-header-2026 .meai-cart-wrap #cart,
.meai-header-2026 .meai-cart-wrap .cart-heading { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 32px !important; height: 40px !important; min-height: 40px !important; margin: 0 !important; padding: 0 !important; line-height: 1 !important; }
.meai-header-2026 .meai-cart-wrap .cart-heading { position: relative !important; }
.meai-header-2026 .meai-cart-wrap #cart-total { display: none !important; }
.meai-header-2026 .meai-cart-wrap .cart-heading > i { font-size: 24px !important; }
.meai-header-2026 .meai-cart-wrap #cart-items { top: 3px !important; right: -4px !important; min-width: 16px !important; width: 16px !important; height: 16px !important; padding: 0 !important; font-size: 9px !important; line-height: 16px !important; }
.meai-header-2026 .meai-mobile-menu-button { display: none; }

/* desktop categories */
.meai-header-2026 .meai-category-row { height: 66px; background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.meai-header-2026 .meai-category-row-inner { height: 66px; display: flex; align-items: stretch; overflow: visible; }
.meai-header-2026 .meai-nav-item { position: relative; display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.meai-header-2026 .meai-all-cats { flex: 0 0 220px; padding: 10px 16px 10px 0; }
.meai-header-2026 .meai-all-cats-button { width: 100%; height: 46px; border: 0; border-radius: 3px; background: var(--navy); color: #fff !important; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; font-weight: 700; text-decoration: none !important; }
.meai-header-2026 .meai-all-cats-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.meai-header-2026 .meai-category-link { width: 100%; min-width: 110px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #1f2938 !important; text-decoration: none !important; font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; transition: background .15s ease; }
.meai-header-2026 .meai-category-link:hover { background: #f8fafc; }
.meai-header-2026 .meai-category-icon { display: block; width: 31px; height: 31px; object-fit: contain; flex: 0 0 31px; align-self: center; }
.meai-header-2026 .meai-dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 230px; padding: 7px; background: #fff; border: 1px solid #e4e8ee; border-radius: 4px; box-shadow: 0 12px 28px rgba(14,27,48,.13); }
.meai-header-2026 .meai-nav-item:hover > .meai-dropdown { display: block; }
.meai-header-2026 .meai-dropdown > a,
.meai-header-2026 .meai-drop-item > a,
.meai-header-2026 .meai-subdropdown > a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 3px; color: #222d3d !important; text-decoration: none !important; font-size: 12px; font-weight: 500; white-space: nowrap; }
.meai-header-2026 .meai-dropdown a:hover { background: #f4f7fa; }
.meai-header-2026 .meai-menu-icon { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.meai-header-2026 .meai-drop-item { position: relative; }
.meai-header-2026 .meai-drop-item > a b { margin-left: auto; font-size: 18px; font-weight: 400; }
.meai-header-2026 .meai-subdropdown { display: none; position: absolute; left: 100%; top: -7px; min-width: 220px; padding: 7px; background: #fff; border: 1px solid #e4e8ee; border-radius: 4px; box-shadow: 0 12px 28px rgba(14,27,48,.13); }
.meai-header-2026 .meai-drop-item:hover > .meai-subdropdown { display: block; }
.meai-header-2026 .meai-all-dropdown { left: 0; min-width: 280px; }
.meai-header-2026 .meai-menu-divider { position: relative; height: 17px; margin: 2px 8px; }
.meai-header-2026 .meai-menu-divider::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: #e8ebef; }
.meai-header-2026 .meai-menu-divider.has-label { height: auto; padding: 11px 8px 5px; margin: 0 6px; }
.meai-header-2026 .meai-menu-divider.has-label::before { display: none; }
.meai-header-2026 .meai-menu-divider.has-label span { color: #8a94a3; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.meai-header-2026 .meai-main-divider { flex: 0 0 1px; width: 1px; height: 28px; align-self: center; background: #e8ebef; }
.meai-header-2026 .meai-category-row-inner > .meai-nav-item:not(.meai-all-cats)::before { content: ""; position: absolute; left: 0; top: 17px; bottom: 17px; width: 1px; background: #edf0f3; pointer-events: none; }
.meai-header-2026 .meai-category-link.no-icon { gap: 0; padding-left: 16px; padding-right: 16px; font-size: 13px; font-weight: 650; letter-spacing: .008em; line-height: 1.22; color: #1b2638 !important; }
.meai-header-2026 .meai-category-link.no-icon:hover { background: #fafbfc !important; color: #071426 !important; }
.header-compact.meai-header-2026 .top-bar,
.header-compact.meai-header-2026 .mid-bar,
.header-compact.meai-header-2026 .desktop-main-menu-wrapper { display: none !important; }

/* custom mobile drawer */
.meai-mobile-nav { display: none; }

@media (max-width: 1250px) and (min-width: 1025px) {
  .meai-header-2026 .meai-shell { padding: 0 18px; }
  .meai-header-2026 .meai-main-row-inner { grid-template-columns: 190px minmax(300px,1fr) 190px; column-gap: 22px; }
  .meai-header-2026 .meai-logo-wrap img { max-width: 175px !important; }
  .meai-header-2026 .meai-all-cats { flex-basis: 190px; }
  .meai-header-2026 .meai-category-link { padding: 0 9px; min-width: 95px; font-size: 10px; }
  .meai-header-2026 .meai-category-link.no-icon { font-size: 11.5px; }
  .meai-header-2026 .meai-top-hide-small { display: none; }
}

@media (max-width: 1024px) {
  html.meai-mobile-menu-open,
  html.meai-mobile-menu-open body { overflow: hidden !important; }

  header .meai-mobile-header { display: none !important; }
  .meai-header-2026 { z-index: 2147483000; isolation: isolate; }
  .meai-header-2026 .meai-top-strip,
  .meai-header-2026 .meai-category-row { display: none !important; }
  .meai-header-2026 .meai-shell { padding: 0 12px; }
  .meai-header-2026 .meai-main-row { border-bottom: 1px solid #e5e9ee; }
  .meai-header-2026 .meai-main-row-inner {
    height: auto;
    min-height: 116px;
    padding-top: 8px;
    padding-bottom: 9px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) auto;
    grid-template-rows: 50px 42px;
    grid-template-areas:
      "logo logo actions"
      "menu search search";
    gap: 7px 9px;
  }
  .meai-header-2026 .meai-logo-wrap { grid-area: logo; align-self: center; }
  .meai-header-2026 .meai-logo-wrap img { max-width: 154px !important; max-height: 44px !important; }
  .meai-header-2026 .meai-main-actions { grid-area: actions; height: 50px; gap: 8px; align-items: center; }
  .meai-header-2026 .meai-main-action { width: 40px; height: 46px; }
  .meai-header-2026 .meai-action-divider { display: none !important; }
  .meai-header-2026 .meai-main-action svg { width: 28px; height: 28px; }
  .meai-header-2026 .meai-cart-wrap { min-width: 40px; width: 40px; height: 46px; justify-content: center; }
  .meai-header-2026 .meai-cart-wrap #cart,
  .meai-header-2026 .meai-cart-wrap .cart-heading { width: 40px !important; height: 46px !important; min-height: 46px !important; }
  .meai-header-2026 .meai-cart-wrap .cart-heading > i { font-size: 29px !important; }
  .meai-header-2026 .meai-cart-wrap #cart-items { top: 3px !important; right: -2px !important; min-width: 14px !important; width: 14px !important; height: 14px !important; font-size: 8px !important; line-height: 14px !important; }
  .meai-header-2026 .meai-mobile-menu-button {
    grid-area: menu;
    display: inline-flex !important;
    width: 44px !important; min-width: 44px !important; height: 42px !important;
    align-items: center !important; justify-content: center !important; align-self: stretch !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important;
    background: var(--navy) !important; color: #fff !important; box-shadow: none !important;
  }
  .meai-header-2026 .meai-mobile-menu-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .meai-header-2026 .meai-search-wrap { grid-area: search; max-width: none; height: 42px; margin: 0; align-self: stretch; }
  .meai-header-2026 .meai-search-wrap .header-search { height: 42px !important; min-height: 42px !important; margin: 0 !important; padding: 0 !important; }
  .meai-header-2026 .meai-search-wrap .search-input,
  .meai-header-2026 .meai-search-wrap input[type=text],
  .meai-header-2026 .meai-search-wrap input[type=search] {
    height: 42px !important; min-height: 42px !important; margin: 0 !important;
    padding-left: 16px !important; padding-right: 52px !important; border-radius: 8px !important;
  }
  .meai-header-2026 .meai-search-wrap .search-button { width: 46px !important; min-width: 46px !important; height: 42px !important; border-radius: 0 8px 8px 0 !important; }

  .meai-mobile-nav { display: block; position: relative; z-index: 2147483001; }
  .meai-mobile-overlay { position: fixed; inset: 0; z-index: 2147483002; display: block; visibility: hidden; opacity: 0; background: rgba(8,17,31,.32); backdrop-filter: blur(1.5px); transition: opacity .2s ease, visibility .2s ease; }
  .meai-mobile-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 2147483003; width: min(90vw,370px); display: flex; flex-direction: column; transform: translateX(-101%); transition: transform .22s ease; background: #f7f8fa; border-right: 1px solid #e1e5ea; box-shadow: 14px 0 40px rgba(13,25,43,.14); }
  .meai-mobile-nav.is-open .meai-mobile-overlay { visibility: visible; opacity: 1; }
  .meai-mobile-nav.is-open .meai-mobile-drawer { transform: translateX(0); }
  .meai-mobile-drawer-head { min-height: 58px; padding: 0 12px 0 17px; display: flex; align-items: center; justify-content: space-between; background: #fff; color: #172133; border-bottom: 1px solid #e6e9ed; }
  .meai-mobile-drawer-head strong { font-size: 14px; font-weight: 700; }
  .meai-mobile-close { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; color: #596579; background: #f4f5f7; font-size: 25px; line-height: 1; }
  .meai-mobile-list { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px 14px; }
  .meai-mobile-menu-card { overflow: hidden; background: #fff; border: 1px solid #e1e5ea; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,27,43,.025); }
  .meai-mobile-item { border-bottom: 0; padding: 2px 6px; }
  .meai-mobile-item + .meai-mobile-item { border-top: 1px solid #f0f2f4; }
  .meai-mobile-item-link { width: 100%; min-height: 48px; padding: 8px 9px 8px 10px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; background: transparent; color: #202b3b !important; text-decoration: none !important; font-size: 14px; font-weight: 560; text-align: left; }
  .meai-mobile-item-link:hover,
  .meai-mobile-item-link:active,
  .meai-mobile-item.is-expanded > .meai-mobile-parent-toggle { background: #f3f5f7; color: #101a29 !important; }
  .meai-mobile-item-main { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
  .meai-mobile-icon-box { width: 31px; height: 31px; flex: 0 0 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #eaedf0; border-radius: 8px; background: #fafbfc; }
  .meai-mobile-item-icon { width: 20px; height: 20px; object-fit: contain; }
  .meai-mobile-item-link.no-icon { font-size: 14.5px; font-weight: 580; }
  .meai-mobile-item-link.no-icon .meai-mobile-item-main { padding-left: 3px; }
  .meai-mobile-parent-arrow { width: 17px; height: 17px; fill: none; stroke: #8b95a3; stroke-width: 1.7; transition: transform .18s ease; }
  .meai-mobile-item.is-expanded > .meai-mobile-parent-toggle .meai-mobile-parent-arrow { transform: rotate(90deg); }
  .meai-mobile-children { display: none; margin: 1px 4px 6px 34px; padding: 4px 0 4px 10px; border-left: 1px solid #e4e8ec; }
  .meai-mobile-item.is-expanded .meai-mobile-children { display: block; }
  .meai-mobile-child-link { min-height: 39px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; border-radius: 8px; color: #4a5668 !important; text-decoration: none !important; font-size: 13.25px; font-weight: 500; }
  .meai-mobile-child-link:hover,
  .meai-mobile-child-link:active { background: #f4f6f8; color: #182334 !important; }
  .meai-mobile-child-icon-box { width: 25px; height: 25px; flex: 0 0 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #f6f7f9; }
  .meai-mobile-child-icon { width: 17px; height: 17px; object-fit: contain; }
  .meai-mobile-divider,
  .meai-mobile-child-divider { position: relative; height: 21px; margin: 0 8px; }
  .meai-mobile-child-divider { height: 16px; margin: 1px 7px; }
  .meai-mobile-divider::before,
  .meai-mobile-child-divider::before { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 1px; background: #e6e9ed; }
  .meai-mobile-child-divider::before { left: 0; right: 0; background: #e7eaee; }
  .meai-mobile-divider.has-label,
  .meai-mobile-child-divider.has-label { height: auto; margin: 0; padding: 17px 13px 5px; }
  .meai-mobile-child-divider.has-label { padding: 8px 8px 3px; }
  .meai-mobile-divider.has-label::before,
  .meai-mobile-child-divider.has-label::before { display: none; }
  .meai-mobile-divider.has-label span { color: #939ca9; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
  .meai-mobile-child-divider.has-label span { color: #9aa2ae; font-size: 10.5px; font-weight: 600; }
  .meai-mobile-drawer-footer { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 7px; background: #f7f8fa; border-top: 1px solid #e4e7eb; }
  .meai-mobile-drawer-footer a { min-height: 38px; flex: 1; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e0e4e9; border-radius: 10px; background: #fff; color: #283446 !important; text-decoration: none !important; font-size: 12px; font-weight: 560; }
  .meai-mobile-empty { padding: 24px 18px; color: #667286; font-size: 13px; }

  html.meai-mobile-menu-open .mobile-filter-trigger,
  html.meai-mobile-menu-open .btn.mobile-filter-trigger,
  html.meai-mobile-menu-open .sticky-product,
  html.meai-mobile-menu-open .sticky-bar,
  html.meai-mobile-menu-open .journal-loading-overlay { z-index: 1 !important; }
}

@media (min-width: 1025px) {
  header .meai-mobile-nav,
  header .meai-mobile-nav.is-open,
  header .meai-mobile-overlay,
  header .meai-mobile-drawer { display: none !important; }
}

/* MEAI: category cards - hide descriptions and Journal "Arată mai mult" action */
.category-thumb .description,
.category-thumb .button-group:has(.btn-view-more),
.category-thumb .btn-view-more {
    display: none !important;
}

/* Fallback for browsers without :has(): hiding the button is sufficient,
   and an empty button-group collapses naturally. */
.category-thumb .button-group .btn-view-more {
    display: none !important;
}
