/* ===== Product price modal — mobile ===== */
@media (max-width: 991.98px) {
  .sj-ppm .modal-dialog.sj-ppm__dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
    min-height: 100dvh;
  }
  .sj-ppm__content {
    max-height: 100dvh;
    height: 100%;
    min-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sj-ppm__close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    background: #fff !important;
    color: #120f0d !important;
    border: 1px solid rgba(18, 15, 13, 0.15);
  }
  .sj-ppm__split {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  .sj-ppm__split > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }
  .sj-ppm__media-col {
    border-right: none;
    border-bottom: 1px solid rgba(210, 172, 102, 0.15);
  }
  .sj-ppm__media-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 2.75rem 1rem 1rem;
  }
  .sj-ppm__zoom-wrap {
    width: min(280px, 82vw);
    max-width: 100%;
    max-height: min(42vh, 320px);
    margin: 0 auto;
    flex-shrink: 0;
    aspect-ratio: 1;
  }
  .sj-ppm__main-img {
    width: 100%;
    height: 100%;
    max-height: min(42vh, 320px);
    object-fit: contain;
    object-position: center;
  }
  .sj-ppm__zoom-hint--desktop {
    display: none !important;
  }
  .sj-ppm__detail-col {
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    overflow: visible !important;
    background: #fff;
  }
  .sj-ppm__head {
    padding: 0.85rem 1rem 0.65rem;
    padding-right: 2.75rem;
  }
  .sj-ppm__title {
    font-size: 1.15rem;
  }
  .sj-ppm__scroll {
    padding: 0 1rem 0.75rem;
    flex: none !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
  }
  .sj-ppm__breakdown {
    display: block;
    visibility: visible;
  }
  .sj-ppm__rows {
    display: flex;
    flex-direction: column;
    visibility: visible;
  }
  .sj-ppm__breakdown-title {
    display: block;
    visibility: visible;
  }
  .sj-ppm__weight-box {
    min-height: 3.6rem;
    padding: 0.45rem 0.2rem;
  }
  .sj-ppm__weight-name {
    font-size: 0.5rem;
    line-height: 1.15;
  }
  .sj-ppm__weight-val {
    font-size: 0.78rem;
  }
  .sj-ppm__footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg, #fff 0%, #faf6ef 100%);
    box-shadow: 0 -6px 20px rgba(18, 15, 13, 0.08);
  }
  .sj-ppm__cart-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .sj-ppm__qty-wrap {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .sj-ppm__qty {
    width: 5rem;
  }
  .sj-ppm__cart-btn {
    width: 100%;
    min-height: 3rem;
  }
}

@media (max-width: 575.98px) {
  .sj-ppm__weight-boxes .col-4 {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

/* ===== Categories catalogue — mobile ===== */
.sj-categories-page .sj-cat-jump {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.sj-categories-page .sj-cat-jump .d-flex {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}
@media (max-width: 575.98px) {
  .sj-categories-page .sj-cat-jump .btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
  .sj-categories-page .product-card .img-wrap__hint {
    font-size: 0.65rem;
  }
  .sj-categories-page .product-card form .form-control-sm {
    max-width: 56px !important;
  }
  .sj-categories-page .product-card h6 {
    font-size: 0.92rem;
  }
  .sj-categories-page .product-card .price {
    font-size: 0.88rem;
  }
  .sj-categories-page .product-card .btn-sm {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }
}

/* ===== Admin dashboard — mobile ===== */
.sj-dash-member-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sj-dash-member-card {
  background: #fff;
  border: 1px solid rgba(18, 15, 13, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}
.sj-dash-member-card--paid {
  border-color: rgba(25, 135, 84, 0.2);
  background: #fff;
}
.sj-dash-member-card--unpaid {
  border-color: rgba(220, 53, 69, 0.2);
  background: #fff;
}
.sj-dash-member-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}
.sj-dash-member-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}
.sj-dash-member-card__amount {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.sj-dash-member-card__scheme {
  margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
  .sj-admin-dashboard .admin-dash-hero .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
  .sj-admin-dashboard .admin-stat,
  .sj-admin-dashboard .admin-kpi-tile {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  .sj-admin-dashboard .admin-dash-schemes-panel {
    padding: 0.85rem !important;
  }
  .sj-admin-dashboard .dashboard-paid-panel__scroll {
    max-height: min(50vh, 420px);
  }
  .sj-admin-dashboard .dash-filter-form .btn {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* ===== Admin — Record payment create — mobile ===== */
.sj-pay-create__cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sj-pay-create__card {
  background: #fff;
  border: 1px solid rgba(210, 172, 102, 0.28);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 10px rgba(18, 15, 13, 0.06);
}
.sj-pay-create__card--scheme {
  border-style: dashed;
  margin-top: -0.35rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.sj-pay-create__card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.sj-pay-create__card-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.sj-pay-create__card-phone {
  font-size: 0.8rem;
  color: #6c757d;
}
.sj-pay-create__card-balance {
  font-weight: 700;
  color: #198754;
  font-size: 1rem;
  white-space: nowrap;
}
.sj-pay-create__card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.sj-pay-create__card-meta .lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a7350;
  font-weight: 600;
}
.sj-pay-create__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.sj-pay-create__card-actions .flex-fill {
  min-width: calc(50% - 0.25rem);
}

@media (max-width: 767.98px) {
  .sj-pay-create .admin-page-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .sj-pay-create .admin-page-header .actions {
    width: 100%;
  }
  .sj-pay-create .admin-page-header .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .sj-pay-search-row .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }
  .sj-pay-search-row .btn-link {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ===== Admin — Lucky draws / shared header mobile ===== */
@media (max-width: 767.98px) {
  .admin-page-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .admin-page-header .actions {
    width: 100%;
  }
  .admin-page-header .actions .btn,
  .admin-page-header .actions > a {
    width: 100%;
    justify-content: center;
  }
  .lucky-draws-page .admin-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .lucky-draws-page .admin-card-actions .btn,
  .lucky-draws-page .admin-card-actions form {
    width: 100%;
  }
  .lucky-draws-page .admin-card-actions form button {
    width: 100%;
  }
}

/* ===== Admin — Reviews mobile ===== */
.sj-reviews-page .admin-list-table { display: none; }
@media (min-width: 768px) {
  .sj-reviews-page .admin-list-table { display: block; }
  .sj-reviews-page .admin-list-cards { display: none !important; }
}
.sj-reviews-page .review-stars {
  color: #d2ac66;
  font-size: 0.85rem;
}
.sj-reviews-form-card {
  border-radius: 14px;
  border: 1px solid rgba(210, 172, 102, 0.22);
  background: linear-gradient(145deg, #fffdf9 0%, #fff 100%);
}
