/* ===== Variables ===== */
:root {
  --blue: #004e98;
  --blue-light: #0074e4;
  --orange: #fd6603;
  --orange-light: #ff8a3d;
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #f5f7fa;
  --gray-dark: #6b7280;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ===== Reset ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:80px;overflow-x:hidden}
body{font-family:'Cairo','Poppins',sans-serif;color:var(--black);background:var(--white);overflow-x:hidden;line-height:1.7;width:100vw;max-width:100%}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* ===== Gradient Text ===== */
.gradient-text{background:linear-gradient(135deg,var(--blue),var(--orange));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* ===== Animations ===== */
[data-animate]{opacity:0;transform:translateY(40px);transition:opacity .7s ease,transform .7s ease}
[data-animate="fade-down"]{transform:translateY(-40px)}
[data-animate="fade-right"]{transform:translateX(-40px)}
[data-animate="fade-left"]{transform:translateX(40px)}
[data-animate="zoom-in"]{transform:scale(.9)}
[data-animate].visible{opacity:1;transform:translate(0) scale(1)}

/* ===== Navbar ===== */
.navbar{position:fixed;top:0;left:0;right:0;z-index:1002;padding:16px 0;transition:var(--transition)}
.navbar.scrolled,.navbar.menu-open{background:rgba(255,255,255,.95);backdrop-filter:blur(20px);box-shadow:var(--shadow);padding:10px 0}
.nav-content{display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:8px}
.logo-icon{font-size:28px}
.logo-text{font-size:24px;font-weight:900;font-family:'Poppins',sans-serif;color:var(--blue)}
.logo-dot{color:var(--orange)}
.logo-img{height:56px;width:auto;object-fit:contain}
.nav-links{display:flex;gap:32px}
.nav-links a{font-weight:600;font-size:15px;position:relative;padding:4px 0;transition:var(--transition)}
.nav-links a::after{content:'';position:absolute;bottom:0;right:0;width:0;height:2px;background:var(--orange);transition:var(--transition)}
.nav-links a:hover::after,.nav-links a:hover{color:var(--orange)}
.nav-links a:hover::after{width:100%}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.nav-toggle span{width:24px;height:2.5px;background:var(--black);border-radius:4px;transition:var(--transition)}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;border-radius:50px;font-weight:700;font-size:15px;transition:var(--transition);cursor:pointer;border:none;font-family:inherit}
.btn-primary{background:linear-gradient(135deg,var(--orange),var(--orange-light));color:var(--white);box-shadow:0 8px 30px rgba(253,102,3,.3)}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 12px 40px rgba(253,102,3,.4)}
.btn-outline{border:2px solid var(--blue);color:var(--blue);background:transparent}
.btn-outline:hover{background:var(--blue);color:var(--white);transform:translateY(-3px)}
.btn-whatsapp{background:#25d366;color:var(--white);font-size:17px;padding:16px 40px;box-shadow:0 8px 30px rgba(37,211,102,.3)}
.btn-whatsapp:hover{transform:translateY(-3px);box-shadow:0 12px 40px rgba(37,211,102,.4)}

/* ===== Hero ===== */
.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;position:relative;background:linear-gradient(160deg,#f0f4ff 0%,var(--white) 50%,#fff5ee 100%);overflow:hidden;padding:120px 20px 60px}
.hero-bg-shapes{position:absolute;inset:0;pointer-events:none}
.shape{position:absolute;border-radius:50%;opacity:.08}
.shape-1{width:600px;height:600px;background:var(--blue);top:-200px;right:-200px;animation:float 8s ease-in-out infinite}
.shape-2{width:400px;height:400px;background:var(--orange);bottom:-100px;left:-100px;animation:float 6s ease-in-out infinite reverse}
.shape-3{width:200px;height:200px;background:var(--orange);top:30%;left:10%;animation:float 10s ease-in-out infinite}
@keyframes float{0%,100%{transform:translate(0,0)}50%{transform:translate(30px,-30px)}}
.hero-content{position:relative;z-index:1}
.hero-logo{height:220px;width:auto;margin:0 auto 8px;display:block}
.hero-badge{display:inline-block;background:linear-gradient(135deg,rgba(0,78,152,.1),rgba(253,102,3,.1));color:var(--blue);padding:8px 24px;border-radius:50px;font-size:14px;font-weight:700;margin-bottom:24px;border:1px solid rgba(0,78,152,.15)}
.hero h1{font-size:clamp(2.2rem,5vw,4rem);font-weight:900;line-height:1.3;margin-bottom:20px}
.hero-sub{font-size:clamp(1rem,2vw,1.2rem);color:var(--gray-dark);max-width:600px;margin:0 auto 36px;line-height:1.8}
.hero-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:60px}
.hero-stats{display:flex;align-items:center;justify-content:center;gap:32px;flex-wrap:wrap}
.stat{text-align:center}
.stat-value{display:flex;align-items:baseline;justify-content:center;gap:2px}
.stat-num{font-size:2.5rem;font-weight:900;color:var(--blue);font-family:'Poppins',sans-serif}
.stat-plus{font-size:2.5rem;font-weight:900;color:var(--orange);font-family:'Poppins',sans-serif;line-height:1}
.stat-label{display:block;font-size:14px;color:var(--gray-dark);margin-top:4px}
.stat-divider{width:1px;height:50px;background:rgba(0,0,0,.1)}
.hero-scroll{position:absolute;bottom:30px;left:50%;transform:translateX(-50%)}
.hero-scroll a{display:block;width:28px;height:44px;border:2px solid var(--blue);border-radius:14px;position:relative}
.hero-scroll span{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:4px;height:8px;background:var(--orange);border-radius:4px;animation:scroll-down 1.5s infinite}
@keyframes scroll-down{0%{opacity:1;top:8px}100%{opacity:0;top:28px}}

/* ===== Section Header ===== */
.section-header{text-align:center;margin-bottom:56px}
.section-tag{display:inline-block;background:linear-gradient(135deg,rgba(0,78,152,.08),rgba(253,102,3,.08));color:var(--orange);padding:6px 20px;border-radius:50px;font-size:13px;font-weight:700;margin-bottom:16px;letter-spacing:.5px}
.section-header h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:900;margin-bottom:12px}
.section-header p{color:var(--gray-dark);font-size:1.05rem;max-width:500px;margin:0 auto}

