.cart {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.cart__body {
  display: flex;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.cart.loading,
.cart__totals.loading {
  opacity: 0.6;
  pointer-events: none;
}

.cart hr {
  margin: 0;
  margin-block: 1rem;
  background-color: var(--gray-200);
}

.cart__items {
  flex: 5;
  min-width: 0;
  width: 100%;
}

.cart__totals {
  flex: 2;
  position: sticky;
  top: 1rem;
}

.cart__items,
.cart__totals {
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--rounded);
  background: #fff;
}

.cart__heading,
.cart__totals-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--gray-900);
}

.cart__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart__item {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cart__item-media {
  display: block;
  flex: 0 0 7.5rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--rounded);
  overflow: hidden;
  background: var(--gray-100);
}

.cart__item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart__item-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}

.cart__item-title {
  margin: 0;
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart__item-title a {
  color: var(--gray-900);
  text-decoration: none;
}

.cart__item-desc {
  margin: 0.35rem 0 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart__item-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart__item-price {
  flex: 1;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  min-width: 5rem;
}

.cart__item-price del {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-right: 0.35rem;
}

.cart__item-price ins {
  text-decoration: none;
  font-weight: 700;
  color: var(--gray-900);
  background-color: transparent;
}

.cart__item-quantity {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}

.cart__item-quantity-btn {
  background-color: transparent;
  border: 1px solid var(--gray-400);
  padding: 0.625rem;
  line-height: 0;
  color: var(--gray-600);
  border-radius: var(--rounded);
  cursor: pointer;
  transition: all 300ms;
}

.cart__item-quantity-input {
  min-width: 3rem;
  width: 3rem;
  text-align: center;
  padding: 0.625rem !important;
  border: 1px solid transparent !important;
  border-radius: var(--rounded) !important;
  background: var(--gray-100) !important;
  outline: none;
  transition: all 300ms;
  font: inherit;
  color: var(--gray-900);
}

.cart__item-quantity-input::-webkit-outer-spin-button,
.cart__item-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart__item-quantity-input {
  -moz-appearance: textfield;
}

.cart__item-quantity-input:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
}

.cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.cart__row b {
  color: var(--gray-900);
  font-weight: 600;
}

.cart__cart-total {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
  font-size: 1.0625rem;
}

.cart__cart-total span,
.cart__cart-total b {
  font-weight: 700;
  color: var(--gray-900);
}

.cart__totals-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cart__totals-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--rounded);
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 300ms;
}

.cart__totals-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--rounded);
  background: transparent;
  color: var(--gray-600);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart__empty {
  width: 100%;
  padding: 2rem;
  border-radius: var(--rounded);
  border: 1px dashed var(--gray-400);
  background: var(--gray-100);
  text-align: center;
}

.cart__empty-text {
  margin: 0.75rem 0 0;
  color: var(--gray-600);
}

.cart__empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  min-height: 3rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--rounded);
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .cart__item-quantity-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
  }

  .cart__item-title a:hover {
    color: var(--primary);
  }

  .cart__totals-checkout:hover,
  .cart__empty-link:hover {
    background: var(--secondary);
  }

  .cart__totals-empty:hover {
    color: #c2410c;
  }
}

@media (max-width: 900px) {
  .cart__body {
    flex-direction: column;
  }

  .cart__totals {
    position: static;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cart__item {
    flex-direction: column;
  }

  .cart__item-media {
    flex-basis: auto;
    height: 12rem;
    width: fit-content;
  }

  .cart__item-action {
    align-items: start;
    flex-direction: column;
  }

  .cart__item-price {
    width: 100%;
  }
}

.suitable-products {
  margin-top: 4rem;
  width: 100%;
}

.suitable-products__heading {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.suitable-products__loop {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (max-width: 1360px) {
  .suitable-products__loop {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .suitable-products__loop {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
