/* ============================================================
   PMB HUB - CONSUMIDOR & PÚBLICO
   Design System: Modern Art
   ============================================================ */

/* Hero Section */
.hero-modern {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 90% 10%, rgba(155, 212, 58, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(46, 183, 169, 0.1) 0%, transparent 40%);
}

.hero-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1.2;
    min-width: 300px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--secondary);
    font-weight: 900;
}

.hero-text p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 48px;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual-logo {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 20px 40px rgba(46, 183, 169, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Search Portal Hero (Consumer Dash) */
.search-portal-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 80px 0 140px;
    color: #fff;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.guided-search-wrap {
    max-width: 860px;
    margin: -70px auto 0;
    position: relative;
    z-index: 20;
}

.unified-search-box {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 28px;
}

.search-row-layout {
    display: flex;
    gap: 12px;
    background: var(--bg-strong);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.search-row-layout input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    outline: none;
}

.search-row-layout .btn-execute {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.search-row-layout .btn-execute:hover {
    background: var(--primary-strong);
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 24px 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 16px;
    color: var(--primary);
    font-size: 1.75rem;
}

.category-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.05em;
    text-align: center;
}

/* Public Vitrine / Product Cards */
.product-grid-public {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 24px;
}

.product-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-soft);
}

/* Results Grid & View Modes */
.results-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 80px 0;
}

.product-surface-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-surface-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--primary-soft);
}

.filter-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.view-toggle-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
}

.view-toggle-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.view-toggle-btn.active {
    background: var(--primary);
    color: #fff;
}

.consumer-filter-nav {
    display: none;
}

.consumer-filter-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.consumer-filter-link.active {
    color: var(--primary);
}

.consumer-filter-link svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
}

/* Active Orders & Status */
.active-orders-section {
    margin-top: -40px;
    position: relative;
    z-index: 30;
}

.pinned-order-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.status-badge-live {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--primary-soft);
    color: var(--primary);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
}

@media (max-width: 600px) {
    html,
    body {
        overflow-x: hidden;
    }

    .consumer-filter-nav {
        position: sticky;
        top: 76px;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 10px;
        margin-bottom: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .guided-search-wrap {
        width: 100%;
        margin-top: 0;
    }

    .search-row-layout {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 16px;
    }

    .search-row-layout input {
        background: var(--bg-strong);
        border-radius: 14px;
        border: 1px solid var(--line);
    }

    .search-row-layout .btn-execute {
        width: 100%;
        padding: 18px;
    }

    .unified-search-box {
        padding: 18px;
        border-radius: 18px;
    }

    .filter-pills-row {
        justify-content: stretch;
        gap: 8px;
    }

    .filter-pills-row > * {
        min-width: 0;
    }

    .filter-pills-row > div {
        display: none;
    }

    .filter-pills-row select {
        width: 100% !important;
    }

    .results-product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 32px 0 96px;
    }

    #gridContainer {
        width: 100%;
    }

    .product-surface-card {
        width: 100%;
        max-width: 100%;
    }

    .product-surface-card[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .product-surface-card > div:first-child {
        border-right: 0 !important;
        border-bottom: 1px solid var(--line);
        min-height: 220px;
    }

    .product-list-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .view-toggle-bar {
        display: none;
    }
}
