.mungeh-rent-page {
  --rent-bg: #f8f5ef;
  --rent-card: #ffffff;
  --rent-border: #e7dfd2;
  --rent-text: #1f2a24;
  --rent-muted: #6f786f;
  --rent-green: #215c3f;
  --rent-green-dark: #17442e;
  --rent-soft: #f4eee4;
  --rent-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  --rent-radius: 18px;
  --rent-radius-sm: 14px;

  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 110px;
  color: var(--rent-text);
  box-sizing: border-box;
}

.mungeh-rent-page *,
.mungeh-rent-page *::before,
.mungeh-rent-page *::after {
  box-sizing: border-box;
}

.mungeh-rent-page.lang-fa {
  direction: rtl;
  font-family: Vazirmatn, Vazir, sans-serif;
}

.mungeh-rent-page.lang-en {
  direction: ltr;
  font-family: Inter, Arial, sans-serif;
}

.mungeh-rent-header {
  text-align: center;
  margin-bottom: 28px;
}

.mungeh-rent-header h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.2;
  color: var(--rent-text);
}

.mungeh-rent-header p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--rent-muted);
}

.mungeh-rent-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.mungeh-rent-products {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rent-product-card {
  background: var(--rent-card);
  border: 1px solid var(--rent-border);
  border-radius: var(--rent-radius);
  box-shadow: var(--rent-shadow);
  overflow: hidden;
  min-width: 0;
}

.rent-product-slider {
  position: relative;
  background: #f2eadf;
  overflow: hidden;
}

.rent-slider-track {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.rent-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rent-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rent-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #efe7da;
}

.slider-arrow {
  position: absolute;
  bottom: 12px;
  top: auto;
  transform: none;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(33, 92, 63, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  padding: 0;
  line-height: 1;
  font-size: 18px;
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

.slider-arrow:hover {
  background: #17442e;
}

.rent-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0 2px;
  background: var(--rent-card);
}

.rent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d0c7;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rent-dot.active {
  background: var(--rent-green);
  transform: scale(1.12);
}

.rent-product-body {
  padding: 16px 16px 18px;
}

.rent-product-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.35;
  color: var(--rent-text);
}

.rent-prices {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.rent-price-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--rent-bg);
  border: 1px solid var(--rent-border);
  border-radius: 14px;
  padding: 10px 12px;
}

.rent-price-item .label {
  font-size: 13px;
  color: var(--rent-muted);
}

.rent-price-item strong {
  font-size: 18px;
  color: var(--rent-green-dark);
  font-weight: 700;
}

.rent-price-item .per-day {
  font-size: 13px;
  color: var(--rent-muted);
}

.rent-details-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--rent-green);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin: 0 0 12px;
  text-align: start;
  display: inline-block;
}

.rent-details-content {
  display: none;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--rent-muted);
}

.rent-details-content.open {
  display: block;
}

.rent-open-controls,
.open-date-modal,
.add-to-cart-btn,
.cart-checkout-btn,
.mobile-cart-open,
.confirm-date-range {
  appearance: none;
  border: none;
  background: var(--rent-green);
  color: #fff;
  border-radius: 14px;
  min-height: 46px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-shadow: none;
}

.rent-open-controls:hover,
.open-date-modal:hover,
.add-to-cart-btn:hover,
.cart-checkout-btn:hover,
.mobile-cart-open:hover,
.confirm-date-range:hover {
  background: var(--rent-green-dark);
  color: #fff;
}

.rent-controls-panel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rent-border);
}

.rent-controls-panel.open {
  display: block;
}

.rent-qty-box,
.rent-date-box,
.rent-card-summary {
  margin-bottom: 14px;
}

.rent-qty-box > span,
.rent-date-box > span {
  display: block;
  font-size: 13px;
  color: var(--rent-muted);
  margin-bottom: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rent-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  min-height: 44px;
}

.qty-btn {
  appearance: none;
  border: none;
  background: var(--rent-soft);
  color: var(--rent-green-dark);
  width: 42px;
  min-width: 42px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #e9e0d2;
}

.qty-value {
  width: 54px;
  min-width: 54px;
  height: 44px;
  border: none;
  text-align: center;
  background: #fff;
  color: var(--rent-text);
  font-size: 16px;
  font-weight: 700;
  padding: 0;
}

.selected-date-preview {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--rent-muted);
}

