/* ==================== PRODUCT HERO STYLES ==================== */
.product-hero-section {
    position: relative;
    width: 100%;
    height: 390px;
    background-image: url('../images/product/hero.png'); /* Reusing an existing hero image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    font-family: var(--font-main, 'Segoe UI', sans-serif);
}

.product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark green overlay to match the about page */
    background: rgba(43, 85, 59, 0.568); 
    z-index: 1;
}

.product-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 15px;
    margin-left: 60px; /* Aligned exactly like about.css */
}

.product-hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-hero-content p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .product-hero-section {
        height: 350px;
    }
    
    .product-hero-content h1 {
        margin-top: 60px;
        font-size: 32px;
        margin-left: -20px;
    }
    
    .product-hero-content p {
        font-size: 14px;
        max-width: 100%;
        margin-left: -20px;
    }
}


/* ==================== PRODUCTS GRID SECTION STYLES ==================== */
.products-section {
    padding: 30px 0 40px 0; /* Gap between pagination and footer reduced */
    background-color: #fafbfc; /* ඉතාමත් ලා අළු පසුබිමක් (Cards කැපී පේන්න) */
    font-family: var(--font-main, 'Segoe UI', sans-serif);
}

.prd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (Optional) */
.prd-header {
    text-align: center;
    margin-bottom: 50px;
}

.prd-heading {
    font-size: 36px;
    font-weight: 800;
    color: #143a1b; /* Dark Blue/Green */
    margin: 0 0 15px 0;
}

.prd-divider {
    width: 60px;
    height: 4px;
    background-color: #0e4920; /* Primary Green */
    margin: 0 auto;
    border-radius: 2px;
}

/* Products Grid */
.prd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* තීරු 4ක් */
    gap: 30px;
}

/* Product Card */
.prd-card {
    background-color: #ffffff;
    border-radius: 5px;
    
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.123);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prd-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.prd-img-wrap {
    width: 100%;
    height: 250px; /* උස ටිකක් වැඩි කළා පින්තූරය ලස්සනට පේන්න */
    background-color: #f4f6f8; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Padding අයින් කළා පින්තූරය අයිනටම යන්න */
    position: relative;
    overflow: hidden; /* පින්තූරය zoom වෙද්දි එළියට නොයන්න */
}

.prd-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* පින්තූරය සම්පූර්ණයෙන්ම පිරෙන්න (edge-to-edge) */
    transition: transform 0.3s ease;
}

.prd-card:hover .prd-img-wrap img {
    transform: scale(1.05); /* Hover කරද්දි පින්තූරය ලාවට zoom වෙනවා */
}

/* Product Info Area */
.prd-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Button එක යටටම තල්ලු කරන්න */
    text-align: center;
}

.prd-title {
    font-size: 14px;
    font-weight: 800;
    color: #222222;
    line-height: 1.5;
    margin: 0 0 25px 0;
    text-transform: uppercase;
}

/* Product Button (Outlined to Filled on Hover) */
.prd-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: 2px solid #e0e5e0;
    border-radius: 8px;
    color: #444444;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.prd-card:hover .prd-btn {
    background-color: #1b8b3b; 
    border-color: #1b8b3b;
    color: #ffffff;
}

/* ==================== PAGINATION STYLES ==================== */
.prd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.prd-pagination a, .prd-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #444444;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link, .page-btn {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.page-link:hover, .page-btn:hover {
    background-color: #f4f6f8;
    color: #0e4920;
    border-color: #0e4920;
}

.page-link.active {
    background-color: #1b8b3b;
    color: #ffffff;
    border-color: #1b8b3b;
}

.page-link.active:hover {
    background-color: #0e4920;
}

.page-dots {
    color: #888888;
    background: transparent;
}

/* ==================== MOBILE RESPONSIVE ==================== */

/* Desktop/Large Tablet */
@media (max-width: 1199px) {
    .prd-grid {
        gap: 20px;
    }
}

/* Tablet View */
@media (max-width: 991px) {
    .prd-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet වලදී Cards 2ක් වෙන්න */
        gap: 30px;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .products-section {
        padding: 50px 0;
    }

    .prd-grid {
        grid-template-columns: 1fr; /* Mobile වලදී Cards එක යට එක වැටෙන්න */
        gap: 25px;
    }
    
    .prd-img-wrap {
        height: 250px; /* Mobile වලදී පින්තූරය ටිකක් ලොකුවට පේන්න */
    }
}