/* Remove default margin and padding from body and html */
html, body {
    margin: 0;
    /* padding-bottom: 10px; */
    min-height:100%/* ensure page take full height*/
}
/* for mobile screen to see bottom*/
@media screen and (max-width: 900px) {
    html, body{padding-bottom: 70px;}
}
/*banner style starts added by neha on 17-1-25*/
/*For banner size */
img.banner-image {
    /* height: 280px; */
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* Slider container */
.banner-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
  
}

/* Slider wrapper */
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Individual slide */
.slide {
    min-width: 100%;
    text-align: center;
}

/* Image styling */
.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Navigation buttons */
.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.navigation button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
}

.navigation button:hover {
    background: rgba(0, 0, 0, 0.8);
}
/*banner style ends*/
/* Ensure no margin or padding in navbar and its container */
/* Ensure navbar stays fixed at the top */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Make sure it's on top of other elements */
    background-color: #343a40; /* Or your desired color */
}

/* Adjust the rest of the page content to avoid overlap with navbar */
body {
    padding-top: 70px; /* Adjust this based on the height of your navbar */
}


.navbar .container {
    padding-top: 0 !important;
}

/* Reset all margins and padding globally */
* {
    margin: 0;
    padding: 0;
}


.container {
    max-width: 1200px;
}
a {
    text-decoration: none;  /* Remove underline */
}

/* Add some styling for hover (optional) */
a:hover {
    text-decoration: none;  /* Ensure no underline on hover */
}
.back {
    align-items: center;
    max-width: 1200px;
    display: flex;
    width: 100%; /* Make sure it spans the full width */
    margin: 0 auto; /* Center the container horizontally */
    padding: 15px 15px; /* Padding for better spacing */

    justify-content: space-between;
}

.back-btn {
    background-color: #6c757d; 
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #5a6268; 
}

.deals-container {
    display: grid;
    gap: 20px;
}
/* Grid layout for different screen sizes */
@media (min-width: 768px) {
    .deals-container {
        grid-template-columns: repeat(6, 1fr); /* One product per row on larger screens */
    }
}

@media (max-width: 767px) {
    .deals-container {
        grid-template-columns: repeat(2, 1fr); /* Two products per row on smaller screens */
    }
}

/* Fixed height for product cards */
.deal-card {
    border: 1px solid #367E18;
    border-radius: 10px;
    /* padding-left: 5px; */
    text-align: center;
   /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 175PX;
}
.offer.deal-card{
    width: 175PX;
    border: 1px solid #367E18;
    border-radius: 10px;
    /* padding-left: 5px; */
    text-align: center;
   /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.deal-card img {
    
        height:100px;
        display:block;
        margin-left:auto;margin-right:auto;
    
}

.deal-card:hover {
    /* transform: scale(1.05); */
}

.product-info {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0;
    /* transition: background-color 0.3s; */
}
 /* for new product price added by neha on 18-1-25 */
/* .new-product-price{
    display:flex;
    justify-content: center;

}
.new-old-price{
    display:flex;
    text-decoration: line-through;
    color: #367E18;
    padding: 0;
    margin-right: 3px;
    font-size: small;
}
.new-deal-price{
    display:flex;
    font-weight: bold;
    color: #CC3636;
    font-size: small;
    padding: 0;
} */
/* .new-deal-card {
    border: 1px solid #367E18;
    border-radius: 10px; */
    /* padding-left: 5px; */
    /* text-align: center; */
   /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    /* transition: transform 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
} */

/* .new-deal-card img {
    
        height:100px;
        display:block;
        margin-left:auto;margin-right:auto;
    
}

.new-deal-card:hover { */
    /* transform: scale(1.05); */
/* } */

.deal-price {
    font-weight: bold;
    color: #CC3636;
    font-size: small;
    padding: 0;


}

.old-price {
    text-decoration: line-through;
    color: #367E18;
    padding: 0;

    margin-right: 3px;
    font-size: small;

}

.product-description {
    overflow: hidden;
    font-size: small;
    font-weight: bold;
    padding-top: 15px;
    color:black;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.product.product-description{
    padding-left: 10px;
    padding-right: 10px;
}
.product-price{
    display:flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.add-to-cart-btn {
    margin-top: 0px;
    background-color: #014222 ;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}
.card-body {
    flex-grow: 1;  /* Allow the body to take remaining space in flexbox */
    display: flex;
    padding: 15px;
    flex-direction: column;
    justify-content: space-between;  /* Space content properly */
}

.card-header {
    background-color: #00712D;
    color: white;
    font-weight: bold;
}
.card-title {
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Show ellipsis (...) for overflowing text */
    max-width: 100%; /* Ensure it doesn't exceed container */
    display: block; /* Ensure it's treated as a block-level element */
    font-size: 1.25rem; /* Optional: adjust font size as per preference */
    line-height: 1.5;
}

.offer-text {
    font-size: 1.1rem;
}

.offer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.offer-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.btn-view-offer {
    background-color: #014222 ;
    color: white;
    border: none;
}

.quantity-cart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 5px 4px 7px 3px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
}

.quantity-selector .qty-btn {
    background-color: #d25005;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    width: 25px;
    height: 25px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-selector .qty-btn:hover {
    background-color: #f36615;
}

.quantity-input {
    border: none;
    text-align: center;
    width: 25px;
    font-size: 12px;
    font-weight: bold;
    color: #00712D;
    background-color: #fff;
}

.add-to-cart {
    background-color: #00712D; 
    color: #fff;
    border: 2px solid #00712D;

    padding: 4px 5px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #00712D;
    color: #fff;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Style for the loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Style for the content */
#container {
    display: none;
    padding: 20px;
}

/* CSS Spinner Animation */
.spinner {
    border: 16px solid #f3f3f3; /* Light gray background */
    border-top: 16px solid #3498db; /* Blue color for the top */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

/* Animation for the spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.toast {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
  }


  a.show-offers.btn.btn-secondary {
    background-color: #014222;
}
a.view-products.btn.btn-primary {
    background-color: #014222;
}

/* Grid layout for different screen sizes */
@media (min-width: 1200px) {
    .deals-container {
        grid-template-columns: repeat(6, 1fr); /* One product per row on larger screens */
    }
}

@media (max-width: 1199px) {
    .deals-container {
        grid-template-columns: repeat(5, 1fr); /* Two products per row on smaller screens */
    }
}
@media (max-width: 974px) {
    .deals-container {
        grid-template-columns: repeat(4, 1fr); /* Two products per row on smaller screens */
    }
}
@media (max-width: 779px) {
    .deals-container {
        grid-template-columns: repeat(3, 1fr); /* Two products per row on smaller screens */
    }
}
@media (max-width: 584px) {
    .deals-container {
        grid-template-columns: repeat(2, 1fr); /* Two products per row on smaller screens */
    }
}
@media (max-width: 389px) {
    .deals-container {
        grid-template-columns: repeat(1, 1fr); /* Two products per row on smaller screens */
    }
}

/* added by neha on 26-11-25 for out of stock  */
.product-image-wrapper {
    position: relative;
    width: 100%;
}

.out-of-stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: red;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 4px;
    z-index: 10;
}