/* ==========================================
   PNEUS.CSS - ESTILOS DA PÁGINA DE PNEUS
   TEMA ESCURO PREMIUM - COM MODAL
   ========================================== */

/* ----- MAIN ----- */
main {
    background: #0A0A0A;
    color: #F5F5F5;
    min-height: 100vh;
}

/* ----- PAGE HERO ----- */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.page-hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.8);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
                rgba(10, 10, 10, 0.6) 0%, 
                rgba(10, 10, 10, 0.9) 100%);
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px 0;
}

.page-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #8A8A8A;
    margin-bottom: 24px;
    margin-top: 150px;
    flex-wrap: wrap;
}

.page-hero-content .breadcrumb a {
    color: #BDBDBD;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-hero-content .breadcrumb a:hover {
    color: #FFC107;
}

.page-hero-content .breadcrumb .separator {
    color: #3A3A3A;
}

.page-hero-content .breadcrumb .current {
    color: #F5F5F5;
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 16px;
    color: #F5F5F5;
}

.page-hero-content h1 .highlight {
    color: #FFC107;
}

.page-hero-content .hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    color: #BDBDBD;
}

/* ----- SECTION PADDING ----- */
.section-padding {
    padding: 60px 0;
}

/* ----- PRODUCTS SECTION ----- */
.products-section {
    background: #0A0A0A;
}

/* ----- CONTAINER ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ----- PRODUCTS LAYOUT ----- */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* ----- FILTERS SIDEBAR ----- */
.products-filters {
    position: sticky;
    top: 64px;
    align-self: start;
}

.filter-group {
    background: #181818;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.filter-group h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #BDBDBD;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2A2A2A;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 4px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #BDBDBD;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-list label:hover {
    color: #F5F5F5;
}

.filter-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FFC107;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ----- PRODUCTS GRID ----- */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #2A2A2A;
}

.products-header span {
    font-size: 0.875rem;
    color: #BDBDBD;
}

.products-header strong {
    color: #F5F5F5;
}

.sort-select {
    background: #181818;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    padding: 8px 16px;
    color: #F5F5F5;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: #FFC107;
}

/* ----- PRODUCT CARD ----- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #181818;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #FFC107;
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #FFC107;
    color: #0A0A0A;
    z-index: 2;
}

.product-badge.promocao {
    background: #EF4444;
    color: #FFFFFF;
}

.product-badge.estoque-baixo {
    background: #FBBF24;
    color: #0A0A0A;
}

.product-badge.esgotado {
    background: #8A8A8A;
    color: #0A0A0A;
}

.product-content {
    padding: 16px;
}

.product-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    color: #F5F5F5;
}

.product-card:hover .product-content h4 {
    color: #FFC107;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-rating .stars {
    font-size: 0.875rem;
    color: #FBBF24;
}

.product-rating span:last-child {
    font-size: 0.75rem;
    color: #8A8A8A;
}

.product-spec {
    font-size: 0.875rem;
    color: #8A8A8A;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #2A2A2A;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFC107;
}

.product-price-old {
    font-size: 0.9rem;
    color: #8A8A8A;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.estoque-disponivel {
    color: #4ADE80;
    font-size: 0.8rem;
    font-weight: 600;
}

.estoque-indisponivel {
    color: #EF4444;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ----- PAGINATION ----- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #2A2A2A;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #BDBDBD;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.pagination a:hover {
    color: #F5F5F5;
    border-color: #3A3A3A;
}

.pagination a.active {
    background: #FFC107;
    color: #0A0A0A;
    border-color: #FFC107;
}

.pagination a.prev,
.pagination a.next {
    border-color: #2A2A2A;
}

.pagination a.prev:hover,
.pagination a.next:hover {
    border-color: #FFC107;
    color: #FFC107;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   CTA FINAL
   ========================================== */
.cta-final {
    padding: 80px 0;
    background: #181818;
    border-top: 1px solid #2A2A2A;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
    color: #F5F5F5;
}

.cta-content h2 .highlight {
    color: #FFC107;
}

