/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,100..900&family=Cairo:wght@200..1000&family=Indie+Flower&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playwrite+CO+Guides&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&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&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Tsukimi+Rounded&family=Young+Serif&display=swap");

/* Css Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  outline: none;
  border: none;
}

/* Body */
body {
  font-family: "Poppins", serif;
}

/* Border  hepsine hover vermektense border clasını oluşturuyoruz. */
.border {
  border: 1px solid transparent;
  height: 100%;
  display: grid;
  place-items: center;
  /* justify-items: center;
align-items: center; */
  padding: 5px;
}

.border:hover {
  border: 1px solid #ffff;
  cursor: pointer;
}

/* Header */
header {
  background-color: #0f1111;
  position: sticky;
  width: 100%;
  height: 60px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: white;
}

.nav-logo {
  width: 100px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  width: 100%;
  height: 50px;
}

.add-first {
  font-size: 13.7px;
  color: #ccc;
  margin-left: 3px;
}

.add-icon {
  display: flex;
  margin-left: 3px;
}
/* 
.add-second {
  font-size: 16px;
  margin-left: 4px;
} */

.nav-search {
  display: flex;
  justify-content: space-evenly;
  width: 620px;
  height: 40px;
  border-radius: 4px;
}

.search-select {
  background-color: #f3f3f3;
  text-align: center;
  border-radius: 4px 0 0 4px;
  width: 90px;
  font-size: 15px;
}

.search-input {
  width: 100%;
  /* padding-left: 10px; */
  /* padding-left ile aynıdır. */
  text-indent: 10px;
}

.search-icon {
  width: 45px;
  align-items: center;
  justify-content: center;
  background-color: #fabd68;
  border-radius: 0 4px 4px 0;
  color: #000;
}

span {
  font-size: 12px;
}

.nav-second {
  font-size: 14px;
  font-weight: 800;
}

.nav-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.nav-cart i {
  font-size: 30px;
}

/* Panel */
.panel {
  background-color: #212f3d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 40px;
}

.panel-all {
  /* Kapsama göre sığmama olduğunda bunların alt satıra geçmesini engeller.  */
  white-space: nowrap;
}

.panel-ops {
  width: 70%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 3px;
  font-size: 14px;
  padding: 0 3px;
}

.panel-deals {
  padding: 0 3px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
}

/* Hero */
.hero-section {
  background-image: url("./assets/images/hero_image.jpg");
  height: 260px;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-msg {
  background-color: #ffff;
  width: 80%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px;
}

.hero-msg a {
  color: aqua;

  margin-left: 5px;
}

/* Category Section*/
.category-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background-color: #e2e2e2;
  padding: 5px;
}

.box {
  height: 440px;
  background-color: #ffff;
  padding: 20px 15px;
  margin-top: 15px;
}
.box h2 {
  white-space: nowrap;
}
.box-image {
  width: 100%;
  height: 300px;
}

.box-image img {
  width: 100%;
  height: 100%;
}
.box a {
  color: aqua;
  display: block;
  margin-top: 20px;
}

/* Discount */

.discount-section {
  background-color: #f3f3f3;
  padding: 20px;
}

.title {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
}

.title a {
  color: aqua;
}

.title a:hover {
  text-decoration: underline;
}

.boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  margin: 15px 0;
}
.discount-box {
  height: 330px;
  background-color: white;
  padding: 10px 20px;
}

.discount-box .image {
  height: 250px;
  width: 100%;
}
.discount-box .image img {
  width: 100%;
  height: 100%;
}
.discount-box .content p {
  color: crimson;
  font-size: 15px;
  white-space: nowrap;
}

.discount-box .content p span {
  background-color: crimson;
  color: white;
  font-size: 13px;
  margin-right: 6px;
}

.discount-box .bottom-text {
  color: black !important;
  margin-top: 5px;
}

/* Footer */
.footer-top {
  background-color: #364759;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s;
}

.footer-top:hover {
  background-color: #4d5c6b;
}

.footer-top a {
  color: white;
  font-size: 14px;
}

.footer-bottom {
  background-color: #222f3d;
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 30px;
  gap: 20px;
}

.footer-list {
  font-size: 20px;
}

.footer-list li a {
  color: rgb(200, 200, 200);
  font-size: 13px;
  transition: all 0.5s;
}

.footer-list li a:hover {
  color: #fabd68;
}
/* Responsive Design */
@media (max-width: 1200px) {
  .nav-adress {
    display: none;
  }
  .nav-singin {
    display: none;
  }
  .nav-search {
    width: 500px;
  }
  .nav-second {
    display: none;
  }
  .hero-msg {
    position: sticky;
    font-size: 10px;
    padding: 5px;
  }
  .panel {
    justify-content: space-between;
  }
  .panel-ops {
    display: none;
  }
  .panel-all {
    margin-left: 20px;
  }
  .category-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 950px) {
  .nav-cart {
    display: none;
  }
  .search-select {
    width: 30%;
  }
  header {
    padding: 10px 15px;
  }
  .hero-msg {
    width: unset;
    margin: 20%;
  }
  .hero-msg a {
    display: none;
  }

  .hero-section {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .category-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .title h2 {
    font-size: 30px;
    white-space: nowrap;
  }
  .title a {
    display: none;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
  }
  .footer-list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .category-section {
    grid-template-columns: repeat(1, 1fr);
  }
}
