/**
 * =========================================================
 * ARQUIVO : /assets/css/categoria.css
 * PROJETO : BomVendedor
 * MÓDULO  : Página pública interna de categoria
 * VERSÃO  : V2.1 PREMIUM FAMILY ALIGN
 * AUTOR   : OpenAI + Rodrigo
 * DATA    : 17/04/2026
 * =========================================================
 */

.bv-category-v2-page {
    padding: 28px 0 48px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 22%),
        linear-gradient(180deg, #edf2f8 0%, #f4f7fb 100%);
}

.bv-category-v2-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.bv-category-v2-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.bv-category-v2-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.bv-category-v2-hero,
.bv-category-v2-strip,
.bv-category-v2-products-wrap,
.bv-category-v2-cta,
.bv-category-v2-ad-slot {
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #dfe7f1;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.bv-category-v2-hero {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(250px, 300px);
    gap: 22px;
    align-items: center;
    padding: 26px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.bv-category-v2-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 25%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 25%);
}

.bv-category-v2-hero__media,
.bv-category-v2-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
    border: 1px solid #edf3fa;
    overflow: hidden;
}

.bv-category-v2-hero__media {
    min-height: 240px;
    padding: 18px;
    border-radius: 22px;
    position: relative;
    z-index: 1;
}

.bv-category-v2-hero__media img {
    width: 100%;
    max-width: 240px;
    max-height: 220px;
    object-fit: contain;
}

.bv-category-v2-hero__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #2563eb;
}

.bv-category-v2-hero__content,
.bv-category-v2-hero__panel {
    position: relative;
    z-index: 1;
}

.bv-category-v2-hero__eyebrow,
.bv-category-v2-chip,
.bv-category-v2-products-head__count,
.bv-category-v2-strip__item strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.bv-category-v2-hero__eyebrow {
    background: #e0f2fe;
    color: #075985;
    margin-bottom: 14px;
}

.bv-category-v2-hero h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.bv-category-v2-hero p {
    margin: 0;
    color: #475569;
    font-size: 0.97rem;
    line-height: 1.75;
}

.bv-category-v2-hero__chips,
.bv-category-v2-card__top,
.bv-category-v2-hero__actions,
.bv-category-v2-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bv-category-v2-hero__chips {
    margin-top: 18px;
}

.bv-category-v2-chip {
    border: 1px solid transparent;
}

.bv-category-v2-chip--green {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.bv-category-v2-chip--blue {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.bv-category-v2-chip--soft {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.bv-category-v2-chip--warm {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.bv-category-v2-hero__actions {
    margin-top: 18px;
    gap: 10px;
}

.bv-category-v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.18s ease;
}

.bv-category-v2-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.bv-category-v2-btn--secondary {
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #dbe5f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.bv-category-v2-btn:hover {
    transform: translateY(-1px);
}

.bv-category-v2-hero__panel {
    display: grid;
    gap: 12px;
}

.bv-category-v2-kpi {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.bv-category-v2-kpi strong {
    display: block;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.08;
    font-weight: 950;
    margin-bottom: 6px;
}

.bv-category-v2-kpi span {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.bv-category-v2-ad-slot {
    padding: 16px;
    margin-bottom: 18px;
    overflow: hidden;
}

.bv-category-v2-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.bv-category-v2-strip__item {
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3ebf4;
}

.bv-category-v2-strip__item strong {
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 10px;
}

.bv-category-v2-strip__item span {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.65;
}

.bv-category-v2-products-wrap {
    padding: 24px;
}

.bv-category-v2-products-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eef5;
}

.bv-category-v2-products-head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.bv-category-v2-products-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

.bv-category-v2-products-head__count {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
}

.bv-category-v2-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.bv-category-v2-grid-full {
    grid-column: 1 / -1;
}

.bv-category-v2-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #dfe7f1;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}

.bv-category-v2-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.bv-category-v2-card__image {
    position: relative;
    min-height: 220px;
    padding: 14px;
    text-decoration: none;
}

.bv-category-v2-card__image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.bv-category-v2-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827 0%, #334155 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.20);
}

.bv-category-v2-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.bv-category-v2-card__title {
    min-height: 3em;
    margin: 0;
    color: #0f172a;
    font-size: 0.96rem;
    line-height: 1.45;
    font-weight: 800;
}

.bv-category-v2-card__title a {
    color: inherit;
    text-decoration: none;
}

.bv-category-v2-card__modelo {
    min-height: 20px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.bv-category-v2-card__label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bv-category-v2-card__price {
    color: #0f172a;
    font-size: 1.72rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.bv-category-v2-card__old-price {
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: line-through;
    min-height: 19px;
}

.bv-category-v2-card__note,
.bv-category-v2-card__muted {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.65;
}

.bv-category-v2-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.16);
}

.bv-category-v2-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(5, 150, 105, 0.22);
}

.bv-category-v2-empty {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
    font-size: 0.96rem;
    line-height: 1.7;
}

.bv-category-v2-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.bv-category-v2-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.bv-category-v2-pagination__btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.16);
}

.bv-category-v2-pagination__btn--ghost {
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #dbe5f0;
}

.bv-category-v2-pagination__btn--static {
    cursor: default;
}

.bv-category-v2-cta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 24px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.bv-category-v2-cta h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.08;
    font-weight: 950;
}

.bv-category-v2-cta p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

.bv-category-v2-ad-slot--footer {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    .bv-category-v2-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bv-category-v2-hero {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .bv-category-v2-hero__panel {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .bv-category-v2-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bv-category-v2-hero,
    .bv-category-v2-strip,
    .bv-category-v2-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .bv-category-v2-products-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .bv-category-v2-shell {
        width: min(100% - 20px, 1280px);
    }

    .bv-category-v2-page {
        padding: 18px 0 34px;
    }

    .bv-category-v2-hero,
    .bv-category-v2-products-wrap,
    .bv-category-v2-cta,
    .bv-category-v2-strip {
        padding: 18px;
        border-radius: 22px;
    }

    .bv-category-v2-products-grid,
    .bv-category-v2-hero__panel,
    .bv-category-v2-strip {
        grid-template-columns: 1fr;
    }

    .bv-category-v2-card__image,
    .bv-category-v2-hero__media {
        min-height: 160px;
    }

    .bv-category-v2-card__image img,
    .bv-category-v2-hero__media img {
        height: 130px;
    }

    .bv-category-v2-hero__actions,
    .bv-category-v2-cta__actions {
        width: 100%;
    }

    .bv-category-v2-btn {
        width: 100%;
    }
}


/* =========================================================
   V2.1 FAMILY ALIGN - REFORÇO DE IDENTIDADE
========================================================= */
.bv-category-v2-hero__eyebrow {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.bv-category-v2-chip,
.bv-category-v2-products-head__count,
.bv-category-v2-strip__item strong {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.bv-category-v2-hero__media,
.bv-category-v2-card__image {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bv-category-v2-strip {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.bv-category-v2-strip__item {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.bv-category-v2-card {
    position: relative;
}

.bv-category-v2-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.bv-category-v2-card__body {
    gap: 12px;
}

.bv-category-v2-card__title {
    letter-spacing: -0.015em;
}

.bv-category-v2-card__price {
    font-size: 1.78rem;
}

.bv-category-v2-card__btn {
    min-height: 46px;
    border-radius: 16px;
    letter-spacing: .01em;
}

.bv-category-v2-cta {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.07), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