.cta-content p {
    font-size: 1.125rem;
    color: #BDBDBD;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.cta-actions .btn-primary {
    background: #FFC107;
    color: #0A0A0A;
}

.cta-actions .btn-primary:hover {
    background: #FFD54F;
    transform: translateY(-2px);
}

.cta-actions .btn-secondary {
    background: #2A2A2A;
    color: #F5F5F5;
    border: 1px solid #3A3A3A;
}

.cta-actions .btn-secondary:hover {
    background: #3A3A3A;
    transform: translateY(-2px);
}

/* ==========================================
   FILTROS ATIVOS
   ========================================== */
.filtros-ativos {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-active {
    background: rgba(255, 193, 7, 0.12);
    border-left: 3px solid #FFC107;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    color: #F5F5F5;
}

.filter-active .btn-remove {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 8px;
}

.filter-active .btn-remove:hover {
    text-decoration: underline;
}

/* ----- NO RESULTS ----- */
.no-results {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #F5F5F5;
    margin-bottom: 10px;
}

.no-results p {
    color: #8A8A8A;
}

.no-results .btn {
    background: #FFC107;
    color: #0A0A0A;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 16px;
    transition: all 0.3s;
}

.no-results .btn:hover {
    background: #FFD54F;
    transform: translateY(-2px);
}

/* ==========================================
   MODAL DETALHES DO PNEU
   ========================================== */

/* Modal - fundo escuro */
.modal-content {
    background: #1A1A1A !important;
    border: 1px solid #2A2A2A !important;
    border-radius: 12px !important;
    color: #F5F5F5 !important;
}

.modal-header {
    border-bottom: 1px solid #2A2A2A !important;
    background: #181818 !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px !important;
}

.modal-header .modal-title {
    color: #F5F5F5 !important;
    font-weight: 600 !important;
}

.modal-header .btn-close {
    filter: invert(1) !important;
    opacity: 0.8 !important;
}

.modal-header .btn-close:hover {
    opacity: 1 !important;
}

.modal-body {
    background: #1A1A1A !important;
    padding: 20px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

/* Grid do modal */
.modal-detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-detalhe-imagem {
    background: #0A0A0A;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px solid #2A2A2A;
}

.modal-detalhe-imagem img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.modal-detalhe-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #F5F5F5;
}

.modal-detalhe-marca {
    color: #8A8A8A;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.modal-detalhe-marca a {
    color: #FFC107;
    text-decoration: none;
}

.modal-detalhe-marca a:hover {
    text-decoration: underline;
}

.modal-detalhe-spec {
    color: #8A8A8A;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.modal-detalhe-preco {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFC107;
    margin: 12px 0;
}

.modal-detalhe-preco-old {
    font-size: 1.1rem;
    color: #8A8A8A;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.modal-detalhe-estoque {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 8px 0;
}

.modal-detalhe-estoque.disponivel {
    background: rgba(74, 222, 128, 0.15);
    color: #4ADE80;
}

.modal-detalhe-estoque.indisponivel {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.modal-detalhe-estoque.baixo {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

/* Botões do modal */
.modal-detalhe-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.modal-detalhe-actions .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.modal-detalhe-actions .btn-primary {
    background: #FFC107;
    color: #0A0A0A;
}

.modal-detalhe-actions .btn-primary:hover {
    background: #FFD54F;
    transform: translateY(-2px);
}

.modal-detalhe-actions .btn-secondary {
    background: #2A2A2A;
    color: #F5F5F5;
    border: 1px solid #3A3A3A;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-whatsapp-modal {
    background: #25D366;
    color: white;
}

.btn-whatsapp-modal:hover {
    background: #1da851;
    color: white;
}

/* Tabs do modal */
.modal-detalhe-tabs {
    margin-top: 25px;
    border-bottom: 2px solid #2A2A2A;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-detalhe-tabs button {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8A8A8A;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.modal-detalhe-tabs button.active {
    color: #FFC107;
    border-bottom-color: #FFC107;
}

.modal-detalhe-tabs button:hover {
    color: #F5F5F5;
}

.modal-detalhe-tabs-content {
    padding: 20px 0;
}

.modal-detalhe-tab-pane {
    display: none;
}

.modal-detalhe-tab-pane.active {
    display: block;
}

/* Especificações do modal */
.modal-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.modal-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #0A0A0A;
    border-radius: 6px;
    border-left: 3px solid #FFC107;
}

.modal-spec-item .label {
    color: #8A8A8A;
    font-weight: 500;
    font-size: 0.85rem;
}

.modal-spec-item .value {
    font-weight: 600;
    color: #F5F5F5;
    font-size: 0.85rem;
}

/* Etiqueta do modal */
.modal-etiqueta-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.modal-etiqueta-item {
    background: #0A0A0A;
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    min-width: 90px;
    border: 1px solid #2A2A2A;
}

.modal-etiqueta-item .letra {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

.modal-etiqueta-item .letra.A { color: #4CAF50; }
.modal-etiqueta-item .letra.B { color: #FFC107; }
.modal-etiqueta-item .letra.C { color: #FF9800; }
.modal-etiqueta-item .letra.D { color: #F44336; }
.modal-etiqueta-item .letra.E { color: #9C27B0; }

.modal-etiqueta-item .label {
    font-size: 0.7rem;
    color: #8A8A8A;
    margin-top: 4px;
    display: block;
}

/* Palavras-chave do modal */
.modal-palavras {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.modal-palavras span {
    background: #0A0A0A;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #8A8A8A;
    border: 1px solid #2A2A2A;
}

/* Produtos relacionados do modal */
.modal-relacionados {
    margin-top: 25px;
    border-top: 1px solid #2A2A2A;
    padding-top: 20px;
}

.modal-relacionados h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #F5F5F5;
}

.modal-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.modal-relacionado-card {
    background: #0A0A0A;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #2A2A2A;
}

.modal-relacionado-card:hover {
    transform: translateY(-3px);
    border-color: #FFC107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
}

.modal-relacionado-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #1A1A1A;
}

.modal-relacionado-card .info {
    padding: 8px 10px;
}

.modal-relacionado-card .info h6 {
    font-size: 0.8rem;
    margin: 0 0 3px;
    font-weight: 600;
    color: #F5F5F5;
}

.modal-relacionado-card .info .preco {
    font-weight: 700;
    font-size: 0.9rem;
    color: #FFC107;
}

/* Loading do modal */
.modal-body .spinner-border {
    color: #FFC107 !important;
}

/* Scrollbar do modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #0A0A0A;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #3A3A3A;
}

/* ----- RESPONSIVIDADE ----- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-detalhe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-filters {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .filter-group {
        margin-bottom: 0;
    }

    .btn-block {
        grid-column: 1 / -1;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .products-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .sort-select {
        width: 100%;
    }

    .page-hero {
        height: 45vh;
        min-height: 350px;
        padding: 150px 20px 0;
    }

    .page-hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-hero-content .hero-subtitle {
        font-size: 1.125rem;
    }

    .page-hero-content .breadcrumb {
        font-size: 0.75rem;
        margin-top: 100px;
    }

    .cta-final {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .modal-detalhe-imagem {
        min-height: 200px;
    }

    .modal-spec-grid {
        grid-template-columns: 1fr;
    }

    .modal-relacionados-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-detalhe-preco {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .products-filters {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-hero {
        height: 40vh;
        min-height: 300px;
        padding: 120px 16px 0;
    }

    .page-hero-content h1 {
        font-size: 1.8rem;
    }

    .page-hero-content .hero-subtitle {
        font-size: 1rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }

    .modal-etiqueta-container {
        justify-content: center;
    }

    .modal-detalhe-actions {
        flex-direction: column;
        width: 100%;
    }

    .modal-detalhe-actions .btn {
        width: 100%;
        text-align: center;
    }

    .modal-body {
        padding: 12px !important;
    }
}