/* ===== MAIN CONTENT ===== */

main {
  display: flex;
  height: var(--height);
  direction: ltr;
  background-color: var(--bg-primary);
  justify-content: center;
  align-items: center;
}
main .backgroundImage {
  width: 100%;
  height: var(--height);
  background-size: cover;
  position: absolute;
  /* transform: scaleX(-1); */
}
main .section {
  height: var(--height);
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  transition-duration: 1s;
  background-image: url(../../pictures/mainLeftPic.jpg);
  background-size: cover;
  filter: blur(3px) grayscale(0.3);
  z-index: 1;
}
main .womanSection {
  justify-content: flex-start;
  background-image: url(../../pictures/mainRightPic.jpg);
}

main .buttonBox {
  flex-direction: column;
  padding: 15px 30px;
  cursor: pointer;
  display: flex;
  z-index: 4;
  animation: zoomIn 0.5s;
}

main .buttonBoxMan {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 15px 0px 0px 15px;
  position: absolute;
  right: 50%;
}
main .buttonBoxMan:hover {
  box-shadow: 0px 0px 7px 0px gold;
}

main .buttonBox strong:nth-of-type(1) {
  text-align: right;
  font-size: 1.3em;
}
main .buttonBox:hover strong:nth-of-type(1) {
  scale: 1.15;
  translate: -10% 0px;
}
main .buttonBox:hover strong:nth-of-type(2) {
  scale: 1.15;
  translate: 10% 0px;
}

main .buttonBox:hover strong:nth-of-type(3) {
  translate: -10% 0px;
  text-shadow:
    0px 0px 5px gold,
    0px 0px 6px gold,
    0px 0px 7px gold;
}
main .buttonBox strong:nth-of-type(3) {
  font-size: 4em;
  line-height: 50px;
  margin-top: 10px;
  rotate: 180deg;
  text-align: center;
  display: none;
}

main .buttonBoxWoman {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 0px 15px 15px 0px;
  position: absolute;
  left: 50%;
}
main .buttonBoxWoman:hover {
  box-shadow: 0px 0px 7px 3px gold;
  z-index: 1;
}

main .buttonBoxWoman strong:nth-of-type(1) {
  text-align: left;
}
main .buttonBoxWoman:hover strong:nth-of-type(1) {
  translate: 10% 0px;
}
main .buttonBoxWoman strong:nth-of-type(2) {
  text-align: right;
}
main .buttonBoxWoman:hover strong:nth-of-type(2) {
  translate: -10% 0px;
}
main .buttonBoxWoman:hover strong:nth-of-type(3) {
  translate: 10% 0px;
}
main .buttonBoxWoman strong:nth-of-type(3) {
  rotate: 0deg;
}

/* Side Images */
main .side {
  height: var(--height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.52, -0.59, 0.23, 1.41);
  z-index: 2;
}
main .rightSide {
  right: 0px;
}
main .leftSide {
  left: 0px;
}

main .side img {
  width: 100px;
  height: 20%;
  margin: 20px;
  border-radius: 10px;
}
.womanActive .backgroundImage {
  background-image: url("../../pictures/mainRightPic.jpg");
  background-size: cover;
  filter: blur(var(--blur-amount)) grayscale(var(--grayscale-amount));
}
.womanActive .buttonBoxWoman {
  left: 0px;
  top: calc(var(--headerHeight) + 40px);
}
.womanActive .buttonBoxWoman strong:nth-child(1) {
  display: none;
}
.womanActive .buttonBoxWoman strong:nth-child(3) {
  display: inline-block;
}
.womanActive .buttonBoxMan {
  opacity: 0;
  right: 0px;
}

.womanActive .manSection {
  opacity: 0;
  translate: 200% 0px;
}

.womanActive .womanSection {
  opacity: 0;
  transition-delay: 0.15s;
  transition-duration: 1.5s;
  translate: 100% 0px;
}
.womanActive .leftSide,
.manActive .leftSide {
  opacity: 1;
  translate: -100% 0px;
  transition-delay: 0.1s;
}
.womanActive .rightSide,
.manActive .rightSide {
  opacity: 1;
  translate: +100% 0px;
  transition-delay: 0.1s;
}

