/* 
Theme Name: Chempro Wordpress Themes
Theme URI: https://www.prajad.com/
Description: Chempro Wordpress Themes is a theme of Chemicals, created by Prajad team
Author: Prajad Team
Author URI: https://www.prajad.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: chempro-wordpress-themes
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ==========================================================================
   PRODUCTS ARCHIVE & TAXONOMY STYLES
   Covers: archive-products.php & taxonomy-product_cat.php
   ========================================================================== */

/* General Layout & Container */
.products-archive {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.products-archive .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero / Banner Section */
.archive-banner {
    text-align: center;
    padding: 120px 0 80px;
    background-color: #F4F9FF; /* UI Light Blue Background */
}

.archive-banner .main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.archive-banner .main-desc {
    
    max-width: 1080px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.breadcrumbs-container {
    color: #3187ca;
}

/* Category Grid Spacing */
.product-category-row {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.cat-title {
    color: #3187ca;
    margin-bottom: 5px;
}

.cat-desc {
    color: #777;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* 4-Column Responsive Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Card Design */
.product-card {
    background: #F4F9FF; /* Card background matches UI */
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: solid 1px #F4F9FF;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(49, 135, 202, 0.1);
}

/* Image Wrapper (Teal Background from UI) */
.product-img-wrapper {
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.product-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Card Content Area */
.product-content {
    padding: 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    color: #3187ca;
    font-size: 22px !important;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.2;
}

.product-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.4;
}

/* Action Button */
.btn-learn-more {
    color: #3187ca;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Pagination Styling (for Taxonomy page) */
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

/* Laptops & Tablets */
@media (max-width: 1024px) {
    .archive-banner { 
        padding: 80px 0 50px; 
    }
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .archive-banner .main-title { 
        font-size: 36px; 
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .archive-banner {
        padding: 60px 0 40px;
    }
    .product-grid { 
        grid-template-columns: 1fr; 
        max-width: 350px;
        margin: 0 auto;
    }
    .archive-banner .main-title { 
        font-size: 28px; 
    }
    .product-title {
        font-size: 20px !important;
    }
}