.products-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

}

.product-card {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: 10px;

    padding: 15px;

    transition: 0.2s;

}

.product-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-neon);

}

.product-card img {

    width: 100%;
    

}



.buy-button {

    display: block;

    margin-top: 10px;

    padding: 10px;

    text-align: center;

    background: var(--btn-primary);

    color: white;

    border-radius: 5px;

}

.buy-button:hover {

    background: var(--btn-hover);

}


/* Product detail */

/* BACK LINK */
.back-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--neon-blue);
}

.div-categories-parents{
    
}

.product-detail-image-card {
     padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    width: 500px;
    height: 400px;
  

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    
    /* max-width: 200px; */
    
}

.product-detail-image-wrapper {
    /* border: 1px solid yellow; */
   
    border-radius: 16px;
    position: relative;
    background-color: #ffffff; 
    
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    overflow: hidden;

}

.product-detail-image-wrapper img {
    /* border: 1px solid red; */
    
    border-radius: 16px; 

   
    object-fit: cover;   
    width: 100%;
    height: 100%;
    overflow: hidden;
}
/* Badge Grátis */
.badge-free {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-secondary);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: var(--shadow-neon-blue);
    letter-spacing: 1px;
}

/* INFO */
.product-info {
    display: flex;
    flex-direction: column;
}

/* TAGS */
.product-tags {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 10px;
    margin-bottom: 16px;
}

.tags-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-item.category{
    
        color: var(--text-main);
        border-color: var(--text-main);
}

.tag-item.tags{
    color: var(--color-secondary);
        border-color: var(--color-secondary);
        display: flex;
    align-items: center;
    }
/* Favorites */
/* ===== FAVORITE ACTION (DETAIL) ===== */

.favorite-action {
    /* margin-bottom: 15px; */
}

.btn-favorite-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 0.85rem;
    font-weight: 500;

    background: transparent;
    border: none;

    color: var(--text-muted);
    cursor: pointer;

    transition: 0.2s;
}

/* ícone */
.btn-favorite-text i {
    font-size: 0.95rem;
    transition: 0.2s;
}

/* hover */
.btn-favorite-text:hover {
    color: #ff4d6d;
}

/* ativo */
.btn-favorite-text.active {
    color: #ff4d6d;
}

/* animação leve */
.btn-favorite-text.active i {
    transform: scale(1.1);
}

/* TITULO */
.product-title {
    
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 10px;
}

.product-title.principal{
    font-size: 35px;
}


/* DESCRIÇÃO */
.product-description {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--neon-blue);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.product-description h6 {
    color: var(--neon-blue);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-description p {
    color: #ccc;
}

/* CTA */
.product-cta {
    margin-top: 20px;
}
.btn-product-detail {
    --brand-color:var(--brand-color);   
    --brand-text-color: var(--brand-text-color);
    display: inline-block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;

    /* border: none; */
    background-color: var(--brand-color) ;
    color: var(--brand-text-color);

  
}
.btn-product-detail:hover {
    /* No hover, usamos a versão levemente mais escura para contraste */
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--brand-color) !important;
    box-shadow: 0 10px 20px -10px var(--color-main);
    transform: translateY(-4px);
}

/* Garante que o ícone acompanhe a cor */

.btn-product-detail i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-product-detail:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.btn-edit-product{
    color:var(--text-main);
}
.btn-edit-product:hover {
    background: transparent !important;
    color: var(--text-main);
    border-color: var(--color-primary) !important;
   
    transform: translateY(-4px);

}
/* SEGURANÇA */
.product-security {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-security i {
    color: var(--neon-blue);
}

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

.list-items-relationship{
    border-left: 1px solid var(--color-secondary);
    height: 100%;

}


/* Recommendantions */

.separator {
    height: 1px;
    background: var(--border-color);
    margin: 40px;
}




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

/* TABLET */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .list-items-relationship{
        border:none
        

    }
}

/* MOBILE */
@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .list-items-relationship{
        border:none
    }

    .product-detail-image-card{
        height: 400px;
    }
}