/* ============================================
   Ekotek v2 — Products Page Styles
   ============================================ */

.products-page {
    padding: 0 0 80px;
}

/* ---- Page Header ---- */
.products-header {
    margin-bottom: 40px;
    margin-top: 24px;
}

.products-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.products-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    max-width: 900px;
}

/* ---- Category Grid ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: row;
    background: #f9f9f9;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow var(--transition-fast);
}

.category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-card-content {
    flex: 1 1 55%;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    align-self: flex-start;
}

.category-card-text {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.65;
}

.category-card-img {
    flex: 1 1 45%;
    min-height: 150px;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-img img {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-img img {
    transform: scale(1.03);
}

.products-empty {
    text-align: center;
    padding: 64px 24px;
    color: #666;
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .category-card {
        flex-direction: column-reverse;
    }

    .category-card-content {
        padding: 20px;
    }

    .category-card-title {
        font-size: 1.125rem;
    }

    .category-card-img {
        min-height: 160px;
        flex: none;
        height: 180px;
    }

    .products-title {
        font-size: 1.625rem;
    }
}