.rent-card-summary {
  background: var(--rent-bg);
  border: 1px solid var(--rent-border);
  border-radius: 14px;
  padding: 12px;
}

.rent-card-summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rent-card-summary span {
  font-size: 14px;
  color: var(--rent-muted);
}

.rent-card-summary strong {
  font-size: 18px;
  color: var(--rent-green-dark);
}

.mungeh-rent-cart {
  width: 320px;
  flex: 0 0 320px;
  position: sticky;
  top: 24px;
}

.cart-box {
  background: var(--rent-card);
  border: 1px solid var(--rent-border);
  border-radius: 20px;
  box-shadow: var(--rent-shadow);
  padding: 18px;
}

.cart-box h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
}

.cart-items {
  min-height: 100px;
  margin-bottom: 16px;
}

.empty-cart-text {
  margin: 0;
  color: var(--rent-muted);
  font-size: 14px;
  line-height: 1.8;
}

.cart-item {
  background: var(--rent-bg);
  border: 1px solid var(--rent-border);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 10px;
}

.cart-item:last-child {
  margin-bottom: 0;
}

.cart-item-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rent-text);
}

.cart-item-meta {
  font-size: 13px;
  line-height: 1.8;
  color: var(--rent-muted);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-total span {
  font-size: 16px;
  font-weight: 700;
}

.cart-total strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--rent-green-dark);
}

.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-cart-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--rent-border);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  padding: 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-cart-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mobile-cart-summary span {
  font-size: 13px;
  color: var(--rent-muted);
}

.mobile-cart-summary strong {
  font-size: 18px;
  color: var(--rent-green-dark);
}

.rent-date-modal {
  display: none;
}

.rent-date-modal.open {
  display: block;
}

.rent-date-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
}

.rent-date-modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 92%;
  max-width: 640px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  overflow: hidden;
}

.rent-date-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rent-border);
}

.rent-date-modal-header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.close-date-modal {
  appearance: none;
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--rent-text);
  padding: 0;
}

.rent-date-modal-body {
  padding: 20px;
}

.fake-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.cal-nav {
  appearance: none;
  border: 1px solid var(--rent-border);
  background: var(--rent-bg);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--rent-text);
}

.current-month-label {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.fake-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.fake-date-cell {
  appearance: none;
  border: 1px solid var(--rent-border);
  background: #fff;
  border-radius: 12px;
  min-height: 44px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rent-text);
  cursor: pointer;
}

.fake-date-cell:hover {
  background: var(--rent-soft);
}

.fake-date-cell.selected {
  background: var(--rent-green);
  border-color: var(--rent-green);
  color: #fff;
}

.fake-date-cell.disabled {
  background: #f2f2f2;
  color: #aaa;
  cursor: not-allowed;
}

.date-range-preview {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--rent-muted);
}

.date-range-preview strong {
  color: var(--rent-text);
}

.date-modal-actions {
  margin-top: 8px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .mungeh-rent-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mungeh-rent-cart {
    width: 300px;
    flex-basis: 300px;
  }
}

/* ---------- Mobile / Small Tablet ---------- */
@media (max-width: 980px) {
  .mungeh-rent-layout {
    display: block;
  }

  .mungeh-rent-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mungeh-rent-cart {
    display: none;
  }

  .mobile-cart-bar {
    display: flex;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .mungeh-rent-page {
    padding: 18px 12px 110px;
  }

  .mungeh-rent-header {
    margin-bottom: 22px;
  }

  .mungeh-rent-header h1 {
    font-size: 32px;
  }

  .mungeh-rent-header p {
    font-size: 14px;
  }

  .mungeh-rent-products {
    grid-template-columns: 1fr;
    gap: 18px;
  }

 .rent-slider-track {
  height: 200px;
}

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .rent-product-body {
    padding: 14px 14px 16px;
  }

  .rent-product-title {
    font-size: 24px;
  }

  .rent-price-item {
    padding: 9px 10px;
  }

  .qty-control {
    width: 100%;
    max-width: 180px;
  }

  .date-range-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .rent-date-modal-box {
    width: calc(100% - 20px);
    max-width: none;
  }

  .rent-date-modal-body {
    padding: 16px;
  }

  .fake-calendar-grid {
    gap: 6px;
  }

  .fake-date-cell {
    min-height: 40px;
    font-size: 13px;
  }
}
.rent-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rent-card-body {
  flex-grow: 1;
}
.rent-details {
  margin-top: 10px;
}
