* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --main-pink-color: #000000;
  --light-pink-color: #ffffff;
  --beige-color: #faf6e8;
  --nav-color: #423a42;
  --top-section-bg: #000000f2;
  --nav-fs: 18px;
  --fs-16: 16px;
  --fs-32: 32px;
  --fw-500: 500;
}

html {
  scroll-behavior: smooth;
}

/* header */

.header > .container {
  display: flex;
  justify-content: space-between;
  max-width: 100vw;
  margin: auto;
  height: 80px;
  align-items: center;
}

.logo {
  margin-left: 20px;
  color: var(--nav-color);
  text-transform: uppercase;
  transition-duration: 0.4s;
  font-size: 27px;
  font-weight: 700;
  width: 170px !important;

  text-decoration: none;
}

.logo:hover {
  cursor: pointer;
  transform: scale(1.02);
}

.nav-bar {
  margin: auto;
  transition: 0.5s;
}

.hamburger {
  display: none;
}

.nav-bar > ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.nav-bar.active ul {
  opacity: 1;
}

.nav-bar > ul li {
  list-style: none;
}

.nav-bar > ul > li > a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--nav-color);
  font-size: var(--nav-fs);
  font-weight: var(--fw-500);
  position: relative;
  letter-spacing: -0.5px;
}

.nav-bar > ul > li > a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  margin-top: 3px;
  background-color: var(--main-pink-color);
  bottom: 0;
  left: 0;
  transition-duration: 0.4s;
}

.nav-bar > ul > li > a:hover::after {
  width: 100%;
}

.nav-store {
  padding: 0 15px;
  display: flex;
  gap: 10px;
  flex-direction: row;
  justify-content: space-evenly;
}

.nav-store > span {
  color: var(--main-pink-color);
  opacity: 0.9;
  font-size: 32px;
  margin: auto;
  cursor: pointer;
}

.nav-store > span:first-child {
  transform: rotate(90deg);
}

