@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
body {
  font-family: "Roboto", sans-serif;
}
.opis {
  text-align: center;
  font-size: 1.2rem;
  margin: 5rem 1rem;
  font-weight: 300;
  color: #1f4127;
  text-transform: uppercase;
  line-height: 1.6rem;
  letter-spacing: 0.6px;
}
.products-list {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.products {
  /* background-color: aquamarine; */
  display: flex;
  max-width: 1400px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.item {
  height: 40rem;
  width: 25rem;
  margin: 2rem;

  /* background-color: antiquewhite; */
  position: relative;
}

/* .item.item-detelina-sa-4-lista::before {
  content: "";
  background: url(/img/srcici.png);
  position: absolute;
  width: 200px;
  height: 200px;
  z-index: 3;
  background-size: contain;
  background-repeat: no-repeat;
  left: -50px;
  transform: scaleX(-1);
  top: -57px;
} */
@media screen and (max-width: 786px) {
  .item.item-7::before {
    width: 120px;
    height: 120px;
    left: -25px;
    top: -45px;
  }
}

.item.item-kalifornijska-palma a h2 {
  font-size: 2.5rem;
  width: 100%;
}
.item.item-primorska-pomorandza a h2 {
  font-size: 2.7rem;
  width: 100%;
}
.item.item-0 h3 {
  margin-bottom: 9px;
}

.item::after {
  content: "";
  position: absolute;
  height: 90%;
  width: 86%;
  bottom: 5%;
  left: 7%;
  border: 1px solid #000000;
  z-index: 2;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 10%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 1) 100%
  );
}

.item-container {
  font-weight: 300;
  height: 90%;
  width: 100%;
  background-color: #e2e5d8;
  display: flex;
  flex-direction: column;
}

.item-img {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #1f4127;
  position: relative;
  display: grid;
  place-items: center;
}
.item-img img {
  position: absolute;
  width: auto;
  height: 100%;
  z-index: 1;
  transition: height 1s ease;
}
.item:hover .item-img img {
  transition: height 7s ease;
  height: 120%;
}
.item-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.item-desc {
  letter-spacing: 0.5px;
  font-weight: 400;
  height: 100%;
  width: 100%;
  /* background-color: #e2e5d8; */
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.item-desc a,
.item-desc h4,
.item-desc p {
  text-align: center;
  padding: 0 1rem;
  color: #1f4127;
}
.item-desc a {
  cursor: pointer;
}

.item-desc .cena {
  position: absolute;
  top: 45px;
  right: 35px;
  color: white;
}

.item-desc .cena .discounted {
  color: #f26262;
  text-decoration: line-through;
  position: relative;
}
.item-desc .cena.preorder::after {
    content: "PREORDER";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    color: #fff;
    background: #e7edc8;
    color: #1f4127;
    padding: 2px 10px;
}
.item-desc .cena.sale::after {
    content: "AKCIJA -40%";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    color: #fff;
    background: #e7edc8;
    color: #1f4127;
    padding: 2px 10px;
}

.item-desc a {
  margin-top: 40%;
}
.item-desc h3,
.item-desc h2 {
  color: white;
}
.item-desc .description {
  margin: 0 2rem 1rem 2rem;
  text-align: center;
}
.item-desc p {
  text-align: center;
  color: #1f4127;
  margin-bottom: 1rem;
}
.item-desc::before {
  content: "";

  position: absolute;
  display: inline-block;
  width: 220px;
  height: 220px;
  bottom: 100px;
  z-index: 1;
  background: url(/img/sta-sve-sadrzi-kutija-sm.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.item-desc.dnevnik::before {
  background: url(/img/proizvodi/dnevnik/dnevnik-prod-mala.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 180px;
  height: 180px;
  bottom: 110px;
}
.item-desc.kako-da-rastes::before {
  background: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 180px;
  height: 180px;
  bottom: 110px;
}

.item-desc.moja-mpb::before {
  background: url(/img/kutija-v2.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 180px;
  height: 180px;
  bottom: 110px;
}

.item-desc p,
.item-desc h4 {
  font-size: 1.2rem;
}

.item-desc a h2 {
  text-align: center;
  font-size: 3rem;
  line-height: 3rem;
  transition: all 0.3s ease;
}
@media screen and (max-width: 786px) {
  .item-desc::before {
    width: 180px;
    height: 190px;
    bottom: 110px;
  }
  .item-desc.dnevnik::before {
    width: 150px;
    height: 150px;
    bottom: 110px;
  }
  .item-desc p {
    font-size: 1rem;
  }
}
.item:hover .item-desc a h2 {
  transform: scale(1.1);
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 35px 30px rgba(0, 0, 0, 0.1);
}
.item-desc a h3 {
  font-size: 0.7rem;
  line-height: 0.2rem;
  z-index: 1;
  position: relative;
}

.item.sale

.vidi-i-korpa {
  display: flex;
  justify-content: space-between;
}

.vidi-vise-btn {
  text-decoration: underline;
  width: fit-content;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 1.2rem;

  margin-bottom: 1rem;
  /* text-decoration: underline; */
  transition: color 0.1s linear;
}

.vidi-vise-btn:hover {
  color: #3e834e;
}
.sold-out {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  background-color: #d12a2a;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.add-to-cart {
  position: absolute;
  width: 70%;
  bottom: 10px;
  left: 15%;
  cursor: pointer;
  z-index: 3;
}

@media screen and (max-width: 786px) {
  .item {
    height: 35rem;
  }
  .item-desc::before {
    height: 130px;
    bottom: 150px;
  }
}
