/* ============================================
   PÁGINA DE PRODUTOS - LISTAGEM
   ============================================ */

.products-section {
    padding: 60px 20px;
    background: #0a0a0a;
    min-height: 100vh;
}

.products-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.shop-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   SIDEBAR - FILTROS
   ============================================ */

.shop-sidebar {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    border: none;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    border: 2px dashed #22c55e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: transparent;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #22c55e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.filter-title:hover {
    color: #16a34a;
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.filter-item {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.filter-item:hover {
    background: #22c55e;
    color: #000;
    padding-left: 15px;
}

/* ============================================
   GRID DE PRODUTOS
   ============================================ */

.shop-main {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: transparent;
    border: 2px dashed #22c55e;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    border-color: #22c55e;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.product-card::before {
    content: attr(data-discount);
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
    display: none;
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-brand {
    font-size: 0.75rem;
    color: #22c55e;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    flex-grow: 1;
}

.product-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #22c55e;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
    margin: 0;
}

.product-price del {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 8px;
}

.btn-add-cart {
    background: #22c55e;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    display: block;
}

.btn-add-cart:hover {
    background: #16a34a;
    transform: scale(1.02);
}

.btn-add-cart:active {
    transform: scale(0.98);
}

/* ============================================
   PAGINAÇÃO
   ============================================ */

.woocommerce-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.page-numbers a:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #000;
}

.page-numbers .current {
    background: #22c55e;
    border-color: #22c55e;
    color: #000;
    font-weight: 600;
}

/* ============================================
   RESPONSIVIDADE - DESKTOP
   ============================================ */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-wrapper {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVIDADE - TABLET
   ============================================ */

@media (max-width: 768px) {
    .products-section {
        padding: 40px 15px;
    }

    .products-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .btn-add-cart {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE
   ============================================ */

@media (max-width: 480px) {
    .products-section {
        padding: 25px 12px;
    }

    .products-section .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .shop-wrapper {
        gap: 15px;
    }

    .shop-sidebar {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }

    .filter-group {
        padding: 12px;
        margin-bottom: 12px;
    }

    .filter-title {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        border-width: 2px;
    }

    .product-image {
        height: 280px;
    }

    .product-info {
        padding: 15px;
        gap: 12px;
    }

    .product-brand {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .product-name {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 1.25rem;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .product-price del {
        font-size: 0.95rem;
        margin-right: 10px;
    }

    .btn-add-cart {
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 6px;
        margin-top: 8px;
    }

    .page-numbers {
        gap: 8px;
    }

    .page-numbers a,
    .page-numbers span {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}
