* {
  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;
  transition: all 300ms ease;
}

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

  font-weight: 700;
  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 */

/* main-section */

.checkout-section .container {
  max-width: 100vw;
  margin: auto;
}

.checkout-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.checkout-section .container form .left-side {
  align-self: flex-start;
  top: -30px;
  position: sticky;
  width: calc(55% - 40px);
  padding: 40px 70px;
}

.checkout-section .container form .left-side h2 {
  font-weight: 500;
  color: #000000d4;
}

.checkout-section .container form .left-side div:nth-child(2) {
  margin: 15px 0;
  display: grid;
  gap: 15px;
}

.checkout-section .container form .left-side div input {
  border: 1px solid #55555579;
  padding: 17px 15px;
  border-radius: 5px;
}

.checkout-section .container form .left-side div input:focus {
  border: 2px solid var(--main-pink-color);
  outline: none;
}

.checkout-section .container form .left-side > input {
  margin-top: 15px;
  width: 100%;
  padding: 17px 15px;
  border-radius: 5px;
  outline: none;
  border: none;
  color: white;
  background-color: var(--main-pink-color);
  font-weight: 600;
  transition: all 250ms ease;
}

.checkout-section .container form .left-side > input:hover,
.checkout-section .container form .left-side > input:focus {
  background-color: #555;
}

.right-side {
  width: calc(45% - 40px);
  padding: 40px 60px;
  border-left: 1px solid rgba(177, 176, 177, 0.152);
  background-color: #8885851d;
}

.right-side .products-box {
  display: grid;
  gap: 10px;
}

.right-side .products-box .product {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  justify-content: space-between;
}
.right-side .products-box .product div:first-child {
  position: relative;
  width: 80px;
  height: 80px;
}

.right-side .products-box .product div:first-child span {
  position: absolute;
  width: 25px;
  height: 25px;
  text-align: center;
  border-radius: 50%;
  top: -10px;
  right: -10px;
  background-color: #707070c3;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

.right-side .products-box .product div:first-child img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.381);
}
.right-side .products-box .product div:nth-child(2) h4 {
  font-weight: 500;
  text-transform: capitalize;
}

.right-side .products-box .product div:nth-child(2) p {
  color: #030303bf;
  font-size: 16px;
}
.right-side .products-box .product div:last-child p {
  font-size: 18px;
}

.products-total {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.products-total div {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
}

.products-total div:last-child {
  font-size: 19px;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .checkout-content {
    flex-direction: column;
  }
  .left-side {
    order: 2;
    width: 100% !important;
    position: static !important;
    padding: 20px !important;
  }

  .right-side {
    padding: 20px;
    order: 1;
    width: 100%;
  }

  .right-side h4 {
    font-size: 16px;
  }
}

/* main-section */

.swal2-confirm {
  background-color: var(--main-pink-color) !important;
}
/* 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;
}
