.cart-page-hero {
  background: #f5f7f8;
  padding: 170px 0 72px;
  background: #d1e4ec;
}

.cart-page-hero .cart-eyebrow,
.cart-panel-eyebrow {
  color: #1fb18a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-page-hero h1 {
  color: #3f4758;
  font-size: 48px;
  line-height: 1.08;
  margin: 14px 0 12px;
}

.cart-page-hero p {
  color: #4f5868;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  max-width: 660px;
}

.cart-page-hero img {
  max-height: 210px;
  object-fit: contain;
}

.cart-workspace {
  background: #f6f8f9;
  padding: 44px 0 76px;
}

.cart-main-grid {
  align-items: flex-start;
}

.cart-items-stack,
.cart-sidebar {
  display: grid;
  gap: 16px;
}

.cart-list-panel {
  background: #fff;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(63, 71, 88, 0.06);
  padding: 18px;
}

.cart-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf0f2;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.cart-section-head h2 {
  color: #3f4758;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.cart-section-head > div:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-list-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cart-clear-link {
  color: #687281;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cart-clear-link:hover {
  color: #1fb18a;
}

.cart-count-pill {
  background: #e9f8f4;
  border: 1px solid #c8ebe2;
  border-radius: 999px;
  color: #16856f;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.cart-item-card,
.cart-panel {
  background: #fff;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(63, 71, 88, 0.06);
}

.cart-item-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 130px;
  padding: 16px;
}

.cart-item-card.is-empty {
  opacity: 0.72;
}

.cart-item-image {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #e5eaee;
  border-radius: 8px;
  display: flex;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  width: 96px;
}

.cart-item-image img {
  height: 78px;
  max-width: 84px;
  object-fit: contain;
}

.cart-item-title {
  color: #3f4758;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
}

.cart-part-pill {
  background: #e9f8f4;
  border-radius: 999px;
  color: #16856f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.cart-quantity-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cart-qty-control {
  align-items: center;
  border: 1px solid #dfe7eb;
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  overflow: hidden;
  width: 160px;
}

.cart-qty-button {
  background: transparent;
  border: 0;
  color: #1fb18a;
  font-size: 18px;
  font-weight: 800;
  height: 38px;
  line-height: 1;
  width: 38px;
}

.cart-qty-control input,
.cart-qty-control select {
  border: 0;
  color: #3f4758;
  font-weight: 800;
  height: 36px;
  min-width: 54px;
  padding: 0 8px;
  text-align: center;
}

.cart-qty-control select {
  min-width: 145px;
  text-align: left;
}

.cart-qty-control input:focus,
.cart-qty-control select:focus {
  box-shadow: none;
  outline: none;
}

.cart-quantity-label {
  color: #7b8490;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-price {
  color: #3f4758;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.cart-panel {
  padding: 20px;
}

.cart-panel h3 {
  color: #3f4758;
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 18px;
}

.cart-summary-row {
  align-items: baseline;
  border-top: 1px solid #edf0f2;
  color: #7b8490;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.cart-summary-row:first-of-type {
  border-top: 0;
}

.cart-summary-row strong,
.cart-summary-row .cart-total {
  color: #3f4758;
}

.cart-summary-row.cart-grand-total {
  font-size: 20px;
}

.cart-muted-note {
  color: #7b8490;
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.cart-currency-form {
  margin: 0;
  min-width: 148px;
}

.cart-currency-form label,
.cart-shipping-form label {
  color: #3f4758;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cart-currency-form .form-select,
.cart-shipping-form .form-control,
.cart-shipping-form .form-select {
  border-color: #dfe7eb;
  border-radius: 8px;
  color: #3f4758;
  min-height: 42px;
}

.cart-primary-button {
  background: #1fb18a;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  min-height: 44px;
  width: 100%;
}

.cart-primary-button:hover {
  background: #168f72;
  color: #fff;
}

.cart-payment-placeholder {
  color: #3f4758;
  font-weight: 400;
}

.cart-payment-placeholder img {
  margin-top: 18px;
  max-width: 260px;
  width: 78%;
}

.cart-empty-state {
  background: #f6f8f9;
  color: #3f4758;
  padding: 90px 0;
  text-align: center;
}

@media (max-width: 991.98px) {
  .cart-page-hero {
    padding: 64px 0 56px;
  }

  .cart-page-hero h1 {
    font-size: 38px;
  }

  .cart-sidebar {
    margin-top: 24px;
  }

  .cart-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-list-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .cart-item-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .cart-item-image {
    height: 74px;
    width: 74px;
  }

  .cart-item-image img {
    height: 60px;
    max-width: 64px;
  }

  .cart-item-price {
    grid-column: 1 / -1;
    text-align: left;
  }

  .cart-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-list-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-currency-form {
    width: 100%;
  }
}