/* ===== About ===== */
.about{padding:100px 0;background:var(--gray)}
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.about-card{background:var(--white);border-radius:var(--radius);padding:36px 28px;text-align:center;transition:var(--transition);border:1px solid transparent;position:relative;overflow:hidden}
.about-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--blue),var(--orange));transform:scaleX(0);transition:var(--transition);transform-origin:right}
.about-card:hover::before{transform:scaleX(1);transform-origin:left}
.about-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:rgba(0,78,152,.1)}
.about-icon{font-size:48px;margin-bottom:16px}
.about-card h3{font-size:1.2rem;font-weight:800;margin-bottom:8px;color:var(--blue)}
.about-card p{color:var(--gray-dark);font-size:.95rem}

/* ===== Why Choose Us ===== */
.why-us{padding:100px 0;background:var(--white)}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.why-card{background:var(--gray);border-radius:var(--radius);padding:36px 28px;text-align:center;transition:var(--transition);border:2px solid transparent}
.why-card:hover{border-color:var(--orange);transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.why-icon{font-size:44px;margin-bottom:16px}
.why-card h3{font-size:1.1rem;font-weight:800;margin-bottom:8px;color:var(--blue)}
.why-card p{color:var(--gray-dark);font-size:.95rem;line-height:1.6}

/* ===== Catalog ===== */
.catalog{padding:100px 0}
.search-wrap{max-width:500px;margin:0 auto 24px}
.search-box{position:relative;display:flex;align-items:center;background:var(--white);border:2px solid #e5e7eb;border-radius:50px;padding:0 16px;transition:var(--transition)}
.search-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,78,152,.08)}
.search-icon{color:var(--gray-dark);flex-shrink:0}
.search-box input{flex:1;border:none;outline:none;padding:14px 12px;font-family:inherit;font-size:15px;background:transparent;color:var(--black);width:100%}
.search-box input::placeholder{color:var(--gray-dark)}
.search-clear{display:none;background:none;border:none;font-size:24px;color:var(--gray-dark);cursor:pointer;padding:0 4px;line-height:1;transition:var(--transition)}
.search-clear:hover{color:var(--orange)}
.search-box.has-value .search-clear{display:block}
.no-results{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--gray-dark);font-size:1rem}
.no-results .icon{font-size:48px;display:block;margin-bottom:8px;opacity:.5}
.no-results p{margin:0 0 14px;font-weight:600}
.no-results-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.no-results-btn{font-family:inherit;font-size:14px;font-weight:700;padding:10px 18px;border-radius:999px;
  border:2px solid var(--blue);background:var(--white);color:var(--blue);cursor:pointer;transition:var(--transition)}
