/*
 * Yewodze Enterprise - Enhanced Products Page Styles
 * Theme: Green, Yellow, and White
 */

/* Products Header */
.products-header {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.9) 0%, rgba(46, 139, 87, 0.7) 100%), url('../images/soap-pattern-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.products-header::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='%23ffffff' fill-opacity='0.1'%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.2;
}

.products-header .page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInDown 1s ease-out;
}

.products-header .lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease-out;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation: float 15s infinite alternate;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation: float 12s infinite alternate-reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 30%;
    animation: float 10s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, 30px) rotate(15deg);
    }
}

/* Filter and Sort Section */
.filter-sort-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.filter-container, .sort-container {
    position: relative;
}

.filter-container label, .sort-container label {
    font-weight: 600;
    color: #2e8b57;
    margin-bottom: 0.5rem;
    display: block;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #495057;
}

.form-select:focus {
    border-color: #2e8b57;
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
}

/* Products Grid */
.products-grid {
    padding: 3rem 0;
}

.product-item {
    animation: fadeInUp 1.2s ease-out;
}

.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    background-color: #fff;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.wholesale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ffd700;
    color: #343a40;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-details {
    padding: 1.5rem;
    position: relative;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2e8b57;
    transition: color 0.3s ease;
}

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

.product-category {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.product-price::before {
    content: 'Wholesale:';
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 8px; /* Reduced gap between buttons */
}

.view-details-btn {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.view-details-btn:hover {
    background-color: #1a5632;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.inquiry-btn {
    background-color: transparent;
    color: #2e8b57;
    border: 1px solid #2e8b57;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.inquiry-btn:hover {
    background-color: #ffd700;
    color: #343a40;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact CTA Section */
.contact-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2e8b57 0%, #1a5632 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-cta::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='%23ffffff' fill-opacity='0.05'%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.1;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.contact-cta .btn {
    animation: fadeInUp 1.4s ease-out;
}

.contact-btn {
    background-color: #ffd700;
    color: #343a40;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #2e8b57;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.empty-state-text {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .products-header {
        padding: 4rem 0;
    }

    .products-header .page-title {
        font-size: 2.5rem;
    }

    .filter-sort-section {
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    .products-header .page-title {
        font-size: 2rem;
    }

    .filter-container, .sort-container {
        margin-bottom: 1rem;
    }

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

@media (max-width: 576px) {
    .products-header {
        padding: 3rem 0;
    }

    .filter-sort-section {
        margin-top: -15px;
        padding: 1rem;
    }

    .product-actions {
        flex-direction: column;
    }
}
