/* ================================
   AFFILIATE – DESKTOP
   ================================ */

.aff-product-disabled .cart,
.aff-product-disabled form.cart,
.aff-product-disabled .single_add_to_cart_button,
.aff-product-disabled .wd-add-to-cart,
.aff-product-disabled .wd-single-add-to-cart,
.aff-product-disabled .wd-btn-addtocart,
.aff-product-disabled .product-actions,
.aff-product-disabled .product-actions-wrapper {
    display: none !important;
}
/* ================================
   AFFILIATE BLOCK – BASE
   ================================ */

.affiliate-block {
    margin-top: 32px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.affiliate-intro {
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 500;
}

.affiliate-items {
    display: grid;
    gap: 20px;
}

/* Card merchant */
.affiliate-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.affiliate-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Link text */
.affiliate-link,
.affiliate-label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #222;
    word-break: break-word;
}

.affiliate-link:hover {
    text-decoration: underline;
}
/*END General Block=============================*/

/* Layout affiliate block desktop */
.affiliate-block {
    margin-top: 24px;
}

.affiliate-item {
    display: flex;
    gap: 20px;
    align-items: center;
}
/* 2 merchants, ambele cu imagine */
.affiliate-m2-img2 .affiliate-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* 1 merchant fără imagine */
.affiliate-m1-img0 .affiliate-item {
    text-align: center;
}

/* merchant fără imagine */
.affiliate-item.affiliate-no-img .affiliate-image {
    display: none;
}

/* layout diferit pe mobil */
@media (max-width: 768px) {
    .affiliate-m2 .affiliate-items {
        display: block;
    }
}
