.pe-upsell-price {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pe-accent);
}

.pe-upsell-add-to-cart,
.pe-upsell-view-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--pe-transition-fast), color var(--pe-transition-fast), border-color var(--pe-transition-fast), transform var(--pe-transition-fast);
}

.pe-upsell-add-to-cart {
  border: 1px solid var(--pe-accent);
  background: transparent;
  color: var(--pe-accent);
  cursor: pointer;
}

.pe-upsell-add-to-cart:hover {
  background: hsla(var(--accent), 0.08);
  transform: translateY(-1px);
}

.pe-upsell-add-to-cart:disabled,
.pe-upsell-add-to-cart.is-loading {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.pe-upsell-add-to-cart.is-added {
  background: var(--pe-accent);
  color: var(--pe-accent-foreground);
}

.pe-upsell-view-product {
  border: 1px solid var(--pe-border);
  color: var(--pe-foreground);
  background: var(--pe-card);
}

.pe-upsell-view-product:hover {
  border-color: var(--pe-accent);
  color: var(--pe-accent);
}

.pe-cross-sells {
  margin-top: 2.5rem;
}

.pe-cross-sells__title {
  margin: 0 0 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-muted-foreground);
}

.pe-cross-sells__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 82%);
  gap: 0.875rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.pe-cross-sells__card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 3px 14px hsla(0, 0%, 0%, 0.04);
  scroll-snap-align: start;
  transition: box-shadow var(--pe-transition-fast), border-color var(--pe-transition-fast), transform var(--pe-transition-fast);
}

.pe-cross-sells__card:hover {
  border-color: hsla(var(--accent), 0.4);
  box-shadow: 0 10px 20px hsla(0, 0%, 0%, 0.08);
  transform: translateY(-1px);
}

.pe-cross-sells__image {
  display: block;
  width: 80px;
  height: 80px;
}

.pe-cross-sells__thumb {
  width: 80px;
  height: 80px;
  border-radius: 0.625rem;
  object-fit: cover;
  border: 1px solid var(--pe-border);
}

.pe-cross-sells__content {
  min-width: 0;
  display: grid;
  gap: 0.375rem;
}

.pe-cross-sells__name {
  margin: 0;
  color: var(--pe-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.pe-cross-sells__name:hover {
  color: var(--pe-accent);
}

.pe-cross-sells__actions {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .pe-cross-sells__row {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: initial;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

.pe-checkout-upsells {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pe-border);
}

.pe-checkout-upsells__title {
  margin: 0 0 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pe-muted-foreground);
}

.pe-checkout-upsells__grid {
  display: grid;
  gap: 0.75rem;
}

.pe-checkout-upsells__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--pe-border);
  border-radius: 0.75rem;
  padding: 0.625rem;
  background: var(--pe-card);
}

.pe-checkout-upsells__image {
  display: block;
  width: 72px;
  height: 72px;
}

.pe-checkout-upsells__thumb {
  width: 72px;
  height: 72px;
  border-radius: 0.625rem;
  object-fit: cover;
  border: 1px solid var(--pe-border);
}

.pe-checkout-upsells__info {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.pe-checkout-upsells__name {
  color: var(--pe-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.pe-checkout-upsells__name:hover {
  color: var(--pe-accent);
}

.pe-checkout-upsells__actions {
  display: flex;
  justify-content: flex-end;
}

.pe-checkout-upsells .pe-upsell-add-to-cart {
  background: var(--pe-accent);
  color: var(--pe-accent-foreground);
  border-color: var(--pe-accent);
}

.pe-checkout-upsells .pe-upsell-add-to-cart:hover {
  background: hsl(190, 100%, 40%);
  border-color: hsl(190, 100%, 40%);
}

@media (max-width: 480px) {
  .pe-checkout-upsells__item {
    grid-template-columns: 64px 1fr;
  }

  .pe-checkout-upsells__image,
  .pe-checkout-upsells__thumb {
    width: 64px;
    height: 64px;
  }

  .pe-checkout-upsells__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
