/*
 * Yewodze Enterprise - Enhanced Product Display
 * Improved styling for Factory Direct Wholesale product display on homepage
 */

/* Enhanced Section Header */
.featured-products {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e8b57' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.75rem;
    font-weight: 800;
    color: #2e8b57;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    text-transform: capitalize;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(to right, #2e8b57, #ffd700);
    border-radius: 2.5px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Product Cards */
.featured-products .product-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    height: 100%;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.featured-products .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.featured-products .product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.featured-products .product-card:hover::before {
    opacity: 1;
}

/* Enhanced Product Images */
.featured-products .product-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.featured-products .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-products .product-card:hover .product-image::after {
    opacity: 1;
}

.featured-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-products .product-card:hover .product-image img {
    transform: scale(1.15);
}

/* Enhanced Wholesale Badge */
.featured-products .wholesale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffd700;
    color: #343a40;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-products .product-card:hover .wholesale-badge {
    background-color: #ffde59;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Product Details */
.featured-products .product-details {
    padding: 1.75rem;
    position: relative;
}

.featured-products .product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2e8b57;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.featured-products .product-card:hover .product-title {
    color: #1a5632;
}

/* Enhanced Pricing Info */
.featured-products .pricing-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    background-color: rgba(46, 139, 87, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.featured-products .product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #343a40;
    margin-bottom: 0;
    position: relative;
}

.featured-products .product-price::before {
    content: 'Price:';
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -0.25rem;
}

/* Enhanced Product Description */
.featured-products .product-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.75rem;
    border-left: 3px solid rgba(46, 139, 87, 0.2);
}

/* Enhanced Product Actions */
.featured-products .product-actions {
    display: flex;
    gap: 8px;
}

.featured-products .view-details-btn,
.featured-products .inquiry-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.featured-products .view-details-btn {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    box-shadow: 0 2px 5px rgba(46, 139, 87, 0.15);
}

.featured-products .view-details-btn:hover {
    background-color: #1a5632;
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 3px 8px rgba(46, 139, 87, 0.2);
}

.featured-products .inquiry-btn {
    background-color: transparent;
    color: #2e8b57;
    border: 1px solid #2e8b57;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.featured-products .inquiry-btn:hover {
    background-color: #ffd700;
    color: #343a40;
    border-color: #ffd700;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.15);
}

/* Add icons to buttons */
.featured-products .view-details-btn::before {
    content: '\f06e'; /* Eye icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.75rem;
}

.featured-products .inquiry-btn::before {
    content: '\f0e0'; /* Envelope icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.75rem;
}

/* Enhanced View All Products Button */
.featured-products .contact-btn {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
    font-size: 1.1rem;
}

.featured-products .contact-btn:hover {
    background-color: #1a5632;
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.3);
}

/* View All Products Button */
.featured-products .view-all-products-btn {
    background-color: #ffd700;
    color: #343a40;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.featured-products .view-all-products-btn:hover {
    background-color: #ffde59;
    transform: translateY(-5px);
    color: #343a40;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.featured-products .inquiry-btn.btn-lg {
    background-color: transparent;
    color: #2e8b57;
    border: 2px solid #2e8b57;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
}

.featured-products .inquiry-btn.btn-lg:hover {
    background-color: #ffd700;
    color: #343a40;
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.featured-products .wholesale-note {
    color: #6c757d;
    font-size: 1rem;
    font-style: italic;
    margin-top: 1.5rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50px;
}

.featured-products .wholesale-note::before {
    content: '\f02b'; /* Tag icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #2e8b57;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .featured-products .product-image {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .featured-products .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .featured-products .product-image {
        height: 200px;
    }

    .featured-products .product-actions {
        flex-direction: row;
    }

    .featured-products .view-details-btn,
    .featured-products .inquiry-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    .featured-products .view-details-btn::before,
    .featured-products .inquiry-btn::before {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .featured-products .product-image {
        height: 180px;
    }

    .featured-products .product-actions {
        gap: 6px;
    }

    .featured-products .view-details-btn,
    .featured-products .inquiry-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .featured-products .view-details-btn::before,
    .featured-products .inquiry-btn::before {
        margin-right: 3px;
        font-size: 0.65rem;
    }
}