.no-results-btn.primary{background:var(--blue);color:var(--white)}
.no-results-btn:hover{filter:brightness(1.08)}
/* result count next to the grid heading (mobile) */
.grid-count{font-size:13px;font-weight:600;color:var(--gray-dark);margin-inline-start:8px}
.filter-tabs{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}
.filter-btn{padding:10px 24px;border-radius:50px;border:2px solid #e5e7eb;background:var(--white);font-family:inherit;font-weight:600;font-size:14px;cursor:pointer;transition:var(--transition);color:var(--gray-dark)}
.filter-btn:hover,.filter-btn.active{background:var(--blue);color:var(--white);border-color:var(--blue)}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.loading-state{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--gray-dark);font-size:1rem}
.product-card{background:var(--white);border-radius:var(--radius);overflow:hidden;border:1px solid #eee;transition:var(--transition)}
.product-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg)}
.product-card.hidden{display:none}
.product-img{height:200px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#f0f4ff}
.product-emoji{font-size:72px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.2))}
.product-real-img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;border-radius:0}
.product-badge{position:absolute;top:16px;right:16px;background:var(--orange);color:var(--white);padding:4px 14px;border-radius:50px;font-size:12px;font-weight:700}
.product-badge.hot{background:#ef4444}
.product-info{padding:24px}
.product-cat{font-size:12px;font-weight:700;color:var(--orange);text-transform:uppercase;letter-spacing:.5px}
.product-info h3{font-size:1.1rem;font-weight:800;margin:8px 0;color:var(--black)}
.product-info p{font-size:.9rem;color:var(--gray-dark);line-height:1.6;margin-bottom:12px}
.product-tags{display:flex;gap:6px;flex-wrap:wrap}
.product-tags span{background:var(--gray);padding:4px 12px;border-radius:50px;font-size:11px;font-weight:600;color:var(--blue)}

/* ===== CTA Banner ===== */
.cta-banner{padding:80px 0;background:linear-gradient(135deg,var(--blue),#003366);position:relative;overflow:hidden}
.cta-banner::before{content:'';position:absolute;width:400px;height:400px;background:var(--orange);opacity:.08;border-radius:50%;top:-200px;left:-100px}
.cta-content{text-align:center;position:relative;z-index:1}
.cta-content h2{font-size:clamp(1.6rem,3vw,2.4rem);color:var(--white);font-weight:900;margin-bottom:12px}
.cta-content p{color:rgba(255,255,255,.8);font-size:1.05rem;margin-bottom:32px}

/* ===== Contact ===== */
.contact{padding:100px 0;background:var(--gray)}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-bottom:32px}
.contact-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--white);border-radius:var(--radius);padding:36px 24px;transition:var(--transition);border:2px solid transparent}
.contact-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--blue)}
.contact-card.whatsapp:hover{border-color:#25d366}
.contact-icon{font-size:40px;margin-bottom:12px}
.contact-card h3{font-size:1.1rem;font-weight:800;margin-bottom:8px}
.contact-value{font-size:1.2rem;font-weight:700;color:var(--blue);margin-bottom:12px}
.contact-action{font-size:13px;font-weight:700;color:var(--orange);padding:6px 20px;border:2px solid var(--orange);border-radius:50px;transition:var(--transition)}
.contact-card:hover .contact-action{background:var(--orange);color:var(--white)}
.contact-card.whatsapp:hover .contact-action{background:#25d366;border-color:#25d366;color:var(--white)}
.location-card{display:flex;align-items:center;gap:20px;justify-content:center;background:var(--white);border-radius:var(--radius);padding:24px 36px;max-width:400px;margin:0 auto}
.location-icon{font-size:36px}
.location-card h3{font-weight:800;font-size:1rem}
.location-card p{color:var(--gray-dark)}

/* ===== Footer ===== */
.footer{background:var(--black);color:rgba(255,255,255,.7);padding:48px 0 24px}
.footer-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand .logo-text{color:var(--white);font-size:22px}
.footer-brand p{font-size:.9rem;margin-top:4px}
.footer-links{display:flex;gap:24px}
.footer-links a{font-size:.9rem;transition:var(--transition)}
.footer-links a:hover{color:var(--orange)}
.footer-bottom{text-align:center;padding-top:24px;font-size:.85rem}

/* ===== WhatsApp Float ===== */
.whatsapp-float{position:fixed;bottom:24px;left:24px;right:auto;z-index:999;width:60px;height:60px;background:#25d366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 24px rgba(37,211,102,.4);transition:var(--transition);animation:pulse-wa 2s infinite}
.whatsapp-float:hover{transform:scale(1.1)}
@keyframes pulse-wa{0%,100%{box-shadow:0 6px 24px rgba(37,211,102,.4)}50%{box-shadow:0 6px 40px rgba(37,211,102,.6)}}

/* ===== Responsive ===== */
@media(max-width:768px){
  .nav-content{gap:0}
  .nav-links{position:absolute;top:100%;right:0;left:0;background:var(--white);flex-direction:column;gap:0;padding:0;z-index:1001;max-height:0;overflow:hidden;transition:max-height .35s cubic-bezier(.4,0,.2,1);display:flex}
  .nav-links.open{max-height:360px;box-shadow:0 8px 24px rgba(0,0,0,.1);border-top:2px solid var(--orange)}
  .nav-links li{border-bottom:1px solid #f0f0f0}
  .nav-links a{display:block;padding:16px 24px;font-size:16px;font-weight:700;color:var(--black)}
  .nav-links a::after{display:none}
  .nav-links a:active{background:var(--gray);color:var(--orange)}
  .nav-toggle{display:flex;z-index:1002;position:relative;padding:8px}
  .navbar{position:fixed;top:0;left:0;right:0;z-index:1002}
  .navbar .container{max-width:100%;padding:0 20px;position:relative}
  .nav-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
  .nav-toggle.open span:nth-child(2){opacity:0}
  .nav-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
  .hero{padding:100px 16px 48px}
  .hero-stats{gap:16px}
  .stat-divider{display:none}
  .stat-num{font-size:1.8rem}
  .stat-plus{font-size:1.8rem}
  .hero-actions{gap:12px}
  .hero-actions .btn{padding:12px 24px;font-size:14px}
  .hero-scroll{display:none}
  .about{padding:64px 0}
  .why-us{padding:64px 0}
  .why-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .about-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .about-card{padding:24px 16px}
  .catalog{padding:64px 0}
  .products-grid{grid-template-columns:1fr}
  .product-img{height:180px}
  .section-header{margin-bottom:36px}
  .cta-banner{padding:56px 0}
  .contact{padding:64px 0}
  .contact-grid{grid-template-columns:1fr}
  .footer{padding:36px 0 20px}
  .footer-top{flex-direction:column;text-align:center}
  .footer-links{flex-wrap:wrap;justify-content:center}
  .footer-brand .logo-img{margin:0 auto}
  .whatsapp-float{bottom:20px;left:20px;right:auto;width:52px;height:52px}
}
@media(max-width:480px){
  .about-grid{grid-template-columns:1fr}
  .filter-tabs{gap:6px}
  .filter-btn{padding:8px 14px;font-size:12px}
  .hero-badge{font-size:12px;padding:6px 16px}
  .hero-logo{height:160px}
  .product-info{padding:16px}
  .location-card{padding:20px 24px}
  .contact-card{padding:28px 16px}
  .btn-whatsapp{font-size:15px;padding:14px 28px}
}



/* ===== Stock availability (matches the mobile apps) ===== */
.product-img{position:relative}
.stock-overlay{position:absolute;inset:0;background:rgba(255,255,255,.55);display:flex;align-items:center;justify-content:center;z-index:2}
.stock-out-pill{background:#d9342b;color:#fff;padding:5px 14px;border-radius:50px;font-size:13px;font-weight:700}
.stock-limited-pill{position:absolute;bottom:10px;right:10px;background:#e8890c;color:#fff;padding:3px 10px;border-radius:50px;font-size:11px;font-weight:700;z-index:2}
.product-video-badge{position:absolute;bottom:10px;left:10px;background:rgba(0,0,0,.55);color:#fff;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;z-index:2}
.product-card{cursor:pointer}

/* ===== Product modal ===== */
.product-modal{position:fixed;inset:0;z-index:1200;visibility:hidden;pointer-events:none;transition:visibility 0s linear .3s}
.product-modal.open{visibility:visible;pointer-events:auto;transition-delay:0s}
.product-modal-backdrop{position:absolute;inset:0;background:rgba(8,12,24,.66);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .3s ease}
.product-modal.open .product-modal-backdrop{opacity:1}
.product-modal-box{position:absolute;top:50%;left:50%;width:min(480px,92vw);max-height:88vh;overflow-y:auto;background:var(--white);border-radius:22px;box-shadow:0 32px 80px rgba(0,20,60,.4);opacity:0;transform:translate(-50%,-46%) scale(.92);transition:opacity .3s ease,transform .34s cubic-bezier(.34,1.4,.44,1)}
.product-modal.open .product-modal-box{opacity:1;transform:translate(-50%,-50%) scale(1)}
.product-modal-close{position:absolute;top:14px;left:14px;z-index:3;width:36px;height:36px;border:none;border-radius:50%;background:rgba(255,255,255,.92);font-size:15px;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.22);transition:transform .18s ease,background .18s ease}
.product-modal-close:hover{transform:scale(1.1) rotate(90deg);background:#fff}
.product-modal-media img,.product-modal-media video{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#f3f4f6}
.product-modal-body{padding:18px 20px 22px;text-align:right}
.product-modal-body h3{margin:6px 0 4px;color:var(--black);font-size:20px}
.modal-stock{display:inline-block;padding:5px 12px;border-radius:8px;font-size:13px;font-weight:700;margin:4px 0}
.modal-stock-out{background:#fdecea;color:#d9342b}
.modal-stock-limited{background:#fdf3e7;color:#e8890c}
.modal-whatsapp{display:block;margin-top:14px;background:#25d366;color:#fff;text-align:center;padding:12px;border-radius:12px;font-weight:700;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.modal-whatsapp:hover{filter:brightness(1.06);transform:translateY(-2px);box-shadow:0 8px 20px rgba(37,211,102,.35)}
.modal-addcart{display:block;margin-top:14px;background:var(--blue);color:#fff;text-align:center;padding:12px;border-radius:12px;font-weight:700;border:none;cursor:pointer;font-family:inherit;font-size:15px;transition:transform .18s ease,box-shadow .18s ease,background .2s ease}
.modal-addcart:hover{filter:brightness(1.06);transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,78,152,.28)}
.modal-addcart.added{background:#16a34a}

/* Desktop: two-column layout — media beside the details, not a phone-shaped strip */
@media (min-width:760px){
  .product-modal-box{display:grid;grid-template-columns:1fr 1fr;width:min(880px,92vw);max-height:min(600px,88vh);overflow:hidden;direction:ltr}
  .product-modal-media{height:100%;min-height:0}
  .product-modal-media img,.product-modal-media video{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
  .product-modal-body{direction:rtl;overflow-y:auto;max-height:min(600px,88vh);padding:34px 30px 28px;display:flex;flex-direction:column;justify-content:safe center}
  .product-modal-body h3{font-size:26px;margin:8px 0 6px}
  .product-modal-body p{font-size:15px;line-height:1.8}
  .modal-whatsapp{margin-top:20px;padding:14px}
}

/* ===== Mobile: shop-first layout (app parity) ===== */
.cat-strip{display:none}
@media(max-width:768px){
  /* order the page like the app: catalog right after a compact hero */
  body{display:flex;flex-direction:column}
  .navbar{order:0}
  .hero{order:1}
  .catalog{order:2}
  .cta-banner{order:3}
  .about{order:4}
  .why-us{order:5}
  .contact{order:6}
  .footer{order:7}

  /* compact hero — welcome band, not a landing page */
  .hero-stats{display:none}
  .hero .orb,.hero-scroll,.hero-buttons .btn-secondary{display:none}
  .hero h1{font-size:1.55rem;margin-bottom:6px}
  .hero .hero-sub{font-size:.85rem}
  .hero-logo{height:104px;width:auto;max-width:none}

  .catalog{padding-top:26px}
  .catalog .section-header{margin-bottom:14px}
  .catalog .section-header h2{font-size:1.35rem}
  .catalog .section-header p{display:none}

  /* category photo strip — like the app home */
  .cat-strip{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 14px;
             -webkit-overflow-scrolling:touch;scrollbar-width:none}
  .cat-strip::-webkit-scrollbar{display:none}
  /* native: catCardW = (width - 40 - 3*12) / 4 — four cards span the screen */
  .cat-card{flex:0 0 calc((100vw - 76px) / 4);background:var(--white);border:1px solid #eee;
            border-radius:16px;padding:14px 6px 18px;box-shadow:0 4px 12px rgba(0,0,0,.08);text-align:center;cursor:pointer;
            transition:var(--transition);
            display:flex;flex-direction:column;align-items:center}
  .cat-card.active{border-color:var(--blue);box-shadow:0 4px 14px rgba(0,78,152,.18)}
  .cat-card img{display:block;width:56px;height:56px;max-width:100%;object-fit:contain;border-radius:14px;background:#f8fafc;margin:0 auto}
  .cat-card .cat-name{display:block;font-size:13px;font-weight:800;color:var(--black);margin-top:10px}
  .cat-card .cat-count{display:block;font-size:11px;color:var(--gray-dark);margin-top:2px}

  /* filter pills: single scrollable row */
  .filter-tabs{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;
               margin-bottom:18px;padding-bottom:6px;scrollbar-width:none}
  .filter-tabs::-webkit-scrollbar{display:none}
  .filter-btn{flex:0 0 auto;padding:8px 18px;font-size:13px}

  /* app-style 2-column product grid */
  .products-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px}
  .product-img{height:auto;aspect-ratio:1}
  .product-info{padding:10px 12px 12px}
  .product-cat{font-size:10px}
  .product-info h3{font-size:13.5px;margin:2px 0 4px;line-height:1.45}
  .product-info p{font-size:11px;line-height:1.6;display:-webkit-box;
                  -webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .product-tags{display:none}
  .product-badge{top:8px;right:8px;padding:3px 10px;font-size:10px}
  .stock-limited-pill{bottom:8px;right:8px;font-size:10px;padding:2px 8px}

  /* photos are marketing posters — show them whole, not cropped */
  .product-real-img{object-fit:contain;background:#fff}
  .product-img{background:#fff}

  /* product modal as a bottom sheet — like the app */
  .product-modal-box{top:auto;bottom:0;left:0;right:0;width:100%;max-width:100vw;
    max-height:88vh;overflow-x:hidden;
    border-radius:22px 22px 0 0;transform:translate(0,100%);
    transition:opacity .25s ease,transform .34s cubic-bezier(.32,.9,.35,1);
    touch-action:pan-y}
  .product-modal.open .product-modal-box{transform:translateY(var(--drag,0px))}
  .product-modal-box.dragging{transition:none}
  .product-modal-box::before{content:'';display:block;width:44px;height:5px;
    border-radius:3px;background:#d1d5db;margin:10px auto 0}
  .product-modal-media img,.product-modal-media video{border-radius:0;
    aspect-ratio:auto;max-height:44vh;width:100%;object-fit:contain;background:#fff}
}

/* ===== Sheet quantity + order row (all sizes) ===== */
.modal-actions{display:flex;gap:10px;margin-top:14px;align-items:stretch}
.modal-actions .modal-whatsapp,.modal-actions .modal-addcart{flex:1;margin-top:0}
@media(max-width:768px){
  /* the add-to-cart bar stays pinned to the bottom of the sheet while the
     description scrolls beneath it — always one tap away, like the app */
  .product-modal-body{padding-bottom:0}
  .modal-actions{position:sticky;bottom:0;z-index:5;margin:14px -20px 0;
    padding:12px 20px calc(14px + env(safe-area-inset-bottom));
    background:var(--white);border-top:1px solid #eef1f6;
    box-shadow:0 -8px 20px -12px rgba(0,20,60,.18)}
}
.modal-qty{display:flex;align-items:center;gap:2px;border:1.5px solid #dbe4f0;
           border-radius:12px;background:#f0f4ff;padding:2px}
.qty-btn{width:38px;height:100%;min-height:44px;border:none;background:transparent;
         color:var(--blue);font-size:20px;font-weight:700;cursor:pointer;border-radius:10px}
.qty-btn:active{background:#dbe4f0}
.qty-val{width:48px;min-width:48px;text-align:center;font-weight:700;font-size:16px;color:var(--black);
  border:none;outline:none;background:transparent;font-family:inherit;padding:0;
  -moz-appearance:textfield;appearance:textfield}
.qty-val::-webkit-outer-spin-button,.qty-val::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-val:focus{background:rgba(0,78,152,.06);border-radius:8px}

/* ===== Mobile: app-home parity (orange header, sellers row) ===== */
.best-row{display:none}
.grid-heading{display:none}
.app-hero{display:none}
@media(max-width:768px){
  /* never let anything spill sideways */
  html,body{overflow-x:hidden;max-width:100%}
  .container{max-width:100%;width:100%}

  /* ---- App hero: 1:1 clone of the native HomeScreen hero ----
     Native: heroWrap (page bg, centred) > bare logo 112x78 > heroBand >
     gradient [#ff8a3d -> #fd6603] padding 54 top / 148 bottom, with a 48px
     top-wave SVG and a 96px bottom-wave SVG absolutely positioned; the
     category row then pulls up by -126px over the bottom curve. */
  .hero{background:#f8fafc;border-radius:0;padding:0;min-height:0;position:relative;overflow:visible;
        display:block}
  .hero-bg-shapes,.hero-content,.hero-scroll{display:none}
  .app-hero{display:flex;flex-direction:column;align-items:center;background:#f8fafc;width:100%}
  .app-hero-logo{width:112px;height:78px;object-fit:contain;display:block;margin:0}
  .app-hero-band{align-self:stretch;position:relative;overflow:hidden;
                 background:linear-gradient(135deg,#ff8a3d 0%,var(--orange) 100%);
                 padding:54px 20px 120px;text-align:center;color:#fff}
  .app-wave{position:absolute;left:0;width:100%;display:block}
  .app-wave-top{top:0;height:48px}
  .app-wave-bottom{bottom:0;height:96px}
  .app-hero-title{font-size:24px;font-weight:900;color:#fff;line-height:1.35;position:relative;z-index:1}
  .app-hero-sub{font-size:14px;font-weight:600;color:rgba(255,255,255,.92);margin-top:2px;
                position:relative;z-index:1}
  /* the search pill sits above the logo, on the page background */

  /* ---- CTA card with the boxes illustration, like the app ---- */
  .home-cta{display:flex;flex-direction:row;align-items:center;gap:8px}
  .home-cta-text{flex:1.35;min-width:0;position:relative;z-index:1}
  .home-cta-boxes{flex:1;height:120px;width:auto;object-fit:contain;display:block;min-width:0}
  .home-cta-btn{white-space:nowrap}
  /* narrow phones: give the copy room so the title and button stay on one line */
  @media(max-width:430px){
    .home-cta-text{flex:1.7}
    .home-cta-boxes{flex:.9;height:104px}
    .home-cta-title{font-size:17px}
    .home-cta-btn{font-size:12.5px;padding:9px 13px}
  }

  /* categories overlap the header curve, exactly like the app */
  .catalog{padding-top:0;margin-top:-52px;position:relative;z-index:2}
  .catalog .cat-strip{padding-left:16px;padding-right:16px}
  .catalog .section-header{display:none}
  .catalog .container{display:flex;flex-direction:column}
  .catalog .cat-strip{order:0;padding:0 2px 14px}
  .catalog .search-wrap{order:1}
  .catalog .filter-tabs{order:2}
  .catalog .best-row{order:3}
  .catalog .grid-heading{order:4}
  .catalog .products-grid{order:5}

  /* Amazon-style pinned search: the search bar sticks to the top under the
     fixed navbar as the category strip, pills and product grid scroll past. */
  .catalog .search-wrap{position:sticky;top:52px;z-index:40;margin:0 -20px 4px;
    padding:10px 20px;background:var(--white);
    box-shadow:0 6px 16px -10px rgba(0,20,60,0);transition:box-shadow .22s ease}
  .catalog .search-wrap.pinned{box-shadow:0 8px 18px -10px rgba(0,20,60,.3)}
  .cat-card{box-shadow:0 4px 12px rgba(0,0,0,.08)}

  /* Home sections (app parity): bulk-order CTA, الأكثر طلباً, أحدث المنتجات.
     Both product rows reuse the real grid card, so every card is the same
     size and shows badge / star / stock pill / tags like the products page. */
  .best-row{display:block;margin:14px 0 0;padding:0 20px 20px}

  /* orange bulk-order card, like the app's CTA banner */
  .home-cta{background:linear-gradient(135deg,#ff8a3d,var(--orange));border-radius:20px;
            padding:18px 18px 16px;color:#fff;margin-bottom:22px;
            box-shadow:0 10px 26px rgba(253,102,3,.28);position:relative;overflow:hidden}
  .home-cta::after{content:'';position:absolute;left:-30px;bottom:-40px;width:140px;height:140px;
                   border-radius:50%;background:rgba(255,255,255,.12)}
  .home-cta-title{font-size:18px;font-weight:900;margin-bottom:4px}
  .home-cta-sub{font-size:12.5px;opacity:.95;margin-bottom:14px;line-height:1.6}
  .home-cta-btn{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#1a7f37;
                font-size:13.5px;font-weight:800;padding:10px 16px;border-radius:999px;
                text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.12);position:relative;z-index:1}
  .home-cta-btn svg{width:18px;height:18px;color:#25d366}

  .home-section{margin-bottom:22px}
  .home-section-head{display:flex;align-items:center;justify-content:space-between;
                     margin:0 2px 12px}
  .home-section-title{font-size:17px;font-weight:900;color:var(--black)}
  .see-all{font-size:12.5px;font-weight:700;color:var(--blue);text-decoration:none}

  /* best sellers: horizontal row of grid-sized cards */
  .best-scroll{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px;
               -webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity}
  .best-scroll::-webkit-scrollbar{display:none}
  .best-scroll .product-card{flex:0 0 calc((100vw - 50px) / 2);scroll-snap-align:start}

  /* latest: the same 2-column grid as the products page */
  .latest-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}

  /* star for best sellers on every card (the app shows one too) */
  .product-star{position:absolute;top:8px;left:8px;z-index:2;width:22px;height:22px;
                background:var(--orange);border-radius:50%;color:#fff;font-size:12px;
                display:flex;align-items:center;justify-content:center;
                box-shadow:0 2px 6px rgba(0,0,0,.18)}

  /* grid heading — makes the split from the home rows explicit */
  .grid-heading{display:block;font-size:16px;font-weight:800;color:var(--black);
                margin:18px 2px 12px;padding:0}
}


/* ===== Bottom tab bar (mobile only; mirrors the native app) ===== */
.tab-bar{display:none}
@media(max-width:768px){
  .tab-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1150;
           background:rgba(255,255,255,.97);-webkit-backdrop-filter:saturate(1.2) blur(8px);
           backdrop-filter:saturate(1.2) blur(8px);border-top:1px solid #e9edf3;
           box-shadow:0 -4px 18px rgba(0,20,60,.08);
           padding:8px 4px calc(8px + env(safe-area-inset-bottom));
           /* RTL: DOM order flows right-to-left, so the first tab (home) sits on the right */
           direction:rtl;flex-direction:row}
  .tab-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
            gap:3px;height:52px;text-decoration:none;color:#9ca3af;
            -webkit-tap-highlight-color:transparent}
  .tab-icon{position:relative;width:40px;height:30px;border-radius:12px;display:flex;
            align-items:center;justify-content:center;transition:background .18s ease}
  .tab-icon svg{width:22px;height:22px;display:block}
  .tab-label{font-size:11px;font-weight:600;line-height:14px}
  .tab-item.active{color:var(--orange)}
  .tab-item.active .tab-icon{background:rgba(253,102,3,.10)}
  .tab-item.active .tab-label{color:var(--blue);font-weight:800}

  /* cart count badge on the cart tab */
  .cart-badge{position:absolute;top:-4px;right:-6px;min-width:16px;height:16px;padding:0 4px;
              background:var(--orange);color:#fff;border-radius:8px;font-size:10px;font-weight:800;
              line-height:16px;display:flex;align-items:center;justify-content:center;
              box-shadow:0 0 0 2px #fff}

  /* lift the floating WhatsApp button above the bar, give the page room */
  body{padding-bottom:64px}
  .whatsapp-float{bottom:calc(76px + env(safe-area-inset-bottom))}
  /* keep the product bottom-sheet above the tab bar */
  .product-modal{z-index:1200}
}


/* ===== Product media gallery (swipe between photos/videos) ===== */
.gallery{position:relative;background:#f3f4f6;max-width:100%;overflow:hidden}
.gallery-single img,.gallery-single video{display:block;width:100%;aspect-ratio:1;
  object-fit:cover;background:#f3f4f6}
.gallery-multi{overflow:hidden}
.g-track{display:flex;direction:rtl;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none}
.g-track::-webkit-scrollbar{display:none}
.g-cell{flex:0 0 100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always}
.g-cell img,.g-cell video{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#f3f4f6}
/* white chevrons with a soft dark halo — readable on any photo */
.g-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:40px;height:40px;
  border:none;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;
  justify-content:center;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))}
.g-arrow svg{width:28px;height:28px}
.g-prev{right:4px}
.g-next{left:4px}
.g-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:3;
  /* dot 0 sits on the RIGHT, matching photo 1 on the right in the track.
     Pinned explicitly (not via row-reverse) so it doesn't flip with the
     ancestor's text direction — inside the RTL sheet `row-reverse` had
     put dot 0 on the left, so the dots ran opposite to the photos. */
  display:flex;direction:rtl;flex-direction:row;align-items:center;gap:6px;
  background:rgba(0,0,0,.35);padding:6px 10px;border-radius:999px}
.g-dot{width:6px;height:6px;border-radius:3px;background:#fff;opacity:.55;
  transition:width .2s ease,opacity .2s ease;cursor:pointer}
.g-dot.active{width:18px;opacity:1}

@media(min-width:769px){
  /* desktop: photos on the left column shouldn't be forced square */
  .gallery-single img,.gallery-single video,.g-cell img,.g-cell video{aspect-ratio:auto;
    max-height:60vh}
}



/* ===== Cart drawer (bottom sheet — mirrors the app's CartScreen) ===== */
.cart-drawer{position:fixed;inset:0;z-index:1300;visibility:hidden;pointer-events:none}
.cart-drawer.open{visibility:visible;pointer-events:auto}
.cart-backdrop{position:absolute;inset:0;background:rgba(6,18,40,.5);opacity:0;
  transition:opacity .28s ease}
.cart-drawer.open .cart-backdrop{opacity:1}
.cart-sheet{position:absolute;left:0;right:0;bottom:0;background:#f6f8fb;direction:rtl;
  border-radius:22px 22px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));
  max-height:86vh;display:flex;flex-direction:column;touch-action:pan-y;
  transform:translateY(100%);transition:transform .32s cubic-bezier(.22,1,.36,1);
  box-shadow:0 -14px 40px rgba(0,20,60,.22)}
.cart-drawer.open .cart-sheet{transform:translateY(var(--drag,0px))}
.cart-sheet.dragging{transition:none}
.cart-handle{width:44px;height:5px;border-radius:3px;background:#d3dae6;margin:6px auto 10px}
.cart-head{display:flex;align-items:baseline;gap:10px;padding:0 2px 10px}
.cart-head h3{font-size:22px;font-weight:800;color:var(--black);margin:0}
.cart-sub{font-size:13px;font-weight:600;color:#8a94a6}
.cart-items{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2px 0}

.cart-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #eef1f6;
  border-radius:16px;padding:10px;margin-bottom:10px;box-shadow:0 4px 14px rgba(0,20,60,.05)}
.cart-thumb{width:54px;height:54px;border-radius:12px;object-fit:contain;background:#fff;
  border:1px solid #f0f2f6;flex:0 0 auto}
.cart-name{flex:1;font-size:14px;font-weight:700;color:var(--black);line-height:1.5;
  text-align:right;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cart-step{display:flex;align-items:center;background:#f2f5f9;border:1px solid #e2e8f1;
  border-radius:999px;height:34px;padding:0 2px;flex:0 0 auto}
.cart-q{width:30px;height:32px;border:none;background:transparent;color:var(--blue);
  font-size:18px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center}
.cart-q:active{opacity:.5}
.cart-qv{width:40px;min-width:40px;text-align:center;font-size:14px;font-weight:800;color:var(--black);
  border:none;outline:none;background:transparent;font-family:inherit;padding:0;
  -moz-appearance:textfield;appearance:textfield}
.cart-qv::-webkit-outer-spin-button,.cart-qv::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cart-qv:focus{background:rgba(0,78,152,.08);border-radius:6px}
.cart-del{width:34px;height:34px;border-radius:17px;border:none;background:#fdecec;color:#d9342b;
  cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cart-del svg{width:17px;height:17px}

.cart-clear{display:flex;align-items:center;justify-content:center;gap:8px;margin:6px auto 2px;
  padding:0 22px;height:42px;border-radius:999px;border:1.5px solid #d9342b;background:#fdecec;
  color:#d9342b;font-size:14px;font-weight:800;font-family:inherit;cursor:pointer}
.cart-clear svg{width:16px;height:16px}

.cart-foot{padding-top:12px}
.cart-checkout{display:flex;align-items:center;justify-content:center;gap:10px;height:54px;
  border-radius:16px;background:#25d366;color:#fff;font-size:16px;font-weight:800;
  text-decoration:none;box-shadow:0 8px 22px rgba(37,211,102,.32)}
.cart-checkout svg{width:22px;height:22px}
.cart-checkout:active{filter:brightness(.96)}

.cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;padding:44px 0 40px;color:#9aa4b4}
.cart-empty svg{width:56px;height:56px}
.cart-empty p{font-size:16px;font-weight:700;color:#8a94a6;margin:0}
.cart-browse{background:var(--blue);color:#fff;border:none;border-radius:999px;
  padding:0 26px;height:46px;font-size:14px;font-weight:800;font-family:inherit;cursor:pointer}

/* Desktop: center the sheet as a modal card rather than a full-width dock */
@media(min-width:769px){
  .cart-sheet{left:50%;right:auto;transform:translate(-50%,100%);width:min(460px,92vw);
    border-radius:22px;bottom:24px;max-height:80vh}
  .cart-drawer.open .cart-sheet{transform:translate(-50%,0)}
}



/* ===== Mobile pager: side-by-side pages, swipe / tap tabs to move (like the app) ===== */
.pager{display:none}
@media(max-width:768px){
  /* app shell: the document itself never scrolls; each page scrolls on its own.
     overscroll is left at its default (auto) so dragging down past the top of a
     page chains to the viewport and the browser's pull-to-refresh still works. */
  html.paged,html.paged body{height:100%;overflow:hidden}
  html.paged body{display:block;padding-bottom:0}

  .pager{display:flex;position:fixed;top:0;left:0;right:0;
         /* leave room for the fixed bottom tab bar */
         bottom:calc(68px + env(safe-area-inset-bottom));
         direction:rtl;                        /* first page (home) on the right */
         overflow-x:auto;overflow-y:hidden;
         scroll-snap-type:x mandatory;
         -webkit-overflow-scrolling:touch;scrollbar-width:none;
         overscroll-behavior-x:contain;
         /* above every in-flow body section (some carry their own z-index),
            below the tab bar (1150) and the sheets (1200+) */
         z-index:1000}
  .pager::-webkit-scrollbar{display:none}
  .page{flex:0 0 100vw;width:100vw;height:100%;scroll-snap-align:start;scroll-snap-stop:always;
        overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
        direction:rtl;background:var(--white);
        /* clear the fixed navbar inside every page; vertical overscroll chains
           to the viewport so pull-to-refresh works at the top of a page */
        padding-top:0;overscroll-behavior-y:auto}
  /* no top navbar inside the pager: the bottom tabs are the navigation, exactly
     like the app. Every page starts at the very top of the screen. */
  .page:not([data-page="home"])>*:first-child{margin-top:16px}
  .page>*:first-child.hero{margin-top:0}
  /* a sticky search bar leads its page flush to the top edge, like home */
  .page>*:first-child.search-wrap{margin-top:0}

  /* moved sections: undo the long-page flex ordering + keep their spacing sane */
  .page .catalog{padding-top:0}
  .page .cta-banner{margin:0 0 24px}
  .page .footer{margin-top:24px}
  /* the moved products page: search bar stays pinned to the very top of that
     page (there's no navbar above it in the pager) */
  /* Products search: identical to the home search bar — the same sticky
     orange gradient bar with the same white pill, so the two tabs match. */
  .page .search-wrap{position:sticky;top:0;margin:0;z-index:40;
                     padding:calc(10px + env(safe-area-inset-top)) 16px 10px;
                     background:linear-gradient(135deg,#ff8a3d 0%,var(--orange) 100%);
                     box-shadow:0 6px 16px -8px rgba(0,20,60,.25)}
  .page .search-box{border:none;height:46px;padding:0 16px;border-radius:999px;
                    box-shadow:0 4px 12px rgba(0,0,0,.14);direction:rtl;gap:10px}
  .page .search-box input{padding:0;font-size:15px;text-align:right}
  .page .search-box .search-icon{color:var(--blue)}
  .page .search-box input::placeholder{color:#8a94a6}
  /* the pinned-state shadow toggle from the long-scroll layout doesn't apply here */
  .page .search-wrap.pinned{box-shadow:0 6px 16px -8px rgba(0,20,60,.25)}
  .page .filter-tabs{padding:12px 20px 8px}
  .page .grid-heading{margin:14px 22px 12px}
  .page .products-grid{padding:0 20px 20px}
  /* home page: category strip + best sellers directly under the hero */
  /* cards float up into the bottom wave like the app: native shows ~200px of
     orange above the cards, so the pull-up is measured against the rendered
     app (not RN's -126, which counts from the padding box) */
  .page .cat-strip{margin-top:-72px;position:relative;z-index:2;padding:0 20px 14px}
  .page .best-row{margin:14px 0 0}

  /* cart page (mirrors the cart drawer / native CartScreen) */
  .page-cart{background:#f6f8fb;padding:0 18px 0;display:flex;flex-direction:column}
  .cart-page-head{display:flex;align-items:baseline;gap:10px;padding:0 2px 10px}
  .cart-page-head h3{font-size:26px;font-weight:900;color:var(--black);margin:0}
  .page-cart .cart-items{flex:1;overflow:visible;padding-bottom:12px}
  /* checkout stays pinned to the bottom of the cart page, like the app */
  .page-cart .cart-foot{position:sticky;bottom:0;margin:0 -18px;padding:12px 18px 16px;
    background:#f6f8fb;border-top:1px solid #e6ebf2}
  .page-cart .cart-foot:empty{display:none}
  /* on the cart page the checkout button IS the WhatsApp action — hide the float */
  html.paged.on-cart .whatsapp-float{display:none}

  /* the hero's fixed "scroll down" hint makes no sense in a pager */
  html.paged .hero-scroll{display:none}
  /* No top navbar in the pager. It cost 88px (17% of a phone screen) and its
     hamburger menu duplicated the bottom tabs one-for-one — the app has no
     top bar either. Desktop keeps the full navbar. */
  html.paged .navbar{display:none}
  /* body sections the pager doesn't move into a page must not paint behind it
     (the contact page has its own app-style panel instead of these) */
  html.paged body>#contact,html.paged body>.cta-banner{display:none}
  /* the home hero no longer needs to clear a navbar: start at the screen edge
     with a compact band, respecting the status-bar safe area */
  /* floating WhatsApp button rides above the tab bar within the pager */
  html.paged .whatsapp-float{bottom:calc(84px + env(safe-area-inset-bottom));z-index:1100}
}



/* ===== Home search + app-style contact page (mobile pager only) ===== */
.home-search{display:none}
@media(max-width:768px){
  /* Home search: a sticky orange bar across the top of the home page with the
     white pill inside it. The orange gives the white pill contrast (it was
     white-on-white before) and matches the brand band below; sticky so it
     stays reachable as the home page scrolls, like the products page. */
  .home-search{display:block;position:sticky;top:0;z-index:40;
    background:linear-gradient(135deg,#ff8a3d 0%,var(--orange) 100%);
    padding:calc(10px + env(safe-area-inset-top)) 16px 10px;margin:0;
    box-shadow:0 6px 16px -8px rgba(0,20,60,.25)}
  .home-search-pill{display:flex;align-items:center;gap:10px;width:100%;
    background:#fff;border-radius:999px;padding:0 16px;height:46px;direction:rtl;
    box-shadow:0 4px 12px rgba(0,0,0,.14)}
  .home-search .search-icon{color:var(--blue);flex:0 0 auto}
  .home-search input{flex:1;border:none;outline:none;background:transparent;font-family:inherit;
    font-size:15px;color:var(--black);width:100%;text-align:right}
  .home-search input::placeholder{color:#8a94a6}
  /* the bar now precedes the hero: no extra gap above the bare logo */
  html.paged .app-hero{padding-top:8px}
  /* the hero used to centre its content vertically; the search must sit at the top edge */

  /* contact page: mirrors the native ContactScreen */
  .c-page{padding:0 20px 28px;direction:rtl}
  .c-head{margin:0 0 22px}
  .c-head h3{font-size:26px;font-weight:900;color:var(--black);margin:0 0 6px}
  .c-head p{font-size:14px;font-weight:600;color:#8a94a6;margin:0;line-height:1.6}
  .c-card{display:flex;align-items:center;gap:14px;padding:18px;border-radius:18px;margin-bottom:14px;
    color:#fff;text-decoration:none;box-shadow:0 10px 26px rgba(0,20,60,.16);
    transition:transform .12s ease}
  .c-card:active{transform:scale(.97)}
  .c-call{background:linear-gradient(135deg,#004e98,#0074e4)}
  .c-wa{background:linear-gradient(135deg,#25d366,#128c7e)}
  .c-fb{background:linear-gradient(135deg,#1877f2,#3b5998)}
  .c-ico{width:52px;height:52px;border-radius:26px;background:rgba(255,255,255,.22);
    display:flex;align-items:center;justify-content:center;flex:0 0 auto}
  .c-ico svg{width:26px;height:26px;color:#fff}
  .c-text{flex:1;display:flex;flex-direction:column;min-width:0}
  .c-title{font-size:17px;font-weight:800;margin-bottom:3px}
  .c-val{font-size:13px;font-weight:600;opacity:.92;text-align:right}
  .c-text{align-items:stretch}
  .c-chev{font-size:26px;line-height:1;color:rgba(255,255,255,.8);flex:0 0 auto}
  .c-info{display:flex;align-items:center;gap:14px;padding:18px;border-radius:18px;background:#fff;
    border:1px solid #eef1f6;box-shadow:0 4px 14px rgba(0,20,60,.05);margin-bottom:14px}
  .c-info-ico{width:52px;height:52px;border-radius:26px;background:rgba(253,102,3,.12);
    display:flex;align-items:center;justify-content:center;flex:0 0 auto}
  .c-info-ico svg{width:26px;height:26px;color:var(--orange)}
  .c-info-title{font-size:16px;font-weight:800;color:var(--black);margin-bottom:2px}
  .c-info-val{font-size:13px;font-weight:600;color:#8a94a6}
  /* working-hours schedule: header + open-now pill, then one row per day;
     today's row is highlighted by script.ts, Friday is marked closed */
  .c-hours{padding:16px 18px 6px;border-radius:18px;background:#fff;border:1px solid #eef1f6;
    box-shadow:0 4px 14px rgba(0,20,60,.05)}
  .c-hours-head{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid #eef1f6}
  .c-hours-ico{width:40px;height:40px;border-radius:20px;background:var(--blue);
    display:flex;align-items:center;justify-content:center;flex:0 0 auto}
  .c-hours-ico svg{width:22px;height:22px;color:#fff}
  .c-hours-title{font-size:16px;font-weight:800;color:var(--black);flex:1}
  .c-open{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;
    padding:5px 10px;border-radius:999px;background:#e8f7ee;color:#15803d;white-space:nowrap}
  .c-open i{width:8px;height:8px;border-radius:50%;background:currentColor;
    box-shadow:0 0 0 3px rgba(21,128,61,.18)}
  .c-open.is-closed{background:#fdecec;color:#b91c1c}
  .c-open.is-closed i{box-shadow:0 0 0 3px rgba(185,28,28,.15)}
  .c-open[hidden]{display:none}
  .c-days{list-style:none;margin:0;padding:0}
  .c-days li{display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:10px 2px;border-bottom:1px solid #f3f5f9;font-size:14px}
  .c-days li:last-child{border-bottom:0}
  .c-day{font-weight:700;color:#334155;display:flex;align-items:center;gap:8px}
  .c-day::before{content:"";width:6px;height:6px;border-radius:50%;background:#cbd5e1;flex:0 0 auto}
  .c-time{font-weight:700;color:var(--blue);background:rgba(0,78,152,.07);padding:4px 10px;border-radius:999px;
    font-size:13px;white-space:nowrap}
  .c-days li.closed .c-day{color:#94a3b8}
  .c-days li.closed .c-day::before{background:#ef4444}
  .c-days li.closed .c-time{color:#b91c1c;background:#fdecec}
  .c-days li.today{background:#fff7f0;margin:0 -10px;padding:10px 12px;border-radius:12px;border-bottom-color:transparent}
  .c-days li.today .c-day{color:var(--black)}
  .c-days li.today .c-day::before{background:var(--orange);box-shadow:0 0 0 3px rgba(253,102,3,.18)}
  .c-days li.today .c-time{background:var(--orange);color:#fff}
  .c-days li.today.closed .c-time{background:#ef4444}
}



/* ===== Pull-to-refresh indicator (mobile pager) — mirrors the app's blue RefreshControl ===== */
.ptr{display:none}
@media(max-width:768px){
  .ptr{display:block;position:absolute;top:0;left:0;right:0;height:0;pointer-events:none;z-index:45}
  /* the disc follows the finger (translate by --pull); the arrow inside rotates */
  .ptr-spinner{position:absolute;left:50%;top:0;width:38px;height:38px;border-radius:50%;
    background:#fff;box-shadow:0 4px 14px rgba(0,20,60,.18);
    display:flex;align-items:center;justify-content:center;color:var(--blue);
    transform:translate(-50%,calc(var(--pull,0px) - 46px));
    opacity:calc(var(--pull,0px) / 40px);
    transition:transform .18s cubic-bezier(.2,.8,.2,1),opacity .18s ease}
  .ptr-spinner svg{width:20px;height:20px;transform:rotate(var(--turn,0deg))}
  .ptr.armed .ptr-spinner{color:var(--orange)}
  .ptr.loading .ptr-spinner{color:var(--blue)}
  .ptr.loading .ptr-spinner svg{animation:ptr-spin .8s linear infinite}
  @keyframes ptr-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
  /* pages must host the absolutely-positioned indicator */
  .page{position:relative}
}
