/* ========================= */
/* ===== Best Deals CSS ===== */
/* ========================= */

/* Best Deals Section */
.best-deals-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

/* Section Title */
.best-deals-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

/* Product Grid */
.best-deals-section .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 20px; /* Side padding */
}

/* Product Card */
.best-deals-section .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.best-deals-section .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Clickable Card */
.best-deals-section .clickable-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Product Image */
.best-deals-section .product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Product Title */
.best-deals-section .product-title {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    padding: 0 10px; /* Side padding */
}

/* Product Description */
.best-deals-section .product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    padding: 0 10px; /* Side padding */
    word-wrap: break-word;
}

/* Shop Now Button */
.best-deals-section .shop-now-button {
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
    margin-bottom: 0;
    align-self: center;
    margin-bottom: 10px;
}

/* Button Hover */
.best-deals-section .shop-now-button:hover {
    background-color: #333;
    color: #f9f9f9;
}

/* Responsive Adjustments */

/* Tablets */
@media (max-width: 1024px) {
    .best-deals-section .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        padding: 0 15px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .best-deals-section .section-title {
        font-size: 18px;
        padding: 0 30px;
    }

    .best-deals-section .product-grid {
        grid-template-columns: 1fr; /* Single column */
    }

    /* Make product-card fully centered */
    .best-deals-section .product-card {
        max-width: 50% !important; 
        margin: 0 auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;  /* Center items horizontally */
        justify-content: center; /* Center items vertically if needed */
    }

    /* Remove overly restrictive widths that cause misalignment */
    .best-deals-section .product-image {
        max-width: 100%; /* Let image scale naturally */
        height: auto;
        margin-bottom: 15px;
    }

    .best-deals-section .product-title {
        font-size: 18px;
        padding: 0 0; /* Remove extra padding */
        width: 100%; /* Let text span full width */
        text-align: center; /* Center title */
        margin: 10px 0;
    }

    .best-deals-section .product-description {
        font-size: 14px;
        width: 100%; /* Let text span full width */
        text-align: center ;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .best-deals-section .shop-now-button {
        padding: 10px 20px;
        margin-bottom: 10px;
        align-self: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .best-deals-section .product-title {
        font-size: 14px;
    }

    .best-deals-section .shop-now-button {
        padding: 8px 16px;
    }
}

