* {
  margin: 0;
  padding: 0;
}

body {
  top: 0 !important;
}

/* Navbar : Start */

.navbar-styling {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
}

.offcanvas {
  width: 50% !important;
}

.navbar-brand-left img {
  height: 40px;
  width: auto;
}

.nav-search-bar {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  margin: 5px auto;
  background-color: #f8f9fa;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  padding: 0 10px;
}

@media (max-width: 576px) {
  .nav-search-bar {
    margin: 0 !important;
  }
}

.nav-search-bar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
}

.nav-search-bar input {
  border-radius: 0;
}

.nav-search-bar button {
  border-radius: 0;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}

.nav-search-bar button:hover {
  opacity: 0.5;
  background: white;
}

.nav-search-bar button i {
  font-size: 18px;
}

.location-search-mobile {
  background: #f8f9fa;
  padding: 5px;
  text-align: center;
}

#search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

#search-input:focus {
  background-color: #e9ecef;
  border-radius: 20px;
}

.icon-container {
  align-items: center;
  gap: 15px;
}

.icon-item {
  background: rgb(48 124 61 / 80%);
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
  min-width: 50px;
  min-height: 50px;
  text-align: center;
}

.icon-item:hover {
  transform: scale(1.1);
  background: rgba(122, 207, 24, 0.4);
  backdrop-filter: blur(8px);
}

.wallet-balance {
  font-weight: bold;
  font-size: 18px;
}

.skiptranslate {
  color: transparent;
  text-shadow: none;
}

.skiptranslate select {
  color: initial;
}

.skiptranslate iframe {
  display: none;
}

.skiptranslate.goog-te-gadget {
  height: 51px;
  width: 100%;
  max-width: 155px;
  color: transparent;
}

.VIpgJd-ZVi9od-l4eHX-hSRGPd {
  display: none;
}

.goog-te-combo {
  padding: 12px 15px;
  border-radius: 5px;
  border: 0;
  background-color: #ffffff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: max-content;
  cursor: pointer;
  transition: all 0.3s ease;
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.goog-te-combo::after {
  content: " ▼";
  font-size: 16px;
}

.goog-te-combo:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: none;
}

.goog-te-combo:hover {
  border-color: #0056b3;
}

.goog-te-combo option {
  padding: 10px;
  background-color: #f8f9fa;
  color: #333;
  border: none;
}

.goog-te-combo option:hover {
  background-color: #007bff;
  color: #fff;
}

.mobile-header input::placeholder {
  font-size: 14px;
}

.mobile-bottom-nav i {
  font-size: 18px;
}

.mobile-bottom-nav small {
  font-size: 11px;
}

.mobile-header .top-bar i,
.mobile-header .top-bar .fa-wallet {
  font-size: 18px;
}

.mobile-header .top-bar .form-control {
  height: 30px;
}

.location-bar .form-control {
  font-size: 14px;
  height: 30px;
}

/* Navbar - End */

/* Footer - Start */

.footer {
  text-align: center;
  padding: 15px;
  background: #343a40;
  color: white;
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Footer - End */

/* Universal top with bottom */

.main-content {
  margin-top: 0;
}

/* Close */

/* Home - Start */

.category-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scroll-behavior: smooth;
}

.category-item {
  flex: 0 0 auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  min-width: 120px;
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-item img {
  border-radius: 50%;
  border: 3px solid #f0f0f0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.category-item div {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}

.category-container::-webkit-scrollbar {
  display: none;
}

.product-grid {
  padding: 2rem 0;
  background-color: #fff;
}

.product-card {
  padding-top: 5px;
  background: #fff;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #fff;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-details {
  padding: 1rem;
  flex-grow: 1;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #333;
  min-height: 42px;
}

.product-price {
  margin-top: 0.5rem;
}

.price-sale {
  color: #e63946;
  font-weight: bold;
  font-size: 1.1rem;
}

.price-original {
  text-decoration: line-through;
  color: #888;
  margin-left: 0.5rem;
}

.view-more-btn {
  border-radius: 50px;
  font-size: 1rem;
}

.discount {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Add a pulse effect animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.product-slider {
  scroll-behavior: smooth;
  display: flex;
  /* flex-wrap: wrap; */
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px;
}

.product-card {
  flex: 0 0 48%;
  box-sizing: border-box;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
}

.card-img-top {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Home - End */

/* Preview Product - Start */

#product-highlights {
  overflow-wrap: break-word;
  word-wrap: break-word;
  /* white-space: pre-wrap; maintain line breaks and wrap long text */
}

.quick {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.rating-badge {
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 5px;
}

.price-badge {
  background-color: #dc3545;
  color: white;
  padding: 2px 8px;
  font-weight: bold;
  border-radius: 5px;
  font-size: 14px;
}

.original-price {
  background-color: #ffc107;
  color: #000;
  padding: 2px 6px;
  text-decoration: line-through;
  border-radius: 5px;
  font-size: 13px;
}

.delivery-time {
  color: #28a745;
  font-size: 14px;
}

.super-saver {
  background-color: #28a745;
  color: white;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.super-saver .tag {
  background-color: #ffc107;
  color: #155724;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

.info-icon {
  width: 100%;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.info-icon:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  background-color: #f1f1f1;
}

.info-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.info-icon p {
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 0;
  color: #333;
}

.add-cart-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: white;
  border-top: 1px solid #ddd;
  z-index: 999;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #bbb;
  /* grey color */
  border: none;
  margin: 0 5px;
  opacity: 1;
}

.carousel-indicators .active {
  background-color: #444;
  /* darker grey for active dot */
}

#productCarousel .carousel-indicators {
  left: 34% !important;
}

.modal-bottom-sheet .modal-dialog {
  position: fixed;
  bottom: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  transition: all 0.3s ease-in-out;
}

.modal-bottom-sheet .modal-content {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.similar-swiper .swiper-slide {
  width: 160px !important;
  flex-shrink: 0;
}

.similar-swiper .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.similar-swiper .card:hover {
  transform: translateY(-4px);
}

/* Preview product - End */

/* Responsive Adjustments */
@media (max-width: 992px) {
  .icon-container {
    gap: 10px;
  }

  .main-content {
    margin-top: 110px;
    padding-bottom: 70px;
  }

  .add-cart-btn {
    bottom: 63px;
  }

  .icon-item {
    padding: 10px;
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .product-card {
    flex: 0 0 47%;
  }

  .product-slider {
    gap: 8px;
  }

  .text-danger {
    font-size: 1.25rem;
  }

  .text-muted {
    font-size: 1rem;
  }

  .mb-1 {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .nav-search-bar {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .product-image-wrapper {
    height: 70px;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-details {
    padding: 0.5rem;
  }
}

@media (max-width: 320px) {
  .nav-search-bar {
    display: none;
  }
}

@media (max-width: 575px) {
  .nav-search-bar {
    max-width: 50%;
  }
}
