/*
=============== 
Fonts
===============
*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap");

/*
=============== 
Variable
===============
*/
:root {
  --secondaryColor: #30383d;
  --whiteColor: #fff;
  --blackColor: #000;
  --darkBlue: #2d3742;
  --grayBlue: #596870;
  --grayWhiteBlue: #7e92a1;
  --lightGray: #acb5be;
}

/*=============== Global Styles===============*/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Open Sans", sans-serif;
}
@media screen and (min-width: 1600px) {
  body {
    width: 80%;
    margin: 0 auto;
  }
}
@media screen and (min-width: 2200px) {
  body {
    width: 60%;
    margin: 0 auto;
  }
}

a {
  text-decoration: none;
  color: var(--blackColor);
}
li {
  list-style-type: none;
}
header {
  display: flex;
  position: relative;
  background: var(--whiteColor);
  padding: 0.8em 1.2em;
  width: 100%;
  top: 0;
  align-items: center;
}
nav {
  display: flex;
  align-items: center;
}

/*=============== Global classes ===============*/

.logo {
  font-size: 1.5rem;
  color: var(--darkBlue);
  font-weight: 800;
}

/* ul element inside nav element */
.nav-links {
  position: fixed;
  overflow-y: scroll;
  z-index: 2;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: var(--grayBlue);
}

/* main navigation buttons */
.main-links {
  font-size: 1.3em;
  color: var(--whiteColor);
  display: block;
  width: 100%;
  padding: 1em 2em;
  text-transform: uppercase;
  text-align: left;
}
.main-links:hover {
  background: #7e92a1;
}
/* burger menu img */
.menu {
  position: fixed;
  width: 40px;
  float: right;
  top: 0;
  right: 0;
  z-index: 1;
  margin: 0.8em 1.2em;
}

/* burger menu exit(li element)*/
.exit-btn {
  text-align: right;
  padding: 0.5em 1em;
}

/* burger menu exit img */
.exit-menu {
  width: 40px;
  height: 40px;
}

/* class of ul element of nav. To hide and show menu*/
.hide-mobile {
  display: none;
}

/* ul element inside .main-links's li element */
.dropdown {
  position: relative;
  width: 100%;
  display: none;
  background: var(--lightGray);
  transition: 0.3s;
  z-index: 3;
}
/* on hover to add this class to .dropdown and display dropdown items */
.display-dropdown {
  display: block;
}
/* dropdown buttons */
.dropdown li {
  text-transform: capitalize;
  line-height: 2em;
  text-align: center;
}
.dropdown li:hover {
  background: #f0f0f0;
}
.dropdown li a {
  font-size: 1em;
  color: #262e37;
}

/* =====
path of the location on the page
==== */
.shop-path {
  position: relative;
  display: block;
  font-weight: 600;
  text-transform: capitalize;
  top: 2em;
  border-bottom: 2px solid #262e37;
  margin: 0.5em;
}
.shop-path > h5 {
  font-size: 1.4rem;
  padding: 0.8em;
}

/* 
=====
aside element -> (.sidebar) to choose preffered shoes size
=====
*/
.sidebar {
  width: 100%;
  position: relative;
  top: 3em;
}
.sidebar > details > summary {
  text-transform: capitalize;
  cursor: pointer;
  color: #272938;
  list-style-type: none;
  padding: 0.4em 1em;
  width: 100%;
  font-weight: 500;
  font-size: 1.5rem;
  background: var(--lightGray);
}
.arrow {
  margin-left: 0.5em;
  width: 25px;
  animation: rotateBack 0.3s;
}

