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

.preview .content {
  width: 90%;
  margin: 0 auto;
}

:root {
  --color-1: #0a060e;
  --color-2: #232227;
  --color-3: #f1f1f1;
  --color-4: #ff5700;
  --transition: 0.3s;
}

body {
  background-color: var(--color-1);
  ;
}

.header .content {
  gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  padding: 0pc 30px;
  align-items: center;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
}

.header .content .logo a,
.header .content .shoppingCard {
  display: flex;
  font-size: 40px;
  align-items: center;
  border-radius: 15px;
  color: var(--color-3);
  text-decoration: none;
  transition: var(--transition);
}

.header .content .logo:hover a {
  color: var(--color-4);
}

.header .content .shoppingCard .basket {
  cursor: pointer;
  user-select: none;
  position: relative;
}


.header .content .shoppingCard .basket span {
  top: 0px;
  width: 30px;
  right: -20px;
  height: 30px;
  display: flex;
  font-size: 26px;
  border-radius: 50%;
  position: absolute;
  align-items: center;
  justify-content: center;
  background-color: var(--color-4);
}

.header .content .drop-down {
  position: relative;
}

.header .content .drop-down .active {
  z-index: 1 !important;
  animation: opacity calc(var(--transition) - .1s) 1 forwards 0.1s;
}

@keyframes opacity {
  form {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.header .content .drop-down .products-box {
  right: 0;
  opacity: 0;
  z-index: -1;
  padding: 1rem;
  margin-top: 30px;
  position: absolute;
  border-radius: 1rem;
  transition: var(--transition);
  background-color: var(--color-1);
}

.header .content .drop-down .products-box .box:not(:last-child) {
  border-bottom: 1px solid var(--color-3);
}

.header .content .drop-down .products-box .box {
  gap: 1rem;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.header .content .drop-down .products-box .box img {
  width: 180px;
}

.header .content .drop-down .products-box .box .box-info h3,
.header .content .drop-down .products-box .box .box-info h4 {
  display: block;
  margin: 20px 0;
  font-size: 24px;
}

.header .content .drop-down .products-box .box .box-info .removeBtn {
  border: none;
  display: block;
  cursor: pointer;
  font-size: 18px;
  margin: 10px auto;
  padding: 5px 10px;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.header .content .drop-down .products-box .box .box-info .removeBtn:hover {
  color: white;
  background-color: #fc5b5b;
}

.overlay {
  opacity: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  margin-top: -142.83px;
  background-color: var(--i);
  transition: var(--transition);
}

/* thePreview */
.x-mark {
  top: 0;
  right: 0;
  width: 50px;
  border: none;
  height: 50px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  align-items: center;
  border-radius: 0.5rem;
  justify-content: center;
  display: flex !important;
  transition: var(--transition);
  background-color: cadetblue;
  border-bottom-left-radius: 40px;
}

.x-mark:hover {
  background-color: #012f63;
}

.thePreview {
  top: 50%;
  left: 50%;
  z-index: 1;
  opacity: 0;
  width: 90%;
  height: 50%;
  display: grid;
  overflow: hidden;
  max-width: 90rem;
  max-height: 50rem;
  position: absolute;
  border-radius: 12px;
  align-items: center;
  background-color: var(--i);
  transition: var(--transition);
  transform: translate(-50%, -50%);
  grid-template-columns: repeat(2, 50%);
}

@media (max-width:991px) {
  .thePreview {
    gap: 40px;
    height: unset;
    display: flex;
    max-height: unset;
    flex-direction: column;
  }
}

.show-preview {
  opacity: 1;
}

.show-previewOverlay {
  opacity: 0.5;
}

.thePreview .img-holder .big-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thePreview .img-holder .big-img img {
  width: 400px;
}

.thePreview .img-holder .small-imgs {
  gap: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.thePreview .img-holder .small-imgs img {
  width: 80px;
  border-radius: 6px;
  background-color: white;
  transform: rotate(45deg);
  transition: var(--transition);
}

.thePreview .img-holder .small-imgs img:hover {
  outline: 1px solid var(--color-4);
  transform: scale(2.5) rotate(360deg);
  z-index: 11;
}

.thePreview .item-info {
  height: 100%;
  display: flex;
  padding: 50px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* background-image:linear-gradient(45deg, #0b1e49, #3498d8); */
  /* background-image: linear-gradient(45deg, #8e9eab, #eef2f3); */
  background-image: linear-gradient(45deg, #012f63, #a7bbc3);
}

.thePreview .item-info h2 {
  color: white;
  margin: 20px 0;
  text-transform: capitalize;
}

.thePreview .item-info p {
  color: var(--color-1);
}

.thePreview .item-info .size span {
  width: 50px;
  height: 50px;
  margin: 10px;
  font-size: 22px;
  cursor: pointer;
  color: royalblue;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  background-color: white;
  transition: var(--transition);
}

.thePreview .item-info .size span:hover {
  color: white;
  background-color: royalblue;
}

.thePreview .item-info .add {
  gap: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;

}

.thePreview .item-info .add button {
  border: none;
  outline: none;
  color: white;
  margin: 30px 0;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: 6px;
  transition: var(--transition);
  background-color: cadetblue;
}

.thePreview .item-info .add button:hover {
  background-color: #416f70;
}

.thePreview .item-info .price {
  font-size: 22px;
  font-weight: bold;
  color: #5f9ea0;
}

.thePreview .item-info .random-text {
  color: white;
  line-height: 1.8;
}

/* Card styling */
.products .content {
  gap: 1.5rem;
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 1.5rem;
  align-items: center;
  border-radius: 2rem;
  justify-content: space-evenly;
  background-color: var(--color-2);
}

.products .content .card {
  width: 250px;
  overflow: hidden;
  border-radius: 1rem;
}

.products .content .card .product-img {
  background-color: var(--i);
}

.products .content .card img {
  width: 250px;
  margin-left: -2rem;
  margin-bottom: 1rem;
  transform: rotate(-45deg);
}

.products .content .card .product-info {
  padding: 20px;
  position: relative;
  background-color: var(--color-3);
}

.previewBTN {
  top: -25px;
  width: 50px;
  right: 25px;
  height: 50px;
  color: white;
  cursor: pointer;
  font-size: 26px;
  border-radius: 50%;
  position: absolute;
  align-items: center;
  justify-content: center;
  display: flex !important;
  background-color: #607d8b;
  transition: var(--transition);
}

.previewBTN:hover {
  background-color: var(--color-4);
}

.products .content .card .product-info h3 {
  color: var(--color-1);
}

.products .content .card .product-info h4 {
  color: gray;
  margin-top: 1rem;
  color: var(--color-2);
}

.products .content .card .product-info button {
  width: 100%;
  display: block;
  cursor: pointer;
  padding: 5px 20px;
  margin: 20px auto 0;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.products .content .card .product-info button:hover {
  background-color: var(--i);
}