/* Tag Filter Section */
.tag-filter {
    display: none;
    flex-direction: column;
    padding: 15px;
    background: rgba(34, 34, 34, 0.8);
    border-radius: 15px;
    border: 2px solid #aaa;
    transition: all 0.5s ease;
}

.hidden {
    display: none;
}

.visible {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-toggle-btn {
    background: linear-gradient(90deg, #3b6b3b, #1e401e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.tag-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    color: white;
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.filter-btn {
    background: linear-gradient(90deg, #3b6b3b, #1e401e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Product Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Product Card */
.product-card {
    padding: 15px;
    border-radius: 10px;
    background: rgba(34, 34, 34, 0.7);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    text-align: center;
    flex: 0 1 200px;
    max-width: 200px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product Card Hover Effect */
.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.5);
}

/* Product Image */
.product-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ddd;
    margin-bottom: 10px;
}

/* Product Name */
.product-card h3 {
    font-size: 1.2em;
    color: #e6ffe6;
    margin: 0;
    padding: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show max 3 lines */
    -webkit-box-orient: vertical;
}

/* Product Description */
.product-card p {
    color: #e6ffe6;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show max 3 lines */
    -webkit-box-orient: vertical;
    margin: 5px;
}

/* Product Price */
.product-card .product-price {
    color: #e6ffe6;
    font-weight: bold;
}

/* "Add to Basket" Button */
.add-to-basket-btn {
    background: linear-gradient(90deg, #3b6b3b, #1e401e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.add-to-basket-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        max-width: 100%;
        min-height: auto;
    }
}
