/* ---------- SMALL CARD ---------- */
.products-grid-sm {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* When screen becomes smaller (like 125% zoom), switch to 4 cards */
@media (max-width: 1400px) {
    .products-grid-sm {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet size */
@media (max-width: 992px) {
    .products-grid-sm {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .products-grid-sm {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile small */
@media (max-width: 480px) {
    .products-grid-sm {
        grid-template-columns: repeat(2, 1fr);
    }
}


.product-card-sm {
    flex: 0 0 auto;
    width: 280px;
    height: 350px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card-sm:hover {
    box-shadow: 0 0 15px 4px rgba(0, 0, 0, 0.18); /* Even darker on hover */
}

/* Image container - fixed height */
.product-image-sm {
    width: 100%;
    height: 260px; /* FIXED IMAGE AREA */
    overflow: hidden;
    background: #f8f9fa;
}

/* Force image to cover full area */
.product-image-sm img {
    border-radius: 3px;
    width: 100%;
    height: 260px;
    object-fit: cover; /* CROP TO FILL */
    display: block;
}

/* Content area - takes remaining space */
.product-content-sm {
    height: auto;
    flex: 1;
    padding-top: 10px;
    /* margin: 0 5px; */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Title - limit lines */
.title-sm {
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #222;
}
.title-sm a {
    color: inherit;
    text-decoration: none;
}

/* Price */
.price-sm {
    float: left;
    font-size: 15px;
    font-weight: 700;
    color: #181818;
    margin: 0;
}

/* Buttons container */
.actions-sm {
    float: right;
    color: black;
    border: 1px solid black;
    border-radius: 20px;
    padding: 1px 15px;
}

.actions-sm:hover {
    background-color: rgb(241, 241, 241);
    cursor: pointer;
}

.left-product {
    float: left;
    font-size: 14px;
    color: #fb7701;
}

.soldout {
    font-weight: 100;
}

.del-sm {
    font-size: 13px;
    font-weight: 100;
}

.review-sm {
    float: left;
    font-size: 13px;
    color: #fb7701;
}

/* -------------------------------------------------
   RESPONSIVE
   ------------------------------------------------- */
@media (max-width: 768px) {
    /* .products-grid-sm {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    } */

    .product-card-sm {
        width: 100%;
        height: 200px;
    }

    .title-sm {
        text-align: left;
        font-size: 10px;
        font-weight: 600;
        margin: 0 0 6px;
        color: #222;
    }

    .price-sm {
        font-size: 10px;
    }

    .actions-sm {
        font-size: 9px;
    }

    .soldout {
        display: none;
    }

    .product-image-sm {
        width: 100%;
        height: 150px;
        overflow: hidden;
        background: #f8f9fa;
    }

    /* Force image to cover full area */
    .product-image-sm img {
        border-radius: 3px;
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

    .del-sm {
        font-size: 9px;
    }

    .review-sm {
        font-size: 10px;
    }

    .left-product {
    font-size: 10px;
}
}

/* Custom CSS for Product Cards */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* This creates a 1:1 square (change as needed) */
    overflow: hidden;
    background: #f8f8f8; /* fallback color */
}

.product-image a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key */
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card .product-image img {
    transition: transform 0.3s ease-in-out;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    text-decoration: none;
}

.product-title:hover {
    color: #007bff;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #dfb005ff;
    margin: 5px 0;
}

.old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin: 5px 0;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    border-radius: 12px;
    line-height: 1;
}

.badge-category {
    background-color: #007bff;
}

.badge-subcategory {
    background-color: #6c757d;
}

.badge-quality {
    background-color: #dc3545;
}

.badge-hot {
    background-color: #fc0;
    color: #000;
}

.btn-buy {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: #dc7633;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-buy:hover {
    background-color: #d35400;
}

.btn-cart {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background-color: #000;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-cart:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-image {
        /* height: 150px; */
    }
}

/* counter area */
.counter-area {
    background: linear-gradient(135deg, #f0f4ff 0%, #dbe9f4 50%, #f7faff 100%);
    color: #333;
}

.counter-another-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s ease;
}

.counter-another-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.counter-another-content i {
    font-size: 36px;
    color: #4e73df;
    margin-bottom: 15px;
}

.counter-another-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 700;
}

.counter-another-content span {
    font-size: 15px;
    color: #777;
}

/* Newsletter Section */
.newsletter-area {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.newsletter-area .section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-area .section-title p {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #555;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter button {
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter button:hover {
    background: #0056b3;
}

@media (max-width: 576px) {
    .newsletter {
        flex-direction: column;
    }

    .newsletter button {
        width: 100%;
    }
}

.customer-reviews-area {
    background: linear-gradient(135deg, #f0f4ff 0%, #dbe9f4 50%, #f7faff 100%);
    color: #333;
}
