.cart-clear-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-clear-btn svg {
  width: 18px;
  height: 18px;
  margin-bottom: 0.1rem;
  color: #4a5565;
}

.cart-empty-page {
  min-height: calc(100vh - 4rem);
  background: #f9fafb;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.cart-empty {
  text-align: center;
  max-width: 520px;
}

[hidden] {
  display: none !important;
}

.cart-empty__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 3rem;
  color: #4a5565;
}

.product-card__footer svg {
  width: 18px;
  height: 18px;
  color: white;
  margin-bottom: .13rem;
}

.cart-empty h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #020617;
}

.cart-empty p {
  margin: 0 0 1.75rem;
  color: #4b5563;
  font-size: 1rem;
}

.cart-empty__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-page {
  background: #f9fafb;
  min-height: calc(100vh - 4rem);
  padding: 6rem 0 4rem;
}

.cart-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-page__back-link:hover {
  color: var(--color-accent);
  font-weight: 600;
}

.cart-page__back-link svg {
  width: 10px;
  height: 10px;
  margin-bottom: 0px;
  flex-shrink: 0;
}

.cart-page h1 {
  margin: 0 0 3rem;
  font-size: 2rem;
  font-weight: 700;
  color: #020617;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
}

.cart-page__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color:#020617;
}

.cart-clear-btn span {
  color: #4a5565;
}

.cart-page__items-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.cart-item__image-link {
  flex: 0 0 222px;
}

.cart-item__image {
  width: 222px;
  height: 222px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 6px;
}


.cart-item__content {
  flex: 1;
  min-width: 0;
}

.cart-item.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-item__services {
  min-height: 71px;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.cart-item__services--empty {
  visibility: hidden;
  background: transparent;
  border-color: transparent;
}

.cart-item__services-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;

  margin: 0;

  font-size: 0.95rem;
  color: #166534;
  font-weight: 600;
}

.cart-item__services-title svg {
  width: 14.5px;
  height: 14.5px;
  flex-shrink: 0;
  color: #166534;
}

.cart-item__services-list {
  list-style: none;
  margin: 0.25rem 0 0;

  font-size: 0.85rem;
  color: #166534;
  font-weight: 400;
}

.cart-item__services-list li {
  margin: 0.1rem 0;
  padding: 0;
  transform: translateX(-40px);
}

.cart-item__title {
  margin: 0;
  margin-left: .2rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-item__variant,
.cart-item__type {
  display: inline;
  margin-left: .2rem;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.cart-item__type::before {
  content: "·";
  margin: 0 0.4rem;
  color: #9ca3af;
}

.cart-item__variant[hidden],
.cart-item__type[hidden] {
  display: none !important;
}

.cart-item__total-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cart-item__total {
  color: #ff0098;
  font-size: 1.25rem;
  margin-left: .2rem;
}

.cart-item__payment-label {
  color: #6b7280;
  font-size: 0.875rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-item__qty-btn {
  height: 32px;
  min-width: 32px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: .8px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 8px;
  background: transparent;
  color: #ff0098;

  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.12s ease;
}

.cart-item__remove:hover {
  background: #ececf0;
  transform: translateY(-1px);
}

.cart-item__remove:active {
  transform: translateY(1px);
}

.cart-item__remove svg {
  width: 18px;
  height: 18px;
  color: #4a5565;
}

.cart-item__qty-input {
  appearance: textfield;
    -moz-appearance: textfield;
  width: 64px;
  height: 32px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.cart-item__qty-input::-webkit-outer-spin-button,
.cart-item__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item__price {
  min-width: 140px;
  text-align: right;
  font-size: 1.125rem;
  color: #020617;
}

.cart-summary {
  position: sticky;
  top: 6rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.cart-summary h2 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
}

.cart-summary__row,
.cart-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-summary__total {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
}

.cart-summary__total strong {
  color: #ff0098;
  font-size: 1.5rem;
}

.cart-summary__checkout {
  width: 100%;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0 0.75rem;
}

.cart-summary .btn--secondary {
  width: 100%;
  justify-content: center;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  font-weight: 600;
}

.cart-summary .btn--secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.product-card__button-icon {
  margin-bottom: .17rem;
  width: 16px;
  height: 16px;

}

.cart-summary__checkout .button-cart-icon {
  width: 18px;
  height: 18px;
  color: white;
  margin-bottom: .13rem;
}

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

  .cart-summary {
    position: static;
  }
}