/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 17 Dec, 2024, 1:47:23 PM
    Author     : Pranata
*/

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

/* Category Products Section */
.category-products {
/*    display: grid;*/
    grid-template-columns: 1fr 1fr; /* Two Columns */
    background-color: #b70909; /* Dark Red Background */
    color: #fff;
    align-items: center;
    padding: 40px;
    gap: 20px; 
}

/* Left Column: Image */
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
/*    height: 400px;*/
    background-color: #910101; /* Slightly Darker Fill Color */
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
}

/* Right Column: Content */
.product-content h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f1f1f1;
}

/* Call Customer Care Box */
.call-customer-care {
    background-color: #fff;
    color: #333;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
}

.call-customer-care span {
    display: block;
    font-size: 24px;
    color: #000;
    margin-top: 5px;
}



/* Shop Heading and Filter */
.products .shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products .shop-header .results {
    font-size: 14px;
    color: #555;
}

.products .shop-header select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Products Section */
.products .products h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.products .products-grid {
/*    display: grid;*/
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Product Card Container */
.products .product-card {
/*    width: 85%;*/
    background-color: #fff;
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-top: 40px;
}

.products .product-card:hover {
    transform: translateY(-5px);
}

/* Sale Badge */
.products .sale-badge {
    position: absolute;
    top: 10px;
    right: 0px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 3px;
    z-index: 2;
}

/* Product Image */
.products .product-image {
    width: 100%;
/*    height: 300px;*/
    background-color: #f0f0f000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.products .product-image img {
    max-width: 85%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.products .product-info {
    padding: 10px;
}

.products .product-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.products .product-rating {
    color: #f39c12;
    font-size: 14px;
    margin: 5px 0;
}

.products .product-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.products .product-price del {
    color: #aaa;
    margin-right: 5px;
}

/* Add to Cart Button */
.products .add-to-cart {
    display: inline-block;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.products .add-to-cart:hover {
    background-color: #000;
}

/* Pagination */
.products .pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.products .pagination a {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.products .pagination a:hover {
    background-color: #333;
}

.products .pagination .active {
    background-color: #003399;
}









/* Pagination Container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* Pagination Links */
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #555;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 5px;
}

/* Hover Effect */
.pagination a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Active Page */
.pagination a.l-btn-plain{
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

/* Disabled Links */
.pagination a.l-btn-selected {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #ddd;
    pointer-events: none;
    cursor: not-allowed;
}

.products .product-title a{
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: black;
}

button, a, img{
    cursor: pointer;
}

/* General Styling */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Equal height for all cards */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: relative; /* For positioning badge */
}

/* Sale Badge Styling */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Image Styling */
.product-image {
    text-align: center; /* Center the image */
    margin-bottom: 15px;
}

.product-image img {
    max-width: 100%; /* Ensure the image fits within the card width */
    height: auto; /* Maintain the original aspect ratio */
    display: inline-block; /* Aligns correctly in the center */
}

/* Product Info */
.product-info {
    text-align: center;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-title a {
    text-decoration: none;
    color: #333;
}

.product-title a:hover {
    color: #e74c3c;
}

.product-rating {
    color: #f1c40f;
    margin: 5px 0;
}

.product-price del {
    color: #999;
    margin-right: 5px;
}

.offer-price {
    color: #e74c3c;
    font-weight: bold;
}

/* Add to Cart Button */
.button-container {
/*    margin-top: auto;  Pushes the button to the bottom */
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.add-to-cart:hover {
    background-color: #218838;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-card {
        padding: 10px;
    }

    .sale-badge {
        font-size: 0.8rem;
    }
}
