/*
 * Studio BVA Store - Playful Wonderland Theme
 * Versão: V0.10.55
 * Design tokens, micro-animations and cheerful styles for the static catalog.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* 1. Tokens */
:root {
    --bva-pink: #EC4899;
    --bva-purple: #8B5CF6;
    --bva-purple-dark: #5B21B6;
    --bva-orange: #F97316;
    --bva-orange-dark: #EA580C;
    --bva-yellow: #FACC15;

    --bva-bg: #FFFDF9;
    --bva-bg-soft: #FFF8F0;
    --bva-header: rgba(255, 253, 249, 0.90);
    --bva-card: #FFFFFF;
    --bva-card-muted: #FFF8F0;
    --bva-text: #1E293B;
    --bva-text-muted: #475569;
    --bva-ink: #0F172A;
    --bva-ink-muted: #475569;
    --bva-line: rgba(139, 92, 246, 0.15);

    --bva-gradient: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #F97316 100%);
    --bva-shadow-soft: 0 18px 45px rgba(139, 92, 246, 0.15);
    --bva-shadow-card: 0 12px 30px rgba(139, 92, 246, 0.08);

    --bva-radius-sm: 12px;
    --bva-radius-md: 18px;
    --bva-radius-lg: 26px;

    --bva-header-height: 140px;
}

/* 2. Base */
* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at 10% 15%, rgba(236, 72, 153, 0.08), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.08), transparent 28%),
        radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.08), transparent 35%),
        var(--bva-bg);
    color: var(--bva-text);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    overflow-x: hidden;
    padding-top: var(--bva-header-height);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

