/* Products Page Styles */

/* Hero Section */
.products-hero {
    background: var(--gradient-blue);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.products-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.products-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Products Layout */
.products-section {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-item-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.product-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-item-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-item-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.product-item-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.product-category-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.product-item-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
}

.product-price-block {
    display: flex;
    flex-direction: column;
}

.product-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price-value {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--primary-color);
}

.btn-purchase {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Empty State */
.products-empty-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 100px 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.products-empty-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.products-empty-state h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.products-empty-state p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Component Responsiveness */
@media (max-width: 576px) {
    .product-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }

    .btn-purchase {
        width: 100%;
        text-align: center;
    }
}