/* PAGE ARCHIVE-PRODUCT - ARCHIVE-PRODUCT.php*/

#content-archive{
    width:100%;
    height: auto; 
    min-height: calc(100vh - 212px);
    display: flex;
}


.col-masonry{
    width:70%;
    max-width:70%;
    margin:0 auto;
    padding: 60px 0px 100px;
    min-height: calc(100vh - 160px);
    overflow: visible;
}


/* ---------- MASONRY (Pinterest) ---------- */


.col-masonry ul.products {
    display: block !important;
    column-count: 4;
    column-gap: 4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.col-masonry ul.products li.product {
    display: inline-block; 
    width: 100%;
    margin: 2rem 0;
    vertical-align: top;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    break-inside: avoid;
    box-sizing: border-box;
}

.col-masonry ul.products li.product img,
.col-masonry ul.products li.product img[src] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0;
}

.col-masonry ul.products li.product .woocommerce-LoopProduct-link img,
.col-masonry ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
}

.col-masonry ul.products[class*="products"] {
    grid-template-columns: none !important;
}

/* ------------------------------------------------------------- */

/* Titre de la page */
h1.archive-title{
    font-size: 2.5em;
    margin-bottom:20px;
    color: #000;
    text-align: center;
    text-transform: lowercase;
}


/* Compteur de produits */
.products-counter{
    text-align: center;
    font-size: 12px;
    display:none!important;
}




/* ========= BLOC FILTRES  =========================== */

#bloc-filtre-products{display:none!important;justify-content: center;align-items: center;gap: 40px;margin-bottom:40px;}

.archive-filters,
.archive-filters-serie {height:30px;}

.serie-filter,
.availability-filter{
    display: flex;
    align-items: center;
    gap: 10px;
}

.serie-filter,
.availability-filter label{
    font-size: 14px;
    color: #000;
}

#serie-filter,
.availability-filter select{
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 6px 10px;
    font-size: 14px;
}


/* ------------------------------------------------------------- */

ul.products::before,
ul.products::after{
    display: none !important;
}

.products li.product {
    padding: 0;          
    margin: 0;            
    list-style: none;     /
}



/* ========================================
   NOUVELLE STRUCTURE PRODUIT
======================================== */

.shop-product-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #FFF;
    overflow: hidden;
    transition: all 0.3s ease;
    position:relative;
}


/* Image du produit */
.shop-product-thumbnail {
    width: 100%;
    overflow: hidden;
}

.shop-product-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.shop-product-item:hover .shop-product-thumbnail img {
    transform: scale(1.05);
}

/* Informations du produit */
.product-info {
    width:100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 0;
    background: rgba(255,255,255,0);
}

.shop-product-item:hover .product-info {
    opacity: 1;
}

.product-title {
    font-size: 1rem;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 500;
    display:none!important;
}

/* Prix du produit */
.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    display:none!important;
}

.product-price .woocommerce-Price-amount {
    color: inherit;
    display:none!important;
}


/* ------------------------------- */
/* Disponibilité du produit */
/* ------------------------------- */

.product-availability {
    margin-top: auto;
    display:flex;
    justify-content: center;
    align-items: center;
}

.availability-value {
    font-weight: 600;
    padding: 2px 8px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Styles pour différentes disponibilités */

.availability-value.disponible {
    background-color: #d4edda;
    color: #155724;
}

.availability-value.sur-demande {
    background-color: #cce5ff;
    color: #004085;
}

.availability-value.indisponible {
    background-color: #e5e7eb;
    color: #3c3f41;
}

.availability-value.reserve {
    color: #856404;
    background: #fff3cd;
}

.availability-value.vendue{
    color: #5c4033;
    background: #f0e6e0;
}

.availability-value.en-pret{
    color: #5a3e7a;
    background: #e2d9f3;
}




/* ========================================
   RESPONSIVE
======================================== */


/* option responsive : réduire le nombre de colonnes sur petits écrans */

@media (max-width: 1600px){
    .col-masonry{width:80%;max-width: 80%;}
}

@media (max-width: 1400px){
    .col-masonry{width:90%;max-width: 90%;}
}

@media (max-width: 1200px){ 
    .col-masonry ul.products { column-count: 3;column-gap: 2rem;}
    .col-masonry    {width:85%;max-width: 85%;} 

    .col-full-content{width:86%;max-width: 86%;}

    .product-info {padding: 15px;opacity: 1;}
    .product-title {font-size: 0.8rem;margin: 0 0 6px 0;}
    .product-price {font-size: 0.8rem;margin-bottom: 4px;}
    .availability-value {font-size: 0.55rem;padding: 1px 6px;}
}


@media (max-width: 768px){
    .col-masonry ul.products { column-count: 2;}

    .product-info {padding: 15px;opacity: 1;background: rgba(255,255,255,0);}
    .product-title {font-size: 0.8rem;margin: 0 0 6px 0;}
    .product-price {font-size: 0.8rem;margin-bottom: 4px;}
    .availability-value {font-size: 0.55rem;padding: 1px 6px;}

}



@media (max-width: 480px){
    .col-masonry ul.products { column-count: 1;width:80%;margin:0 auto;}
} 




