/* =============================================
   PRODUCTS CSS - Category Banners & Bestsellers
   ============================================= */

/* ---- CATEGORY BANNERS ---- */
.category-banners {
    background-color: #f5f5f5;
    padding: 3rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.category-img-wrapper {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
        radial-gradient(circle at center, rgba(212,163,47,.18), transparent 58%),
        linear-gradient(180deg, #111 0%, #070707 100%);
    border-bottom: 1px solid rgba(212,163,47,.14);
    overflow: hidden;
}

.category-img-wrapper img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 22px 40px rgba(212,163,47,.28));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.05);
    filter: drop-shadow(0 28px 55px rgba(212,163,47,.42));
}

.category-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 0 0.3rem;
    margin: 0;
}

.category-cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 1.2rem;
    transition: color 0.3s;
}

.category-card:hover .category-cta {
    color: var(--color-gold-secondary);
}

/* ---- BESTSELLERS SECTION ---- */
.bestsellers {
    background-color: #f5f5f5;
    padding: 2rem 0 4rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 0;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Product Card - Bestseller Style */
.bs-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(212,163,47,.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bs-card-image {
    position: relative;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background:
        radial-gradient(circle at center, rgba(212,163,47,.18), transparent 58%),
        linear-gradient(180deg, #111 0%, #070707 100%);
    border-bottom: 1px solid rgba(212,163,47,.14);
    overflow: hidden;
}

.bs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 22px 40px rgba(212,163,47,.28));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.bs-card:hover .bs-card-image img {
    transform: scale(1.05);
    filter: drop-shadow(0 28px 55px rgba(212,163,47,.42));
}

.bs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-gold-primary);
    color: var(--color-black);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    letter-spacing: 1px;
}

.bs-badge.badge-hot {
    background-color: #e74c3c;
    color: #fff;
}

/* Card Body */
.bs-card-body {
    padding: 1.2rem;
}

.bs-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.bs-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.tag-performance {
    background-color: #2ecc71;
    color: #fff;
}

.tag-energia {
    background-color: #f39c12;
    color: #fff;
}

.tag-queima {
    background-color: #e74c3c;
    color: #fff;
}

.tag-ganhar {
    background-color: #3498db;
    color: #fff;
}

.bs-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #333;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    min-height: 2.4rem;
}

.bs-stars {
    color: var(--color-gold-primary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

/* Pricing */
.bs-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1rem;
}

.bs-price-old {
    font-size: 0.72rem;
    color: #999;
}

.bs-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0a0a0a;
}

.bs-price.bs-price-green {
    color: #1d9c28;
}

.bs-price-pix {
    font-size: 0.7rem;
    color: #2ecc71;
    font-weight: 600;
}

/* CTA Button */
.bs-btn {
    display: block;
    text-align: center;
    background-color: var(--color-gold-primary);
    color: var(--color-black);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.bs-btn:hover {
    background-color: var(--color-gold-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.bs-btn.bs-btn-buy {
    background-color: #1d9c28;
    color: #ffffff;
}

.bs-btn.bs-btn-buy:hover {
    background-color: #167a1f;
    box-shadow: 0 4px 15px rgba(29, 156, 40, 0.4);
}

/* ---- FEATURED PRODUCTS (legacy, kept for compatibility) ---- */
.featured-products {
    padding: 4rem 0;
    background-color: var(--color-dark-gray);
}

.featured-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.2);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--color-dark-gray);
    position: relative;
}

.product-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-gold-primary);
    color: var(--color-black);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-specs span {
    background-color: rgba(201, 168, 76, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--color-gold-primary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold-primary);
}

.product-price-old {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ---- NEWSLETTER ---- */
.newsletter {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--color-dark-gray);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 5px;
    color: var(--color-white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-img-wrapper {
        height: 160px;
        padding: 0.5rem;
    }

    .category-img-wrapper img {
        max-width: 90%;
        max-height: 90%;
    }

    .category-title {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 0.6rem 0 0.2rem;
    }

    .category-cta {
        font-size: 0.6rem;
        padding-bottom: 0.8rem;
    }

    .bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .bs-card-image {
        height: 180px;
        padding: 0;
    }

    .bs-card-image img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
    }

    .bs-card-body {
        padding: 0.8rem;
    }

    .bs-card-title {
        font-size: 0.72rem;
        min-height: auto;
    }

    .bs-tags {
        margin-bottom: 0.4rem;
    }

    .bs-tag {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
    }

    .bs-stars {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

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

    .bs-price-old {
        font-size: 0.6rem;
    }

    .bs-price-pix {
        font-size: 0.6rem;
    }

    .bs-btn {
        font-size: 0.7rem;
        padding: 0.6rem 0.5rem;
        letter-spacing: 0.5px;
    }

    .bs-badge {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .category-img-wrapper {
        height: 130px;
    }

    .bs-card-image {
        height: 140px;
    }

    .category-title {
        font-size: 0.75rem;
    }

    .bs-card-title {
        font-size: 0.65rem;
    }

    .bs-price {
        font-size: 0.95rem;
    }
}