.manActive .backgroundImage {
  background-image: url("../../pictures/mainLeftPic.jpg");
  background-size: cover;
  filter: blur(var(--blur-amount)) grayscale(var(--grayscale-amount));
}
.manActive .buttonBoxMan {
  right: 0px;
  top: calc(var(--headerHeight) + 40px);
}
.manActive .buttonBoxMan strong:nth-child(1) {
  display: none;
}
.manActive .buttonBoxMan strong:nth-child(3) {
  display: inline-block;
}
.manActive .buttonBoxWoman {
  opacity: 0;
  left: 0px;
}

.manActive .manSection {
  opacity: 0;
  translate: 200% 0px;
  transition-delay: 0.15s;
  transition-duration: 1.5s;
}

.manActive .womanSection {
  opacity: 0;
  translate: 100% 0px;
}

main .products {
  position: absolute;
  z-index: 0;
  width: 60%;
  height: var(--height);
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: start;
  flex-wrap: wrap;
  padding-bottom: 40px;
  overflow: auto;
  direction: rtl;
}

main .products::-webkit-scrollbar {
  display: none;
}
main .products .product {
  border: 1px solid var(--border-color);
  width: var(--productWidth);
  height: var(--productHeight);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px;
  animation: zoomIn 0.5s;
}

main .products .product img {
  width: 100%;
  height: 100%;
}
main .products .product .cover {
  width: 100%;
  height: 100%;
  position: absolute;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0) 0%,
    rgba(26, 25, 26, 0) 60%,
    rgba(43, 42, 43, 0.7) 100%
  );
}
main .products .product .textSection {
  width: 80%;
  font-size: 0.85em;
  font-weight: bold;
  text-align: right;
  position: absolute;
  bottom: 0px;
  color: white;
  margin: 17px;
  border-top: 1px solid;
  transition-duration: 1s;
}
body.dark-mode main .products .product .textSection {
  color: white;
}
main .products .product:hover img {
  filter: grayscale(2);
}

