:root {
  --background-color: #dad7cd;
  --cart-background-color: #adc7a988;
  --text-color2: #f0f8ff;
  --text-color1: black;
  --text-color3: #083a18;
  --text-color4: gray;
  --headr-bar-color: #3a5a45;
  --helper-color: #578164;
  --helper-color-1: #57816473;
  --nav-color: linear-gradient(
    to right,
    var(--helper-color),
    var(--headr-bar-color),
    var(--helper-color-1)
  );
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark-mod {
  --background-color: #121212;
  --cart-background-color: #2b2e3188;
  --text-color1: #e0e7e0;
  --text-color2: #ffffff;
  --text-color3: #22ee63;
  --text-color4: rgb(221, 221, 221);
  --headr-bar-color: #0f1414;
  --helper-color: #000000;
  --helper-color-1: #242424;
  --nav-color: linear-gradient(
    to right,
    var(--helper-color),
    var(--headr-bar-color),
    var(--helper-color-1)
  );
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
/*header*/
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: var(--background-color);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}

#active {
  border-bottom: 2px solid white;
  border-width: fit-content;
}
.nav-bar {
  background-color: var(--headr-bar-color);
  display: flex;
  align-items: center;
  width: 90%;
  margin: 15px auto 0; 
  border-radius: 15px;
  background-image: var(--nav-color);
  justify-content: space-between; 
  padding: 0 2rem;
}
.logo {
  padding: 1.1rem;
  font-size: 32px;
  font-weight: bolder;
  color: var(--text-color2);
  justify-items: flex-start;
  flex: 1;
  text-align: canter;
}
.nav-list {
  color: var(--text-color2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-right: auto;
  justify-items: center;
}
.home {
  color: var(--text-color2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-right: auto;
  justify-items: center;
  margin-right: 5vw;
}
.list-item {
  padding: 2rem;
  font-size: large;
  font-weight: bold;
  display: inline-block;
  transition: all 0.5s ease;
}

.list-item:hover {
  transform: translateY(-4px);
  color: var(--text-color3);
}
.icons {
  display: flex;
  align-items: center;
  gap: 2vw;
  flex: 1;
  justify-content: flex-end; 
  margin-right: 0;
}
.icons svg {
  fill: var(--text-color2) !important;
  transition: all 0.5s;
  display: flex;
  justify-content: flex-end;
  width: 24px;
  height: 24px;
}
.icons svg:hover {
  transition: 0.5s;
  transform: translateY(-4px);
  fill: var(--text-color3) !important;
}
.icons a {
  text-decoration: none;
  display: flex;
  justify-content: center;
}
#faq-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0 10px;
  transition: 0.3s;
}

#faq-link:hover {
  color: var(--text-color3);
  opacity: 0.8;
}

/*theme button*/
#theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border: 50%;
  border-radius: 100px;
  background-color: var(--helper-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 10px;
  margin-right:0 ;
  flex-shrink: 0;
}
#theme-switch img {
  fill: var(--background-color);
}
#theme-switch img:last-child {
  display: none;
}
.dark-mod #theme-switch img:first-child {
  display: none;
}
.dark-mod #theme-switch img:last-child {
  display: block;
}

/* category section */

.category-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 98%;
  margin: 2rem auto;
  gap: 30px;
}
.category-container {
  display: flex;
  flex-direction: column;
  flex: 0 0 250px;
  position: sticky;
  top: 2rem;
  gap: 1.5rem;
  padding-left: 40px;
  padding-top: 1.4em;
  background: var(--cart-background-color);
  border-radius: 20px;
  box-shadow: 0 4px 8px var(--text-color1);
  padding-bottom: 40px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.category-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 0px 10px var(--text-color1);
}
.category-container h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--text-color1);
  border-bottom: 2px solid var(--text-color3);
  width: fit-content;
  padding-bottom: 5px;
}

.category-container a {
  display: flex;
  flex-direction: column;
  padding: 7px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  font-size: 0.95rem;
  color: var(--text-color1);
  transition: var(--transition);
}
.category-container a:hover {
  background: var(--text-color3);
  color: var(--text-color2);
  padding-left: 25px;
  text-decoration: none;
}

.product {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  row-gap: 40px;
  width: 100%;
  padding-top: 33px;
  padding-left: 30px;
}
.product-card {
  width: 250px;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 20px;
  padding-bottom: 10px;
  background-color: var(--cart-background-color);
  transition: var(--transition);
  box-shadow: 0 4px 8px var(--text-color1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.product-container::before {
  content: "OUR COLLECTION";
  display: block;
  font-size: 2rem;
  color: var(--text-color3);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: var(--text-color1);
}
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition:
    all 0.6s ease,
    opacity 0.4s ease;
}
.product-card p {
  font-weight: bold;
  font-size: 1.2rem;
  margin: auto;
  color: var(--text-color2);
}
.product-card a {
  background: var(--cart-background-color);
  color: var(--text-color1);
  border: 1px solid var(--text-color1);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: 0.3s;
}
.add-to-cart-btn {
  background: var(--cart-background-color);
  color: var(--text-color1);
  border: 1px solid var(--text-color1);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: 0.3s;
  cursor: pointer;
  font-family: inherit;
}

.add-to-cart-btn:hover {
  background-color: var(--text-color3);
  color: var(--text-color2);
  border-color: transparent;
}
/*the note */
.cart-note {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--headr-bar-color);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: bold;
  z-index: 10;
  transition: all 0.4s ease;
  pointer-events: none;
}

.cart-note.show {
  opacity: 1;
  transform: translateY(0);
}
.product-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
}
.product-card a:hover {
  background-color: var(--text-color3);
  color: var(--text-color2);
  border-color: transparent;
}
.imge-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}
.imge-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.imge-wrap img:first-child {
  opacity: 1;
  z-index: 2;
}
.imge-wrap img:last-child {
  opacity: 0;
  z-index: 1;
}
.imge-wrap:hover img:first-child {
  transform: scale(1.1);
}
.imge-wrap:hover img:last-child {
  opacity: 1;
  transform: scale(1.1);
  z-index: 3;
  .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
  }

  .social-circle {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .social-circle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }

  .social-circle:hover {
    transform: translateY(-5px);
  }
  .social-circle:hover svg {
    fill: white;
  }
}
/*discount*/
.price-box {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
}


.current-price {
  color: var(--text-color3) !important; 
  font-size: 1.2rem;
}


.original-price {
  color: var(--text-color4);
  text-decoration: line-through;
  font-size: 0.9rem;
  font-weight: normal;
}


.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff1010; 
    color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  z-index: 5;
  font-size: 0.8rem;
}

/* زرار ال scroll */
#up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(to right, #578164, #3a5a45);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: none; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}

#up:hover {
  transform: scale(1.1);
  background: black;
}
