.cart-page {
  position: relative;
  padding: 1.5rem 0 0;
  overflow: hidden;
}

.cart-page__blob {
  position: absolute;
  width: min(280px, 32vw);
  height: min(320px, 40vw);
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.cart-page__blob--teal {
  left: -130px;
  bottom: 18%;
  background: var(--teal-soft);
}

.cart-page__blob--coral {
  right: -130px;
  bottom: 22%;
  background: var(--coral-soft);
}

.cart-page .container {
  position: relative;
  z-index: 1;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.75rem;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.cart-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-count-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.continue-link {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.continue-link:hover {
  color: var(--teal);
}

.cart-table {
  background: #fff;
  border-radius: 22px;
  padding: 0.4rem 1.1rem 0.6rem;
  box-shadow: var(--shadow-card);
}

.cart-table__head {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.8fr 0.6fr 40px;
  gap: 0.6rem;
  padding: 0.85rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a9590;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.8fr 0.6fr 40px;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem 0.2rem;
  border-top: 1px solid rgba(30, 30, 29, 0.08);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cart-product img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
  background: #efe6d8;
  flex-shrink: 0;
}

.cart-product h2 {
  font-size: 0.98rem;
  font-weight: 800;
}

.cart-product p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.in-stock {
  color: #2f9e5c !important;
  font-weight: 800 !important;
  margin-top: 0.15rem;
}

.cart-price,
.cart-line-total {
  font-weight: 800;
}

.cart-row .qty {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(30, 30, 29, 0.12);
  width: fit-content;
}

.cart-row .qty button {
  width: 32px;
  height: 36px;
  font-weight: 700;
}

.cart-row .qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.cart-remove {
  color: #9a9590;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.cart-remove:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}

.ship-banner {
  margin-top: 1rem;
  background: #f8f0e4;
  border-radius: 18px;
  padding: 1rem 1.15rem 1.05rem;
}

.ship-banner p {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.ship-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 30, 29, 0.1);
  overflow: hidden;
}

.ship-bar__fill {
  display: block;
  height: 100%;
  width: 90%;
  background: var(--yellow);
  border-radius: inherit;
}

.ship-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cart-summary {
  background: #fff;
  border-radius: 22px;
  padding: 1.3rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 6.5rem;
}

.cart-summary h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #bbb;
  font-size: 0.65rem;
  font-weight: 800;
  color: #888;
  vertical-align: middle;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 0.85rem;
  margin: 0.85rem 0 1.1rem;
  border-top: 1px solid rgba(30, 30, 29, 0.1);
  font-weight: 800;
}

.summary-total strong {
  font-size: 1.45rem;
  display: block;
}

.summary-total p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-btn {
  width: 100%;
  margin-top: 0;
  height: 48px;
}

.gpay-btn {
  width: 100%;
  margin-top: 0.65rem;
  height: 46px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(30, 30, 29, 0.16);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.gpay-g {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.summary-trust {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cart-related {
  margin-bottom: 2.5rem;
}

.rel-arrows {
  display: flex;
  gap: 0.4rem;
}

.pdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
}

.pdp-btn--cart {
  background: var(--yellow);
}

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

  .cart-summary {
    position: static;
  }

  .cart-table__head {
    display: none;
  }

  .cart-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'product remove'
      'price price'
      'qty total';
  }

  .cart-product { grid-area: product; }
  .cart-remove { grid-area: remove; }
  .cart-price { grid-area: price; }
  .qty { grid-area: qty; }
  .cart-line-total { grid-area: total; justify-self: end; }
}
