/* HOMED global adjustments (WordPress integration) */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
#homed-mobile-menu.is-open { display: block; }
body.homed-menu-open { overflow: hidden; }
.homed-prose img { border-radius: 12px; height: auto; }
.homed-prose table { width: 100%; }
.homed-prose td { padding: .6rem .8rem; border-bottom: 1px solid #E1E4E5; }
.homed-prose tr:nth-child(odd) td { background: #F8FAFC; }
.admin-bar #homed-mobile-menu nav { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) { .admin-bar #homed-mobile-menu nav { top: 46px; height: calc(100% - 46px); } }

/* ---- Arabic (RTL) homepage hero heading: Arabic font, natural letter spacing, right alignment, wraps on small screens ---- */
html[dir="rtl"] [data-homed-page="home"] h1[style*="Poppins"] {
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif !important;
    letter-spacing: 0; word-spacing: normal; line-height: 1.35; text-align: right;
}
html[dir="rtl"] [data-homed-page="home"] h1[style*="Poppins"] .whitespace-nowrap { white-space: normal; }
@media (min-width: 1024px) { html[dir="rtl"] [data-homed-page="home"] h1[style*="Poppins"] { font-size: 60px; } }
html[dir="rtl"] [data-homed-page="home"] div:has(> h1[style*="Poppins"]) { text-align: right; }

/* ---- Reviews carousel keeps auto-scrolling in Arabic: the track scrolls left-to-right, each card reads right-to-left ---- */
html[dir="rtl"] #testimonial-carousel { direction: ltr; }
html[dir="rtl"] #testimonial-carousel > * { direction: rtl; }
/* Product catalogue card buttons: smaller label, more breathing space */
#product-grid div:has(> button[onclick^="addToCartFromCatalogue"]){gap:10px;}
#product-grid button[onclick^="openProductModal"].w-1\/2,#product-grid button[onclick^="addToCartFromCatalogue"].w-1\/2{width:auto;flex:1 1 auto;min-width:0;font-size:12px;line-height:1.2;padding:11px 12px;letter-spacing:0;white-space:nowrap;overflow:hidden;}
#product-grid button[onclick^="addToCartFromCatalogue"].w-1\/2{gap:6px;border:1px solid transparent;}
#product-grid button[onclick^="addToCartFromCatalogue"].w-1\/2 svg{width:13px;height:13px;flex-shrink:0;}
#product-grid.homed-btn-stack div:has(> button[onclick^="addToCartFromCatalogue"]){flex-wrap:wrap;gap:8px;}
#product-grid.homed-btn-stack button[onclick^="openProductModal"].w-1\/2,#product-grid.homed-btn-stack button[onclick^="addToCartFromCatalogue"].w-1\/2{flex:1 1 100%;}
/* Header: keep every desktop menu item on one line at 100% zoom (1024px and up, all languages) */
#nav-links .top-link,#nav-links .top-link>span{white-space:nowrap;}
#nav-links .top-link{flex-shrink:0;}
#nav-links>*{flex-shrink:0;}
#site-header a[data-i18n="btn_distributor"]{white-space:nowrap;}
@media (min-width:1024px){
  #site-header>div{gap:20px;}
  #site-header>div>div{min-width:0;}
}
@media (min-width:1024px) and (max-width:1535.98px){
  #site-header>div{width:min(100% - 64px,1440px);}
}
@media (min-width:1024px) and (max-width:1279.98px){
  #site-header>div>div:first-child{gap:20px;}
  #nav-links{gap:16px;font-size:14px;}
  #site-header>div>div:last-child{gap:14px;}
  #site-header a[data-i18n="btn_distributor"]{padding:8px 14px;font-size:13px;margin-left:0;margin-inline-start:0;}
}
@media (min-width:1280px) and (max-width:1535.98px){
  #site-header>div>div:first-child{gap:28px;}
  #nav-links{gap:20px;font-size:14.5px;}
  #site-header>div>div:last-child{gap:16px;}
  #search-bar{width:auto;min-width:11rem;max-width:13.5rem;}
  #site-header a[data-i18n="btn_distributor"]{padding:9px 18px;font-size:13.5px;margin-left:0;margin-inline-start:0;}
}
@media (min-width:1536px) and (max-width:1799.98px){
  #nav-links{gap:26px;}
  #search-bar{width:auto;min-width:14rem;max-width:16rem;}
}
#search-bar>div:first-child{min-width:0;}
#search-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media (min-width:1800px){#search-bar{width:auto;min-width:14rem;max-width:17rem;}}
#search-bar{gap:10px;}
/* Quote chat (quote confirmation page + My Account order view) */
.homed-quote-chat{margin:0 0 32px;background:#fff;border:1px solid #E1E4E5;border-radius:20px;box-shadow:0 10px 30px -12px rgba(48,52,54,.15);overflow:hidden;font-family:inherit;}
.homed-quote-chat .hqc-head{display:flex;gap:14px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #EEF0F1;background:linear-gradient(180deg,#FFF7EF,#fff);}
.homed-quote-chat .hqc-icon{flex-shrink:0;width:42px;height:42px;border-radius:12px;background:#F28C28;color:#fff;display:flex;align-items:center;justify-content:center;}
.homed-quote-chat h2{margin:0 0 4px;font-size:18px;line-height:1.3;font-weight:700;color:#1F2224;}
.homed-quote-chat .hqc-num{display:inline-block;margin-inline-start:6px;font-size:12px;font-weight:600;color:#F28C28;background:#FFF1E3;border-radius:999px;padding:2px 10px;vertical-align:middle;}
.homed-quote-chat .hqc-head p{margin:0;font-size:14px;color:#5B6266;}
.homed-quote-chat .hqc-list{max-height:420px;min-height:140px;overflow-y:auto;padding:18px 22px;background:#FAFBFB;display:flex;flex-direction:column;gap:12px;}
.homed-quote-chat .hqc-empty{margin:auto;color:#8A9196;font-size:14px;text-align:center;}
.homed-quote-chat .hqc-msg{display:flex;flex-direction:column;max-width:80%;}
.homed-quote-chat .hqc-msg.is-me{align-self:flex-end;align-items:flex-end;}
.homed-quote-chat .hqc-msg.is-team{align-self:flex-start;align-items:flex-start;}
.homed-quote-chat .hqc-meta{font-size:11px;color:#8A9196;margin:0 4px 3px;}
.homed-quote-chat .hqc-bubble{white-space:pre-wrap;word-break:break-word;font-size:14px;line-height:1.5;padding:10px 14px;border-radius:16px;}
.homed-quote-chat .is-me .hqc-bubble{background:#F28C28;color:#fff;border-end-end-radius:4px;}
.homed-quote-chat .is-team .hqc-bubble{background:#fff;color:#1F2224;border:1px solid #E1E4E5;border-end-start-radius:4px;}
.homed-quote-chat .hqc-form{display:flex;gap:10px;align-items:flex-end;padding:14px 16px;border-top:1px solid #EEF0F1;}
.homed-quote-chat .hqc-form textarea{flex:1;min-width:0;resize:vertical;min-height:46px;max-height:180px;border:1px solid #E1E4E5;border-radius:14px;padding:12px 14px;font-size:14px;font-family:inherit;outline:none;background:#fff;}
.homed-quote-chat .hqc-form textarea:focus{border-color:#F28C28;box-shadow:0 0 0 3px rgba(242,140,40,.15);}
.homed-quote-chat .hqc-form button{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;height:46px;padding:0 20px;border:0;border-radius:999px;background:#F28C28;color:#fff;font-weight:600;font-size:14px;cursor:pointer;}
.homed-quote-chat .hqc-form button:hover{background:#E07B17;}
.homed-quote-chat .hqc-form button:disabled{opacity:.6;cursor:default;}
.homed-quote-chat .hqc-err{margin:0;padding:0 18px 14px;color:#C0392B;font-size:13px;}
@media (max-width:640px){.homed-quote-chat .hqc-head,.homed-quote-chat .hqc-list{padding-left:16px;padding-right:16px;}.homed-quote-chat .hqc-msg{max-width:92%;}.homed-quote-chat .hqc-form button span{display:none;}.homed-quote-chat .hqc-form button{padding:0 16px;}}
/* WhatsApp: quote page box */
.homed-wa-quote{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;justify-content:space-between;margin:0 0 24px;padding:20px 22px;border:1px solid #CFEFDB;background:#F2FCF6;border-radius:20px;}
.homed-wa-quote h2{margin:0 0 4px;font-size:18px;font-weight:700;color:#1F2224;}
.homed-wa-quote p{margin:0;font-size:14px;color:#5B6266;}
.homed-wa-quote .hwq-text{flex:1 1 260px;}
.homed-wa-quote .hwq-btns{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex:0 1 340px;}
.homed-wa-quote .hwq-main{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;background:#25D366;color:#fff;text-decoration:none;border-radius:16px;padding:12px 18px;font-weight:700;font-size:15px;}
.homed-wa-quote .hwq-main:hover{background:#1EBE5A;color:#fff;}
.homed-wa-quote .hwq-main svg{grid-row:span 2;}
.homed-wa-quote .hwq-main small{font-weight:500;font-size:12px;opacity:.9;}
.homed-wa-quote summary{cursor:pointer;font-size:13px;color:#128C7E;font-weight:600;padding:2px 4px;}
.homed-wa-quote .hwq-list{display:flex;flex-direction:column;gap:6px;margin-top:6px;}
.homed-wa-quote .hwq-list a{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#fff;border:1px solid #CFEFDB;border-radius:12px;padding:9px 12px;color:#1F2224;text-decoration:none;font-size:13px;}
.homed-wa-quote .hwq-list a svg{color:#25D366;flex-shrink:0;}
.homed-wa-quote .hwq-list a span{flex:1;font-weight:600;}
.homed-wa-quote .hwq-list a bdi{color:#5B6266;white-space:nowrap;}
.homed-wa-quote .hwq-list a:hover{border-color:#25D366;}
/* WhatsApp: floating button on every page */
.homed-wa{position:fixed;right:20px;bottom:20px;z-index:60;}
html[dir="rtl"] .homed-wa{right:auto;left:20px;}
.homed-wa-btn{width:58px;height:58px;border-radius:50%;border:0;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 24px -6px rgba(37,211,102,.55);transition:transform .2s;}
.homed-wa-btn:hover{transform:scale(1.06);}
.homed-wa-panel{position:absolute;bottom:72px;right:0;width:300px;max-width:calc(100vw - 40px);background:#fff;border-radius:18px;box-shadow:0 20px 50px -12px rgba(0,0,0,.25);overflow:hidden;border:1px solid #E1E4E5;}
html[dir="rtl"] .homed-wa-panel{right:auto;left:0;}
.homed-wa-panel[hidden]{display:none;}
.homed-wa-panel .hwa-head{display:flex;gap:10px;align-items:center;background:#25D366;color:#fff;padding:14px 16px;}
.homed-wa-panel .hwa-head div{flex:1;display:flex;flex-direction:column;line-height:1.3;}
.homed-wa-panel .hwa-head strong{font-size:15px;}
.homed-wa-panel .hwa-head span{font-size:12px;opacity:.9;}
.homed-wa-panel .hwa-close{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0 4px;}
.homed-wa-panel .hwa-list{display:flex;flex-direction:column;padding:8px;}
.homed-wa-panel .hwa-list a{display:flex;flex-direction:column;padding:10px 12px;border-radius:12px;text-decoration:none;color:#1F2224;}
.homed-wa-panel .hwa-list a:hover{background:#F2FCF6;}
.homed-wa-panel .hwa-list a span{font-weight:600;font-size:14px;}
.homed-wa-panel .hwa-list a bdi{font-size:12px;color:#5B6266;}
@media (max-width:640px){.homed-wa{right:14px;bottom:14px;}html[dir="rtl"] .homed-wa{left:14px;}.homed-wa-btn{width:52px;height:52px;}}

/* WhatsApp floating button: always fixed bottom-right (all languages), gentle breathing float */
.homed-wa,html[dir="rtl"] .homed-wa{position:fixed;right:24px;left:auto;bottom:24px;z-index:60;}
.homed-wa-panel,html[dir="rtl"] .homed-wa-panel{right:0;left:auto;}
.homed-wa-btn{position:relative;animation:homedWaFloat 3.2s ease-in-out infinite;}
.homed-wa-btn::before{content:"";position:absolute;inset:0;border-radius:50%;background:#25D366;z-index:-1;animation:homedWaBreath 3.2s ease-out infinite;pointer-events:none;}
.homed-wa-btn:hover,.homed-wa-btn[aria-expanded="true"]{animation-play-state:paused;}
.homed-wa-btn:hover::before,.homed-wa-btn[aria-expanded="true"]::before{animation-play-state:paused;opacity:0;}
@keyframes homedWaFloat{0%,100%{transform:translateY(0) scale(1);}50%{transform:translateY(-5px) scale(1.04);}}
@keyframes homedWaBreath{0%{transform:scale(1);opacity:.45;}70%,100%{transform:scale(1.5);opacity:0;}}
@media (max-width:640px){.homed-wa,html[dir="rtl"] .homed-wa{right:16px;left:auto;bottom:16px;}}
@media (prefers-reduced-motion:reduce){.homed-wa-btn,.homed-wa-btn::before{animation:none;}}
/* If a reCAPTCHA badge is ever shown, keep the WhatsApp button above it */
body:has(.grecaptcha-badge) .homed-wa{bottom:96px;}
/* ---------- Mobile & tablet layout ---------- */
/* The design's wide side gutters (140px) left phones with very narrow content: use 24px/16px gutters below 1024px. */
@media (max-width:1023.98px){
  [class*="w-[min(100%-140px"],[class*="w-[min(100%-120px"]{width:calc(100% - 48px)!important;}
  [class*="w-[min(100%-140px"].section-padded,[class*="w-[min(100%-120px"].section-padded,
  [class*="w-[min(100%-140px"] .section-padded,[class*="w-[min(100%-120px"] .section-padded{padding-left:0!important;padding-right:0!important;}
}
@media (max-width:639.98px){
  [class*="w-[min(100%-140px"],[class*="w-[min(100%-120px"]{width:calc(100% - 32px)!important;}
  main .p-8{padding:1.5rem;} main .p-10{padding:1.75rem;} main .p-12{padding:2rem;}
  main .px-8{padding-left:1.25rem;padding-right:1.25rem;} main .px-10,main .px-12{padding-left:1.5rem;padding-right:1.5rem;}
  /* headings may wrap on small screens instead of running off the edge */
  h1 .whitespace-nowrap,h2 .whitespace-nowrap,h3 .whitespace-nowrap,h1.whitespace-nowrap,h2.whitespace-nowrap,h3.whitespace-nowrap{white-space:normal!important;}
}
/* Product catalogue: collapsible "Filters & Sorting" on phones/tablets */
.homed-filter-panel .hf-chev{display:none;margin-inline-start:auto;color:var(--tw-color-text-muted,#8A9196);transition:transform .2s;}
@media (max-width:1023.98px){
  .homed-filter-panel h3[role="button"]{cursor:pointer;flex:1;}
  .homed-filter-panel .hf-chev{display:inline-flex;}
  .homed-filter-panel:not(.is-collapsed) .hf-chev{transform:rotate(180deg);}
  .homed-filter-panel.is-collapsed{padding-top:1rem;padding-bottom:1rem;}
  .homed-filter-panel.is-collapsed > :not(:first-child){display:none!important;}
  .homed-filter-panel.is-collapsed > :first-child{border-bottom:0;padding-bottom:0;}
}
/* Home testimonials: the 120px white edge fades covered the review text on phones; keep only a slim edge fade there */
@media (max-width:767.98px){
  div:has(> #testimonial-carousel) > .pointer-events-none.absolute{width:24px!important;}
}
/* Phones: sections used 40px side padding (wider than the 16px used elsewhere) */
@media (max-width:639.98px){ .section-padded{padding-left:1rem;padding-right:1rem;} }
/* Home testimonials on phones: the moving strip runs edge to edge of the screen, so cards are no longer clipped 40px in from each side */
@media (max-width:639.98px){ div:has(> #testimonial-carousel){margin-left:-1rem;margin-right:-1rem;width:auto!important;} }
@media (min-width:640px) and (max-width:767.98px){ div:has(> #testimonial-carousel){margin-left:-2.5rem;margin-right:-2.5rem;width:auto!important;} }
