/* =========================================================
   Side cart drawer
   ========================================================= */
.ns-cart.ltn__utilize.ltn__utilize-cart-menu {
  width: min(420px, 94vw) !important;
  max-width: 420px;
  padding: 0 !important;
  background: #fff !important;
  box-shadow: -16px 0 48px rgba(7, 28, 31, 0.18);
  border: 0;
}

html[lang="ar"] .ns-cart.ltn__utilize.ltn__utilize-cart-menu,
html[dir="rtl"] .ns-cart.ltn__utilize.ltn__utilize-cart-menu {
  box-shadow: 16px 0 48px rgba(7, 28, 31, 0.18);
}

.ns-cart__inner.ltn__utilize-menu-inner,
.ns-cart .ltn__utilize-menu-inner {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  gap: 0;
}

.ns-cart__head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(135deg, #071c1f 0%, #133236 100%);
}

.ns-cart__head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ns-cart__title,
.ns-cart .ltn__utilize-menu-title {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.2;
}

.ns-cart__count {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 560;
}

.ns-cart__close {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ns-cart__close:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}

.ns-cart__list.mini-cart-product-area {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow-y: auto;
}

.ns-cart__item.mini-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: start;
  position: relative;
  float: none !important;
  clear: none !important;
  margin: 0 0 10px !important;
  padding: 12px !important;
  border: 1px solid rgba(7, 28, 31, 0.08);
  border-radius: 14px;
  background: #f8faf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ns-cart__item.mini-cart-item:first-child {
  margin-top: 0 !important;
}

.ns-cart__item.mini-cart-item:hover {
  background: #fff;
  border-color: rgba(136, 147, 70, 0.35);
  box-shadow: 0 8px 20px rgba(7, 28, 31, 0.06);
}

.ns-cart__thumb.mini-cart-img {
  position: relative;
  float: none !important;
  width: 72px !important;
  height: 72px;
  margin: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7, 28, 31, 0.06);
}

.ns-cart__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.ns-cart__info.mini-cart-info {
  float: none !important;
  min-width: 0;
  padding: 0 !important;
}

.ns-cart__name {
  margin: 0 0 4px !important;
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.3;
}

.ns-cart__name a {
  color: var(--ns-ink, #071c1f) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ns-cart__name a:hover {
  color: #2a4a11 !important;
}

.ns-cart__variant {
  margin: 0 0 8px;
  color: var(--ns-muted, #5a6b6e);
  font-size: 12px;
  line-height: 1.4;
}

.ns-cart__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ns-cart__qty.mini-cart-quantity {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(42, 74, 17, 0.1);
  color: #2a4a11;
  font-size: 12px;
  font-weight: 700;
}

.ns-cart__price {
  color: var(--ns-ink, #071c1f);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ns-cart__remove-form {
  margin: 0;
}

.ns-cart__remove.mini-cart-item-delete {
  position: static !important;
  top: auto !important;
  inset-inline-end: auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(7, 28, 31, 0.1) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #8a4a4a !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ns-cart__remove.mini-cart-item-delete:hover {
  background: rgba(163, 38, 38, 0.08) !important;
  border-color: rgba(163, 38, 38, 0.25) !important;
  color: #a32626 !important;
}

.ns-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: 28px 18px;
}

.ns-cart__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(136, 147, 70, 0.18), rgba(42, 74, 17, 0.1));
  color: #2a4a11;
  font-size: 26px;
}

.ns-cart__empty h3 {
  margin: 0 0 8px;
  color: var(--ns-ink, #071c1f);
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.ns-cart__empty p {
  margin: 0 0 20px;
  max-width: 26ch;
  color: var(--ns-muted, #5a6b6e);
  font-size: 14px;
  line-height: 1.6;
}

.ns-cart__empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a4a11 0%, #889346 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-cart__empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(42, 74, 17, 0.22);
  color: #fff !important;
}

.ns-cart__footer.mini-cart-footer {
  margin-top: auto;
  padding: 16px 18px 20px !important;
  border-top: 1px solid rgba(7, 28, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(247, 249, 248, 0.65), #fff 40%);
}

.ns-cart__subtotal.mini-cart-sub-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px !important;
}

.ns-cart__subtotal span {
  color: var(--ns-muted, #5a6b6e);
  font-size: 14px;
  font-weight: 600;
}

.ns-cart__subtotal strong,
.ns-cart__subtotal h5 {
  margin: 0 !important;
  color: var(--ns-ink, #071c1f) !important;
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 1.2rem !important;
  font-weight: 700;
}

.ns-cart__note {
  margin: 0 0 16px;
  color: var(--ns-muted, #5a6b6e);
  font-size: 12px;
  line-height: 1.45;
}

.ns-cart__actions.btn-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  margin: 0 !important;
}

.ns-cart__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 14px !important;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ns-cart__btn--ghost {
  border: 1px solid rgba(7, 28, 31, 0.14) !important;
  background: #fff !important;
  color: var(--ns-ink, #071c1f) !important;
}

.ns-cart__btn--ghost:hover {
  border-color: rgba(42, 74, 17, 0.35) !important;
  color: #2a4a11 !important;
  transform: translateY(-1px);
}

.ns-cart__btn--primary {
  border: 0 !important;
  background: linear-gradient(135deg, #2a4a11 0%, #889346 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(42, 74, 17, 0.18);
}

.ns-cart__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(42, 74, 17, 0.26);
  color: #fff !important;
  filter: brightness(1.04);
}

.ns-cart__btn i {
  font-size: 12px;
}

@media (max-width: 420px) {
  .ns-cart.ltn__utilize.ltn__utilize-cart-menu {
    width: 100vw !important;
    max-width: 100vw;
  }

  .ns-cart__actions.btn-wrapper {
    grid-template-columns: 1fr;
  }

  .ns-cart__item.mini-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    padding: 10px !important;
  }

  .ns-cart__thumb.mini-cart-img {
    width: 64px !important;
    height: 64px;
  }
}
