/* Main Recommendations Wrapper */
.recombee-recommendations-wrapper {
    margin: 60px auto;
    clear: both;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    position: relative;
    box-sizing: border-box;
}

/* Section Titles */
.recombee-recommendations-title {
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #2c3338;
    position: relative;
    padding-bottom: 15px;
}

.recombee-recommendations-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3858e9;
    border-radius: 3px;
}

/* Products Grid */
.recombee-recommendations-wrapper .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

/* Individual Product Card */
.recombee-recommendations-wrapper .product {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    border: 1px solid #eee;
}

.recombee-recommendations-wrapper .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Product Image */
.recombee-recommendations-wrapper .product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Product Content */
.recombee-recommendations-wrapper .product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 500;
    margin: 15px 15px 10px;
    line-height: 1.4;
}

/* Price */
.recombee-recommendations-wrapper .price {
    display: block;
    color: #d23f57;
    font-weight: 600;
    margin: 0 15px 15px;
    font-size: 18px;
}

/* Add to Cart Button */
.recombee-recommendations-wrapper .add_to_cart_button {
    display: block;
    background: #f5f5f5;
    color: #333;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
}

.recombee-recommendations-wrapper .add_to_cart_button:hover {
    background: #3858e9;
    color: #fff;
    text-decoration: none;
}

/* Similar Products Block */
.recombee-wc-similar-products {
    margin: 2em 0;
    clear: both;
}

.recombee-wc-similar-products__title {
    margin-bottom: 1.5em;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.recombee-wc-similar-products__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 -10px;
}

.recombee-wc-product {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s ease;
}

.recombee-wc-product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recombee-wc-product__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recombee-wc-product__image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.recombee-wc-product__title {
    font-size: 1em;
    margin: 0 0 0.5em;
    font-weight: 500;
    line-height: 1.4;
}

.recombee-wc-product__price {
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 10px;
}

.recombee-wc-product__actions {
    margin-top: 10px;
}

.recombee-wc-product__add-to-cart {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 15px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.recombee-wc-product__add-to-cart:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* ===========================================
   Responsive Styles
   =========================================== */

/* Large Tablets */
@media (max-width: 1024px) {
    .recombee-recommendations-wrapper .products {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
        gap: 20px;
        justify-items: center;
    }
    
    .recombee-wc-similar-products__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .recombee-recommendations-wrapper .products {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 20px;
        justify-items: center;
    }
    
    .recombee-recommendations-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .recombee-wc-similar-products__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 600px) {
    .recombee-recommendations-wrapper .products {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 15px;
        justify-items: center;
    }
    
    .recombee-recommendations-wrapper .product {
        max-width: 180px;
    }
}

/* Small Mobile Devices */
@media (max-width: 400px) {
    .recombee-recommendations-wrapper .products {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .recombee-recommendations-wrapper .product {
        max-width: 100%;
    }
    
    .recombee-recommendations-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .recombee-recommendations-wrapper .product img {
        height: 180px;
    }
    
    .recombee-wc-similar-products__container {
        grid-template-columns: 1fr;
    }
}

/* Tiny Mobile Devices */
@media (max-width: 360px) {
    .recombee-recommendations-title {
        font-size: 20px;
    }
    
    .recombee-recommendations-wrapper .product .woocommerce-loop-product__title {
        font-size: 15px;
    }
    
    .recombee-recommendations-wrapper .price {
        font-size: 16px;
    }
    
    .recombee-recommendations-wrapper .products {
        max-width: 260px;
    }
}

/* Dashboard-specific styles */
.recombee-dashboard-recommendations .recombee-recommendations-title {
    color: #3858e9;
}

.recombee-dashboard-recommendations .recombee-recommendations-title:after {
    background: #ff6b6b;
}

/* Price styling for dashboard recommendations */
.recombee-dashboard-recommendations .price {
    display: block;
    margin: 5px 15px 15px;
    font-weight: 600;
    color: #d23f57;
    font-size: 18px;
    text-align: left;
}

/* Button container for dashboard recommendations */
.recombee-dashboard-recommendations .button-container {
    padding: 0 15px 15px;
}

.recombee-dashboard-recommendations .product a {
    text-decoration: none;
    color: inherit;
    display: block;
}
