/* ==============================
   PRODUTOS PAGE - ENHANCED STYLES
   ============================== */

/* ===== PRODUTOS HEADER ===== */
.produtos-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.produtos-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="20" fill="rgba(255,255,255,0.03)"/></svg>');
    pointer-events: none;
}

.produtos-header-content {
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== PRODUTOS GRID ===== */
.produtos-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
}

@media (min-width: 1200px) {
    .produtos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ENHANCED PRODUCT CARD ===== */
.produto-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(122, 108, 63, 0.1);
}

.produto-card:hover {
    box-shadow: 0 15px 40px rgba(122, 108, 63, 0.2);
    transform: translateY(-8px);
}

.produto-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0ede8 100%);
    overflow: hidden;
}

.produto-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.produto-card:hover .produto-image {
    transform: scale(1.08);
}

.produto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(122, 108, 63, 0.85) 0%, rgba(90, 76, 47, 0.90) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.produto-card:hover .produto-overlay {
    opacity: 1;
}

.produto-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.produto-overlay-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateX(3px);
}

.produto-overlay-btn i {
    font-size: 1.1rem;
}

/* ===== PRODUCT CONTENT ===== */
.produto-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.produto-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(122, 108, 63, 0.1) 0%, rgba(154, 140, 95, 0.08) 100%);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    width: fit-content;
    border: 1px solid rgba(122, 108, 63, 0.2);
}

.produto-category-badge i {
    font-size: 0.85rem;
}

.produto-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.produto-card:hover .produto-title {
    color: var(--primary-color);
}

.produto-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.produto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.produto-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.35rem 0.8rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(122, 108, 63, 0.15);
}

.produto-tag:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.produto-tag i {
    font-size: 0.8rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== PAGINATION STYLES ===== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color); 
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pagination-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-link {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(122, 108, 63, 0.3);
}

.pagination .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .produtos-grid {
        gap: 1.5rem;
    }

    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .pagination-info {
        width: 100%;
        text-align: center;
    }
}

/* ===== FIX PAGINATION INFO WRAP ===== */
.pagination-wrapper .row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0; /* neutraliza gutters negativos do bootstrap */
    margin-right: 0;
    width: auto;
}

.pagination-wrapper .row .col-md-6 {
    flex: 0 0 auto; /* largura baseada no conteúdo */
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.pagination-wrapper .row .col-md-6 p {
    white-space: nowrap; /* mantêm tudo em uma só linha */
    margin: 0;
}
