.woocommerce-cart .woocommerce {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.mw-cart {
  direction: rtl;
  background: linear-gradient(180deg, #f5f6fa 0%, #eef0f6 100%);
  padding: 70px 0 80px;
  min-height: 70vh;
  font-family: "Tajawal", "Alexandria", sans-serif;
}

.mw-cart-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.mw-cart-head {
  text-align: center;
  margin-bottom: 28px;
}

.mw-cart-head h1 {
  margin: 0 0 8px;
  color: #2b304d;
  font-family: "norsal-bold", "Tajawal", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
}

.mw-cart-head p {
  margin: 0;
  color: #5c6378;
  font-size: 16px;
}

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

.mw-cart-card {
  background: #fff;
  border: 1px solid rgba(43, 48, 77, 0.06);
  border-radius: 20px;
  padding: 12px 22px;
  box-shadow: 0 8px 32px rgba(43, 48, 77, 0.08);
}

.mw-cart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(43, 48, 77, 0.1);
}

.mw-cart-row:last-child {
  border-bottom: 0;
}

.mw-cart-row__media {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: #f6f7fb;
}

.mw-cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-cart-row__body h2 {
  margin: 0 0 6px;
  color: #2b304d;
  font-size: 18px;
  font-family: "norsal-bold", "Tajawal", sans-serif;
}

.mw-cart-row__body a {
  color: inherit;
}

.mw-cart-row__meta {
  margin: 0;
  color: #5c6378;
  font-size: 14px;
}

.mw-cart-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mw-cart-row__side strong {
  color: #2b304d;
  font-size: 16px;
}

.mw-cart-remove {
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.mw-cart-remove:hover {
  color: #8f1d14;
}

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

.mw-cart-summary h2 {
  margin: 0 0 18px;
  color: #2b304d;
  font-size: 18px;
  font-family: "norsal-bold", "Tajawal", sans-serif;
}

.mw-cart-summary h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-inline-end: 8px;
  border-radius: 4px;
  background: #edaa74;
  vertical-align: -3px;
}

.mw-cart-line,
.mw-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #5c6378;
  font-size: 14px;
}

.mw-cart-total {
  margin: 8px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43, 48, 77, 0.06), rgba(237, 170, 116, 0.16));
  color: #2b304d;
  font-weight: 800;
}

.mw-cart-total strong {
  color: #edaa74;
  font-size: 22px;
}

.mw-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: #2b304d;
  color: #fff !important;
  font-weight: 700;
}

.mw-cart-btn:hover {
  background: #edaa74;
  color: #2b304d !important;
}

.mw-cart-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #2b304d;
  font-weight: 700;
}

.mw-cart-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 24px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(43, 48, 77, 0.08);
}

.mw-cart-empty p {
  margin: 0 0 18px;
  color: #5c6378;
  font-size: 18px;
}

.mw-cart-empty .mw-cart-btn {
  width: max-content;
  margin: 0 auto;
  padding: 0 22px;
}

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

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

  .mw-cart-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .mw-cart-row__side {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
