.cart-page-frame {
  display: block;
  width: 100%;
}

.cart-page {
  box-sizing: border-box;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
  color: #171717;
}

.cart-page__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.cart-page__eyebrow {
  margin: 0 0 .35rem;
  color: #737373;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cart-page__heading h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.cart-page__heading h1 span {
  color: #737373;
  font-size: .7em;
  font-weight: 500;
}

.cart-page__continue {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: #404040;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

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

.cart-page__items,
.cart-page__summary {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  background: #fff;
}

.cart-page__items > h2,
.cart-page__summary > h2 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cart-page__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-page__list > li {
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #f0f0f0;
}

.cart-page__list > li:first-child {
  border-top: 0;
}

.cart-page__list > li img {
  width: 5.5rem;
  height: 7rem;
  flex: 0 0 auto;
  border-radius: .75rem;
  background: #f5f5f5;
}

.cart-page__list > li form button {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.cart-page__summary {
  background: #fff;
}

.cart-page__summary > div {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: .9rem;
}

.cart-page__summary > div dl {
  gap: .6rem;
}

.cart-page__summary > div a {
  border-radius: .65rem;
}

.cart-page__empty {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: 4rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  text-align: center;
}

.cart-page__empty p {
  margin: 0 0 .5rem;
  color: #525252;
}

.cart-page__checkout {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cart-page a:focus-visible,
.cart-page button:focus-visible,
.cart-page input:focus-visible {
  outline: 3px solid #a34726;
  outline-offset: 3px;
}

@media (min-width: 52rem) {
  .cart-page {
    padding-top: 3rem;
  }

  .cart-page__layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(22rem, 1fr);
    gap: 1.5rem;
  }

  .cart-page__items,
  .cart-page__summary {
    padding: 1.5rem;
  }

  .cart-page__summary {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

@media (max-width: 36rem) {
  .cart-page {
    width: min(100% - 1.25rem, 72rem);
    padding-top: 1.25rem;
  }

  .cart-page__heading {
    align-items: start;
  }

  .cart-page__continue {
    max-width: 8rem;
    text-align: right;
  }

  .cart-page__items,
  .cart-page__summary {
    padding: 1rem;
  }

  .cart-page__list > li img {
    width: 4.5rem;
    height: 5.75rem;
  }
}

.cart-line__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.cart-line__heading > a { min-width: 0; }
.cart-line__price { flex-shrink: 0; font-size: 16px; white-space: nowrap; }
.cart-line__options { margin-top: 4px; color: #656570; font-size: 12px; }
.cart-line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.cart-line__quantity { display: flex; align-items: center; overflow: hidden; border: 1px solid #d6d6d0; border-radius: 12px; }
.cart-line__quantity button { display: grid; width: 44px; height: 44px; place-items: center; font-weight: 700; }
.cart-line__quantity button:disabled { color: #b5b5b5; cursor: not-allowed; }
.cart-line__quantity > span { width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-line__remove { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; color: #656570; font-size: 12px; }
.cart-line__remove svg { width: 16px; height: 16px; }
.cart-line__remove:hover { color: #0e0e12; }
.cart-line__limit { margin-top: 6px; color: #656570; font-size: 12px; }
.cart-extras__label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cart-extras__button { flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #0e0e12; border-radius: 12px; background: #0e0e12; color: var(--ge-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.cart-extras__button:hover { background: #29292d; }
.cart-page__summary .cart-extras { margin-block: 20px; padding-block: 20px; border-block: 1px solid #e3e3dc; }
.cart-extras input[type="text"] { border-radius: 12px; font-size: 16px; }
.cart-extras__progress { padding: 12px; border-radius: 12px; background: var(--ge-accent-soft); font-size: 13px; line-height: 1.5; }
.cart-shipping-option { display: grid; grid-template-columns: 16px 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 10px; border: 2px solid #e3e3dc; border-radius: 13px; cursor: pointer; }
.cart-shipping-option.is-selected { border-color: #0e0e12; }
.cart-shipping-option input { width: 16px; height: 16px; color: #0e0e12; accent-color: #0e0e12; }
.cart-shipping-option > svg { width: 20px; height: 20px; }
.cart-shipping-option__delivery strong { display: block; font-size: 14px; }
.cart-shipping-option__delivery > span { display: block; margin-top: 2px; color: #656570; font-size: 12px; overflow-wrap: anywhere; }
.cart-shipping-option__price { font-size: 13px; white-space: nowrap; }
.cart-extras__note { margin-top: 8px; color: #656570; font-size: 12px; line-height: 1.5; }
.cart-summary__checkout { background: #0e0e12; color: var(--ge-accent); }
.cart-summary__checkout:hover { background: #29292d; }
@media (max-width: 576px) {
  .cart-line__heading { flex-direction: column; gap: 4px; }
  .cart-line__actions { gap: 8px; }
}

.cart-extras__progress-bar { background: var(--ge-accent); }

.cart-balance { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--ge-accent-line); border-radius: 14px; background: var(--ge-accent-soft); font-size: 13px; line-height: 1.5; }
.cart-balance h3 { margin: 0; font-size: 15px; font-weight: 700; }
.cart-balance p { margin: 0; }
.cart-balance summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 600; }
.cart-balance form { display: grid; gap: 10px; padding-top: 8px; }
.cart-balance__fields { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-balance__fields input[type="number"] { flex: 1 1 100px; min-width: 0; width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--ge-accent-line); border-radius: 10px; background: #fff; font: inherit; }
.cart-balance a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }

/* Preço promocional do item: total em destaque e base original identificada. */
.cart-line__pricing { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 2px; }
.cart-line__original-price, .cart-line__unit-price { color: #656570; font-size: 12px; }
.cart-line__original-price { white-space: nowrap; }
.cart-line__unit-price { max-width: 170px; text-align: right; }
.cart-line__promotion { margin-top: 6px; color: #326329; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 576px) {
  .cart-line__pricing { align-items: flex-start; }
  .cart-line__unit-price { max-width: none; text-align: left; }
}
