/*
GTEL Product Category CSS
Moved from category_promotion_styles(), custom_category_styles(), and seo_styles().
Loaded only on product category pages.
*/

.products-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-link:hover .product-item {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-details {
    padding: 15px;
}

.product-details h3 {
    color: #333;
    margin-bottom: 10px;
}

.product-details p {
    color: #666;
}

.price {
    color: #007bff;
    font-weight: bold;
}

.all-products-container {
    text-align: center;
    margin-top: 30px;
}

.all-products-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.all-products-btn:hover {
    background-color: #0056b3;
}

.category-header-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.category-text {
    flex: 1;
    order: 1;
}

.category-image {
    flex: 0 0 40%;
    order: 2;
}

.category-image img {
    max-width: 100%;
    height: 11rem;
    border-radius: 8px;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subcategory-item {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    text-align: center;
}

.subcategory-item:hover {
    transform: translateY(-5px);
}

.subcategory-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.subcategory-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 20px;
}

.seo-rich-content {
    margin-top: 3% !important;
    margin-bottom: 3% !important;
    padding-top: 1% !important;
    padding-bottom: 1% !important;
}

.seo-rich-content h2 {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .category-header-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .category-text {
        order: 2 !important;
        width: 100%;
    }

    .category-text h1,
    .category-text h2 {
        color: #000 !important;
    }

    .category-text p {
        color: #969696 !important;
    }

    .category-image {
        order: 1 !important;
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}
