.cart-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(253, 202, 0, 0.22),
      transparent 32%
    ),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  color: #111;
}

.cart-hero {
  padding: 34px 0 50px;
}

.cart-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
}

.cart-back-btn {
  height: 46px;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}

.cart-back-btn:hover {
  background: #fdca00;
  color: #000;
  transform: translateX(-4px);
}

html[dir="rtl"] .cart-back-btn:hover {
  transform: translateX(4px);
}

.cart-logo img {
  height: 44px;
  display: block;
}

.cart-hero-content {
  max-width: 760px;
}

.cart-hero-content span {
  display: inline-flex;
  background: rgba(253, 202, 0, 0.25);
  color: #111;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.cart-hero-content h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -1.5px;
}

.cart-hero-content p {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

.cart-main-section {
  padding: 0 0 70px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 420px;
  gap: 26px;
  align-items: start;
}

.cart-items-panel,
.cart-summary-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 30px;
}

.cart-items-panel {
  padding: 26px;
}

.cart-summary-panel {
  padding: 26px;
  position: sticky;
  top: 24px;
}

.cart-panel-head,
.summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.cart-panel-head span,
.summary-title span {
  color: #777;
  font-size: 13px;
  font-weight: 800;
}

.cart-panel-head h2,
.summary-title h2 {
  font-size: 26px;
  font-weight: 900;
  margin-top: 4px;
}

.summary-title {
  justify-content: flex-start;
}

.summary-title i {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #111;
  color: #fdca00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cart-count-pill {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 24px;
  padding: 16px;
  transition: 0.25s ease;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.07);
}

.cart-item img {
  width: 98px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  background: #f1f1f1;
}

.cart-item-info span {
  display: inline-flex;
  color: #777;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.cart-item-info h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.35;
}

.cart-item-info strong {
  color: #111;
  background: rgba(253, 202, 0, 0.28);
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f6f6f6;
  padding: 8px;
  border-radius: 999px;
}

.cart-qty button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s ease;
}

.cart-qty button:hover {
  background: #fdca00;
  color: #000;
}

.cart-qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
}

.cart-remove-btn {
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.cart-remove-btn:hover {
  background: #dc2626;
  color: #fff;
}

.empty-cart-box {
  min-height: 330px;
  border: 2px dashed #ddd;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
}

.empty-cart-box h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.empty-cart-box p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 22px;
}

.cart-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: #111;
  color: #fff;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: 0.25s ease;
}

.cart-shop-btn:hover {
  background: #fdca00;
  color: #000;
}

.cart-summary-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #eee;
  padding: 20px;
}

.cart-summary-card h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #ddd;
}

.summary-row span {
  color: #666;
  font-weight: 700;
}

.summary-row strong {
  font-size: 18px;
  font-weight: 900;
}

.cart-summary-card p {
  margin: 18px 0;
  background: #f8f8f8;
  border-radius: 18px;
  padding: 14px;
  color: #666;
  line-height: 1.7;
  font-size: 14px;
}

.whatsapp-checkout-btn,
.clear-cart-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.whatsapp-checkout-btn {
  background: #25d366;
  color: #fff;
  margin-bottom: 12px;
}

.whatsapp-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.25);
}

.clear-cart-btn {
  background: #111;
  color: #fff;
}

.clear-cart-btn:hover {
  background: #fdca00;
  color: #000;
}

html[dir="rtl"] body {
  font-family: "Manrope", "Noto Kufi Arabic", sans-serif;
}

html[dir="rtl"] .cart-hero-content h1 {
  letter-spacing: 0;
}

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

  .cart-summary-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .cart-hero {
    padding-top: 24px;
  }

  .cart-topbar {
    margin-bottom: 32px;
  }

  .cart-layout {
    gap: 18px;
  }

  .cart-items-panel,
  .cart-summary-panel {
    border-radius: 24px;
    padding: 18px;
  }

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

  .cart-item {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }

  .cart-item img {
    width: 88px;
    height: 88px;
  }

  .cart-qty {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .cart-remove-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cart-hero-content p {
    font-size: 14px;
  }
}
