/* Estilos para a página de produtos */
.products-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/products-header.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.products-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.products-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Filtros e busca */
.product-filters {
    padding: 30px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background-color: var(--primary-dark);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.category-filter button {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-filter button.active,
.category-filter button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sort-filter select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
}

/* Grade de produtos */
.products-content {
    padding: 50px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    min-height: 300px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.new-badge {
    background-color: var(--accent-color);
    color: white;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.product-category {
    display: inline-block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.product-info .btn-small {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.product-info .btn-small:hover {
    background-color: var(--primary-dark);
}

/* Modal de produto */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.product-details {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-details {
        flex-direction: row;
    }
}

.product-images {
    flex: 1;
    padding: 20px;
}

.main-image {
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    padding: 30px;
}

.product-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
}

.product-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    margin-bottom: 15px;
}

.product-features ul {
    list-style-type: disc;
    padding-left: 20px;
}

.product-features li {
    margin-bottom: 8px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.add-to-wishlist {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    background-color: transparent;
    color: #333;
    border-radius: 4px;
    padding: 12px 25px;
}

.add-to-wishlist:hover {
    background-color: #f5f5f5;
}

/* Loading e mensagens de erro */
#loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
}

.no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a:not(.active):hover {
    background-color: #f5f5f5;
}

/* Responsivo */
@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.2rem;
    }
    
    .products-hero p {
        font-size: 1rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-filter {
        margin-bottom: 15px;
    }
} 