@media (min-width: 900px) {
  .product-imgbox {
    width: 100%;
  }

  .product-front {
    height: 200px;
  }
}

.mar {
  margin: none;
  background-color: rgb(228 125 8);
  color: white;
  padding: 5px;
}

.mar img {
  width: 30px;
}

.dark-menu-item {
  padding: 15px;
  text-align: center;
}

.mobile-user {
  padding: 15px;
}

.mobile-user:hover {
  background-color: black;
  border-radius: 50px;
}

.mobile-wishlist {
  padding: 15px;
  text-align: center;
}

.mobile-wishlist:hover {
  background-color: black;
  border-radius: 70px;
}

.contact {
  text-decoration: none;
  color: white;
}

.contact:hover {
  text-decoration: none;
}

@media (min-width: 900px) {
  .mega-box {
    display: flex;
    padding-right: 250px;
    width: 100%;
    text-align: left;
    max-width: 900px;
    word-wrap: break-word;
  }

  .link-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    /* Set maximum width */
    padding: 10px;
    word-wrap: break-word;
    /* Ensure text wrapping */
  }

  .menu-title {
    margin-bottom: 10px;
    word-wrap: break-word;
    /* Ensure text wrapping */
  }

  .menu-title h5 {
    font-size: 18px;
    margin: 0;
    word-wrap: break-word;
    /* Ensure text wrapping */
  }

  .menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    word-wrap: break-word;
    /* Ensure text wrapping */
  }

  .menu-content li {
    margin-bottom: 5px;
    word-wrap: break-word;
    text-wrap: auto;
    /* Ensure text wrapping */
  }

  .menu-content li a {
    text-decoration: none;
    color: #333;
    display: block;
    text-wrap: auto;
    /* Ensures the link takes the full width of the li */
    word-wrap: break-word;
    /* Ensure text wrapping */
  }

  .menu-content li a:hover {
    text-decoration: underline;
  }
}

.flag-img {
  width: auto;
  height: 60px;
}

@media (max-width: 575px) {
  .users {
    right: 17% !important;
    margin-top: 3px;
  }
}

.category-header .navbar-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: relative;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 9;
}

.input-block .input-box .big-deal-form {
  margin: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

.category-header .navbar-menu .category-left {
  display: flex;
}

/* New Product CSS */
/* Parent Container for Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  ); /* Responsive grid layout */
  gap: 20px; /* Space between cards */
}

.product-box {
  /* direction: rtl */
}
/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  background-color: #fff;
}

/* Image Box */
.product-imgbox {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Ensures square images */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  overflow: hidden;
}

.product-front,
.product-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-front img,
.product-back img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Ensures images fill the box without distortion */
  height: auto;
}

.product-back,
.product-imgbox:hover .product-front {
  opacity: 0;
}

.product-imgbox:hover .product-back {
  opacity: 1;
}

/* Product Details */
.product-detail {
  flex-grow: 1; /* Ensures details stretch to fill remaining space */
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Spacing between title, price, and icons */
}

.price-title {
  font-weight: 600;
  margin: 0;
  color: #9ACD32;
  font-size: 16px;
  overflow: hidden; /* Truncate long titles */
}

.price {
  font-size: 18px;
  margin: 10px 0;
}

.icon-detail {
  margin-top: auto; /* Pushes icons to the bottom */
  display: flex;
  justify-content: center;
  gap: 10px;
}

.price-price-title {
  margin: 2px 0;
  color: #9ACD32;
  font-weight: 600;
}

.detail-title {
  min-height: 5rem;
  max-height: 5rem;
  text-overflow: ellipsis;
  align-content: flex-end;
}
.detail-title-excp {
  min-height: 7rem;
  max-height: 7rem;
  text-overflow: ellipsis;
  align-content: flex-end;
}
/* Media Queries for Responsiveness */

@media (max-width: 1200px) {
  .price-title {
    font-size: 14px;
  }

  .price {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .price-title {
    font-size: 13px;
  }

  .price {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .price-title {
    font-size: 12px;
  }

  .price {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .price-title {
    font-size: 11;
  }

  .price {
    font-size: 12px;
  }
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 4px !important;
}

.product-iconX {
  -webkit-transform: perspective !important;
  transform: none !important;
  right: 0px;
}

.canceled {
  color: red;
}

.async {
  loading: lazy; /* Lazy load images */
}