/* ==========================================================================
   responsive.css — طبقة التجاوب الموحّدة (تُحمَّل بعد main.css و theme.css)
   نقاط التوقف: 575 / 767 / 991 / 1199
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; min-height: 100vh; font-family: var(--font-main); }
img, video, svg { max-width: 100%; height: auto; }
img { vertical-align: middle; }
iframe { max-width: 100%; }
table { max-width: 100%; }
.table-responsive-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.container { padding-inline: 15px; }
:focus-visible { outline: 3px solid rgba(246,139,30,.55); outline-offset: 2px; }
a, button, .btn { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* منع تكبير iOS التلقائي للحقول + أهداف لمس مريحة */
.btn { min-height: 40px; }
@media (max-width: 767.98px) { input, select, textarea { font-size: 16px; } }

/* ---------- ≤ 1199px ---------- */
@media (max-width: 1199.98px) {
  .container { max-width: 100%; }
}
/* ---------- ≤ 991px (لوحي) ---------- */
@media (max-width: 991.98px) {
  h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 3.8vw, 1.6rem); }
  .top-bar .news-ticker { max-width: 100%; }
}
/* ---------- ≤ 767px (هاتف كبير) ---------- */
@media (max-width: 767.98px) {
  .container { padding-inline: 12px; }
  .modal-dialog { margin: .5rem; }
  .row { --bs-gutter-x: 1rem; }
  table:not(.no-scroll) { display: block; overflow-x: auto; white-space: nowrap; }
  .products-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}
/* ---------- ≤ 575px (هاتف) ---------- */
@media (max-width: 575.98px) {
  body { font-size: 15px; }
  .top-bar-content { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .top-bar .phone-number span { font-size: 12px; }
  .btn-lg { padding: .6rem 1rem; font-size: 1rem; }
  .products-grid, .product-grid { gap: 8px !important; }
  .card-body { padding: .75rem; }
  .toast-container, .alert { max-width: calc(100vw - 24px); }
}
/* ---------- ≤ 360px ---------- */
@media (max-width: 360px) {
  .container { padding-inline: 8px; }
  .products-grid, .product-grid { grid-template-columns: 1fr !important; }
}
/* شاشات كبيرة جدًا */
@media (min-width: 1600px) { .container { max-width: 1440px; } }
/* دعم الحواف (notch) */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
