.cart-page {
  padding: 150px 0 100px;
  background: #050505;
  color: #f1f1f1;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.cart-main h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  letter-spacing: .5px;
  margin-bottom: 14px;
}

.cart-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 0 0 22px;
}

.cart-empty {
  color: #a8a8a8;
  margin-bottom: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cart-item__media {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__media--placeholder {
  background: linear-gradient(135deg, rgba(179, 0, 0, .25), rgba(255, 255, 255, .04));
}

.cart-item__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-item__recurring {
  display: block;
  margin: -2px 0 8px;
  color: #ffa8a8;
  font-size: .76rem;
  font-weight: 600;
}

.cart-item__qty-form {
  margin-bottom: 10px;
}

.cart-item__qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  overflow: hidden;
}

.cart-item__qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease;
}

.cart-item__qty-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .14);
}

.cart-item__qty-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.cart-item__qty-value {
  min-width: 30px;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  color: #f1f1f1;
}

.cart-item__remove {
  background: none;
  border: none;
  padding: 0;
  color: #a8a8a8;
  font-size: .82rem;
  text-decoration: underline;
  cursor: pointer;
}

.cart-item__remove:hover { color: #fff; }

.cart-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.cart-summary {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 110px;
}

.cart-summary h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: #d6d6d6;
  font-size: .92rem;
}

.cart-summary__row--total {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-summary__row--discount {
  color: #86efac;
}

.cart-summary__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-summary__item-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .84rem;
  color: #b8b8b8;
}

.cart-summary__item-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-summary__item-qty {
  color: #767676;
}

.cart-coupon {
  margin-bottom: 6px;
}

.cart-coupon__form {
  display: flex;
  gap: 8px;
}

.cart-coupon__input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: #f1f1f1;
  font-size: .86rem;
}

.cart-coupon__input::placeholder {
  color: #767676;
}

.cart-coupon__input:focus {
  outline: none;
  border-color: var(--accent, #b30000);
}

.cart-coupon__apply {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.cart-coupon__apply:hover {
  background: rgba(255, 255, 255, .14);
}

.cart-coupon__applied {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25);
}

.cart-coupon__code {
  flex: 1;
  min-width: 0;
  font-size: .84rem;
  font-weight: 700;
  color: #86efac;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-coupon__discount {
  font-size: .82rem;
  font-weight: 700;
  color: #86efac;
}

.cart-coupon__remove {
  background: none;
  border: none;
  padding: 0;
  color: #a8a8a8;
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
}

.cart-coupon__remove:hover { color: #fff; }

.cart-checkout-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  border: none;
  background: var(--accent, #b30000);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.cart-checkout-btn:hover {
  background: #d40000;
  transform: translateY(-1px);
}

.cart-summary__note {
  margin-top: 14px;
  color: #7d7d7d;
  font-size: .78rem;
}

.cart-summary__tax-note {
  margin-top: -4px;
  margin-bottom: 4px;
  text-align: right;
  color: #767676;
  font-size: .74rem;
}

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

  .cart-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item__price {
    grid-column: 2;
  }
}
