/* ================================================================
   PANDA WATER — الجوال: قائمة ☰ + هيدر مضغوط + تحسينات الصفحة الرئيسية
   ================================================================ */

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
a, button{ -webkit-tap-highlight-color:rgba(28,143,209,.15); }
body.pwm-lock{ overflow:hidden !important; touch-action:none; }

/* ---------- زر ☰ ---------- */
.pwm-burger{ display:none; flex-shrink:0; width:42px; height:42px; border-radius:12px; border:1.5px solid rgba(14,92,140,.18) !important; background:#fff !important; color:#083E5F !important; cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:4px; padding:0 !important; box-shadow:0 4px 12px -6px rgba(8,62,95,.35); }
.pwm-burger span{ display:block; width:18px; height:2px; border-radius:2px; background:currentColor; transition:transform .25s, opacity .25s; }
.pwm-burger:focus-visible{ outline:2px solid #1C8FD1; outline-offset:2px; }

/* ---------- القائمة الجانبية ---------- */
.pwm-overlay[hidden], .pwm-drawer[hidden]{ display:none !important; }
.pwm-overlay{ position:fixed; inset:0; z-index:99998; background:rgba(8,19,30,.55); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); opacity:0; transition:opacity .3s ease; }
.pwm-overlay.open{ opacity:1; }
.pwm-drawer{ position:fixed; top:0; right:0; bottom:0; z-index:99999; width:min(86vw,340px); background:#fff; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  transform:translateX(105%); transition:transform .35s cubic-bezier(.2,.8,.2,1); box-shadow:-24px 0 60px -24px rgba(0,0,0,.45);
  font-family:'Cairo',sans-serif; direction:rtl; text-align:right; color:#0E1E1A; padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
.pwm-drawer.open{ transform:none; }
.pwm-drawer *{ box-sizing:border-box; }
.pwm-drawer a{ text-decoration:none !important; }
.pwm-drawer svg{ width:20px; height:20px; flex-shrink:0; }

.pwm-d-head{ position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:linear-gradient(100deg,rgba(198,232,246,.97),rgba(214,241,200,.97)); border-bottom:1px solid rgba(14,92,140,.1); }
.pwm-d-logo img{ height:48px; width:auto; display:block; }
.pwm-close{ width:40px; height:40px; border-radius:50%; border:none !important; background:rgba(255,255,255,.85) !important; color:#083E5F !important; font-size:18px; cursor:pointer; padding:0 !important; }

.pwm-quick{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:16px; }
.pwm-q{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:74px; padding:10px 6px; border-radius:14px; font-size:13px; font-weight:800; text-align:center; line-height:1.3; }
.pwm-q svg{ width:22px; height:22px; }
.pwm-q.red{ background:linear-gradient(135deg,#e53e3e,#c53030); color:#fff !important; }
.pwm-q.green{ background:linear-gradient(135deg,#25D366,#1da851); color:#fff !important; }
.pwm-q.blue{ background:linear-gradient(135deg,#0E5C8C,#1C8FD1); color:#fff !important; }
.pwm-q.light{ background:#EAF4FA; color:#083E5F !important; }

.pwm-nav{ display:flex; flex-direction:column; padding:4px 10px 8px; border-top:1px solid rgba(14,30,26,.08); }
.pwm-nav a{ display:flex; align-items:center; gap:12px; min-height:48px; padding:0 12px; border-radius:12px; font-size:15.5px; font-weight:700; color:#1f2f2b !important; }
.pwm-nav a svg{ color:#1C8FD1; }
.pwm-nav a:active, .pwm-nav a:hover{ background:#EAF4FA; }
.pwm-nav a.current{ background:#EAF4FA; color:#083E5F !important; box-shadow:inset -3px 0 0 #4A9B3E; }

.pwm-sec{ margin:6px 16px 0; padding:12px 0 4px; border-top:1px solid rgba(14,30,26,.08); }
.pwm-sec-t{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:#4C5B57; margin-bottom:6px; }
.pwm-sec-t svg{ width:18px; height:18px; color:#e53e3e; }
.pwm-sec:last-child .pwm-sec-t svg{ color:#4A9B3E; }
.pwm-sec > a{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:6px 10px; border-radius:10px; font-size:14px; font-weight:600; color:#0E5C8C !important; }
.pwm-sec > a:active, .pwm-sec > a:hover{ background:#EAF4FA; }
.pwm-center span{ color:#1f2f2b; }
.pwm-center b{ font-size:13px; color:#357A2B; font-weight:800; white-space:nowrap; }

/* ---------- الهيدر على الجوال والتابلت ---------- */
@media (max-width:1099px){
  .pwm-burger{ display:inline-flex; }
  .topbar, .pw-site-header, .pw-topbar{ padding:10px 14px !important; gap:10px !important; flex-wrap:nowrap !important; }
  .topbar .nav-links, .pw-site-header .nav-links, .pw-topbar .pw-nav{ display:none !important; }
  .topbar .vid-dropdown, .pw-site-header .vid-dropdown, .topbar .cart-btn, .pw-site-header .cart-btn{ display:none !important; }
  .topbar .header-actions, .pw-site-header .header-actions, .pw-topbar .pw-header-btns{ gap:8px !important; height:auto !important; flex-shrink:0; }
  .topbar .complaint-btn, .pw-site-header .complaint-btn, .pw-topbar .pw-btn-complaint,
  .topbar .nav-cta, .pw-site-header .nav-cta, .pw-topbar .pw-btn-wa{ height:42px !important; padding:0 14px !important; font-size:13px !important; }
  .pw-site-header .logo-mark img{ height:50px !important; }
  .pw-topbar .pw-logo img{ height:44px !important; }
  .pw-topbar .pw-logo b{ display:none !important; }
}
/* الجوال: أزرار أيقونات فقط */
@media (max-width:600px){
  .topbar .complaint-btn, .pw-site-header .complaint-btn, .pw-topbar .pw-btn-complaint,
  .topbar .nav-cta, .pw-site-header .nav-cta, .pw-topbar .pw-btn-wa{ width:42px !important; padding:0 !important; justify-content:center !important; font-size:0 !important; gap:0 !important; }
  .topbar .complaint-btn svg, .pw-site-header .complaint-btn svg{ width:20px !important; height:20px !important; }
  .topbar .nav-cta::before, .pw-site-header .nav-cta::before, .pw-topbar .pw-btn-wa::before{ content:''; width:21px; height:21px; background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.2-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 21.8c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4A9.8 9.8 0 1 1 12 21.8z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.8-.9-2-1-.3-.1-.5-.1-.7.1-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.1-1.3-.5-2.4-1.5-.9-.8-1.5-1.8-1.7-2.1-.2-.3 0-.5.1-.6l.4-.5c.2-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.1.2 2.1 3.2 5.1 4.5.7.3 1.3.5 1.7.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.2-.3-.3-.6-.4zM12 21.8c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4A9.8 9.8 0 1 1 12 21.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
  .pw-site-header .logo-mark img{ height:44px !important; }
}

/* ---------- منع تكبير iPhone التلقائي عند الضغط على الحقول ---------- */
@media (max-width:768px){
  .pw-wrap input, .pw-wrap select, .pw-wrap textarea,
  .pws-store input, .pws-store select, .pws-order-box input, .pws-order-box textarea, .pws-order-box select,
  .pwt-wrap input, .pwa-search input, .faq-search input, .pw-track-in{ font-size:16px !important; }
}

/* ================================================================
   الصفحة الرئيسية
   ================================================================ */
/* الفوتر: 5 أعمدة بعد إضافة "مراكزنا" (كان مصمماً لـ 4) */
@media (min-width:901px){ footer .footer-top{ grid-template-columns:1.3fr repeat(4,1fr) !important; gap:32px !important; } }

@media (max-width:600px){
  /* العلامات التجارية: البطاقة كانت بعرض ثابت 180px فتنقص على الجوال */
  .brands-track{ gap:12px !important; }
  .brand-card{ width:100% !important; height:88px !important; padding:12px 14px !important; }
  /* الأرقام: البطاقة الخامسة بعرض كامل بدل أن تبقى وحيدة */
  .stats-grid > .stat-card:last-child:nth-child(odd){ grid-column:1 / -1; }
  /* الشهادات: 3 بالسطر بدل 2 — تقليل طول الصفحة للنصف تقريباً */
  .certs-grid{ grid-template-columns:repeat(3,1fr) !important; gap:8px !important; }
  .certs-grid .cert-item{ padding:5px !important; border-radius:10px !important; }
  /* مسافات الأقسام أقل على الجوال */
  .trust, .brands-sec, section.certs, .home-faq{ padding-top:60px !important; padding-bottom:60px !important; }
  .trust-head, .brands-head, .home-faq-head{ margin-bottom:32px !important; }
  section.certs .section-head{ margin-bottom:32px !important; }
  /* شريط "جاهز تجرب مياه أنقى" */
  .cta-band{ margin:0 14px 50px !important; padding:34px 20px !important; justify-content:center !important; text-align:center; }
  .cta-band h3{ max-width:none !important; }
  /* الأسئلة */
  .hfaq-q{ padding:14px 14px !important; font-size:14px !important; }
  /* الفوتر */
  footer{ padding-top:48px !important; }
  footer .footer-top{ gap:30px !important; padding-bottom:36px !important; }
  footer .footer-bottom{ justify-content:center !important; text-align:center; }
}

/* ================================================================
   صفحة "من نحن"
   ================================================================ */
@media (max-width:600px){
  .pa-page section{ padding:56px 16px !important; }
  .pa-page .pa-hero{ padding:64px 16px !important; }
  .pa-page .pa-head{ margin-bottom:30px !important; }
  .pa-page .pa-story-visual{ aspect-ratio:16/10 !important; padding:20px !important; }
  .pa-page .pa-story-visual::before{ font-size:72px !important; top:-14px !important; right:-6px !important; }
  /* القيم: بطاقتان بالسطر */
  .pa-page .pa-val-grid{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
  .pa-page .pa-val-card{ padding:18px 12px !important; }
  .pa-page .pa-val-icon{ width:46px !important; height:46px !important; margin-bottom:12px !important; }
  .pa-page .pa-val-card h4{ font-size:14.5px !important; }
  .pa-page .pa-val-card p{ font-size:12.5px !important; line-height:1.75 !important; }
  /* الفريق: شخصان بالسطر بدل شخص بكل الشاشة */
  .pa-page .pa-team-grid{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; }
  .pa-page .pa-team-photo{ aspect-ratio:4/3 !important; }
  .pa-page .pa-team-photo-placeholder{ width:56px !important; height:56px !important; font-size:24px !important; }
  .pa-page .pa-team-info{ padding:12px 10px 14px !important; }
  .pa-page .pa-team-info h4{ font-size:14px !important; }
  .pa-page .pa-team-info .role{ font-size:12px !important; }
  .pa-page .pa-team-info p{ font-size:12px !important; }
  .pa-page .pa-ach-card{ padding:20px 10px !important; }
  .pa-page .pa-ach-num{ font-size:32px !important; }
  .pa-page .pa-partner{ padding:14px !important; }
  .pa-page .pa-cta-btn{ flex:1 1 100%; justify-content:center; }
}

/* ================================================================
   صفحة الأسئلة الشائعة
   ================================================================ */
@media (max-width:768px){
  .faq-hero{ padding:56px 16px 44px !important; }
  .faq-stats{ gap:22px !important; }
  .faq-search-wrap{ padding:18px 16px !important; }
  .faq-layout{ padding:22px 16px !important; gap:16px !important; }
  /* المحاور: شريط أفقي يُسحب بالإصبع بدل قائمة طويلة */
  .faq-cats{ position:static !important; display:flex !important; gap:8px; overflow-x:auto; margin:0 -16px; padding:0 16px 6px !important; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .faq-cats::-webkit-scrollbar{ display:none; }
  .faq-cats h3{ display:none !important; }
  .faq-cat-btn{ flex:0 0 auto !important; width:auto !important; white-space:nowrap; margin:0 !important; padding:9px 14px !important; min-height:42px; border:1px solid rgba(14,30,26,.12) !important; background:#fff; }
  .faq-cat-btn .cat-ic{ display:none !important; }
  .faq-cat-btn .cat-count{ margin-right:6px !important; }
  .faq-section-title{ font-size:19px !important; }
  .faq-q{ padding:14px !important; gap:10px !important; }
  .faq-q-icon{ width:32px !important; height:32px !important; }
  .faq-q-text{ font-size:14.5px !important; }
  .faq-a{ padding:0 16px 16px !important; }
  .faq-cta{ padding:28px 18px !important; margin-top:28px !important; }
  .faq-cta-btn{ flex:1 1 100%; }
}
