html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* background-color: #2b6cb0; */
}

footer {
  margin-top: auto;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.card img {
  height: 150px;
  /* object-fit: cover; */
}

.card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/* .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
} */

.btn-primary {
  background-color: #2b6cb0;
  border-color: #2b6cb0;
}

.btn-primary:hover {
  background-color: #2c5282;
  border-color: #2c5282;
}

.logo-circle {
  width: 40px;
  /* Set your preferred size */
  height: 40px;
  border-radius: 50%;
  /* Makes it circular */
  object-fit: cover;
  /* Ensures the image covers the circle nicely */
  border: 1px solid #e5ff00;
  /* Optional: adds a border */
}

#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

#toast.show {
  opacity: 1;
  pointer-events: auto;
}

#toast2 {
  position: fixed;
  /* for bottom */
  /*bottom: 30px; */
  /*right: 30px;*/
  /*at the center-top*/
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  
  
  /*at the center of the screen*/
  /*top: 50%;*/
  /*left: 50%;*/
  /*transform: translate(-50%, -50%);*/
  
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

#toast2.show {
  opacity: 1;
  pointer-events: auto;
}


/* Make Bootstrap tooltip background semi-transparent */
.tooltip-inner {
  background-color: rgba(0, 0, 0, 0.50); /* Adjust the alpha for transparency */
  color: #fff; /* Optional: make sure text is still readable */
}

/* Optional: adjust the arrow to match the background */
/*.bs-tooltip-top .arrow::before,*/
/*.bs-tooltip-bottom .arrow::before,*/
/*.bs-tooltip-left .arrow::before,*/
.bs-tooltip-right .arrow::before {
  border-color: rgba(0, 0, 0, 0.50) !important;
}







/* ----------------- MODAL CUSTOM STYLES ----------------- */

.modal-header {
  padding-bottom: 0;
  border-bottom: none;
  justify-content: center;
}

.modal-body p {
  margin-top: 0;
  font-size: 1rem;
}

/* Modern blue popup */
.modal-content {
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f5f5, #e0dede); 
  /* Blue gradient */
  color: #333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: none;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Form inputs inside modal */
.modal-content .form-control {
  border-radius: 10px;
  border: none;
  padding: 12px;
  font-size: 0.95rem;
}

.modal-content .form-control:focus {
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  border-color: #fff;
}

/* Submit button in modal */
.modal-content .btn-primary {
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, #1e90ff, #00cfff); /* Blue gradient button */
  border: none;
  padding: 12px;
  transition: all 0.3s ease;
}

.modal-content .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Disclaimer text in modal */
.modal-content .small {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
}

.modal-content a {
  color: #1e90ff;
  text-decoration: underline;
}

.modal-content a:hover {
  color: #005f99;
}

.modal-content strong.text-danger {
  color: #ff0000; 
  /* keep red for emphasis */
}


.fa-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1055; /* make sure it's above the modal content */
    color: #333;    /* change to white or whatever fits your gradient */
    padding: 0;
}



#offerModal .modal-dialog {
  max-width: 400px !important; /* fixed width */
  margin: auto;                /* center horizontally */
}




/* ----------------- MODAL CUSTOM STYLES ENDS ----------------- */


/* ----------------- FLOAT CHAT  STYLES START ----------------- */
.whatsapp-float {
    position: fixed;
    bottom: 50px;   /* distance from bottom */
    right: 15px;     /* distance from left */
    z-index: 1000;
    background: #25D366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    /*font-weight: bold;*/
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 16px;
    transition: transform 0.3s;
}


.whatsapp-float i {
    margin-right: 8px;
    font-size: 28px;
    font-weight: bold;
}

/* Optional: hover effect */
.whatsapp-float:hover {
    transform: scale(1.05);
}

/* ----------------- FLOAT CHAT  STYLES ENDS ----------------- */



.floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    
    display: none; /* hidden initially */
    justify-content: space-between; /* flex layout */
    align-items: center;
    display: flex; /* flex container */
}

.floating-cart a {
    color: white;
    text-decoration: none;
}

.floating-cart a:hover {
    color: #fff;
    text-decoration: none;
}

.floating-cart a.btn {
    background-color: #fff;       /* white button */
    color: #28a745 !important;    /* green text */
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
}

.floating-cart a.btn:hover {
    background-color: #f8f9fa;    /* light grey hover */
    color: #28a745 !important;
    text-decoration: none;
}

#cartItemsCount {
    font-size: 1rem;
    font-weight: bold;
}




/* Toggle Switch Style */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Veg = green */
input:checked + .slider {
    background-color: #28a745;
}

/* Non-Veg = red */
input:checked + .slider.non-veg {
    background-color: #dc3545;
}

input:checked + .slider:before {
    transform: translateX(16px);
}



/* ----------------- you-may-also-like CUSTOM STYLES Start ----------------- */
/* Horizontal Scroll Container */
.you-may-also-like-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.you-may-also-like-container::-webkit-scrollbar {
    display: none;
}

/* Individual Card Item */
.you-may-also-like-item {
    flex: 0 0 180px; /* fixed width */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Card */
.you-may-also-like-item .card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%; /* stretch card to container height */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Image */
.you-may-also-like-item .card-img-top {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* Card Body */
.you-may-also-like-item .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* keep items at top */
    align-items: stretch;
    padding: 5px 8px;
    gap: 2px; /* small gap between elements */
    height: auto; /* shrink to fit content */
}

/* Product Info */
.item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* minimal space between title & price */
}

.item-info h6 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
}

.item-info p {
    font-size: 14px;
    color: #198754; /* bootstrap success color */
    font-weight: bold;
    margin: 0;
}

/* Cart Buttons */
.cart-controls {
    margin-top: 2px; /* minimal space from price */
}

.quantity-controls,
.add-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cart-action {
    flex: 0 0 auto; /* prevent stretching */
    min-width: 30px;
    padding: 2px 8px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .you-may-also-like-item { flex: 0 0 150px; }
    .you-may-also-like-item .card-img-top { height: 100px; }
    .item-info h6, .item-info p { font-size: 13px; }
    .cart-action { font-size: 12px; padding: 2px 6px; }
}

@media (max-width: 576px) {
    .you-may-also-like-item { flex: 0 0 130px; }
    .you-may-also-like-item .card-img-top { height: 90px; }
    .item-info h6, .item-info p { font-size: 12px; }
    .cart-action { font-size: 12px; padding: 2px 6px; }
}



/* ----------------- you-may-also-like CUSTOM STYLES ENDS ----------------- */