/* Compuland – Φάση 3: header, mega menu, live αναζήτηση, συρτάρι φίλτρων */
/* top strip */
.top-phones { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top-phones .p3-top-note { color: var(--muted); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.top-phones .p3-top-note:hover { color: var(--navy); }
.top-phones .p3-top-b2b { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
@media (max-width: 800px) { .top-phones .p3-top-note, .top-phones .p3-top-b2b { display: none; } }

/* search: bigger + suggestions */
.finder form.search { position: relative; }
.finder form.search input[type="search"] { min-height: 42px; font-size: 15px; }
.p3-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1000; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; padding: 6px 0; color: var(--ink); }
.p3-s-head { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px; }
.p3-suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: var(--ink); text-decoration: none; font-size: 14px; }
.p3-suggest a:hover, .p3-suggest a:focus { background: var(--bg); }
.p3-s-cat small { color: var(--muted); margin-left: auto; }
.p3-s-prod img, .p3-s-noimg { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.p3-s-name { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.p3-s-prod b { color: var(--navy); white-space: nowrap; }
.p3-s-empty { padding: 10px 14px; color: var(--muted); }
.p3-s-all { display: block; width: calc(100% - 20px); margin: 6px 10px 4px; padding: 9px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; position: static !important; height: auto !important; }

/* mega menu */
.keeper-panel .p3-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.keeper-panel .p3-panel-head strong { font-size: 18px; color: var(--ink); }
.keeper-panel .p3-panel-head a { color: var(--accent-dark); font-weight: 700; text-decoration: none; font-size: 14px; }
.keeper-panel .keeper-cols { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; columns: auto !important; }
.keeper-panel .keeper-head { font-weight: 800; color: var(--navy); }
.keeper-panel .keeper-link { color: var(--ink); }
.keeper-panel .keeper-head:hover, .keeper-panel .keeper-link:hover { color: var(--accent-dark); }
.p3-brands { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.p3-brands span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.p3-brands a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.p3-brands a:hover { border-color: var(--navy); color: var(--navy); }
.keeper-promo img { border-radius: var(--radius); }

/* mobile filters drawer */
.p3-filter-btn { display: none; }
.p3-drawer-head { display: none; }
@media (max-width: 800px) {
  .p3-filter-btn { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
  .p3-filter-btn span { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
  .catalog-layout > aside.filters { position: fixed !important; top: 0; bottom: 0; left: 0; z-index: 10001; width: min(86vw, 340px); max-width: none; margin: 0; padding: 0 16px 90px; background: #fff; overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 4px 0 24px rgba(0,0,0,.18); display: block !important; }
  body.p3-filters-open .catalog-layout > aside.filters { transform: none; }
  .p3-drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; z-index: 1; }
  .p3-drawer-close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
  .p3-shade { position: fixed; inset: 0; background: rgba(15,20,30,.45); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.p3-filters-open .p3-shade { opacity: 1; pointer-events: auto; }
  body.p3-filters-open { overflow: hidden; }
  .catalog-layout { display: block !important; }
}
/* fix: layout inside panels with promo banner */
.keeper-panel.has-promo.is-on .p3-panel-head, .keeper-panel.has-promo.is-on .p3-brands { grid-column: 1 / -1; }
.keeper-panel.has-promo.is-on .keeper-cols { grid-column: 1; grid-row: 2; }
.keeper-panel.has-promo.is-on .keeper-promo { grid-column: 2; grid-row: 2; }
.keeper-panel.has-promo.is-on .p3-panel-head, .keeper-panel.has-promo.is-on .p3-panel-head + .keeper-cols { margin-bottom: 0; }
.keeper-panel .keeper-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finder form.search .p3-s-all { position: static; display: block; width: calc(100% - 20px); height: auto; margin: 6px 10px 4px; padding: 9px; background: var(--navy); color: #fff; border-radius: 8px; }
