/* ============================================================
 * SHOP / ARCHIVI + UX BUILDER .gian-product-grid
 * ============================================================ */

/* Il markup viene generato da Flatsome in tutte le product box, ma resta
 * invisibile fuori dagli archivi WooCommerce e dalle griglie opt-in. */
.gian-shop-product-actions { display: none; }

body.post-type-archive-product .gian-shop-product-actions,
body.tax-product_cat .gian-shop-product-actions,
body.tax-product_tag .gian-shop-product-actions,
body.tax-product_brand .gian-shop-product-actions,
.gian-product-grid .gian-shop-product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

body.post-type-archive-product .gian-shop-product-actions .button,
body.tax-product_cat .gian-shop-product-actions .button,
body.tax-product_tag .gian-shop-product-actions .button,
body.tax-product_brand .gian-shop-product-actions .button,
.gian-product-grid .gian-shop-product-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

/* Colori condivisi Shop + griglie UX Builder.
 * Specificita volutamente alta per prevalere sulle regole .button di Flatsome. */
.gian-shop-product-actions .button.gian-shop-details-button {
    background:#fff !important;
    border:1px solid #d9dde3 !important;
    color:#2d3436 !important;
}
.gian-shop-product-actions .button.gian-shop-details-button:hover {
    background:#f7f7f7 !important;
    border-color:#bfc5cc !important;
    color:#2d3436 !important;
}
.gian-shop-product-actions .button.gian-shop-buy-button {
    background:#f9ca24 !important;
    border:1px solid #f9ca24 !important;
    color:#2d3436 !important;
}
.gian-shop-product-actions .button.gian-shop-buy-button:hover {
    background:#e7b916 !important;
    border-color:#e7b916 !important;
    color:#2d3436 !important;
}
.gian-shop-product-actions .button.gian-shop-details-button .gian-shop-button-icon,
.gian-shop-product-actions .button.gian-shop-buy-button .gian-shop-button-icon {
    color:inherit !important;
}

.gian-shop-button-icon {
    display:inline-flex; align-items:center; justify-content:center;
    flex:0 0 auto; width:15px; height:15px; line-height:1;
}
.gian-shop-button-icon svg {
    display:block; width:100%; height:100%; fill:none; stroke:currentColor;
    stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}

/* Prezzi: stessi valori della v14.26, estesi alla griglia UX Builder opt-in. */
body.post-type-archive-product .products .product .gian-sale-price,
body.tax-product_cat .products .product .gian-sale-price,
body.tax-product_tag .products .product .gian-sale-price,
body.tax-product_brand .products .product .gian-sale-price,
.gian-product-grid .gian-sale-price {
    font-size:clamp(1.05rem,1.6vw,1.25rem); font-weight:700;
}
body.post-type-archive-product .products .product .gian-regular-price,
body.tax-product_cat .products .product .gian-regular-price,
body.tax-product_tag .products .product .gian-regular-price,
body.tax-product_brand .products .product .gian-regular-price,
.gian-product-grid .gian-regular-price {
    font-size:clamp(.75rem,1.2vw,.875rem);
}
body.post-type-archive-product .products .product .gian-discount,
body.tax-product_cat .products .product .gian-discount,
body.tax-product_tag .products .product .gian-discount,
body.tax-product_brand .products .product .gian-discount,
.gian-product-grid .gian-discount {
    font-size:clamp(.68rem,1vw,.75rem); padding:3px 6px;
}
body.post-type-archive-product .products .product .price,
body.tax-product_cat .products .product .price,
body.tax-product_tag .products .product .price,
body.tax-product_brand .products .product .price,
.gian-product-grid .price {
    font-size:clamp(1.05rem,1.6vw,1.25rem); font-weight:700;
}
body.post-type-archive-product .products .product .price .woocommerce-Price-amount,
body.tax-product_cat .products .product .price .woocommerce-Price-amount,
body.tax-product_tag .products .product .price .woocommerce-Price-amount,
body.tax-product_brand .products .product .price .woocommerce-Price-amount,
.gian-product-grid .price .woocommerce-Price-amount,
.gian-product-grid .price .amount {
    font-size:inherit; font-weight:inherit;
}

@media (max-width:549px) {
    body.post-type-archive-product .gian-shop-product-actions,
    body.tax-product_cat .gian-shop-product-actions,
    body.tax-product_tag .gian-shop-product-actions,
body.tax-product_brand .gian-shop-product-actions,
    .gian-product-grid .gian-shop-product-actions { grid-template-columns:1fr; }
}


/* ============================================================
 * AZIONI CARD - REV. 14.84
 * ============================================================ */
.gian-shop-product-actions .button.gian-shop-download-button {
    background:#00b894 !important;
    border-color:#00b894 !important;
    color:#fff !important;
    border-radius:5px;
}
.gian-shop-product-actions .button.gian-shop-download-button:hover {
    background:#00a884 !important;
    border-color:#00a884 !important;
    color:#fff !important;
}
.gian-shop-native-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    font-size:15px;
    line-height:1;
    color:inherit;
}
.gian-shop-download-icon {
    display:block;
    flex:0 0 auto;
    width:15px;
    height:15px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
