/*
 * Site header. Same tokens and 1400px container as the product pages.
 * Full state: logo | utility row (wishlist, search, language) over the menu | optional brand seal.
 * Compact state (after scrolling): one slim row, seal hidden. Hides when scrolling down, returns on scroll up.
 */
.ah{--ah-ink:#111;--ah-muted:#6b6b6b;--ah-line:#e4e4e4;
  position:fixed;top:0;left:0;right:0;z-index:100;background:#fff;color:var(--ah-ink);font-family:"DM Sans",sans-serif;
  border-bottom:1px solid var(--ah-line);transition:transform .32s cubic-bezier(.2,.7,.2,1),box-shadow .2s}
.admin-bar .ah{top:32px}
@media(max-width:782px){.admin-bar .ah{top:46px}}
.ah.is-hidden{transform:translateY(-101%)}
.ah.is-compact{box-shadow:0 1px 14px rgba(0,0,0,.06)}
.ah-spacer{height:var(--ah-full,112px)}
.ah-inner{max-width:1400px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:var(--ah-full,112px);transition:min-height .25s}
.ah.is-compact .ah-inner{min-height:60px}

.ah-logo{display:block;line-height:0;flex:none}
.ah-logo img{display:block;height:52px;width:auto;transition:height .25s}
.ah.is-compact .ah-logo img{height:32px}

/* right side: utility row over the menu */
.ah-right{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-left:auto}
.ah-tools{display:flex;align-items:center;gap:6px;order:0}
.ah-nav{order:1}
.ah.is-compact .ah-right{flex-direction:row;align-items:center;gap:36px}
.ah.is-compact .ah-nav{order:0}.ah.is-compact .ah-tools{order:1}

/* icon buttons: Hello Elementor paints buttons pink on hover, so colours are set explicitly */
.ah .ah-icon{position:relative;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:none;color:var(--ah-ink);cursor:pointer;transition:background .15s}
.ah .ah-icon:hover,.ah .ah-icon:focus-visible{background:#f4f4f4;color:var(--ah-ink)}
/* Hello Elementor turns a focused/pressed button pink (#c36); keep it neutral */
.ah .ah-icon:focus,.ah .ah-icon:active{background:none;color:var(--ah-ink);outline:0}
.ah .ah-icon:focus-visible{background:#f4f4f4}
.ah .ah-search .ah-icon,.ah .ah-search .ah-icon:hover,.ah .ah-search .ah-icon:focus,.ah .ah-search .ah-icon:active,.ah .ah-search .ah-icon:focus-visible{background:none}
.ah .ah-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ah-badge{position:absolute;top:2px;right:0;min-width:15px;height:15px;padding:0 4px;border-radius:8px;background:#111;color:#fff;font:600 9px/15px "DM Sans",sans-serif;text-align:center}
.ah-badge[hidden]{display:none}

/* search: icon that opens an input to its left */
.ah-search{display:flex;align-items:center;flex-direction:row}
.ah .ah-search input[type=search]{width:0;padding:0;opacity:0;border:0;border-bottom:1px solid #d9d9d9;border-radius:0;background:transparent;color:var(--ah-ink);font:400 14px "DM Sans",sans-serif;letter-spacing:.02em;outline:0;box-shadow:none;transition:width .22s ease,opacity .18s ease,padding .22s ease}
.ah .ah-search input[type=search]:focus{border:0;border-bottom:1px solid #bdbdbd;box-shadow:none;outline:0;background:transparent}
.ah .ah-search.is-open input[type=search]{width:min(240px,46vw);padding:6px 6px;opacity:1}
.ah .ah-search input[type=search]::placeholder{color:#a9a9a9;font-weight:300;opacity:1}
.ah-search input[type=search]::-webkit-search-cancel-button{display:none}

/* language: EN | TR, active highlighted */
.ah-lang{display:flex;align-items:center;margin-left:8px;font-size:12px;font-weight:500;letter-spacing:.14em}
.ah-lang>*+*::before{content:"";display:inline-block;width:1px;height:11px;margin:0 10px;background:var(--ah-line);vertical-align:-1px}
body .ah .ah-lang a{color:var(--ah-muted);text-decoration:none;transition:color .15s}
body .ah .ah-lang a:hover{color:var(--ah-ink)}
.ah-lang .is-active{color:var(--ah-ink);font-weight:700}
/* the divider is drawn by ::before on the second item; it must not underline or inherit colour */
.ah-lang>*+*{display:inline-flex;align-items:center}

/* menu */
.ah-menu,.ah-menu ul{margin:0;padding:0;list-style:none}
.ah-menu{display:flex;align-items:center;gap:clamp(20px,2.6vw,38px)}
.ah-menu>li{position:relative}
body .ah .ah-menu a{position:relative;display:block;padding:8px 0;font-size:12.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ah-ink);text-decoration:none;white-space:nowrap}
body .ah .ah-menu>li>a::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
body .ah .ah-menu>li>a:hover::after,body .ah .ah-menu>li:focus-within>a::after,body .ah .ah-menu>li.current-menu-item>a::after,body .ah .ah-menu>li.current-menu-ancestor>a::after{transform:scaleX(1)}
.ah-menu>li.menu-item-has-children>a{padding-right:15px}
.ah-menu>li.menu-item-has-children>a::before{content:"";position:absolute;right:1px;top:50%;width:5px;height:5px;margin-top:-4px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);opacity:.6}

/* dropdown */
.ah-menu .sub-menu{position:absolute;top:100%;right:-18px;min-width:230px;padding:10px 0;background:#fff;border:1px solid var(--ah-line);box-shadow:0 12px 28px rgba(0,0,0,.07);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s,visibility .2s}
.ah-menu li:hover>.sub-menu,.ah-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
body .ah .ah-menu .sub-menu a{padding:11px 22px;font-size:12px;letter-spacing:.14em}
body .ah .ah-menu .sub-menu a:hover{background:#f6f6f6}

/* brand seal, right of the menu; only on that brand's pages */
.ah .ah-seal{flex:none;display:block;height:68px;width:auto;margin-left:8px;transition:height .25s,opacity .2s}
.ah.is-compact .ah-seal{height:0;opacity:0;margin:0}

/* mobile */
.ah .ah-burger{display:none}
.ah-panel{display:none}
@media(max-width:991px){
  .ah{--ah-full:76px}
  .ah-inner{gap:12px;min-height:76px}
  .ah.is-compact .ah-inner{min-height:56px}
  .ah-logo img{height:40px}.ah.is-compact .ah-logo img{height:30px}
  .ah-right{flex-direction:row;gap:0}
  .ah-nav,.ah .ah-seal,.ah-tools .ah-lang{display:none}
  .ah .ah-burger{display:grid}
  .ah-panel:not([hidden]){display:block;position:absolute;top:100%;left:0;right:0;max-height:calc(100vh - 76px);overflow:auto;background:#fff;border-top:1px solid var(--ah-line);padding:12px 20px 28px}
  .ah-pmenu,.ah-pmenu ul{margin:0;padding:0;list-style:none}
  body .ah .ah-pmenu a{display:block;padding:15px 0;border-bottom:1px solid var(--ah-line);font-size:13px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ah-ink);text-decoration:none}
  body .ah .ah-pmenu .sub-menu a{padding-left:18px;font-size:12px;color:var(--ah-muted)}
  .ah-panel__foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}
  .ah-panel__foot .ah-lang{margin:0}
  .ah .ah-seal--panel{display:block;height:56px;opacity:1;margin:0}
}
body.ah-lock{overflow:hidden}
@media(prefers-reduced-motion:reduce){.ah,.ah *{transition:none!important}}
