/* Blends page specific styles */

.blends-hero {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    background-color: #e6f7f2;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .blends-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e9ecef" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e9ecef" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e9ecef" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e9ecef" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e9ecef" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.5;
    }

    .blends-hero .container {
        position: relative;
        z-index: 1;
    }

    .blends-hero h1 {
        font-size: 3rem;
        font-weight: 700;
        color: #109867;
        margin-bottom: 20px;
    }

    .blends-hero p {
        font-size: 1.2rem;
        color: #133932;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

.products-section {
    padding: 60px 0;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        border-color: #2c5530;
    }

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

    .product-link:hover {
        text-decoration: none;
        color: inherit;
    }

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 30px;
    height: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

.product-category {
    background: #2c5530;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 0;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-grow: 0;
}

.product-rating {
    color: #ffc107;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5530;
}

.product-cta {
    background: #2c5530;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: 2px solid #2c5530;
    flex-grow: 0;
}

    .product-cta:hover {
        background: #4a7c59;
        border-color: #4a7c59;
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    grid-column: 1 / -1;
}

    .empty-state h3 {
        color: #2c5530;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }

    .empty-state p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #2c5530;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blends-hero {
        padding: 60px 0;
    }

        .blends-hero h1 {
            font-size: 2rem;
        }

        .blends-hero p {
            font-size: 1rem;
            margin-bottom: 30px;
        }

    .products-section {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blends-hero h1 {
        font-size: 1.8rem;
    }

    .product-content {
        padding: 15px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation for product cards */
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

    .product-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .product-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .product-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .product-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .product-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .product-card:nth-child(6) {
        animation-delay: 0.6s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better UX */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.05) 0%, rgba(44, 85, 48, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

/* Focus states for accessibility */
.product-link:focus {
    outline: 2px solid #2c5530;
    outline-offset: 2px;
}

.product-cta:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