.nav-store > span:last-of-type {
  position: relative;
}
.nav-store > span:last-of-type > span {
  position: absolute;
  width: 14px;
  height: 16px;
  border-radius: 50%;
  bottom: -2px;
  right: -3px;
  background-color: var(--main-pink-color);
  color: white;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.search-layout.hidden {
  height: 0;
  overflow: hidden;
  padding: 0;
  transition: height 0.3s ease, opacity 0.5s ease;
}

.search-layout {
  position: fixed;
  background-color: #ffffffd0;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: flex;
  justify-content: center;
  transition: height 200ms ease-in;
}

.search-close {
  position: absolute;
  right: 60px;
  top: 60px;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  border: none;
  background-color: var(--main-pink-color);
  cursor: pointer;
  color: #ffffff;
}

.search-close i {
  transition: transform 250ms ease-in;
}

.search-close:hover i {
  transform: rotate(180deg);
}

.search-container {
  max-height: 230px;
  text-align: center;
  padding-top: 130px;
}

.search-container h3 {
  color: var(--nav-color);
  margin-bottom: 10px;
}

.search-input {
  border: 1px solid var(--light-pink-color);
  outline: none;
  padding: 12px 8px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  font-size: 16px;
  transition: border 200ms ease-in;
}

.search-input:focus,
.search-input:hover {
  border: 1px solid var(--main-pink-color);
}

.search-btn {
  width: 120px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  padding: 13px;
  font-size: 16px;
  margin-left: -7px;
  border: none;
  background-color: var(--main-pink-color);
  transition: all 200ms ease;
  color: #ffffff;
}

.cart-layout.hidden {
  visibility: hidden;
  opacity: 0;
}

.cart-layout {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 50;
  background-color: rgba(26, 26, 26, 0.861);
  z-index: 999;
  transition: opacity 150ms ease-in;
}

.cart-container {
  background-color: #ffffff;
  position: absolute;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  width: 400px;
  min-height: 330px;
  border-radius: 14px;
  transition: all 300ms ease;
  position: relative;
}

.cart-hero {
  border-bottom: 1px solid #2828281e;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  height: 18%;
}

.cart-hero h3 {
  font-weight: 600;
  font-size: 20px;
}

.cart-hero .cart-close {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
}

.cart-items {
  overflow: hidden;
  width: 100%;
  height: 180px;
  display: grid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  position: relative;
}

.cart-items::before {
  content: "Aucun article trouvé.";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
}

.cart-items.special-before-style::before {
  content: "Aucun article trouvé.";
  display: none;
}

.cart-bottom.hidden {
  visibility: hidden;
}

.cart-bottom {
  border-top: 1px solid #2828281e;
  display: flex;
  flex-direction: column;
}

.total {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 16px;
  color: black;
}

.total .total-price {
  font-weight: 700;
}

.cart-bottom a {
  display: inline-block;
  width: 90%;
  background-color: var(--main-pink-color);
  padding: 8px 3px;
  border-radius: 7px;
  text-decoration: none;
  color: white;
  font-size: 15px;
  text-align: center;
  align-self: center;
  transition: all 150ms ease;
}
.cart-bottom a:hover {
  transform: scale(0.98);
  background-color: #555;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 10px;
}

.cart-item-image {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: bold;
  margin: 0;
  font-size: 16px;
}

.cart-item-price {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.cart-item-color-size {
  margin: 0;
  font-size: 14px;
  color: #777;
}

.cart-item-quantity {
  flex-shrink: 0;
  margin-left: 25px;
}

.quantity-number {
  outline: none;
  width: 55px;
  padding: 12px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

.cart-item-remove {
  border: none;
  background-color: transparent;
  color: var(--main-pink-color);
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .nav-bar ul li a {
    font-size: 17px;
  }
}

@media (max-width: 660px) {
  .nav-bar {
    height: 0;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100vw;
    background: white;
    transition: 0.2s;
    z-index: 999;
    overflow: hidden;
  }

  .nav-bar.active {
    height: 450px;
  }
  .nav-bar ul {
    display: block;
    width: fit-content;
    margin: 80px auto 0 auto;
    text-align: center;
    transition: 0.5s;
  }
  .nav-bar ul li a {
    margin-bottom: 15px;
    color: var(--main-pink-color);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--main-pink-color) !important;
    margin: 3px 0;
  }
}

@media (max-width: 470px) {
  .cart-container {
    width: 95vw;
  }
}

/* header */

/* top section */

.top-section {
  background-color: var(--main-pink-color);
}
.top-section .container {
  max-width: 1200px;
  margin: auto;
  padding-top: 40px;
}

.top-section .container h2 {
  text-align: center;
  letter-spacing: -0.7px;
  color: #ffffff;
  font-weight: 800;
  font-size: 2em;
}

.our-story-wrap {
  padding: 40px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  margin: auto;
  position: relative;
}

.our-story-wrap .our-story {
  padding: 56px 32px;
  border-radius: 20px;
  background-color: #ffffff;
  z-index: 2;
  box-shadow: 3px 3px 28px rgba(0, 0, 0, 0.225);
  transform: translateX(-80px);
}

.our-story-wrap .our-story h3 {
  color: var(--main-pink-color);
  font-size: 1.3rem;
}

.our-story-wrap .our-story p {
  padding-top: 20px;
  font-size: var(--fs-16);
  line-height: 2;
}

.top-section .container img {
  width: 100%;
  height: 460px;
  border-radius: 20px;
  z-index: -1;
}

@media (max-width: 992px) {
  .our-story-wrap {
    grid-template-columns: 1fr;
  }
  .our-story-wrap .our-story {
    width: 80%;
    margin: auto;
    transform: translateX(0);
    transform: translateY(-80px);
  }
}

@media (max-width: 768px) {
  .top-section .container img {
    height: 100%;
    width: 100%;
  }

  .our-story-wrap {
    gap: 20px;
    padding: 10px;
  }
  .our-story-wrap .our-story {
    width: 100%;
    transform: translateY(0);
  }
}

/* top section */

/* why-us section */
.why-us {
  background-color: var(--main-pink-color);
}

.why-us .container {
  padding-top: 100px;
  max-width: 100vw;
  margin: auto;
}

.why-us .container > h2 {
  text-align: center;
  color: #ffffff;
  letter-spacing: -0.7px;
}

.why-us .container > ul {
  padding-top: 30px;
  padding-bottom: 50px;
  line-height: 3;
  font-size: var(--fs-16);
  width: fit-content;
  margin: auto;
}

.why-us .container > ul li {
  margin-left: 40px;
  list-style: none;
  position: relative;
  color: #ffffff;
}

.why-us .container > ul li::before {
  content: "";
  height: 0;
  width: 0;
  left: -20px;
  position: absolute;
  border: 10px solid transparent;
  border-left: 10px solid #ffffff;
  top: 13px;
}

@media (max-width: 992px) {
  .why-us .container {
    padding: 30px 40px 0 40px;
  }
}

@media (max-width: 768px) {
  .why-us .container > ul li {
    font-size: 14px;
  }
}

/* why-us section */

/* we are offring  */

.brands {
  background-color: #ffffff;
}

.brands .container {
  padding: 100px 10px;
  max-width: 100vw;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.brands .container > h2 {
  letter-spacing: -0.7px;
  color: var(--main-pink-color);
  font-weight: 800;
}

.brands .container > h3 {
  color: var(--nav-color);
  letter-spacing: -0.7px;
  font-weight: 500;
}

.brands .container > div {
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
}

.brands .container > div a {
  width: fit-content;
  height: fit-content;
  transition: transform 200ms ease-in;
}

.brands .container > div a:hover {
  transform: scale(1.1);
}

.brands .container img {
  width: 100px;
  height: 100px;
}

@media (max-width: 768px) {
  .brands .container > div {
    gap: 10px;
  }
}

@media (max-width: 475px) {
  .brands .container img {
    width: 80px;
    height: 80px;
  }
  .brands .container > div {
    grid-template-columns: 1fr 1fr;
  }

  .brands .container > h3 {
    font-size: 18px;
  }
}
/* we are offring  */

/* footer */

.footer .container {
  max-width: 100vw;
  padding: 30px 60px;
  background-color: #ffffff;
  margin: auto;
  display: grid;
  gap: 20px 0;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  color: #ffffff;
}

.footer .container a {
  color: #000000;
}

.footer .container .logo {
  color: var(--nav-color);
  margin-left: 0;
}

.footer .container li {
  list-style: none;
}

.footer .container a {
  text-decoration: none;
}

.footer .container ul {
  display: flex;
  gap: 30px;
}

.footer-nav ul {
  flex-wrap: wrap;
}

.footer .container .copyrights {
  grid-column: span 2;
  font-size: 12px;
}

.footer .container .copyrights h3 {
  color: #000;
  font-weight: 400;
}

.footer .container .copyrights a {
  font-weight: 800;
}

.footer .container .social-media ul {
  gap: 15px;
}

.footer .container .social-media svg {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: var(--top-section-bg);
  padding: 10px;
  transition: all 200ms ease-in;
}

.footer .container .social-media svg:hover {
  background-color: var(--main-pink-color);
}

@media (max-width: 995px) {
  .footer .container {
    grid-template-columns: 1fr;
  }

  .footer .container .copyrights {
    grid-column: 1;
  }
}

/* footer */
.go-top {
  background-color: #dfdfdf;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  padding: 10px;
  position: fixed;
  right: 20px;
  bottom: -50px;
  opacity: 0;
  font-size: 25px;
  color: var(--main-pink-color);
  transition: all 500ms ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.go-top.show {
  bottom: 10px;
  opacity: 1;
  height: 50px;
  width: 50px;
}
