/* =====================================================
   WOOCOMMERCE SHOP & CATEGORY PAGES
===================================================== */

.woocommerce.archive .site-main,
.woocommerce-shop .site-main{
    max-width:1180px;
    margin:0 auto;
    padding:42px 30px 90px;
}

/* Encabezado de categoría */

.woocommerce-products-header{
    margin-bottom:34px;
}

.woocommerce-products-header__title{
    margin:0 0 14px;
    font-family:Georgia, serif;
    font-size:clamp(36px,4vw,54px);
    line-height:1.1;
    font-weight:500;
    color:#9a6530;
}

.term-description{
    max-width:720px;
    color:#7a4a27;
    font-size:17px;
    line-height:1.65;
}

.term-description p{
    margin:0;
}

/* Barra de resultados y orden */

.woocommerce .woocommerce-result-count{
    color:#7a4a27;
    font-size:15px;
    margin:0 0 28px;
}

.woocommerce .woocommerce-ordering{
    margin:0 0 30px;
}

.woocommerce .woocommerce-ordering select{
    min-width:255px;
    padding:13px 42px 13px 16px;
    border:1px solid #ead7cc;
    border-radius:8px;
    background:#fff;
    color:#7a4a27;
    font-size:14px;
    outline:none;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.woocommerce .woocommerce-ordering select:focus{
    border-color:#ef3b8a;
    box-shadow:0 0 0 3px rgba(239,59,138,.10);
}

/* Cuadrícula */

.woocommerce ul.products{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:30px;
    margin:0;
    clear:both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after{
    display:none;
}

.woocommerce ul.products li.product{
    width:auto;
    margin:0;
    padding:0 0 22px;
    float:none;
    background:#fff;
    border:1px solid #f1e3dc;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(122,74,39,.08);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.woocommerce ul.products li.product:hover{
    transform:translateY(-7px);
    border-color:#f4c4d8;
    box-shadow:0 22px 42px rgba(122,74,39,.14);
}

/* Imagen */

.woocommerce ul.products li.product a img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    margin:0;
    border-radius:0;
    transition:transform .45s ease;
}

.woocommerce ul.products li.product:hover a img{
    transform:scale(1.045);
}

/* Nombre */

.woocommerce ul.products li.product .woocommerce-loop-product__title{
    padding:20px 18px 8px;
    margin:0;
    font-family:Georgia,serif;
    font-size:19px;
    font-weight:500;
    line-height:1.3;
    color:#7a4a27;
    text-align:center;
}

/* Precio */

.woocommerce ul.products li.product .price{
    margin:0 0 16px;
    padding:0 18px;
    color:#9a6530;
    font-size:16px;
    font-weight:700;
    text-align:center;
}

.woocommerce ul.products li.product .price del{
    opacity:.55;
}

.woocommerce ul.products li.product .price ins{
    color:#ef3b8a;
    text-decoration:none;
}

/* Botón */

.woocommerce ul.products li.product .button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:calc(100% - 36px);
    margin:0 18px;
    padding:12px 18px;
    border-radius:6px;
    background:#ef3b8a;
    color:#fff;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.5px;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.woocommerce ul.products li.product .button:hover{
    background:#d92f79;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(239,59,138,.22);
}

/* Mensaje añadido al carrito */

.woocommerce ul.products li.product .added_to_cart{
    display:block;
    margin:12px 18px 0;
    text-align:center;
    color:#ef3b8a;
    font-size:13px;
    font-weight:700;
}

/* Responsive */

@media(max-width:1050px){
    .woocommerce ul.products{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:800px){
    .woocommerce.archive .site-main,
    .woocommerce-shop .site-main{
        padding:34px 22px 70px;
    }

    .woocommerce ul.products{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px;
    }

    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering{
        float:none;
        width:100%;
    }

    .woocommerce .woocommerce-ordering select{
        width:100%;
        min-width:0;
    }
}

@media(max-width:520px){
    .woocommerce ul.products{
        grid-template-columns:1fr;
    }

    .woocommerce-products-header__title{
        font-size:38px;
    }
}