/* Главна кошничка */

.cart-main {
  width: min(1100px, 92%);
  min-height: calc(100vh - 200px);
  margin: 0 auto;
  padding: 55px 0 90px;
}

.cart-heading {
  max-width: 700px;
  margin: 0 auto 38px;
  text-align: center;
}

.cart-heading h1 {
  margin-bottom: 12px;

  color: #f0c34f;
  font-size: clamp(38px, 6vw, 60px);
}

.cart-heading > p:last-child {
  color: #ead7c3;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 28px;
}

/* Производи */

.cart-items {
  display: grid;
  gap: 18px;
}

.cart-item {
  padding: 18px;

  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;

  background-color: rgba(24, 9, 8, 0.82);
  border: 1px solid rgba(230, 192, 91, 0.52);
  border-radius: 12px;

  box-shadow: 0 16px 40px rgba(10, 2, 2, 0.42);
  backdrop-filter: blur(5px);
}

.cart-item-image {
  height: 135px;
  padding: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(
    circle,
    rgba(230, 192, 91, 0.14),
    rgba(12, 4, 3, 0.38)
  );

  border-radius: 8px;
}

.cart-item-image img {
  display: block;
  max-width: 100%;
  height: 120px;
  object-fit: contain;

  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.55));
}

.cart-item-info h2 {
  margin-bottom: 7px;
  color: #f0c34f;
  font-size: 24px;
  line-height: 1.2;
}

.cart-item-info p {
  margin-bottom: 8px;

  color: #ead7c3;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.cart-item-info strong {
  color: #fff8eb;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.cart-item-controls {
  min-width: 150px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Количина */

.quantity-controls {
  display: grid;
  grid-template-columns: 38px 45px 38px;
  align-items: center;

  overflow: hidden;
  border: 1px solid rgba(225, 185, 77, 0.55);
  border-radius: 7px;
}

.quantity-controls button {
  height: 38px;

  color: #f0c34f;
  background-color: #180806;
  border: none;

  font-family: Arial, sans-serif;
  font-size: 21px;
  cursor: pointer;

  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.quantity-controls button:hover {
  color: #25100c;
  background-color: #e1b94d;
}

.quantity-controls span {
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff8eb;
  background-color: rgba(39, 14, 11, 0.9);
  border-right: 1px solid rgba(225, 185, 77, 0.3);
  border-left: 1px solid rgba(225, 185, 77, 0.3);

  font-family: Arial, sans-serif;
  font-weight: 700;
}

.cart-item-total {
  color: #f0c34f;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.remove-item {
  padding: 5px 0;

  color: #d7b4a6;
  background: transparent;
  border: none;

  font-family: Arial, sans-serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;

  transition: color 0.25s ease;
}

.remove-item:hover {
  color: #ffb4a2;
}

/* Преглед на нарачката */

.cart-summary {
  position: sticky;
  top: 20px;
  padding: 25px;

  background-color: rgba(20, 7, 6, 0.9);
  border: 1px solid rgba(230, 192, 91, 0.62);
  border-radius: 12px;

  box-shadow: 0 18px 45px rgba(10, 2, 2, 0.5);
  backdrop-filter: blur(7px);
}

.summary-row {
  margin-bottom: 20px;
  padding-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-bottom: 1px solid rgba(230, 192, 91, 0.25);

  font-family: Arial, sans-serif;
}

.summary-row span {
  color: #e3cfbb;
}

.summary-row strong {
  color: #f0c34f;
  font-size: 20px;
  text-align: right;
}

.summary-notice {
  margin-bottom: 12px;
  padding: 12px;

  color: #f0dfcc;
  background-color: rgba(46, 18, 14, 0.72);
  border-left: 3px solid #e1b94d;
  border-radius: 5px;

  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.delivery-note {
  margin: 15px 0;

  color: #cdb8a2;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-button {
  width: 100%;
  margin-top: 10px;
}

/* Празна кошничка */

.empty-cart {
  max-width: 650px;
  margin: 0 auto;
  padding: 60px 25px;

  background-color: rgba(24, 9, 8, 0.8);
  border: 1px solid rgba(230, 192, 91, 0.52);
  border-radius: 14px;

  text-align: center;
}

.empty-cart h2 {
  margin-bottom: 12px;
  color: #f0c34f;
  font-size: 32px;
}

.empty-cart p {
  margin-bottom: 25px;

  color: #dfcbb7;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Таблет и телефон */

@media (max-width: 850px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .cart-main {
    width: 94%;
    padding: 40px 0 65px;
  }

  .cart-heading {
    margin-bottom: 28px;
  }

  .cart-item {
    padding: 13px;

    grid-template-columns: 85px minmax(0, 1fr);
    gap: 13px;
  }

  .cart-item-image {
    height: 110px;
  }

  .cart-item-image img {
    height: 98px;
  }

  .cart-item-info h2 {
    font-size: 18px;
  }

  .cart-item-info p,
  .cart-item-info strong {
    font-size: 13px;
  }

  .cart-item-controls {
    min-width: 0;
    grid-column: 1 / -1;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .cart-item-total {
    font-size: 14px;
  }

  .cart-summary {
    padding: 20px;
  }
}
