/* ============================================================
   MOBILE FIXES — loads LAST, wins cascade
   Approach: same desktop layout on mobile, just responsive
   ============================================================ */

/* ---- 0) Zero horizontal overflow ---- */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }
img, iframe { max-width: 100% !important; }

/* ============================================================
   MOBILE ≤ 768px  — SHOW DESKTOP HEADER, HIDE MOBILE HEADER
   ============================================================ */
@media (max-width: 768px) {

  /* Kill the mobile-only compact header */
  .mobile-header, .mobile-menu, .m-cat-dropdown { display: none !important; }
  body { padding-top: 0 !important; }

  /* FORCE desktop header parts to show */
  .topbar, .header, .navbar { display: block !important; }

  /* ---- TOP BAR — compact ---- */
  .topbar .container {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
    justify-content: center !important;
  }
  .topbar .center { display: none !important; }    /* hide long tagline */
  .topbar .left, .topbar .right {
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .topbar .right a { font-size: 11px !important; }
  .top-social a { font-size: 13px !important; }

  /* ---- MAIN HEADER — logo + actions on top, search below ---- */
  .header { display: block !important; padding: 8px 0 !important; }
  .header .container {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "brand actions"
      "search search" !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    align-items: center !important;
  }
  .header .brand    { grid-area: brand !important; }
  .header .searchWrap { grid-area: search !important; display: block !important; width: 100% !important; }
  .header .actions  { grid-area: actions !important; display: flex !important; justify-content: flex-end !important; gap: 6px !important; flex-wrap: nowrap !important; }

  .logo-img { height: 46px !important; }

  /* Search full width */
  .searchBar {
    display: flex !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .searchBar input {
    flex: 1 !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    min-width: 0 !important;
  }
  .searchBar button {
    padding: 0 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* Action pills → icon-only, small */
  .actionPill {
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    position: relative !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .actionPill span[data-i18n],      /* "Login / Create Account" text */
  .actionPill .cartTotal {           /* "$0 / AED 0" total */
    display: none !important;
  }
  .actionPill i { font-size: 15px !important; }

  /* Login pill: hide original text, show "Login" via pseudo */
  .actionPill.js-user-label {
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-size: 0 !important;   /* hide original text nodes */
  }
  .actionPill.js-user-label::before {
    content: "Login";
    font-size: 12px;
    font-weight: 800;
  }
  .actionPill.js-user-label * { display: none !important; }

  /* Count bubbles */
  .countBubble {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #c9a23f !important;
    color: #111 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    min-width: 14px !important;
    height: 14px !important;
    padding: 0 4px !important;
    border-radius: 7px !important;
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
  }

  /* ---- NAVBAR — horizontal scroll for nav links ---- */
  .navbar { display: block !important; }
  .navbar .container {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 6px 0 !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }
  .navLinks {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
  }
  .navLinks::-webkit-scrollbar { display: none; }
  .navLinks a {
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }
  .chooseBtn {
    display: inline-flex !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
}

/* ============================================================
   HERO SLIDER — mobile
   FULL image visible + blurred backdrop (no crop, no black bars)
   ============================================================ */
@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
    width: 100% !important;
    background: #0f0f0f !important;
  }
  .hero-slide {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
  }
  /* Blurred backdrop = same image, filled + blurred */
  .hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.6);
    transform: scale(1.2);
    z-index: 0;
  }
  .hero-slide img {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  /* Set the CSS background per-slide from the img src */
  .hero-slide:nth-child(1) { background-image: url('/assets/images/hero/bannner-saudi-arabia-3.png'); }
  .hero-slide:nth-child(2) { background-image: url('/assets/images/hero/slide1.png'); }

  .hero-arrow {
    width: 32px !important; height: 32px !important;
    font-size: 14px !important;
    background: rgba(0,0,0,.55) !important;
    z-index: 10 !important;
  }
  .hero-arrow.prev { left: 6px !important; }
  .hero-arrow.next { right: 6px !important; }
  .hero-dots      { bottom: 8px !important; gap: 6px !important; z-index: 10 !important; }
  .hero-dots .dot { width: 7px !important; height: 7px !important; }
  .breadcrumbs    { font-size: 12px !important; padding: 6px 10px !important; }
}
@media (max-width: 420px) {
  .hero-slider { aspect-ratio: 4 / 3 !important; }
}

/* ============================================================
   SECTIONS / CONTENT — mobile polish
   ============================================================ */
@media (max-width: 768px) {
  .section         { padding: 22px 0 !important; }
  .sectionTitle h2 { font-size: 20px !important; }
  .container       { width: min(1180px, 94%) !important; }

  /* Trust */
  .trust2col       { gap: 20px !important; }
  .trustCarousel   { min-height: 240px !important; border-radius: 16px !important; }
  .trustSlider     { height: 240px !important; }
  .trustContent h2 { font-size: 22px !important; line-height: 1.25 !important; }
  .trustCards      { gap: 10px !important; }
  .trustCard       { padding: 12px !important; border-radius: 12px !important; gap: 10px !important; }
  .trustCard h4    { font-size: 14px !important; line-height: 1.35 !important; }
  .trustIcon, .trustCard .icon { font-size: 22px !important; }
  .trustNav        { width: 34px !important; height: 34px !important; font-size: 18px !important; }

  /* Info 2-col */
  .info2col        { gap: 16px !important; }
  .infoBox         { padding: 14px !important; border-radius: 14px !important; }
  .infoBox h2      { font-size: 20px !important; line-height: 1.25 !important; }
  .infoBox p       { font-size: 14px !important; }
  .infoBox iframe  { height: 260px !important; width: 100% !important; }

  /* Proof tabs — horizontal scroll */
  .proofTabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .proofTabs::-webkit-scrollbar { display: none; }
  .proofTab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  .proofGrid { gap: 10px !important; }
  .videoBox  { border-radius: 12px !important; }

  /* FAQ */
  .faq-title       { font-size: 22px !important; line-height: 1.3 !important; }
  .faq-subtitle    { font-size: 14px !important; }
  .faq-grid        { gap: 16px !important; }
  .faq-info-card   { padding: 16px !important; border-radius: 14px !important; }
  .faq-info-card h3{ font-size: 17px !important; }
  .faq-info-card p, .faq-info-card li { font-size: 14px !important; }
  .faq-question    { padding: 14px !important; font-size: 14px !important; line-height: 1.4; }
  .faq-answer p    { font-size: 13.5px !important; }

  /* Generic typography */
  .seo-content h2  { font-size: 22px !important; line-height: 1.3 !important; }
  .seo-content p   { font-size: 14px !important; line-height: 1.65 !important; }
  h1               { font-size: 24px !important; line-height: 1.25 !important; }
  h2               { font-size: 20px !important; line-height: 1.3 !important; }
  h3               { font-size: 17px !important; line-height: 1.35 !important; }

  /* Buttons — good tap targets */
  .btn, .btn--primary {
    min-height: 44px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .fab-container, .floating-buttons { bottom: 14px !important; }
}

/* ============================================================
   DEPTH TABLE — stack as cards on very small screens
   ============================================================ */
@media (max-width: 600px) {
  .depthWrap  { gap: 12px !important; }
  .depthTable {
    grid-template-columns: 1fr !important;
    background: transparent !important;
    border: 0 !important;
    gap: 10px !important;
  }
  .depthTable div {
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb) !important;
    border-right: 1px solid var(--border, #e5e7eb) !important;
    border-radius: 10px;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  .depthTable div:nth-child(-n+3) {
    background: #111 !important;
    color: #fff !important;
  }
}

/* ============================================================
   EXTRA SMALL PHONES ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
  .logo-img         { height: 40px !important; }
  .searchBar input  { font-size: 13px !important; padding: 9px 10px !important; }
  .searchBar button { padding: 0 12px !important; font-size: 12px !important; }
  .actionPill       { padding: 6px 8px !important; }
  .actionPill i     { font-size: 14px !important; }
  .navLinks a       { padding: 7px 8px !important; font-size: 12px !important; }
}