@keyframes rotateBack {
  from {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.sidebar > details[open] .arrow {
  transform: rotate(180deg);
  animation: rotate 0.3s;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

/* div inside details elemet */
.inside-sidebar-details {
  padding: 1em 1em 1em 2em;
  background: #d4dfe6;
}

/* label element inside details element */
.shoes-sizes {
  font-size: 1.8rem;
  line-height: 1.8em;
  font-weight: 400;
  color: #272938;
}
[type="checkbox"] {
  width: 23px;
  height: 23px;
  margin-right: 0.5em;
}

/* =========================
shoes container
======================
 */
.shoes-container {
  position: relative;
  top: 3em;
  margin-bottom: 4em;
}

/* div(.price-sort)  */
.price-sort {
  text-align: left;
  margin: 1em 1em 1em 1.6em;
}
.price-sort p {
  display: inline;
  font-size: 1.4rem;
  font-weight: 600;
}
.price-sort select {
  font-size: 1.2rem;
  width: 200px;
  padding: 0.5em;
  border: unset;
  margin: 0.5em;
  margin-bottom: 3em;
}
.price-sort select:focus {
  outline: unset;
}

/* products articles container */
.products-container {
  display: grid;
  /* gap: 1rem; */
  grid-gap: 8px 8px;
  grid-template-columns: repeat(auto-fit, 400px);
  justify-content: center;
}

/* article element inside products */
.product {
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid #f2f2f2;
  padding: 1em;
  text-align: center;
}

.product-img {
  width: 60%;
  object-fit: contain;
}
.product footer {
  text-align: center;
  margin: 1em;
  grid-column: 1 / span 4;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.8em;
}
.product-category {
  color: #8d8d8d;
}
.product-name {
  padding: 0.5em;
  font-size: 1rem;
  text-transform: capitalize;
}
.product-name:hover {
  color: #e98f4a;
}
#load-more {
  font-size: 2rem;
  margin: 3em;
}
/* ====== */

/* -- part of footer -- */
.footer-container {
  /* width: 80%; */
  background-color: var(--secondaryColor);
  text-align: center;
  padding: 1em;
  border-radius: 40px 40px 0 0;
  margin-top: 10em;
}
.footer-logo {
  color: #f5f5f5;
  display: block;
}
.footer-links li {
  display: inline-block;
}
.footer-links li a {
  text-decoration: underline;
  color: #92a4ad;
  font-size: 0.8rem;
}

/*
=========
for better desktop experience 
========= 
*/
/* =========
@MEDIA SCREEN...
============ */

@media screen and (min-width: 930px) {
  .menu {
    display: none;
  }
  .exit-btn {
    display: none;
  }
  /* 
  =====================
  navigation part
  =====================
  */
  header,
  .nav-li-elements {
    height: 60px;
  }
  header {
    position: fixed;
    background: white;
    z-index: 2;
  }
  nav {
    display: block;
    align-items: unset;
  }

  .nav-links {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 4em;
    background: unset;
    z-index: unset;
    overflow-y: unset;
  }

  .nav-li-elements {
    background: var(--whiteColor);
    cursor: pointer;
    display: flex;
    position: relative;
    align-items: center;
  }
  .nav-li-elements:hover {
    background: #f0f0f0;
  }

  .main-links {
    font-size: 0.85rem;
    color: var(--blackColor);
    padding: 0em 3.8em;
    font-weight: 600;
  }
  .main-links:hover {
    background: unset;
  }

  .dropdown {
    position: absolute;
    display: inline;
    width: 100%;
    flex-wrap: wrap;
    visibility: hidden;
    top: -500%;
    padding-top: 5px;
    z-index: -1;
    background: white;
  }
  .nav-li-elements:hover .dropdown {
    visibility: visible;
    top: 100%;
  }
  .dropdown li {
    text-align: left;
  }
  .dropdown li a {
    display: inline-block;
    height: 100%;
    width: 100%;
    padding-left: 14px;
  }

  /* 
  =====================
  sidebar part
  =====================
  */
  .sidebar {
    position: fixed;
    width: 280px;
    height: 80%;
    margin: 2em;
    top: 120px;
    display: flex;
    left: 3%;
  }

  .sidebar > details > summary {
    font-size: 0.99rem;
    background: #d6e0ee;
    padding-left: 1.5em;
    padding-right: 1.5em;
    border-radius: 5px;
    /* border-bottom: 2px solid var(--darkBlue); */
    /* background: var(--whiteColor); */
  }
  .arrow {
    width: unset;
  }
  .inside-sidebar-details {
    margin: 0.5em 0;
    overflow-y: scroll;
    height: 80%;
    width: 100%;
    background: var(--whiteColor);
  }

  /* width */
  .inside-sidebar-details::-webkit-scrollbar {
    width: 10px;
  }

  /* Handle */
  .inside-sidebar-details::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }

  .shoes-sizes {
    font-size: 1.1rem;
    line-height: 2em;
  }
  [type="checkbox"] {
    width: 15px;
    height: 15px;
  }

  /* 
  =====================
  shoes part (price filter and products container)
  =====================
  */
  .shoes-container {
    position: relative;
    width: calc(100% - 400px);
    /* float: right; */
    top: 8em;
    margin-bottom: 9em;
    left: 27%;
  }

  .price-sort {
    text-align: right;
    margin-right: 0;
  }

  .price-sort select {
    margin: 0.5em;
    margin-right: 0;
    font-size: 1rem;
    width: 170px;
  }
  .price-sort p {
    font-size: 1rem;
  }

  .shop-path {
    top: 80px;
    margin: 0.5em 2em;
  }
  .shop-path > h5 {
    font-size: 0.85rem;
    padding: 0.5em 0.5em 0.5em 2em;
  }

  .products-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
    grid-auto-rows: 300px;
  }
  .product {
    transition: transform 0.5s;
  }
  .product:hover {
    background: #f0f3f5;
    transform: scale(1.2, 1.2);
    z-index: 1;
  }
  .product-img {
    width: 90%;
    height: 160px;
  }
  #nothing-found {
    width: 300px;
    position: relative;
    left: 10em;
  }
  .footer-container {
    float: right;
    width: 80%;
  }
}
@media screen and (min-width: 1100px) {
  .shoes-container {
    left: 24%;
  }
  .products-container {
    grid-template-columns: repeat(4, minmax(auto, 1fr));
  }
}
