/* ============================================================
   Dékolé — Search results page (.deko-search-page)
   ============================================================ */
.deko-search-page {
    --s-primary: #2563EB;
    --s-dark: #0F172A;
    --s-muted: #64748B;
    --s-line: #E5E9F2;
    --s-tint: #F5F7FB;
    background: var(--s-tint);
    color: var(--s-dark);
    padding: 22px 0 70px;
    min-height: 70vh;
}
.deko-search-page .container { max-width: 1240px; }

.deko-search-crumbs { font-size: 13px; color: var(--s-muted); margin-bottom: 14px; }
.deko-search-crumbs a { color: var(--s-muted); text-decoration: none; }
.deko-search-crumbs a:hover { color: var(--s-primary); }
.deko-search-crumbs span { margin: 0 6px; }
.deko-search-crumbs .is-current { color: var(--s-dark); font-weight: 600; }

.deko-search-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.deko-search-title { font-size: 22px; font-weight: 800; margin: 0; }
.deko-search-count { color: var(--s-muted); font-size: 14px; margin: 4px 0 0; }
.deko-search-sort { display: flex; align-items: center; gap: 8px; }
.deko-search-sort label { font-size: 13px; color: var(--s-muted); margin: 0; font-weight: 600; }
.deko-search-sort select { border: 1px solid var(--s-line); border-radius: 9px; padding: 8px 12px; font-size: 13.5px; background: #fff; }

/* Category suggestions */
.deko-search-suggest { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.deko-search-suggest-label { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--s-muted); letter-spacing: .4px; margin-right: 4px; }
.deko-search-chip { display: inline-block; padding: 7px 14px; background: #fff; border: 1px solid var(--s-line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--s-dark); text-decoration: none; }
.deko-search-chip:hover { border-color: var(--s-primary); color: var(--s-primary); }

/* Seller results */
.deko-search-sellers { background: #fff; border: 1px solid var(--s-line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.deko-search-sec-title { font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.deko-search-seller-row { display: flex; gap: 12px; flex-wrap: wrap; }
.deko-search-seller { display: flex; align-items: center; gap: 12px; border: 1px solid var(--s-line); border-radius: 12px; padding: 12px 16px; min-width: 220px; text-decoration: none; color: var(--s-dark); }
.deko-search-seller:hover { border-color: var(--s-primary); color: var(--s-dark); }
.deko-search-seller-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--s-primary), #38BDF8); color: #fff; font-weight: 800; }
.deko-search-seller-logo img { width: 100%; height: 100%; object-fit: cover; }
.deko-search-seller-info strong { display: block; font-size: 14px; }
.deko-search-seller-info span { font-size: 12.5px; color: #F59E0B; }

/* Layout */
.deko-search-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 20px; align-items: start; }

/* Filter sidebar */
.deko-search-filters { background: #fff; border: 1px solid var(--s-line); border-radius: 14px; padding: 18px; position: sticky; top: 14px; }
.deko-search-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.deko-search-filters-head h3 { font-size: 16px; font-weight: 800; margin: 0; }
.deko-search-clear { background: none; border: 0; color: var(--s-primary); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.deko-filter-block { padding: 14px 0; border-top: 1px solid var(--s-line); }
.deko-filter-block:first-of-type { border-top: 0; }
.deko-filter-block h4 { font-size: 13px; font-weight: 800; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .3px; color: #334155; }
.deko-filter-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 8px; cursor: pointer; color: #334155; }
.deko-filter-check input { margin: 0; }
.deko-filter-scroll { max-height: 190px; overflow-y: auto; padding-right: 4px; }
.deko-filter-price { display: flex; align-items: center; gap: 8px; }
.deko-filter-price input { width: 100%; border: 1px solid var(--s-line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }

/* Results grid */
.deko-search-results { min-width: 0; }
.deko-search-filter-toggle { display: none; width: 100%; background: #fff; border: 1px solid var(--s-line); border-radius: 10px; padding: 12px; font-weight: 700; margin-bottom: 12px; }
#deko-search-grid-wrap { transition: opacity .15s ease; }
#deko-search-grid-wrap.is-loading { opacity: .45; pointer-events: none; }
.deko-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.deko-search-grid .dekole-pcard-media { aspect-ratio: 1/1 !important; min-height: 0 !important; height: auto !important; overflow: hidden; }
.deko-search-grid .dekole-pcard-media img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Empty */
.deko-search-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--s-line); border-radius: 14px; }
.deko-search-empty i { font-size: 44px; color: #cbd5e1; }
.deko-search-empty-msg { font-size: 17px; font-weight: 700; margin: 14px 0 4px; }
.deko-search-empty-sub { color: var(--s-muted); font-size: 14px; margin: 0; }

/* Responsive */
@media (max-width: 991px) {
    .deko-search-layout { grid-template-columns: 1fr; }
    .deko-search-filters { position: static; display: none; }
    .deko-search-filters.is-open { display: block; }
    .deko-search-filter-toggle { display: block; }
}
@media (max-width: 520px) {
    .deko-search-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================================
   Header autocomplete dropdown (shared, injected under the bar)
   ============================================================ */
.deko-ac-panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 18px 44px rgba(2,6,23,.18); z-index: 2000;
    max-height: 460px; overflow-y: auto; display: none; text-align: left;
}
.deko-ac-panel.is-open { display: block; }
.deko-ac-section + .deko-ac-section { border-top: 1px solid #f1f5f9; }
.deko-ac-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; padding: 10px 14px 4px; display: flex; justify-content: space-between; align-items: center; }
.deko-ac-clear { background: none; border: 0; color: #2563EB; font-size: 11px; font-weight: 700; cursor: pointer; }
.deko-ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; text-decoration: none; color: #0f172a; font-size: 14px; cursor: pointer; }
.deko-ac-item:hover, .deko-ac-item.is-active { background: #f5f7fb; color: #0f172a; }
.deko-ac-item img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; border: 1px solid #eef2f7; flex: 0 0 auto; }
.deko-ac-item .deko-ac-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #eff4ff; color: #2563EB; flex: 0 0 auto; }
.deko-ac-item .deko-ac-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deko-ac-item .deko-ac-sub { font-size: 12px; color: #94a3b8; }
.deko-ac-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 14px 12px; }
.deko-ac-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; background: #f1f5f9; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #334155; cursor: pointer; border: 0; }
.deko-ac-tag:hover { background: #e2e8f0; }
.deko-ac-tag i { color: #94a3b8; font-size: 11px; }
.deko-search-capsule { position: relative; }
