            /* Affiliate Products Styles */

/* Grid Layout */
.affiliate-products-grid .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100% !important;
}

.affiliate-products-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.affiliate-products-grid .product-image {
    height: 200px;
    object-fit: contain;
    padding: 10px;
}
.affiliate-products-stacked .card.product-card {
    max-width: 80%;
    margin: auto;
}

/* Center products in grid when there are fewer items */
.affiliate-products-grid .row {
    justify-content: center !important;
}

/* List Layout */
.affiliate-products-list .product-image {
    height: 150px;
    object-fit: contain;
    padding: 10px;
}

/* Compact Layout */
.affiliate-products-compact img {
    transition: transform 0.3s ease;
}

.affiliate-products-compact a:hover img {
    transform: scale(1.1);
}

/* Common Styles */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-price {
    font-family: 'Poppins', Arial !important;
    font-weight: bold;
    font-size: 1.2em;
}

.product-sale-price {
    color: #dc3545;
    font-size: 1.2em;
}

.product-original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.875em;
    margin-left: 0.5rem;
}

/* Card Title Styling */
.card-title {
    font-family: 'Poppins', Arial !important;
    line-height: 1.0em !important;
    margin-bottom: 0.75rem !important;
    color: #212529 !important;
    line-height: 1.0em !important;
    font-size: 1.4em !important;
    text-align: left;
}

/* Override theme link colors for product titles */
.post-page-content .affiliate-products-grid .card-title a,
.post-page-content .affiliate-products-stacked .card-title a,
.post-page-content .affiliate-products-list .card-title a,
.post-page-content .affiliate-products-compact a {
    color: #212529 !important;
    text-decoration: none !important;
}

.post-page-content .affiliate-products-grid .card-title a:hover,
.post-page-content .affiliate-products-stacked .card-title a:hover,
.post-page-content .affiliate-products-list .card-title a:hover,
.post-page-content .affiliate-products-compact a:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Button Styling */
.card-footer .btn-primary {
    background-color: #de5151 !important;
    border-color: #de5151 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    width: 70% !important; /* Set button width */
    margin: 0 auto !important; /* Center the button */
    display: block !important; /* Ensure it takes the width */
	text-align: center;
}

.card-footer .btn-primary:hover {
    background-color: #de5151 !important;
    border-color: #de5151 !important;
}

.card-footer {
    border-top: none !important;
    background-color: white !important;
    padding-top: 0 !important; /* Reduce top padding */
}

a.btn.btn-primary.btn-sm {
    background-color: #de5151 !important;
}
/* View Product Button Text */
.view-product-text {
    font-weight: 400 !important;
    font-size: 1.2em !important; /* Reduced from 1.5em to 1.2em */
    letter-spacing: 0.5px;
    color: white !important;
    font-family: 'Poppins', Arial !important;
}

.card-text {
    font-size: 1.2em;
    color: #666;
    line-height: normal;
    font-family: 'Poppins', Arial;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .affiliate-products-grid .col-md-4 {
        margin-bottom: 20px;
    }
    
    .affiliate-products-list .card-body {
        padding: 0.75rem;
    }

    .post-page-content h1,
    .post-page-content h2,
    .post-page-content h3 {
        text-align: left;
    }
}
            