/**
 * Produtos e Serviços Modernos
 * Design Premium com Cards Elegantes
 */

/* ========================================
   SEÇÃO DE PRODUTOS/SERVIÇOS
======================================== */

.product_section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.product_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   HEADING MODERNO
======================================== */

.heading_container {
    position: relative;
    z-index: 1;
}

.heading_container h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
    position: relative;
    display: inline-block;
}

.heading_container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #F39C12);
    border-radius: 2px;
}

.heading_container p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem !important;
    color: #5a6c7d !important;
    line-height: 1.8 !important;
    margin: 0 auto !important;
}

/* ========================================
   GRID DE PRODUTOS/SERVIÇOS
======================================== */

.product_section .row {
    background: transparent !important;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
}

/* ESPAÇAMENTO ENTRE LINHAS - APLICADO NAS COLUNAS DO BOOTSTRAP */
.product_section .row .col-md-6,
.product_section .row .col-lg-3 {
    margin-bottom: 40px !important;
    padding-left: 10px;
    padding-right: 10px;
}

/* ========================================
   CARDS PROFISSIONAIS - DESIGN LIMPO
======================================== */

.product_section .row .col-md-6 .box,
.product_section .row .col-lg-3 .box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product_section .row .col-md-6 .box:hover,
.product_section .row .col-lg-3 .box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

/* ========================================
   IMAGEM DO CARD - PROFISSIONAL
======================================== */

.product_section .row .col-sm-6 .box .img-box,
.product_section .row .col-md-4 .box .img-box,
.product_section .row .col-lg-3 .box .img-box {
    position: relative;
    width: 100%;
    height: 180px !important;
    overflow: hidden;
    background: #ffffff;
    padding: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f5f5f5;
}

.product_section .row .col-sm-6 .box .img-box img,
.product_section .row .col-md-4 .box .img-box img,
.product_section .row .col-lg-3 .box .img-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.product_section .row .col-sm-6 .box:hover .img-box img,
.product_section .row .col-md-4 .box:hover .img-box img,
.product_section .row .col-lg-3 .box:hover .img-box img {
    transform: scale(1.05);
}

/* ========================================
   CONTEÚDO DO CARD
======================================== */

.product_section .detail-box {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.product_section .detail-box h5 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ========================================
   PREÇO
======================================== */

.product_section .detail-box h6.price {
    margin-bottom: 1.25rem !important;
    text-align: center;
}

.product_section .detail-box .new_price {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #E67E22 !important;
    display: inline-block;
}

.product_section .detail-box .new_price::before {
    content: 'R$ ';
    font-size: 1rem;
    font-weight: 500;
    color: #7f8c8d;
    margin-right: 0.25rem;
}

/* ========================================
   BOTÕES DE AÇÃO
======================================== */

.product_section .detail-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.product_section .detail-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.product_section .detail-box a:hover::before {
    left: 100%;
}

.product_section .detail-box a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

.product_section .detail-box a:active {
    transform: translateY(0);
}

/* Ícones nos botões */
.product_section .detail-box a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.product_section .detail-box a:hover::after {
    transform: translateX(5px);
}

/* ========================================
   BADGE DE DESTAQUE (OPCIONAL)
======================================== */

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #E67E22, #F39C12);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
}

/* ========================================
   CATEGORIAS (SERVIÇOS)
======================================== */

.service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-category-badge {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #E67E22;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #E67E22;
    transition: all 0.3s ease;
    cursor: default;
}

.service-category-badge:hover {
    background: #E67E22;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* ========================================
   ANIMAÇÕES
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product_section .box {
    animation: fadeInUp 0.6s ease both;
}

.product_section .box:nth-child(1) { animation-delay: 0.1s; }
.product_section .box:nth-child(2) { animation-delay: 0.2s; }
.product_section .box:nth-child(3) { animation-delay: 0.3s; }
.product_section .box:nth-child(4) { animation-delay: 0.4s; }
.product_section .box:nth-child(5) { animation-delay: 0.5s; }
.product_section .box:nth-child(6) { animation-delay: 0.6s; }
.product_section .box:nth-child(7) { animation-delay: 0.7s; }
.product_section .box:nth-child(8) { animation-delay: 0.8s; }

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 1199px) {
    .heading_container h2 {
        font-size: 2.5rem !important;
    }
    
    .product_section .img-box {
        height: 240px;
    }
}

@media (max-width: 991px) {
    .heading_container h2 {
        font-size: 2.2rem !important;
    }
    
    .product_section .img-box {
        height: 220px;
    }
    
    .product_section .detail-box h5 {
        font-size: 1.1rem !important;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .heading_container h2 {
        font-size: 2rem !important;
    }
    
    .heading_container p {
        font-size: 1rem !important;
    }
    
    .product_section .img-box {
        height: 200px;
    }
    
    .product_section .detail-box {
        padding: 1.25rem;
    }
    
    .service-categories {
        gap: 0.5rem;
    }
    
    .service-category-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .heading_container h2 {
        font-size: 1.8rem !important;
    }
    
    .product_section .img-box {
        height: 250px;
    }
    
    .product_section .detail-box .new_price {
        font-size: 1.5rem !important;
    }
    
    .product_section .detail-box a {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* ========================================
   ESTADO VAZIO
======================================== */

.empty-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.empty-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-products h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-products p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

/* ========================================
   RESPONSIVIDADE PRODUTOS - MOBILE
======================================== */

/* Desktop - 4 cards por linha */
@media (min-width: 992px) {
    .product_section .row .col-md-6,
    .product_section .row .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet - 2 cards por linha */
@media (max-width: 991px) and (min-width: 768px) {
    .product_section .row .col-md-6,
    .product_section .row .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile - 1 card por linha */
@media (max-width: 767px) {
    .product_section .row .col-md-6,
    .product_section .row .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px !important;
    }
    
    .product_section .row .col-sm-6 .box .img-box,
    .product_section .row .col-md-4 .box .img-box,
    .product_section .row .col-lg-3 .box .img-box {
        height: 200px !important;
    }
}

