/* Catálogo Avançado - Incorporando elementos de design modernos */

/* Importações de bibliotecas */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
@import url('https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css');
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Resetando estilos */
#catalog-container *, 
.scroll-indicator * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Separador entre site e catálogo */
#catalog-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e60000, transparent);
    position: relative;
    z-index: 10;
}

/* Container principal com gradiente sutil */
#catalog-container {
    position: relative;
    width: 100%;
    background: #f0f0f0 url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png');
    z-index: 2;
    padding: 60px 0;
    overflow: hidden;
}

/* Adiciona elementos decorativos geométricos */
#catalog-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(230, 0, 0, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(230, 0, 0, 0.05) 0%, transparent 30%);
    z-index: -1;
}

/* Seção do catálogo */
.catalog-section {
    width: 100%;
    position: relative;
}

/* Container interno */
.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
}

/* Cabeçalho do catálogo com efeitos modernos */
.catalog-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.catalog-title {
    font-size: 42px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.catalog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #e60000);
    border-radius: 4px;
}

.catalog-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Menu de categorias estilo moderno com destaque */
.category-nav {
    padding: 0 20px;
    margin-bottom: 40px;
    position: relative;
}

/* Container do Swiper para categorias */
.swiper-categories {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 40px;
    overflow: visible;
}

.swiper-wrapper-categories {
    display: flex;
    transition: transform 0.3s ease;
}

/* Botões de categoria */
.category-tab {
    padding: 15px 30px;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    text-align: center;
    min-width: 130px;
}

.category-tab:hover {
    transform: translateY(-4px);
    background: #f9f9f9;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-tab.active {
    background: #e60000;
    color: white;
    box-shadow: 0 8px 20px rgba(230,0,0,0.2);
}

/* Navegação do Swiper */
.swiper-button-next, 
.swiper-button-prev {
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background-color: #e60000;
    color: white;
}

/* Grid de produtos moderna e responsiva */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card de produto com design moderno */
.product-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Badge de categoria */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    background-color: #e60000;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(230,0,0,0.25);
}

/* Imagem do produto */
.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Overlay para efeito de brilho */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s ease;
}

.product-card:hover .product-image::after {
    left: 125%;
}

/* Conteúdo do produto */
.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Preço e botão de compra */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #e60000;
}

/* Botão de ação grande e destacado */
.product-button {
    display: flex;
    width: 100%;
    padding: 18px 0;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background-color: #e60000;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 10px;
    box-shadow: 0 6px 15px rgba(230,0,0,0.25);
}

.product-button:hover {
    transform: translateY(-3px);
    background-color: #cc0000;
    box-shadow: 0 8px 20px rgba(230,0,0,0.3);
}

.product-button i {
    font-size: 20px;
}

/* Paginação moderna */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.pagination-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

.pagination-item.active {
    background-color: #e60000;
    color: white;
}

/* Indicador de scroll moderno */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
    cursor: pointer;
}

.scroll-indicator.visible {
    opacity: 1;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    background-color: #e60000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(230,0,0,0.3);
}

.scroll-arrow i {
    font-size: 24px;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Botão voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #e60000;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.back-to-top i {
    font-size: 24px;
}

/* Ajustes para body */
body {
    height: auto !important;
    position: relative !important;
    overflow: auto !important;
    overflow-x: hidden !important;
}

/* Modal de visualização rápida (Quick View) */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalFadeIn 0.4s forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f1f1f1;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.modal-details {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.modal-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-price {
    font-size: 32px;
    font-weight: 700;
    color: #e60000;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-button {
    flex: 1;
    padding: 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #e60000;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 15px rgba(230,0,0,0.2);
    text-transform: uppercase;
}

.modal-button:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230,0,0,0.3);
}

.modal-button.secondary {
    background-color: #333;
}

.modal-button.secondary:hover {
    background-color: #222;
}

/* Responsividade */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .catalog-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .catalog-title {
        font-size: 32px;
    }
    
    .category-tab {
        min-width: 120px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .catalog-title {
        font-size: 28px;
    }
    
    .catalog-subtitle {
        font-size: 16px;
    }
    
    .category-tab {
        min-width: 110px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .container {
        position: fixed !important;
    }
    
    #catalog-separator {
        margin-top: 100vh;
    }
    
    .product-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .product-button {
        padding: 16px 0;
        font-size: 14px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .catalog-container {
        padding: 0 20px;
    }
    
    .catalog-title {
        font-size: 24px;
    }
    
    .category-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    #catalog-container {
        padding: 40px 0;
    }
    
    .product-image {
        height: 220px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image,
    .modal-details {
        width: 100%;
        padding: 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}