.cart-page__hero {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.cart-page__body {
  padding-bottom: clamp(48px, 8vw, 80px);
}

.cart-page__loading {
  padding: 32px 0;
  color: rgba(26, 46, 61, 0.6);
  font-size: 15px;
}

.cart-page__empty {
  text-align: center;
  padding: clamp(40px, 8vw, 72px) 16px;
}

.cart-page__empty-text {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: #1a2e3d;
}

.cart-page__empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a9fd4, #5ec9a8);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cart-page__content {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 900px) {
  .cart-page__content {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
  }
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(197, 224, 245, 0.8);
  box-shadow: 0 8px 24px rgba(74, 159, 212, 0.06);
}

.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f8fc;
}

.cart-item__image--placeholder {
  display: block;
}

.cart-item__body {
  min-width: 0;
}

.cart-item__name {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: #1a2e3d;
}

.cart-item__name a {
  color: inherit;
  text-decoration: none;
}

.cart-item__name a:hover {
  color: #4a9fd4;
}

.cart-item__meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(26, 46, 61, 0.55);
}

.cart-item__price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4ba2b8;
}

.cart-item--bundle {
  align-items: start;
}

.cart-item__bundle {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(197, 224, 245, 0.75);
}

.cart-item__bundle-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(26, 46, 61, 0.5);
}

.cart-item__bundle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.cart-item__bundle-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.35;
}

.cart-item__bundle-name {
  min-width: 0;
  color: #1a2e3d;
  text-decoration: none;
}

.cart-item__bundle-name:hover {
  color: #4a9fd4;
}

.cart-item__bundle-price {
  flex-shrink: 0;
  font-weight: 600;
  color: #4ba2b8;
  white-space: nowrap;
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(240, 248, 255, 0.9);
  border: 1px solid rgba(197, 224, 245, 0.9);
}

.cart-qty__btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #4a9fd4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cart-qty__btn:hover {
  background: #eef7fd;
}

.cart-qty__value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-item__remove {
  border: none;
  background: none;
  color: rgba(26, 46, 61, 0.45);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item__remove:hover {
  color: #c45c7a;
}

.cart-summary {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 224, 245, 0.85);
  box-shadow: 0 10px 28px rgba(74, 159, 212, 0.08);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  color: rgba(26, 46, 61, 0.72);
}

.cart-summary__row--total {
  margin: 16px 0 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(197, 224, 245, 0.8);
  font-size: 18px;
  color: #1a2e3d;
}

.cart-summary__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a9fd4, #5ec9a8);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.cart-summary__checkout[hidden] {
  display: none;
}

.cart-summary__checkout:hover {
  filter: brightness(1.03);
}

.order-page__body,
.order-success-page__body {
  padding-bottom: clamp(48px, 8vw, 80px);
}

.order-page__loading {
  padding: 32px 0;
  color: rgba(26, 46, 61, 0.6);
}

.order-page__grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 900px) {
  .order-page__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
  }
}

.order-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 224, 245, 0.85);
}

.order-form__field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(26, 46, 61, 0.78);
}

.order-form__field input,
.order-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(197, 224, 245, 0.95);
  border-radius: 12px;
  font: inherit;
  color: #1a2e3d;
  background: #fff;
}

.order-form__field input:focus,
.order-form__field textarea:focus {
  outline: 2px solid rgba(74, 159, 212, 0.35);
  border-color: #4a9fd4;
}

.order-form__submit {
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a9fd4, #5ec9a8);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.order-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.order-form__error {
  margin: 0;
  color: #c45c7a;
  font-size: 14px;
}

.order-form__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(26, 46, 61, 0.5);
}

.order-summary__title {
  margin: 0 0 14px;
  font-size: 18px;
  color: #1a2e3d;
}

.order-summary__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.order-summary__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: rgba(26, 46, 61, 0.78);
}

.order-summary__item--rich {
  align-items: flex-start;
}

.order-summary__item-main {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.order-summary__thumb,
.order-summary__bundle-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(197, 224, 245, 0.8);
  background: #fff;
  display: block;
}

.order-summary__bundle-thumb {
  width: 40px;
  height: 40px;
}

.order-summary__thumb img,
.order-summary__bundle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3f0fa, #edf9f3);
}

.order-summary__thumb-placeholder--sm {
  min-height: 40px;
}

.order-summary__item-body {
  flex: 1;
  min-width: 0;
}

.order-summary__item-name {
  display: block;
  font-weight: 600;
  color: #1a2e3d;
  text-decoration: none;
  line-height: 1.35;
}

.order-summary__item-name:hover {
  color: #4ba2b8;
}

.order-summary__item-price {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 14px;
  color: #1a2e3d;
}

.order-summary__bundle {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-summary__bundle-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.order-summary__bundle-name {
  color: rgba(26, 46, 61, 0.65);
  text-decoration: none;
}

.order-summary__bundle-name:hover {
  color: #4ba2b8;
}

.order-success-card {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 224, 245, 0.85);
}

.order-success-card__number {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #4ba2b8;
}

.order-success-card__meta {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.order-success-card__meta div {
  display: grid;
  gap: 2px;
}

.order-success-card__meta dt {
  font-size: 12px;
  color: rgba(26, 46, 61, 0.5);
}

.order-success-card__meta dd {
  margin: 0;
  font-size: 15px;
  color: #1a2e3d;
}

.order-success-card__items {
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(197, 224, 245, 0.8);
}

.order-success-card__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(197, 224, 245, 0.8);
  font-size: 18px;
  font-weight: 700;
  color: #1a2e3d;
}

.cart-summary__continue {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #4a9fd4;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(26, 46, 61, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
