@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Outfit:wght@700;900&family=Cairo:wght@400;600;700&display=swap');

/* ── SEARCH HERO ── */
.search-hero {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.05) 0%, var(--bg) 70%);
}

.search-hero-title {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.brandz-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 5.5vw, 58px);
    font-weight: 600;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    direction: ltr;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.algerian-flag {
    vertical-align: middle;
    width: clamp(38px, 6vw, 54px);
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-hero-subtitle {
    margin-top: 14px;
    font-size: 16px;
    color: var(--text-dim);
    font-weight: 600;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
}

.hero-feature-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease-out;
}

.hero-feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}

.badge-icon {
    font-size: 18px;
}

/* ── SEARCH CONTAINER ── */
.search-container {
    display: flex;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s;
}

.search-container:focus-within {
    border-color: var(--accent);
}

.search-category-select {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    padding: 0 16px;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.search-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
    padding: 14px 8px;
}

/* ── SLIM STATS BAR ── */
.slim-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(10, 10, 15, .92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
    position: sticky;
    top: 0;
    z-index: 100;
}

.slim-stats-info {
    display: flex;
    gap: 16px;
}

.slim-stats-right {
    display: flex;
    gap: 12px;
}

/* ── MAIN LAYOUT ── */
.app-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

/* ── CATEGORY SIDEBAR ── */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-dim);
}

.cat-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.cat-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all .2s;
}

.cat-item:hover,
.cat-item.active {
    background: var(--surface2);
    color: var(--text);
}

.cat-item.active .cat-dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.cat-bar-bg {
    width: 100%;
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
}

.cat-bar-fill {
    height: 100%;
    background: var(--text-muted);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.cat-item.active .cat-bar-fill {
    background: var(--accent);
}

/* ── MOBILE NAV BAR ── */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 10px 24px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 10px;
    cursor: pointer;
}

.nav-item.active {
    color: var(--accent);
}

.nav-icon {
    font-size: 20px;
}

@media(max-width: 860px) {
    .app-layout {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }

    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
}