/* Root variables for consistent styling */
:root {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --border-color: #888888;
  --text-primary: #ffffff;
  --text-secondary: #d4d5d9;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow: hidden scroll;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* .body-background {
  background-color: #3a3a3a;
} */

.Header {
  background-color: var(--secondary-bg);
  flex-direction: row;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tags,
ol {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

img {
  width: 25px;
  height: auto;
}

.more_font {
  font-size: 12px;
}

a {
  color: white;
  text-decoration: none;
  box-sizing: border-box;
  text-transform: capitalize;
}

.myntra_logo {
  width: 70px;
}

.search_bar {
  flex-grow: 1;
  max-width: 600px;
  margin: 0 20px;
}

.search_bar input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: lighter;
  border: 1px solid #696e79;
  background-color: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease-out;
}

.search_bar input:focus {
  outline: none;
  border: 1px solid #f5f5f6;
  background-color: var(--secondary-bg);
}

.profile,
.wishlist,
.bag {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile:hover,
.wishlist:hover,
.bag:hover {
  transform: scale(1.1);
}

.more {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

main {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-evenly;
  flex-direction: row;
}

footer {
  background-color: var(--secondary-bg);
  padding: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer_container {
  display: flex;
  justify-content: space-evenly;
  padding: 30px 0;
}

.footer_column {
  display: flex;
  flex-direction: column;
}

.footer_column h3 {
  color: #f5f5f6;
  font-size: 14px;
  margin-bottom: 25px;
}

.footer_column a {
  color: #d4d5d9;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 5px;
}

.copyright {
  color: #d4d5d9;
  text-align: end;
  padding: 15px;
}

.IMAGES {
  height: 250px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
}



.item_container {
  border-radius: 5px;
  box-sizing: border-box;
  border: 1px solid #ffffff2d;
  width: 250px;
  display: grid;
  padding: 10px;
  gap: 5px;
  position: relative;
}



.rating_reviews {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: start;
  align-items: center;
}

.reviews {
  font-size: 14px;
  font-weight: 600;
}

.ratings {
  font-size: 14px;
  font-weight: 600;
}

.brand_name {
  color: white;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: capitalize;
  font-weight: 600;
}

.item_name {
  color: white;
  font-size: 14px;
  overflow: hidden;
  text-transform: capitalize;
  font-weight: 300;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* .item_name:hover {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  position: absolute;
  background-color: var(--secondary-bg);
  padding: 5px;
  border-radius: 5px;
  z-index: 1;
  width: auto;
  max-width: 230px;
  /* Adjust as needed */
/* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
} */

.price_tags {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: start;
  align-items: center;
}

.final_price {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.original_price {
  font-size: 14px;
  font-weight: 400;
  display: flex;
  color: #b4b4b4;
  flex-direction: row;
  gap: 5px;
  text-decoration: line-through;
}


.percentile_cut {
  font-size: 13px;
  font-weight: 300;
  display: flex;
  color: rgb(255, 41, 41);
  flex-direction: row;
  gap: 3px;
  text-transform: capitalize;
}



.add_to_bag {
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  height: 35px;
  border: none;
  text-align: center;
  border-radius: 5px;
  background-color: rgb(0, 185, 0);
  color: white;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.add_to_bag:hover {
  background-color: transparent;
  color: #f5f5f5;
  border: 1px solid white;
  cursor: pointer;
}

.add_to_bag:disabled {
  background-color: transparent;
  color: rgb(0, 255, 0);
  border: 1px solid rgba(0, 255, 0, 0.671);
  cursor: default;
}

.Cart_items_count {
  position: absolute;
  color: rgb(0, 0, 0);
  min-width: 20px;
  /* min-height: 20px; */
  /* max-width: 30px;
  max-height: 30px; */
  padding: 4px;
  background-color: rgb(255, 255, 255);
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  font-weight: 500;
  align-items: center;
  border-radius: 50px;
  margin-bottom: 35px;
  margin-left: 20px;
  font-size: 13px;
}


.remove_from_bag {
  width: 20px;
  transition: transform 0.1s ease-in-out;
  box-sizing: border-box;
}

.remove_icon_wrapper {
  position: relative;
  display: inline-block;
  /* Ensures wrapper only takes up space of content */
  cursor: pointer;
}

.remove_from_bag_overlay {
  position: absolute;
  bottom: 62px;
  /* Position below the icon */
  /* top: -100%; */
  /* Position above the icon */
  left: 20%;
  transform: translateX(-125%);
  white-space: nowrap;
  padding: 4px 8px;
  background-color: rgb(255, 255, 0);
  color: black;
  font-size: 12px;
  border-radius: 50px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  /* transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; */
  /* z-index: 1;  */
}

.remove_icon_wrapper:hover .remove_from_bag_overlay {
  opacity: 1;
  visibility: visible;
  box-sizing: border-box;
}

.remove_icon_wrapper:hover .remove_from_bag {
  box-sizing: border-box;
  transform: scale(1.2);
}

/* .remove_icon_wrapper {
  display: flex;
  flex-direction: column;
} */