main .products .product .textSection::after {
  content: "";
  width: 0px;
  height: 1px;
  background-color: palevioletred;
  position: absolute;
  top: -1px;
  left: 0px;
  z-index: 100;
  transition-duration: 1s;
}
main .products .product:hover .textSection::after {
  width: 100%;
}
.manActive .products .product .textSection::after {
  background-color: rgba(0, 0, 255, 0.6);
}
main .products nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
main .products nav span {
  width: 40px;
  height: 40px;
  border: 1px var(--border-color) solid;
  border-radius: 50%;
  margin: 10px;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
  cursor: pointer;
}
body.dark-mode main .products nav span {
  background-color: rgba(0, 0, 0, 0.2);
}
main .products nav span:hover {
  border: 1px rgba(0, 0, 255, 0.6) solid;
}
.navItemActive {
  background-repeat: no-repeat;
  background-image: linear-gradient(black 50%, #ccc);
  border-color: black !important;
  color: white;
}
body.dark-mode .navItemActive {
  background-image: linear-gradient(white 50%, #333);
  border-color: #333 !important;
  color: black;
}

/* @keyframes zoomIn {
  0% {
    scale: 0;
  }
  100% {
    scale: 1;
  }
}
@keyframes enterFromRight {
  from {
    translate: 120% 0px;
  }
  to {
    translate: 0px 0px;
  }
}
@media screen and (max-width: 1299px) {
  main .products {
    width: 68%;
  }
}
@media screen and (max-width: 1200px) {
  header #rightHeader nav a {
    font-size: 0.6em;
    width: 130px;
    margin-top: 20px;
  }
  header #leftHeader .logo {
    width: 120px;
    margin-top: 15px;
  }

    left: 5px;
    top: -42px;
    margin-bottom: 0;
    z-index: 4;
    height: calc(var(--productHeight) * 0.85);
  }
}
    width: 100%;
    justify-content: center;

@media screen and (max-width: 991px) {
  header .hambergerMenu {
    margin-left: 0;
  }
  header #rightHeader nav {
    display: none;
  }
  header #leftHeader .logo {
    width: 100px;
    margin-top: 15px;
  }
  header {
    justify-content: space-between;
  }

  #searchSection img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  header #rightHeader #searchSection .search input.active {
    width: 150px; 
  }

  main .buttonBox {
    font-size: 0.8em;
  }

  .modal .container .leftAndRightModal {
    font-size: 0.8em;
  }
  .modal .container .leftAndRightModal .left img {
    scale: 0.8;
  }
  .modal .container .contactUs {
    width: 600px;
  }
  .modal .contactUs .contactSection h3 {
    font-size: 0.9em;
  }
  .modal .contactUs .contactSection span {
    font-size: 0.7em;
  }
}

@media screen and (max-width: 767px) {
  header .leftAndRightHeader {
    flex-direction: column;
    flex-flow: column-reverse;
  }
  header #leftHeader {
    width: 100%;
    justify-content: center;
    padding: 0 10px;
    position: relative;
  }
  header #leftHeader .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  header #leftHeader .logo:hover {
    transform: translateX(-50%) scale(1.02); 
  }


  .controls {
    margin-left: 0;
    position: absolute;
    left: 10px;
    margin-bottom: 50px;
  }

  header #rightHeader #searchSection {
    gap: 10px;
  }
  header #rightHeader #searchSection img {
    margin-left: 10px;
  }
  header #rightHeader #searchSection .search {
    font-size: 0.8em;
    margin-right: -10px;
  }
  header #rightHeader #searchSection .search input {
    max-width: 150px;
    margin-right: 0px;
  }
  header #rightHeader #searchSection .search input.active {
    width: 150px;
  }

  main .products {
    width: 70%;
  }
  main .side {
    display: none;
  }
  main .products .product {
    width: calc(var(--productWidth) * 0.7);
    height: calc(var(--productHeight) * 0.7);
    margin: 10px;
  }
  .womanActive {
    justify-content: end;
  }
  .manActive {
    justify-content: start;
  }
  .womanActive .buttonBox {
    top: var(--headerHeight);
  }
  .manActive .buttonBox {
    top: var(--headerHeight);
  }

  .modal .container .leftAndRightModal {
    flex-direction: column-reverse;
    overflow: auto;
    height: 100%;
  }
  .modal .left {
    padding: 0px;

    height: 45%;
  }
  .modal .right {
    height: 55%;
  }
  .modal .container {
    width: 95%;
    padding: 15px;
    padding-top: 50px;
  }
  .modal .container .contactUs {
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .modal .contactUs .contactSection {
    width: 100%;
    height: 300px;
    margin: 10px 0;
  }
  .modal .contactUs .contactSection h3 {
    font-size: 0.8em;
  }
  .modal .contactUs .contactSection span {
    font-size: 0.6em;
  }
  .modal .aboutUs {
    width: 100%;
  }
  .modal .aboutUs .leftAndRightAboutUs {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }
  .modal .aboutUs #leftAboutUs {
    margin-right: 0;
    margin-top: 0;
    font-size: 1.5em;
  }
  .modal .aboutUs #leftAboutUs img {
    width: 120px;
    height: auto;
  }
  .modal .aboutUs #rightAboutUs {
    font-size: 0.65em;
    padding: 0 10px;
    text-align: right;
  }
  .modal .loginForm {
    position: relative;
    padding-top: 120px;
    margin-top: 50px;
  }
  .modal .loginForm .loginIcon {
    width: 100px;
    height: 100px;
    font-size: 3em !important;
    top: 10px;
    left: calc(50% - 50px);
  }
}

@media screen and (max-width: 533px) {
  main .products {
    width: 75%;
  }
  .modal .container .leftAndRightModal {
    font-size: 0.8em;
  }
  .modal .contactUs .contactSection {
    height: 250px;
  }
  .modal .contactUs .contactSection .icon {
    width: 70px;
    height: 70px;
    font-size: 1.3em;
  }
  .modal .contactUs .contactSection:hover .icon {
    top: -35px;
  }
  .theme-toggle span,
  .lang-toggle span {
    display: none;
  }
  .theme-toggle,
  .lang-toggle {
    padding: 8px 10px;
  }
} */
