/* STRUTTURA GENERALE */
    body.archive.post-type-archive-product, 
    body.tax-product_cat,
    .ap-luxury-shop-container {
        background-color: #f8f6f3 !important;
        margin: 0; padding: 0;
    }

    .ap-luxury-shop-container { width: 100%; max-width: 100%; }

    .ap-shop-header { text-align: center; padding: 80px 20px 20px; }
    .ap-shop-header h1 {
        font-family: var(--ap-font-body) !important;
        font-size: 50px !important;
        font-weight: 400 !important;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #000;
        margin: 0;
    }

    /* FILTRI DINAMICI */
    .ap-ajax-filter-wrapper {
        display: flex; justify-content: center; gap: 30px; margin-bottom: 50px; padding: 0 20px;
    }
    .ap-ajax-filter-wrapper a {
        font-family: var(--ap-font-body); font-size: 13px;
        text-decoration: none; color: #999; text-transform: uppercase;
        letter-spacing: 0.1em; cursor: pointer; transition: 0.3s;
        border-bottom: 1px solid transparent; padding-bottom: 5px;
    }
    /* Classe Active gestita da PHP */
    .ap-ajax-filter-wrapper a.active { 
        color: #bfa17a !important; 
        border-bottom: 1px solid #bfa17a !important; 
        font-weight: 400;
    }

    /* GRIGLIA GEOMETRICA */
    .ap-luxury-products-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0 !important; margin: 0 !important; padding: 0 !important;
        list-style: none !important;
        border-top: 1px solid #e2ded9;
        border-left: 1px solid #e2ded9;
    }

    .ap-luxury-products-grid li.product {
        margin: 0 !important; padding: 0 !important;
        border-right: 1px solid #e2ded9;
        border-bottom: 1px solid #e2ded9;
        background: #f8f6f3 !important;
        position: relative;
        display: flex; flex-direction: column;
    }

    /* BOX IMMAGINE + BOTTONE HOVER */
    .ap-product-image-box {
        position: relative;
        width: 100%; height: 480px;
        display: flex; align-items: center; justify-content: center;
        padding: 50px; box-sizing: border-box;
        overflow: hidden; 
    }

    .ap-product-image-box img {
        max-width: 100% !important; max-height: 100% !important;
        object-fit: contain !important; transition: transform 0.6s ease;
    }

    li.product:hover img { transform: scale(1.03); }

    /* Bottone che sale al passaggio del mouse */
    .ap-hover-cart-container {
        position: absolute;
        bottom: 0; left: 0; width: 100%;
        transform: translateY(100%); 
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10;
    }

    li.product:hover .ap-hover-cart-container { transform: translateY(0); }

    .ap-hover-cart-container .button {
        display: block !important; width: 100% !important;
        background: #000 !important; color: #fff !important;
        font-family: var(--ap-font-body) !important;
        font-size: 11px !important; letter-spacing: 0.2em !important;
        padding: 20px !important; border: none !important; border-radius: 0 !important;
        text-transform: uppercase !important; text-align: center;
    }

    /* INFO SEMPRE VISIBILI (TITOLO E PREZZO) */
    .ap-product-info-meta {
        padding: 25px 20px 35px;
        text-align: center;
    }

    .ap-product-info-meta h2 {
        font-family: var(--ap-font-heading) !important;
        font-size: 15px !important; font-weight: 400 !important;
        color: #000 !important; margin: 0 0 8px !important;
        text-transform: none;
    }

    .ap-product-info-meta .price {
        font-family: var(--ap-font-body) !important;
        font-size: 15px !important; color: #666 !important;
        display: block !important;
    }

    /* RESPONSIVE */
    @media (max-width: 1200px) { .ap-luxury-products-grid { grid-template-columns: repeat(2, 1fr) !important; } }
    @media (max-width: 768px) { 
        .ap-luxury-products-grid { grid-template-columns: 1fr !important; }
        .ap-product-image-box { height: 380px; padding: 30px; }
        .ap-hover-cart-container { transform: none; position: relative; }
    }

.ap-shop-header {
    padding:86px 20px 28px;
}

.ap-shop-header h1 {
    color:var(--ap-color-title);
    font-size:clamp(42px,4.8vw,72px)!important;
    font-weight:500!important;
    letter-spacing:var(--ap-heading-letter-spacing);
    line-height:.95;
    text-transform:none;
}

.ap-ajax-filter-wrapper {
    gap:26px;
    margin-top:34px;
    margin-bottom:52px;
}

.ap-ajax-filter-wrapper a {
    color:var(--ap-color-muted);
    font-size:12px;
    font-weight:400;
    letter-spacing:.105em;
    border-bottom-color:transparent;
}

.ap-ajax-filter-wrapper a:hover,
.ap-ajax-filter-wrapper a.active {
    color:var(--ap-color-accent)!important;
    border-bottom-color:var(--ap-color-accent)!important;
}

.ap-luxury-products-grid {
    border-color:var(--ap-color-line)!important;
}

.ap-luxury-products-grid li.product {
    border-color:var(--ap-color-line)!important;
}

.ap-product-info-meta {
    padding:22px 22px 34px;
}

.ap-product-info-meta h2 {
    color:var(--ap-color-title)!important;
    font-family:var(--ap-font-body)!important;
    font-size:17px!important;
    font-weight:300!important;
    letter-spacing:var(--ap-product-letter-spacing);
    line-height:1.36;
    text-transform:none;
}

.ap-product-info-meta .price {
    color:var(--ap-color-muted)!important;
    font-size:15px!important;
    font-weight:400!important;
    letter-spacing:.005em;
}

.ap-hover-cart-container .button {
    background:#000!important;
    font-weight:400!important;
    letter-spacing:.13em!important;
}

.ap-hover-cart-container .button:hover {
    background:var(--ap-color-accent)!important;
}

@media (max-width: 768px) {
    .ap-shop-header {
        padding-top:54px;
    }

    .ap-shop-header h1 {
        font-size:44px!important;
    }
}
