/* Estilos Gerais */
body {
    background-color: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}

.page-header {
    max-width: 100%;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
    text-align: center;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 0.8rem;
    text-align: center;
}

.page-title {
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: #2ab7a9;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #f9d71c;
    border-radius: 2px;
}

.shop-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    min-height: calc(100vh - 300px);
}

/* Layout Principal - Barra Lateral + Produtos */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Barra Lateral de Filtros */
.filters-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.filters-header h2 {
    margin: 0;
    color: #2d3436;
    font-size: 1.4rem;
    font-weight: 700;
}

.clear-filters-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #f8f9fa;
    border-color: #2ab7a9;
    color: #2ab7a9;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    margin: 0 0 1rem 0;
    color: #2d3436;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: #2ab7a9;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-options-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #2ab7a9;
    color: #2ab7a9;
}

.filter-btn.active {
    background: #2ab7a9;
    color: white;
    border-color: #2ab7a9;
    box-shadow: 0 2px 8px rgba(42, 183, 169, 0.2);
}

.filter-btn.estampa-btn {
    padding: 0.5rem;
    flex-direction: column;
    text-align: center;
    min-height: 80px;
}

.filter-btn.estampa-btn img {
    width: 100%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.3rem;
    border-radius: 4px;
}

.filter-btn.estampa-btn span {
    font-size: 0.75rem;
    line-height: 1.2;
}

.filter-loading {
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0.5rem;
    text-align: center;
}

/* Área Principal de Produtos */
.products-main {
    min-width: 0; /* Permite que o grid funcione corretamente */
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.products-count {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.toggle-filters-btn {
    display: none;
    background: #2ab7a9;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    align-items: center;
}

.toggle-filters-btn:hover {
    background: #239a8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(42, 183, 169, 0.3);
}

.toggle-filters-btn i {
    font-size: 0.9rem;
}

/* Grid de Produtos - 3 Colunas */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0.5rem 0 2.5rem;
    padding: 0.5rem 0;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.product-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #d1e7e5;
}

.product-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #f9d71c;
    color: #2d3436;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Aspect ratio 1:1 */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.product-category {
    color: #2ab7a9;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card h3 {
    font-size: 1.2rem;
    color: #2d3436;
    margin: 0 0 0.6rem 0;
    line-height: 1.4;
    font-weight: 600;
}

.product-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0 0 1.4rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2ab7a9;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-promo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
    display: inline-block;
}

.old-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.discount-badge-card {
    background: linear-gradient(135deg, #f9d71c 0%, #f0cc18 100%);
    color: #2d3436;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(249, 215, 28, 0.3);
    white-space: nowrap;
}

.status-promocao {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: pulse-promo 2s ease-in-out infinite;
}

@keyframes pulse-promo {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.6);
    }
}

.add-to-cart-btn {
    background: #f9d71c;
    color: #2d3436;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    background: #f0cc18;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.add-to-cart-btn i {
    font-size: 1rem;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0 1rem;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.page-link:hover, .page-link.active {
    background: #2ab7a9;
    color: white;
    border-color: #2ab7a9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(42, 183, 169, 0.2);
}

/* Responsividade */
@media (max-width: 1200px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .filters-sidebar.open {
        left: 0;
    }
    
    .toggle-filters-btn {
        display: flex;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filters-sidebar {
        width: 280px;
    }
    
    .page-title {
        font-size: 2rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .shop-container {
        padding: 0 1rem 2rem;
    }
    
    .product-grid {
        gap: 1rem;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .price {
        justify-content: center;
        text-align: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}
