/* common styles */

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

body {
  max-width: 1000px;
  margin: 0 auto;
}

/* Site header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
  border-bottom: 1px solid #ccc;
  padding: 15px;
}

.header-container {
  display: flex;
  align-items: center;
  position: relative;
}

.header-container .backet {
  margin-right: 30px;
}

#menu {
  word-spacing: 20px;
  cursor: default;
}

#menu a {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

#menu a.highlighted {
  border-bottom: 4px solid hsl(26, 100%, 55%);
  padding-bottom: 29px;
}

#avatar img.highlighted {
  border: 2px solid hsl(26, 100%, 55%, 0.9);
  cursor: pointer;
}

#avatar img {
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
}

#cart-count {
  position: absolute;
  top: 7px;
  left: 15px;
  background-color: hsl(26, 100%, 55%);
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
  display: none;
}

#cart-button:hover {
  opacity: 0.7;
}

/* Styles for the Cart Dropdown */

.cart-dropdown {
  position: absolute;
  top: 60px;
  background-color: white;
  right: 1;
  border: 1px solid #ccc;
  padding: 10px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  display: none;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  right: -60px;
}

.cart-dropdown h3 {
  border-bottom: 1px solid #000;
  margin-top: 12px;
  text-align: left;
  padding-bottom: 20px;
}

.empty-cart-message {
  text-align: center;
  margin: 0;
}

#checkout-button {
  position: absolute;
  background-color: hsl(26, 100%, 55%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  width: 100%;
  margin-top: auto;
  bottom: -6px;
}

#checkout-button:hover {
  opacity: 0.7;
}

/* Styles for products in the cart */

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  margin-bottom: 15px;
  margin-top: -15px;
}


.cart-item-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-left: 10px;
  flex-grow: 1;
}

.cart-item-name {
  color: hsl(219, 9%, 45%);
  margin-bottom: 5px;
}

.cart-item-price {
  margin: 0;
  font-size: 0.9em;
  white-space: nowrap;
}

.images-sneakers {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-right: 10px;
  margin-top: 16px;
}

.cart-item-delete {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-left: auto;
  margin-top: 32px;
}

.cart-item-delete:hover {
  opacity: 0.7;
}

.cart-item-text {
  display: flex;
  flex-direction: column;
}

.cart-total-price {
  margin-top: 10px;
  text-align: right;
  border-top: 1px solid #000;
  padding-top: 10px;
}

/* Styles for the product section */

.produkt {
  display: flex;
  align-items: center;
  margin: 20px;
}

.slide-container {
  width: 400px;
  overflow: hidden;
  position: relative;
  margin-top: 7%;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 400px;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.text-container {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 60px;
}

.slide-container img {
  height: auto;
  border-radius: 15px;
  display: block;
}

.text-container * {
  margin-bottom: 10px;
}

/* Styles for product features */

.name-produckt h1 {
  font-size: 15px;
  color: hsl(26, 100%, 55%);
  padding-bottom: 20px;
  padding-top: 80px;
}

.sneakers {
  font-weight: bold;
  font-size: 40px;
}

.content {
  padding-bottom: 10px;
  margin-top: 20px;
  margin-bottom: 40px;
  color: hsl(219, 9%, 45%);
}

.new-price {
  font-size: 25px;
  font-weight: bold;
}

.discont {
  padding-inline: 8px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  background-color: hsl(25, 100%, 94%);
  color: hsl(26, 100%, 55%);
}

.old-price {
  color: #d3d3d3;
  font-weight: 700;
  font-size: 15px;
  text-decoration: line-through;
}

.price p {
  margin-top: -1px;
}

/* Styles for selecting product quantity */

.quantity-button {
  display: flex;
  align-items: center;
}

.quantity-button>* {
  margin-right: 20px;
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  border: 1px solid hsl(223, 64%, 98%);
  padding: 5px;
  border-radius: 10px;
  background-color: hsl(223, 64%, 98%);
}

.quantity img {
  cursor: pointer;
  margin: 0 23px;
}

.quantity span {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  min-width: 20px;
  margin-top: 10px;
}

/* Styles for the add to cart button */

.button {
  background-color: hsl(26, 100%, 55%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  box-shadow: 0 1.25rem 1.25rem 0 hsla(26, 100%, 55%, 0.2);
}

.button img {
  position: relative;
  top: 3px;
  right: 5px;
  margin-left: 20px;
}

.images-container img {
  height: auto;
  border-radius: 15px;
  display: block;
}

.quantity span {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  min-width: 20px;
  margin-top: 10px;
}

.button span {
  margin-bottom: 0px;
  margin-right: 20px;
}

/* */

.produkt .text-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.text-container>* {
  margin-bottom: 10px;
}

.button span {
  margin-bottom: 0px;
  margin-right: 20px;
}

.quantity-button {
  display: flex;
  align-items: center;
}

.quantity-button>* {
  margin-right: 20px;
}

.backet img {
  cursor: pointer;
}

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

#cart-items {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  margin: 0;
}

.quantity-increment,
.quantity-decrement {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.quantity-increment:hover,
.quantity-decrement:hover,
.button:hover {
  opacity: 0.7;
}

.cart-item-quantity {
  color: hsl(219, 9%, 45%);
  margin: 0;
}

.cart-item-quantity {
  order: -1;
  margin-right: 10px;
  font-size: 1.2em;
  color: #555;
}

.cart-item-delete-wrapper {
  margin-left: auto;
  padding-top: 5px;
}

/* modal wind */

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 500px;
  margin-top: 130px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;

  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}