/* Canonical site header: this is the only file that controls header layout. */
html,body{overflow-x:clip}

@media (min-width:801px){
  body>header .mobile-menu-heading{display:none}
  body>header,
  body:not(:has(.landing-home))>header,
  body:has(.landing-home)>header{
    position:sticky;
    top:0;
    z-index:9999;
    display:grid;
    grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);
    grid-template-areas:"brand menu actions";
    width:100%;
    max-width:none;
    height:auto;
    min-height:0;
    margin:0;
    gap:0;
    padding:0 clamp(24px,calc((100vw - 1440px)/2),80px);
    background:rgba(255,255,255,.98);
    border-bottom:1px solid #f3d8d0;
    box-shadow:0 8px 26px rgba(73,34,23,.055);
  }
  body>header .brand{
    grid-area:brand;
    justify-self:start;
    align-self:center;
    margin:0;
    padding-block:9px;
    font-family:Inter,Arial,sans-serif;
    font-size:25px;
    font-weight:900;
    letter-spacing:-1.3px;
  }
  body>header .brand-logo{display:block;width:160px;height:53px;max-width:160px;max-height:53px;object-fit:contain;object-position:left center}
  body>header .brand small{font-size:7px;letter-spacing:2.5px}
  body>header .search{display:none}
  body>header .head-actions{
    grid-area:actions;
    justify-self:end;
    align-self:center;
    display:flex;
    align-items:center;
    gap:19px;
    margin:0;
    padding-block:9px;
    font-family:Inter,Arial,sans-serif;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
  }
  body>header .mobile-menu-toggle{display:none}
  body>header .menu{
    grid-area:menu;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    position:static;
    top:auto;
    z-index:auto;
    gap:5px;
    min-width:0;
    margin:0;
    padding:0 12px;
    border:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }
  body>header .menu a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    padding:9px 13px;
    border-radius:999px;
    color:#312b29;
    font:700 12px/1 Inter,Arial,sans-serif;
    white-space:nowrap;
  }
  body>header .menu a:hover{background:#fff0eb;color:#ef4e30}
  body>header .menu a:first-child{padding-inline:18px;background:#292321;color:#fff}
  body>header .menu .accent{padding-inline:17px;border:1px solid #ffd4ca;background:#fff5f2;color:#ef4e36}
}

@media (max-width:800px){
  body>header,
  body:not(:has(.landing-home))>header,
  body:has(.landing-home)>header{
    position:sticky;
    top:0;
    z-index:9999;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    width:100%;
    height:auto;
    min-height:0;
    margin:0;
    padding:9px 13px;
    gap:9px;
    background:rgba(255,255,255,.98);
    border-bottom:1px solid #f3d8d0;
  }
  body>header .brand{flex:0 1 126px;min-width:0;margin:0;font:900 19px Inter,Arial,sans-serif;letter-spacing:-1px}
  body>header .brand-logo{display:block;width:118px;height:40px;max-width:118px;max-height:40px;object-fit:contain;object-position:left center}
  body>header .brand small{font-size:6px;letter-spacing:1.5px}
  body>header .search{display:none}
  body>header .head-actions{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:10px;white-space:nowrap}
  /* Mobilde giriş, sepetin yanında doğrudan erişilebilir kalır; bayi başvurusu menüdedir. */
  body>header .head-actions>a{display:inline-flex;align-items:center}
  body>header .head-actions>a[href="/bayi-ol"]{display:none}
  body>header .mobile-menu-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:0;border:1px solid #ffd5cb;border-radius:11px;background:#fff5f2;color:#ef4e36;font-size:22px;cursor:pointer}
  body>header .menu{display:none}
  body>header .mobile-menu-heading{display:none}
  body.mobile-menu-open{overflow:hidden}
  body.mobile-menu-open::before{content:"";position:fixed;inset:0;z-index:9998;background:rgba(28,22,20,.42);backdrop-filter:blur(2px)}
  body>header .menu.is-open{position:fixed!important;top:0!important;right:auto!important;bottom:auto!important;left:0!important;z-index:10000!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;width:min(86vw,340px)!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:calc(16px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom))!important;gap:5px!important;overflow-y:auto!important;overscroll-behavior:contain;background:#fff!important;border:0!important;border-radius:0 22px 22px 0!important;box-shadow:16px 0 44px rgba(30,20,17,.22)!important;transform:none!important}
  body>header .menu.is-open .mobile-menu-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 14px 51px;color:#292321;font:800 18px/1 Inter,Arial,sans-serif;border-bottom:1px solid #f2ddd7;margin-bottom:6px;background:url('/assets/images/cantabayim-mark.png?v=1') left 2px center/38px 38px no-repeat}
  body>header .mobile-menu-close{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:12px;background:#fff1ed;color:#ef4e36;font:400 29px/1 Arial;cursor:pointer}
  body>header .menu.is-open a{display:flex;min-height:48px;align-items:center;justify-content:flex-start;padding:12px 14px;border:1px solid #f4e2dd;border-radius:12px;background:#fff;color:#2a2422;font:700 14px/1.15 Inter,Arial,sans-serif}
  body>header .menu.is-open a:first-of-type{background:#2b2523;color:#fff;border-color:#2b2523}
  body>header .menu.is-open a.accent{background:#fff3ef;color:#ef4e36;border-color:#ffd4ca}
}

footer .footer-brand{display:flex!important;align-items:center;margin:0!important;padding:0!important;font-size:0!important}
footer .footer-logo{display:block;width:180px;height:auto;max-height:60px;object-fit:contain;object-position:left center}
