.navbar-cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  text-decoration: none;
}

.navbar-cart-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.navbar-cart-badge {
  position: absolute;
  top: -5px;
  right: -6px;

  min-width: 19px;
  height: 19px;
  padding: 0 5px;

  border-radius: 999px;
  background: #ffc107;
  color: #111827;

  font-size: 0.68rem;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
}

.cart-page {
  flex: 1;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.cart-main,
.cart-summary,
.cart-empty-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.cart-main {
  padding: 22px;
}

.cart-main h1 {
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.cart-summary {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 20px;
}

.cart-summary h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.98rem;
}

.cart-summary-sub {
  margin-top: 4px;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;

  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cart-item:first-of-type {
  border-top: 0;
}

.cart-item img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  background: #f1f3f5;
}

.cart-item-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.cart-item-title:hover {
  text-decoration: underline;
}

.cart-item-meta {
  margin-top: 4px;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-price {
  font-weight: 900;
  white-space: nowrap;
}

.cart-remove-btn {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #dc3545;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0;
}

.cart-empty-card {
  max-width: 560px;
  margin: 36px auto;
  padding: 36px;
  text-align: center;
}

.cart-empty-card i {
  font-size: 2.2rem;
}

.cart-empty-card h1 {
  margin-top: 12px;
  font-weight: 900;
}

.cart-empty-card p {
  color: #6c757d;
  font-weight: 650;
}

.checkout-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff3cd;
  color: #664d03;
  font-weight: 750;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .cart-item-price {
    grid-column: 2;
  }
}