/* Header — Header.dc.html */
.site-header{ font-family:var(--body); color:#1C2620; background:#FBFAF6; border-bottom:1px solid #ECE7DB; }
.hdr-bar{ background:#16231E; color:#F3EBD7; font-size:13px; font-weight:500; letter-spacing:0.3px; text-align:center; padding:10px 16px; }
html[dir="rtl"] .hdr-bar{ letter-spacing:0; }
.hdr-row{ max-width:1280px; margin:0 auto; padding:14px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.hdr-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; color:#1E5B4F; }
html[dir="rtl"] .hdr-logo .wd-mark{ transform:scaleX(-1); }
.logo-word{ font-family:Fraunces, Georgia, serif; font-size:27px; letter-spacing:-0.6px; white-space:nowrap; color:#16231E; }
.logo-a{ font-weight:400; }
.logo-b{ font-weight:400; font-style:italic; color:#1E5B4F; }
html[dir="rtl"] .logo-word{ font-family:'IBM Plex Sans Arabic', sans-serif; letter-spacing:0; }
html[dir="rtl"] .logo-a{ font-weight:600; }
html[dir="rtl"] .logo-b{ font-style:normal; }
.hdr-search{ flex:1 1 320px; display:flex; min-width:0; }
.hdr-search input[type="search"]{ flex:1; min-width:0; height:46px; padding:0 16px; font-size:15px; font-family:inherit; border:1px solid #DDD7C8; border-inline-end:none; border-radius:10px 0 0 10px; background:#FFFFFF; color:#1C2620; -webkit-appearance:none; appearance:none; }
.hdr-search button{ height:46px; width:52px; flex:0 0 52px; padding:0; border:none; border-radius:0 10px 10px 0; background:#1E5B4F; color:#FFFFFF; cursor:pointer; display:flex; align-items:center; justify-content:center; }
html[dir="rtl"] .hdr-search input[type="search"]{ border-radius:0 10px 10px 0; }
html[dir="rtl"] .hdr-search button{ border-radius:10px 0 0 10px; }
.hdr-search button:hover{ background:#143F37; }
.hdr-actions{ display:flex; align-items:center; gap:10px; }
.hdr-lang{ height:46px; padding:0 16px; border:1px solid #C9C3B3; border-radius:10px; background:#FFFFFF; color:#1C2620; font-family:'IBM Plex Sans Arabic', Inter, sans-serif; font-size:15px; font-weight:600; cursor:pointer; display:flex; align-items:center; text-decoration:none; }
.hdr-lang:hover{ color:#1C2620; border-color:#1E5B4F; }
.hdr-cart{ height:46px; min-width:46px; padding:0 14px; border-radius:10px; background:#1E5B4F; color:#FFFFFF; display:flex; align-items:center; gap:8px; text-decoration:none; font-weight:600; font-size:15px; }
.hdr-cart:hover{ color:#FFFFFF; background:#143F37; }
.hdr-cart.bump, #bagCount.bump{ animation:wd-bump .45s ease; }
@keyframes wd-bump{ 0%{ transform:scale(1); } 40%{ transform:scale(1.14); } 100%{ transform:scale(1); } }
/* Main menu: Home, Shop, Categories (dropdown panel), About us, Contact us — managed in Appearance → Menus. */
.hdr-nav-wrap{ position:relative; max-width:1280px; margin:0 auto; }
.hdr-nav{ padding:0 24px; }
.nav-list{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:28px; }
.nav-item{ position:static; }
.nav-link{ display:inline-flex; align-items:center; gap:6px; padding:10px 0 12px; font-family:inherit; font-size:15px; font-weight:500; color:#3B4640; text-decoration:none; background:none; border:0; border-bottom:2px solid transparent; cursor:pointer; white-space:nowrap; line-height:1.4; }
.nav-link:hover, .nav-item.has-sub:hover > .nav-toggle{ color:#1E5B4F; }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-link{ color:#1E5B4F; font-weight:600; border-bottom-color:#D9A441; }
.nav-item.is-hi > .nav-link{ color:#1E5B4F; font-weight:600; }
.nav-item.is-hi > .nav-link::after{ content:""; width:6px; height:6px; border-radius:999px; background:#D9A441; }
.nav-toggle svg{ transition:transform .2s; }
.nav-toggle[aria-expanded="true"]{ color:#1E5B4F; }
.nav-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }
/* Dropdown panel: full header width, categories in a grid */
.nav-panel{ position:absolute; top:100%; left:24px; right:24px; z-index:60; margin-top:1px; background:#FFFFFF; border:1px solid #ECE7DB; border-radius:20px; box-shadow:0 18px 40px rgba(22,35,30,.12); padding:20px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .18s, transform .18s, visibility 0s .18s; }
.nav-item.has-sub.open > .nav-panel{ opacity:1; visibility:visible; transform:none; transition:opacity .18s, transform .18s; }
@media (hover:hover) and (pointer:fine){
  .nav-item.has-sub:hover > .nav-panel, .nav-item.has-sub:focus-within > .nav-panel{ opacity:1; visibility:visible; transform:none; transition:opacity .18s, transform .18s; }
  .nav-item.has-sub:hover > .nav-toggle svg{ transform:rotate(180deg); }
  /* hover bridge so the panel doesn't close while the pointer crosses the gap */
  .nav-panel::before{ content:""; position:absolute; left:0; right:0; top:-14px; height:14px; }
}
.nav-sub{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:4px 12px; }
.nav-sub a{ display:block; padding:11px 14px; border-radius:12px; color:#1C2620; text-decoration:none; font-size:15px; font-weight:500; }
.nav-sub a:hover, .nav-sub a:focus-visible{ background:#F1EDE3; color:#1E5B4F; }
.nav-sub a[aria-current="page"]{ background:#E4ECE6; color:#1E5B4F; font-weight:600; }
.nav-sub a.is-hi{ color:#1E5B4F; font-weight:600; }
.nav-sub a.is-hi::after{ content:""; display:inline-block; width:6px; height:6px; border-radius:999px; background:#D9A441; margin-inline-start:8px; vertical-align:middle; }
.nav-panel-all{ display:inline-block; margin:14px 14px 2px; font-weight:600; font-size:15px; color:#1E5B4F; text-decoration:underline; text-underline-offset:4px; }
html[dir="rtl"] .nav-panel-all span{ display:inline-block; transform:scaleX(-1); }
@media (max-width:640px){
  .hdr-nav{ padding:0 16px 4px; }
  .nav-list{ flex-wrap:wrap; gap:0 20px; }
  .nav-link{ padding:8px 0 9px; }
  .nav-link{ font-size:14px; }
  .nav-panel{ left:12px; right:12px; padding:12px; max-height:70vh; overflow-y:auto; }
  .nav-sub{ grid-template-columns:1fr 1fr; gap:2px 6px; }
  .nav-sub a{ padding:10px; font-size:14px; }
}
/* Uploaded logo (Customize → Site Identity → Logo) */
.hdr-logo .site-logo-img{ display:block; height:auto; max-height:52px; width:auto; max-width:240px; }
@media (max-width:640px){ .hdr-logo .site-logo-img{ max-height:44px; max-width:200px; } }