button {
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3. Utilities */
.text-gradient {
    background: var(--bva-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-brand-orange {
    color: var(--bva-orange-dark) !important;
}

.text-brand-purple {
    color: var(--bva-purple-dark) !important;
}

.text-on-surface-variant {
    color: var(--bva-text-muted) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* 4. Header */
.main-header {
    backdrop-filter: blur(18px);
    background: var(--bva-header);
    border-bottom: 2px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 14px 35px rgba(139, 92, 246, 0.08);
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.header-top {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
}

.header-logo {
    align-items: center;
    display: flex;
    flex-shrink: 0;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.logo-ludico-img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFF;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.3);
    animation: floatLogo 4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-logo a:hover .logo-ludico-img {
    transform: scale(1.08) rotate(-4deg);
}

.logo-tagline {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--bva-purple-dark);
    letter-spacing: 0.03em;
}

.search-container {
    display: flex;
    flex: 1 1 300px;
    order: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border-radius: var(--bva-radius-md);
}

.search-container input {
    background: #FFFFFF;
    border: 2px solid #F1F5F9;
    border-right: 0;
    border-radius: var(--bva-radius-md) 0 0 var(--bva-radius-md);
    color: var(--bva-ink);
    font-size: 0.92rem;
    min-height: 44px;
    padding: 10px 18px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.search-container input:focus {
    border-color: var(--bva-pink);
    outline: none;
}

.search-btn {
    background: var(--bva-gradient);
    border: 0;
    border-radius: 0 var(--bva-radius-md) var(--bva-radius-md) 0;
    color: #FFFFFF;
    font-weight: 900;
    min-width: 52px;
    padding: 10px 16px;
    font-size: 1.1rem;
}

.search-btn:hover {
    filter: brightness(1.08);
    transform: scale(1.02);
}

.header-tools {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-left: auto;
    order: 3;
}

.tool-link {
    color: var(--bva-ink);
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.15;
    text-decoration: none;
    background: #FFF0F5;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(236, 72, 153, 0.15);
}

.tool-link:hover {
    background: #FCE7F3;
    transform: translateY(-2px);
    color: var(--bva-purple-dark);
}

.tool-link span:first-child {
    color: var(--bva-text-muted);
    font-size: 0.68rem;
}

.cart-btn-icon {
    background: #F3E8FF;
    color: var(--bva-purple-dark);
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
}

.cart-count-badge {
    background: var(--bva-pink);
    border: 2px solid #FFFFFF;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    min-width: 22px;
    padding: 2px 6px;
    position: absolute;
    right: -8px;
    top: -8px;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

/* 5. Navigation */
.sub-nav {
    background: rgba(255, 248, 240, 0.95);
    border-top: 1px solid rgba(236, 72, 153, 0.08);
    display: flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 24px;
    scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav a {
    border-radius: 999px;
    color: var(--bva-text-muted);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 7px 16px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.sub-nav a:hover, .sub-nav a.active {
    background: var(--bva-gradient);
    border-color: transparent;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(236, 72, 153, 0.25);
}

/* 6. Playful Hero Section */
.hero-playful {
    background: linear-gradient(135deg, #FFF0F5 0%, #F5F3FF 50%, #FFF7ED 100%);
    border: 2px solid rgba(236, 72, 153, 0.18);
    border-radius: var(--bva-radius-lg);
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.08);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.hero-title {
    color: var(--bva-ink);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
}

.hero-subtitle {
    color: #475569;
    max-width: 640px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.badge-pill-sparkle {
    background: var(--bva-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 99px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25);
}

.badge-item {
    background: #FFFFFF;
    border: 1px solid #F3E8FF;
    color: var(--bva-purple-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* 7. Layout */
.section-heading {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-kicker {
    color: var(--bva-pink);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.catalog-summary {
    background: #F3E8FF;
    color: var(--bva-purple-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
    white-space: nowrap;
}

.empty-state {
    background: #FFFFFF;
    border: 2px dashed #CBD5E1;
    border-radius: var(--bva-radius-lg);
    color: var(--bva-text-muted);
    padding: 40px;
    text-align: center;
    font-weight: 600;
}

/* 8. Product Cards (Executive E-commerce Showcase) */
.product-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    color: #1E293B;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.product-card:hover {
    border-color: #F472B6;
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.16);
    transform: translateY(-6px);
}

.product-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    padding: 0;
    position: relative;
    background: radial-gradient(circle at center, #FFFFFF 0%, #F8FAFC 100%);
    border-bottom: 1px solid #F1F5F9;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.product-card:hover .product-img img {
    transform: scale(1.04);
}

.product-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 16px 16px;
    background: #FFFFFF;
}

.product-sku {
    font-size: 0.7rem;
    font-weight: 800;
    color: #94A3B8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.product-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.product-category,
.product-stock {
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    line-height: 1;
    padding: 6px 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.product-category {
    background: #FFFFFF;
    color: #D946EF;
    border: 1px solid #F0ABFC;
}

.product-stock {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.product-stock.is-low {
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid #FDE68A;
}

.product-stock.is-empty {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.product-description {
    color: #64748B;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-price-box {
    margin-top: auto;
    padding-top: 12px;
    margin-bottom: 14px;
    border-top: 1px dashed #E2E8F0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.product-price-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.product-price {
    color: #0F172A;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    font-family: var(--font-heading);
}

.product-tag-pill {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 9. Buttons */
.btn-buy,
.btn-secondary-action {
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 11px 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-buy {
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    border: 0;
    color: #ffffff !important;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 12px 16px;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.25);
    transition: all 0.25s ease;
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
    filter: brightness(1.05);
}

.btn-buy:active:not(:disabled) {
    transform: translateY(0);
}

.btn-buy:disabled {
    background: #F1F5F9;
    color: #94A3B8 !important;
    border: 1px solid #E2E8F0;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary-action {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    color: var(--bva-ink);
}

.btn-secondary-action:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-secondary-action.is-dark {
    background: var(--bva-gradient);
    border: 0;
    color: #FFFFFF;
}

.btn-secondary-action.is-dark:hover {
    filter: brightness(1.08);
}

/* 10. Cart */
.cart-offcanvas {
    --bs-offcanvas-width: min(100vw, 420px);
    background: #FFFDF9;
    color: var(--bva-ink);
}


.cart-item {
    border-bottom: 1px solid #F1F5F9;
    display: grid;
    gap: 12px;
    grid-template-columns: 80px 1fr;
    padding: 14px 0;
}

.cart-thumb {
    background: #F8FAFC;
    border-radius: 16px;
    height: 80px;
    width: 80px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    border: 1px solid #E2E8F0;
}

.cart-item-body {
    min-width: 0;
}

.cart-item-price {
    color: var(--bva-purple-dark);
    display: block;
    font-size: 0.92rem;
    font-weight: 900;
    margin: 4px 0 8px;
}

.cart-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-controls button {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    color: var(--bva-ink);
    font-size: 0.82rem;
    font-weight: 900;
    min-width: 30px;
    padding: 4px 8px;
}

.cart-controls button:hover {
    background: var(--bva-pink);
    color: #fff;
    border-color: var(--bva-pink);
}

.cart-controls span {
    font-size: 0.88rem;
    font-weight: 900;
    min-width: 20px;
    text-align: center;
}

.cart-controls .cart-remove {
    color: #DC2626;
}

.cart-controls .cart-remove:hover {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}

/* 11. Modal and Forms */
.modal-content {
    background: #FFFDF9;
    border: 3px solid #F3E8FF;
    border-radius: var(--bva-radius-lg);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
    color: var(--bva-ink);
}

.form-control {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: var(--bva-ink);
    border-radius: 14px;
    padding: 10px 14px;
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-control:focus {
    background: #FFFFFF;
    border-color: var(--bva-pink);
    box-shadow: 0 0 0 0.2rem rgba(236, 72, 153, 0.15);
    color: var(--bva-ink);
}

/* 12. Footer Marketplace */
.marketplace-footer {
    background: #FFF8F0;
    border-top: 3px solid rgba(236, 72, 153, 0.2);
    color: var(--bva-ink);
    margin-top: 80px;
    font-size: 0.88rem;
}

.footer-trust-bar {
    background: #FFFFFF;
    border-bottom: 2px solid #F1F5F9;
    padding: 28px 0;
}

.trust-badge-item {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 8px 12px;
}

.trust-badge-icon {
    align-items: center;
    background: #FDF4FF;
    border: 1px solid #F0ABFC;
    border-radius: 16px;
    color: #D946EF;
    display: flex;
    flex-shrink: 0;
    font-size: 1.5rem;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.trust-badge-text strong {
    color: var(--bva-ink);
    display: block;
    font-size: 0.92rem;
}

.trust-badge-text span {
    color: var(--bva-text-muted);
    font-size: 0.78rem;
}

.footer-main {
    padding: 50px 0 40px;
}

.footer-title {
    color: var(--bva-purple-dark);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #475569;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bva-pink);
    transform: translateX(4px);
}

.footer-contact-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--bva-radius-md);
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.footer-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.payment-badge {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
}

.footer-bottom {
    background: #FCE7F3;
    border-top: 1px solid rgba(236, 72, 153, 0.15);
    color: #831843;
    font-size: 0.8rem;
    padding: 24px 0;
}

/* 13. Responsive */
@media (max-width: 768px) {
    :root {
        --bva-header-height: 188px;
    }

    .header-top {
        gap: 12px;
        padding: 12px 16px;
    }

    .header-logo {
        min-width: 140px;
    }

    .logo-ludico-img {
        height: 44px;
        width: 44px;
    }

    .header-tools {
        gap: 10px;
        order: 2;
    }

    .search-container {
        flex-basis: 100%;
        order: 3;
    }

    .sub-nav {
        padding: 8px 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-summary {
        white-space: normal;
    }

    .product-img {
        width: 100%;
        height: 160px;
        aspect-ratio: auto;
        padding: 0;
    }
}

/* 14. Modo Catálogo VIP de Revendedoras & Mobile App Bar */
.reseller-top-bar {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    z-index: 1050;
    transition: all 0.3s ease;
}

.reseller-top-bar a {
    color: #FFF;
    text-decoration: underline;
    font-weight: 800;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1040;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 6px 4px;
    border-radius: 14px;
    flex: 1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

.mobile-nav-item:hover:not(.active) {
    color: #1E1B4B;
    background: rgba(241, 245, 249, 0.8);
}

.mobile-nav-item.active {
    color: #EC4899;
    background: rgba(236, 72, 153, 0.08);
    font-weight: 800;
}

.mobile-nav-item.active i {
    transform: scale(1.15);
}

.mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 16px);
    background: var(--bva-orange);
    color: #FFF;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 74px; /* Evita que o conteúdo seja coberto pela barra inferior */
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

/* 15. Portal de Prospecção B2B & Mapa Interativo (Split-Screen) */
.prospect-split-container {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 40px;
    min-height: 75vh;
}

.prospect-sidebar {
    max-height: 78vh;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Custom scrollbar para a sidebar */
.prospect-sidebar::-webkit-scrollbar {
    width: 6px;
}
.prospect-sidebar::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.3);
    border-radius: 10px;
}

.prospect-map-wrapper {
    height: 78vh;
    border-radius: var(--bva-radius-lg);
    overflow: hidden;
    box-shadow: var(--bva-shadow-soft);
    border: 3px solid rgba(236, 72, 153, 0.25);
    position: sticky;
    top: 20px;
    background: #FFF0F5;
}

#prospect-map {
    width: 100%;
    height: 100%;
    z-index: 10;
}

.prospect-card {
    background: #FFFFFF;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--bva-radius-md);
    padding: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.prospect-card:hover,
.prospect-card.is-selected {
    transform: translateY(-3px);
    border-color: var(--bva-pink);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.18);
    background: #FFFDF9;
}

.prospect-card.is-selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--bva-gradient);
    border-radius: var(--bva-radius-md) 0 0 var(--bva-radius-md);
}

.prospect-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(139, 92, 246, 0.15);
}

.btn-prospect-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-prospect-wa {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
}
.btn-prospect-wa:hover {
    background: #22C55E;
    color: #FFF;
}

.btn-prospect-ig {
    background: #FDF4FF;
    color: #C026D3;
    border: 1px solid #F0ABFC;
}
.btn-prospect-ig:hover {
    background: #D946EF;
    color: #FFF;
}

.btn-prospect-phone {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
}
.btn-prospect-phone:hover {
    background: #475569;
    color: #FFF;
}

.status-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}
.status-novo { background: #FEF3C7; color: #D97706; }
.status-contatado { background: #E0E7FF; color: #4F46E5; }
.status-negociando { background: #FCE7F3; color: #DB2777; }
.status-parceiro { background: #DCFCE7; color: #16A34A; }

@media (max-width: 992px) {
    .prospect-split-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 420px;
    }
    .prospect-map-wrapper {
        height: 420px;
        position: relative;
        top: 0;
        order: -1; /* No mobile, o mapa aparece no topo para exploração visual imediata! */
    }
    .prospect-sidebar {
        max-height: 600px;
        order: 1;
    }
}

/* ==========================================================================
 * 16. NATIVE MOBILE APP EXPERIENCE & RESPONSIVE PWA (V0.10.28)
 * ========================================================================== */
/* Ajustes globais para comportamento de aplicativo nativo (iOS / Android / PWA) */
html, body {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    overscroll-behavior-y: none; /* Previne o efeito 'elástico' indesejado de bounce no topo do app */
}

body {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Touch targets ergonômicos (mínimo 44x44px segundo Apple & Google Guidelines) */
@media (max-width: 768px) {
    button, .btn, .nav-link, .page-link, .prospect-card, .btn-prospect-action {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Evita zoom automático indesejado no iOS Safari em inputs e selects */
    input, select, textarea, .form-control, .form-select {
        font-size: 16px !important;
    }

    /* Redução ergonômica do header no celular para maximizar área útil na tela */
    body {
        padding-top: 100px !important;
    }
    .main-header {
        height: auto !important;
        min-height: 100px !important;
        padding-top: calc(8px + env(safe-area-inset-top, 8px)) !important;
        padding-bottom: 8px !important;
    }
    .navbar-brand img {
        height: 40px !important;
    }

    /* Abas do Portal e ERP: Rolagem horizontal fluida estilo App Tab Bar sem quebrar layout */
    .portal-tabs, #erpSubTabs, .nav-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding-bottom: 8px !important;
        margin-bottom: 16px !important;
        scrollbar-width: none; /* Firefox */
    }
    .portal-tabs::-webkit-scrollbar, #erpSubTabs::-webkit-scrollbar, .nav-pills::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .portal-tabs .nav-item, #erpSubTabs .nav-item, .nav-pills .nav-item {
        flex: 0 0 auto;
    }
    .portal-tabs .nav-link, #erpSubTabs .nav-link, .nav-pills .nav-link {
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }

    /* Modais Bootstrap no Mobile: Transformação em Native Bottom Sheet (desliza do fundo da tela) */
    .modal-dialog {
        margin: 0 !important;
        display: flex;
        align-items: flex-end;
        min-height: 100%;
    }
    .modal-content {
        border-radius: 24px 24px 0 0 !important;
        max-height: 88vh;
        overflow-y: auto;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
        animation: slideUpBottomSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideUpBottomSheet {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #FFF;
        border-radius: 24px 24px 0 0 !important;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    /* Tabelas responsivas com rolagem touch suave e indicação de scroll lateral */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        position: relative;
        border-radius: 14px;
        border: 1px solid var(--bva-line);
        background: #FFF;
        box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.08);
    }
    .table th, .table td {
        white-space: nowrap;
        vertical-align: middle;
        padding: 12px 10px !important;
    }

    /* Cards estatísticos no mobile */
    .stat-card {
        padding: 14px !important;
    }
    .stat-card h3 {
        font-size: 1.35rem !important;
    }

    /* Mobile Bottom App Bar para navegação por polegar em todas as telas (Portal, Prospecção e Loja) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(236, 72, 153, 0.25);
        justify-content: space-around;
        align-items: center;
        padding: 6px 8px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 12px));
        z-index: 1050;
        box-shadow: 0 -4px 25px rgba(139, 92, 246, 0.12);
    }
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--bva-text-muted);
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 800;
        gap: 2px;
        flex: 1;
        min-height: 44px;
        transition: all 0.2s ease;
        background: transparent;
        border: none;
    }
    .mobile-nav-item i {
        font-size: 1.3rem;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .mobile-nav-item.active, .mobile-nav-item:hover {
        color: var(--bva-pink);
    }
    .mobile-nav-item.active i {
        transform: scale(1.18);
    }

    /* Quando a Bottom App Bar está ativa, evitamos sobreposição do rodapé ou conteúdo */
    body {
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 20px)) !important;
    }
}
