/* Products Page Styles */

.products-section {
    min-height: 60vh;
    background: #fafaf9;
}

.btn-group .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-group .btn:hover,
.btn-group .btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.product-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-unit {
    color: #6b7280;
    font-size: 0.9rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.9rem;
}

.product-stock.low-stock {
    color: #f59e0b;
}

.product-stock.out-of-stock {
    color: #ef4444;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-view-details {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: white;
}

.login-cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.login-cta-banner h4 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.login-cta-banner i {
    color: #fbbf24;
}

.login-cta-banner .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.login-cta-banner .btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Search Input */
.input-group-text {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border: 2px solid #fbbf24;
    color: var(--dark-color);
}

#searchInput {
    border: 2px solid #fbbf24;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }

    .product-image {
        height: 150px;
    }

    .login-cta-banner {
        text-align: center;
    }

    .login-cta-banner .btn {
        margin-top: 1rem;
    }
}
