/* ===== CART SYSTEM ===== */

.yc-cart {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.yc-cart__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.yc-cart__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-color);
}

.yc-cart__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--accent-color);
}

.yc-cart__count {
  color: var(--text-color);
  margin: 8px 0 20px;
  font-size: 0.9375rem;
  font-weight: 400;
}

.yc-cart__instructions {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.yc-cart__empty {
  color: var(--gray);
  font-size: 1rem;
  padding: 2rem 0;
}

.yc-cart__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 16px;
}

.yc-cart__item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--white-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.yc-cart__item:hover {
  box-shadow: var(--shadow-md);
}

.yc-cart__media img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.yc-cart__titlelink {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-base);
}

.yc-cart__titlelink:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.yc-cart__body {
  display: grid;
  gap: 10px;
}

.yc-cart__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  background: var(--pink-color-2);
  color: var(--accent-color);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.yc-cart__price {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

.yc-cart__aside {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 14px;
  min-width: 72px;
}

.yc-badge {
  display: inline-block;
  background: var(--gray-bg);
  color: var(--text-color);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.yc-cart__remove {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  transition: color var(--transition-base);
}

.yc-cart__remove:hover {
  color: var(--error-color);
}

.yc-cart__cta {
  text-align: center;
  margin-top: 32px;
}

/* Cart-specific .yc-btn--primary sizing — overrides the global definition only inside .yc-cart */
.yc-cart .yc-btn--primary {
  width: 100%;
  max-width: 640px;
  height: 72px;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(255, 83, 36, 0.35);
}

.yc-cart .yc-btn--primary:hover {
  box-shadow: 0 12px 32px rgba(255, 83, 36, 0.45);
}

.yc-cart .yc-btn--primary:active {
  transform: translateY(1px) scale(0.98);
}

.yc-cart__alert {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.yc-cart__alert--ok {
  color: var(--success-color);
}

.yc-cart__alert--error {
  color: var(--error-color);
}

/* Cart responsive */
@media (max-width: 640px) {
  .yc-cart__item {
    grid-template-columns: 96px 1fr;
    grid-auto-rows: auto;
  }

  .yc-cart__aside {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .yc-cart {
    padding: 12px 8px 30px;
  }

  .yc-cart__title {
    font-size: 24px;
  }

  .yc-cart__titlelink {
    font-size: 18px;
  }

  .yc-btn--primary {
    height: 56px;
    font-size: 16px;
  }
}
