/* ============================================================
   BROWSE CATEGORIES STYLES (Page 13 Redesign)
   ============================================================ */

.m-browse-cats-page {
    background: #FFFFFF;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for bottom nav */
}

/* TOP SEARCH BAR (Sticky) */
.m-sticky-search-bar {
    position: sticky;
    top: 0; /* Changed from 104px since we suppressed global header */
    z-index: 90;
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
}

.m-sticky-search-bar .search-input-container {
    height: 44px;
    border-radius: 25px;
    background: #F5F3FF;
    border: 1.5px solid #EDE9FE;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
}

.m-sticky-search-bar .search-icon {
    width: 16px;
    height: 16px;
    color: #7C3AED;
    flex-shrink: 0;
}

.m-sticky-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
}

.m-sticky-search-bar input::placeholder {
    color: #9CA3AF;
}

/* PAGE HEADING */
.m-page-heading {
    padding: 16px 16px 8px;
    font-size: 24px;
    font-weight: 900;
    color: #1F1F3D;
    letter-spacing: -0.5px;
}

.m-page-heading .brand {
    color: #7C3AED;
}

/* CATEGORIES GRID */
.m-cats-grid {
    padding: 0 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cat-card {
    border-radius: 18px;
    overflow: hidden;
    height: 160px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cat-card:active {
    transform: scale(0.97);
}

.cat-card .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Fallback if no image */
.cat-card .fallback-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7C3AED, #9F67F5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card .fallback-bg .initial {
    font-size: 64px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
}

.cat-card .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(88,28,135,0.75) 100%);
    pointer-events: none;
}

.cat-card .bottom-content {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 36px; /* leave room for arrow */
    pointer-events: none;
}

.cat-card .cat-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.cat-card .cat-count {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}

.cat-card .arrow-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: white;
    opacity: 0.9;
    pointer-events: none;
}

.cat-card .arrow-icon svg {
    width: 18px;
    height: 18px;
}

.no-results {
    padding: 30px 16px;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}
