/*
Theme Name:  Salient
Version:     14.0.1
Description: An Ultra Responsive Multi-Purpose Theme.
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author:      ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
License:     Custom license
License URI: http://themeforest.net/licenses/terms/regular
Text Domain: salient
*/

/*-------------------------------------------------------------------------*/
/* Note: The theme CSS files are loaded through the /css/ folder. 
/*-------------------------------------------------------------------------*/
/* Styles for the category menu */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 5 items per row on desktop */
    gap: 6px; /* Reduce gap between items */
    padding: 0 5px; /* Adds 4px padding on left and right */
}

.deal-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.deal-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-wrap: nowrap; /* Ensure it stays in one line */
}

.deal-mrp {
    text-decoration: line-through;
    color: #888;
    margin-right: auto;
    white-space: nowrap;
    font-size: 12px; /* Adjusted for smaller text */
}

.deal-price {
    color: red;
    font-weight: bold;
    margin-right: 20px;
    white-space: nowrap;
}

.deal-saving {
    color: green;
    margin-left: auto;
    white-space: nowrap;
    font-size: 12px; /* Adjusted for smaller text */
}

.deal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid #eee;
    position: relative; /* Stay fixed at the bottom */
}

.deal-title {
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.3;
    font-weight: normal;
    flex-grow: 1; /* Allow the title to take up available space */
}

.deal-image img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    margin: 0 auto 5px;
    object-fit: contain;
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .deal-pricing {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Ensure no wrapping */
        width: 100%; /* Full width */
        font-size: 12px; /* Smaller font size for mobile */
    }

    .deal-mrp, .deal-price, .deal-saving {
        font-size: 12px; /* Smaller text for mobile */
    }

    .deal-mrp {
        margin-right: 5px;
        max-width: 33%; /* Allocate width to keep on one line */
    }

    .deal-price {
        margin-right: 5px;
        max-width: 33%; /* Keep all 3 on a single line */
    }

    .deal-saving {
        margin-left: 5px;
        max-width: 33%; /* Keep all 3 on a single line */
    }
}

.deal-footer a {
    text-decoration: none;
    color: green;
}

.deal-footer .deal-source {
    flex-grow: 1;
}

.deal-footer .deal-button {
    white-space: nowrap;
    background-color: #c2fbd7;
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 12px;
    color: green;
    text-decoration: none;
    font-family: CerebriSans-Regular, -apple-system, system-ui, Roboto, sans-serif;
    transition: all 250ms; /* Smooth transition for hover effects */
    box-shadow: rgba(44, 187, 99, .2) 0 -25px 18px -14px inset,
                rgba(44, 187, 99, .15) 0 1px 2px,
                rgba(44, 187, 99, .15) 0 2px 4px,
                rgba(44, 187, 99, .15) 0 4px 8px,
                rgba(44, 187, 99, .15) 0 8px 16px,
                rgba(44, 187, 99, .15) 0 16px 32px;
}

.deal-footer .deal-button:hover {
    background-color: #a3e5bb; /* Lighter green on hover */
    color: #005f33; /* Darker green text on hover */
    box-shadow: rgba(44, 187, 99, .35) 0 -25px 18px -14px inset,
                rgba(44, 187, 99, .25) 0 1px 2px,
                rgba(44, 187, 99, .25) 0 2px 4px,
                rgba(44, 187, 99, .25) 0 4px 8px,
                rgba(44, 187, 99, .25) 0 8px 16px,
                rgba(44, 187, 99, .25) 0 16px 32px;
    transform: scale(1.05); /* Slight scaling on hover */
}


@media (max-width: 1024px) {
    .deals-grid {
        grid-template-columns: repeat(4, 1fr); /* 3 items per row on tablets */
    }
}

@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
    }

    .deal-image img {
        max-height: 80px; /* Smaller thumbnails on mobile */
    }

    .deal-title {
        font-size: 12px; /* Reduce font size on mobile */
    }

    .deal-footer .deal-button {
        padding: 4px 8px; /* Make button smaller on mobile */
    }
}

.deal-image img.deal-thumbnail {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensure the entire image fits without cropping */
    display: block;
    margin: 0 auto; /* Center the image */
    max-height: 100px; /* Control image size */
}

.deal-categories-menu {
    margin-bottom: 20px;
}
.deal-categories-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}
.deal-categories-menu ul li {
    display: inline-block;
}
.deal-categories-menu ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
.deal-categories-menu ul li a.active-category {
    background-color: #333;
    color: #fff;
}
#load-more-spinner {
    text-align: center;
    padding: 10px;
    font-size: 16px;
    color: #333;
}

/* Consistent Image Size for Source Logos */
.source-logo {
    max-width: 100px; /* Adjust width for logos */
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px; /* Add spacing */
}

@media (max-width: 768px) {
    .source-logo {
        max-width: 80px; /* Adjust for smaller screens */
    }
}

