/* =====================================================================
   Asude — site başlığı (navbar). Araştırma spesifikasyonu:
   üst şerit 36px · ana satır 72px (yapışkan 56px) · logo 56→40px ·
   kategoriler üst menüde · dropdown 320px + görsel · arama alanı 220×40 ·
   etiketli ikonlar · tek vurgu: sepet rozeti.
   ===================================================================== */

/* ---------- Duyuru şeridi ---------- */
.asude-announce{
  background:var(--asude-green-dark); color:#faf6ee; text-align:center;
  font-size:13px; font-weight:500; letter-spacing:0.01em; line-height:1.3;
  padding:0 1em; min-height:36px; display:flex; align-items:center; justify-content:center;
}
.asude-announce strong{ color:#f0a865; font-weight:700; margin-right:0.25em; }
@media (max-width:600px){ .asude-announce{ font-size:12px; min-height:32px; } }

/* ---------- Başlık kabı ---------- */
#masthead{ position:sticky; top:0; z-index:99; background:var(--asude-cream); }
#ast-scroll-top{ position:fixed !important; }
body #ast-scroll-top{ background-color:var(--asude-green-dark, #1f4a37); border-radius:50%; box-shadow:0 6px 18px rgba(21,52,40,0.28); }
.ast-primary-header-bar .ast-container{ max-width:1400px; }
.ast-primary-header-bar{
  padding:0 !important; border-bottom:1px solid rgba(31,74,55,0.12); box-shadow:none;
  transition:box-shadow .2s ease;
}
.asude-scrolled .ast-primary-header-bar{ box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.main-header-bar{ min-height:0 !important; padding:0 !important; }
/* Satır yüksekliği sabit 128px (logo 96 + Astra bölüm padding'i 32) — küçülünce de aynı, içerik zıplamaz */
.ast-desktop .ast-primary-header-bar .ast-builder-grid-row{ height:128px; min-height:0; box-sizing:border-box; transition:padding-top .2s ease; }
/* Kaydırınca küçülme: satırın yerleşim yüksekliği 104px'te SABİT kalır (içerik zıplamaz); içerik alt 56px'e iner,
   başlık transform ile 48px yukarı kayar → görünen çubuk 56px. */
@media (min-width:922px){
  #masthead{ transition:transform .2s ease; }
  .asude-scrolled #masthead{ transform:translateY(-52px); }
}
/* Yan sütunlar içerik kadar, menü ortada kalan alanı kullanır (Astra'nın 1fr auto 1fr'si logoyla çakışıyordu) */
.ast-desktop .ast-primary-header-bar .ast-builder-grid-row.ast-grid-center-col-layout{ grid-template-columns:auto minmax(0,1fr) auto; grid-column-gap:16px; }
.ast-desktop .ast-primary-header-bar .site-header-primary-section-center{ display:flex; justify-content:center; min-width:0; }
.ast-desktop .ast-primary-header-bar .site-header-primary-section-center .site-navigation{ max-width:100%; }
.asude-scrolled .ast-desktop .ast-primary-header-bar .ast-builder-grid-row{ padding-top:52px; } /* içerik alt 76px: logo 44 + 32 */

/* ---------- Logo + wordmark ---------- */
.site-logo-img{ display:inline-flex; line-height:0; padding:0; margin:0; }
.custom-logo-link{ display:inline-flex; padding:0; margin:0; border:none; }
.ast-site-identity{ padding:0; margin:0; }
.site-logo-img img.custom-logo{ max-height:96px; width:auto; height:auto; display:block; transition:max-height .2s ease; }
.asude-scrolled .site-logo-img img.custom-logo{ max-height:44px; }
.site-branding.ast-site-identity{ gap:0.6em; align-items:center; }
.ast-site-identity .site-title{ margin:0; line-height:1; }
.ast-site-identity .site-title a{
  display:flex; flex-direction:column; text-decoration:none; color:var(--asude-green-dark);
  font-size:0; line-height:1.05; /* metin DOM'da kalır (erişilebilirlik/SEO), görsel olarak iki satırlı marka */
}
.site-branding.ast-site-identity{ flex-shrink:0; }
.ast-site-identity .site-title a::before{ white-space:nowrap; content:"Asude"; font-family:'Playfair Display', Georgia, serif; font-size:22px; font-weight:600; letter-spacing:0.01em; }
.ast-site-identity .site-title a::after{ white-space:nowrap; content:"Kuruyemiş & Kahve"; font-family:'Plus Jakarta Sans', system-ui, sans-serif; font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--asude-accent); margin-top:3px; }
.asude-scrolled .ast-site-identity .site-title a::after{ display:none; }

/* ---------- Ana menü ---------- */
.ast-desktop .main-header-menu.ast-nav-menu{ gap:2px; flex-wrap:nowrap; align-items:center; }
.ast-desktop .main-header-menu > .menu-item{ display:flex; align-items:center; margin:0; position:relative; }
.ast-desktop .main-header-menu > .menu-item > a.menu-link{
  position:relative; display:inline-flex; align-items:center; gap:0.35em;
  font-family:'Plus Jakarta Sans', system-ui, sans-serif; font-size:14.5px; font-weight:500; line-height:1.2;
  color:var(--asude-green-dark); padding:0.7em 0.65em !important; border-radius:6px; white-space:nowrap;
  transition:color .15s ease;
}
.ast-desktop .main-header-menu > .menu-item > a.menu-link::after{
  content:""; position:absolute; left:0.85em; right:0.85em; bottom:0.45em; height:2px;
  background:var(--asude-accent); transform:scaleX(0); transform-origin:left; transition:transform .15s ease;
}
.ast-desktop .main-header-menu > .menu-item:hover > a.menu-link,
.ast-desktop .main-header-menu > .menu-item:focus-within > a.menu-link{ color:var(--asude-green); }
.ast-desktop .main-header-menu > .menu-item:hover > a.menu-link::after,
.ast-desktop .main-header-menu > .menu-item:focus-within > a.menu-link::after,
.ast-desktop .main-header-menu > .current-menu-item > a.menu-link::after,
.ast-desktop .main-header-menu > .current-menu-ancestor > a.menu-link::after{ transform:scaleX(1); }
/* Astra'nın ok ikonunu gizle, ince caret kullan */
#ast-desktop-header .main-header-menu .ast-header-navigation-arrow,
#ast-desktop-header .main-header-menu .dropdown-menu-toggle,
#ast-desktop-header .main-header-menu .icon-arrow{ display:none !important; }
/* Chevron: satır içi SVG (asude-header.php, nav_menu_item_title) — metnin sağında 6px boşlukla */
.main-header-menu > .menu-item > a.menu-link .asude-caret{ display:inline-block; width:10px; height:6px; margin-left:6px; flex-shrink:0; opacity:0.65; vertical-align:middle; }
.ast-mobile-popup-content .asude-caret{ display:none !important; }
.ast-desktop .main-header-menu .ast-menu-toggle{ display:none; }
.ast-desktop .main-header-menu .menu-item-has-children > .menu-link .icon-arrow{ display:none; }

/* ---------- Dropdown (hover niyeti: 300 ms aç, 400 ms kapat — CSS geçişleriyle) ---------- */
.ast-desktop .main-header-menu .sub-menu{
  position:absolute; top:100%; left:0 !important; right:auto; width:320px; margin-top:8px;
  background:#fff; border:1px solid rgba(31,74,55,0.12); border-radius:12px; padding:14px;
  box-shadow:0 14px 34px rgba(21,52,40,0.14);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .15s ease .4s, transform .15s ease .4s, visibility 0s linear .55s;
}
.ast-desktop .main-header-menu .sub-menu::before{ content:""; position:absolute; left:0; right:0; top:-10px; height:10px; } /* köprü: fare aralıkta kaymasın */
.ast-desktop .main-header-menu .menu-item:hover > .sub-menu,
.ast-desktop .main-header-menu .menu-item:focus-within > .sub-menu,
.ast-desktop .main-header-menu .menu-item > .sub-menu.toggled-on{
  opacity:1; visibility:visible; transform:translateY(0);
  transition:opacity .15s ease .3s, transform .15s ease .3s, visibility 0s linear .3s;
}
.ast-desktop .main-header-menu .menu-item.asude-dd > .sub-menu{ padding-right:150px; min-height:172px; }
.ast-desktop .main-header-menu .menu-item.asude-dd > .sub-menu::after{
  content:""; position:absolute; right:14px; top:14px; width:120px; height:120px; border-radius:10px;
  background:#efe9de var(--dd-img) center/cover no-repeat;
}
.ast-desktop .main-header-menu .sub-menu .menu-item{ margin:0; display:block; }
.ast-desktop .main-header-menu .sub-menu .menu-item > a.menu-link{
  display:block; padding:0.55em 0.7em !important; border-radius:8px;
  font-family:'Plus Jakarta Sans', system-ui, sans-serif; font-size:14px; font-weight:500; line-height:1.3; color:var(--asude-green-dark);
}
.ast-desktop .main-header-menu .sub-menu .menu-item > a.menu-link::after{ display:none; }
.ast-desktop .main-header-menu .sub-menu .menu-item > a.menu-link:hover{ background:rgba(31,74,55,0.07); color:var(--asude-green); }
.ast-desktop .main-header-menu .sub-menu .menu-item:first-child > a.menu-link{ font-weight:700; color:var(--asude-accent); }
.ast-desktop .main-header-menu .sub-menu .menu-item:first-child > a.menu-link:hover{ background:rgba(201,117,47,0.1); color:var(--asude-accent-dark); }
.ast-desktop .main-header-menu .sub-menu .menu-item:first-child{ border-bottom:1px solid rgba(31,74,55,0.1); padding-bottom:6px; margin-bottom:6px; }
.ast-desktop .main-header-menu .menu-item.asude-dd-kahve > .sub-menu{ width:380px; }

/* ---------- Sağ küme: arama · Hesabım · Sepet ---------- */
.ast-header-html .ast-builder-html-element p{ margin:0; }
.asude-tools{ display:flex; align-items:center; gap:6px; }
.asude-search-form{ position:relative; display:flex; align-items:center; width:200px; height:40px; margin:0; }
.asude-search-form input[type=search]{
  width:100%; height:40px; margin:0; padding:0 40px 0 16px; box-sizing:border-box;
  border:1px solid rgba(31,74,55,0.35); border-radius:20px; background:#fff; color:var(--asude-green-dark);
  font:inherit; font-size:14px; line-height:1; -webkit-appearance:none; appearance:none;
}
.asude-search-form input[type=search]::placeholder{ color:#8a8a7e; }
.asude-search-form input[type=search]:focus{ outline:none; border-color:var(--asude-green-dark); box-shadow:0 0 0 3px rgba(31,74,55,0.12); }
.asude-search-form input[type=search]::-webkit-search-cancel-button{ -webkit-appearance:none; }
.asude-search-form button{
  position:absolute; right:4px; top:4px; width:32px; height:32px; padding:0; margin:0; border:0; border-radius:50%;
  background:transparent !important; color:var(--asude-green-dark) !important; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.asude-search-form button:hover{ background:rgba(31,74,55,0.08) !important; }
.asude-tool{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  min-width:56px; height:56px; padding:0 6px; border-radius:10px; text-decoration:none !important;
  color:var(--asude-green-dark) !important; background:transparent; border:0; cursor:pointer; font:inherit;
}
.asude-tool:hover{ background:rgba(31,74,55,0.06); color:var(--asude-green) !important; }
.asude-tool-ico{ position:relative; display:inline-flex; line-height:0; }
.asude-tool-label{ font-family:'Plus Jakarta Sans', system-ui, sans-serif; font-size:11px; font-weight:600; letter-spacing:0.02em; line-height:1; white-space:nowrap; }
.asude-cart-count{
  position:absolute; top:-6px; right:-8px; min-width:17px; height:17px; padding:0 4px; border-radius:999px;
  background:var(--asude-accent); color:#fff; font-size:10.5px; font-weight:700; line-height:17px; text-align:center;
  box-shadow:0 0 0 2px var(--asude-cream);
}
.asude-cart-count[hidden]{ display:none !important; }
.asude-tools-mobile, .asude-msearch{ display:none; }

/* ---------- Geniş ekran (≥1600): ferah ölçüler ---------- */
@media (min-width:1600px){
  .ast-desktop .main-header-menu > .menu-item > a.menu-link{ font-size:15px; padding:0.7em 0.85em !important; }
  .asude-search-form{ width:220px; }
}
/* ---------- Orta aralık: menü sığsın ---------- */
@media (min-width:922px) and (max-width:1400px){
  .ast-desktop .main-header-menu > .menu-item > a.menu-link{ font-size:14px; padding:0.7em 0.5em !important; }
    .asude-search-form{ width:150px; }
  .asude-tool{ min-width:48px; padding:0 3px; }
  .ast-primary-header-bar .ast-container{ padding-left:16px; padding-right:16px; }
  .ast-site-identity .site-title a::after{ display:none; }
}
@media (min-width:922px) and (max-width:1240px){
  .ast-site-identity .site-title{ display:none; }
}
@media (min-width:922px) and (max-width:1060px){
  .ast-desktop .main-header-menu > .menu-item > a.menu-link{ font-size:13.5px; padding:0.7em 0.4em !important; }
  .asude-search-form{ width:44px; }
  .asude-search-form input[type=search]{ padding-left:0; color:transparent; }
  .asude-search-form input[type=search]::placeholder{ color:transparent; }
  .asude-search-form input[type=search]:focus{ width:180px; position:absolute; right:0; padding-left:14px; color:var(--asude-green-dark); }
  .asude-search-form input[type=search]:focus::placeholder{ color:#8a8a7e; }
  .asude-search-form{ position:relative; }
}

/* ---------- Mobil (Astra kırılımı ≤921px) ---------- */
@media (max-width:921px){
  #ast-mobile-header{ background:var(--asude-cream); box-shadow:none; border-bottom:1px solid rgba(31,74,55,0.12); position:relative; }
  #ast-mobile-header .ast-builder-grid-row{ min-height:64px; }
  #ast-mobile-header .site-logo-img img.custom-logo{ max-height:56px; }
  .asude-scrolled #ast-mobile-header .site-logo-img img.custom-logo{ max-height:40px; }
  #ast-mobile-header .ast-site-identity .site-title a::before{ font-size:19px; }
  #ast-mobile-header .ast-site-identity .site-title a::after{ display:none; }
  .asude-tools-desktop{ display:none; }
  .asude-tools-mobile{ display:flex; gap:2px; }
  .asude-tools-mobile .asude-tool{ min-width:48px; height:48px; }
  /* Hamburger: ikon + "Menü" etiketi */
  .ast-mobile-header-wrap .menu-toggle{ display:inline-flex !important; flex-direction:column; align-items:center; gap:2px; padding:4px 8px !important; background:transparent !important; border:0 !important; color:var(--asude-green-dark) !important; }
  .ast-mobile-header-wrap .menu-toggle .mobile-menu-toggle-icon .ast-mobile-svg{ width:24px; height:24px; }
  .ast-mobile-header-wrap .menu-toggle .mobile-menu-wrap .mobile-menu{ font-size:11px; font-weight:600; letter-spacing:0.02em; margin:0; color:var(--asude-green-dark); }
  .ast-mobile-header-wrap .menu-toggle:focus, .ast-mobile-header-wrap .menu-toggle:hover{ color:var(--asude-green-dark) !important; }
  /* Arama satırı (Ara'ya dokununca başlığın altında açılır) */
  .asude-msearch{ display:none; position:absolute; left:0; right:0; top:100%; background:var(--asude-cream); padding:10px 16px 12px; border-bottom:1px solid rgba(31,74,55,0.12); box-shadow:0 8px 20px rgba(21,52,40,0.1); z-index:98; }
  .asude-msearch:not([hidden]){ display:block; }
  .asude-msearch .asude-search-form{ width:100%; height:44px; }
  .asude-msearch .asude-search-form input[type=search]{ height:44px; font-size:16px; }
  .asude-msearch .asude-search-form button{ top:6px; }
  /* Off-canvas panel */
  .ast-mobile-popup-drawer .ast-mobile-popup-inner{ background:var(--asude-cream); }
  .ast-mobile-popup-content .main-header-menu{ display:block; }
  .ast-mobile-popup-content .main-header-menu > .menu-item{ display:block; position:relative; }
  .ast-mobile-popup-content .main-header-menu .menu-item > .menu-link{ display:flex; align-items:center; }
  .ast-mobile-popup-content .main-header-menu .ast-menu-toggle{ position:absolute; right:0; top:0; height:48px; width:48px; display:flex; align-items:center; justify-content:center; }
  .ast-mobile-popup-content .main-header-menu .sub-menu{ position:static; width:auto; background:transparent; border:0; box-shadow:none; padding:0 0 4px; margin:0; opacity:1; visibility:visible; transform:none; }
  .ast-mobile-popup-content .main-header-menu .menu-item > .menu-link{ font-family:'Plus Jakarta Sans', system-ui, sans-serif; font-size:16px; font-weight:600; color:var(--asude-green-dark); min-height:48px; padding:0.6em 0.2em; border-bottom:1px solid rgba(31,74,55,0.1); }
  .ast-mobile-popup-content .main-header-menu .sub-menu .menu-item > .menu-link{ font-size:15px; font-weight:500; padding-left:1.2em; border-bottom:0; min-height:44px; }
  .ast-mobile-popup-content .main-header-menu .sub-menu .menu-item:first-child > .menu-link{ color:var(--asude-accent); font-weight:700; }
  .ast-mobile-popup-content .asude-mm-search{ padding:4px 0 12px; border-bottom:0; }
  .ast-mobile-popup-content .asude-mm-search .asude-search-form{ width:100%; height:44px; }
  .ast-mobile-popup-content .asude-mm-search input[type=search]{ height:44px; font-size:16px; }
  .ast-mobile-popup-content .asude-mm-sep{ height:1px; background:rgba(31,74,55,0.15); margin:12px 0 6px; }
  .ast-mobile-popup-content .asude-mm-link > .menu-link{ font-size:14px !important; font-weight:500 !important; color:#4a4a40 !important; min-height:42px !important; border-bottom:0 !important; display:flex; align-items:center; gap:0.5em; }
  .ast-mobile-popup-content .asude-mm-link svg{ width:16px; height:16px; opacity:0.8; }
  .ast-mobile-popup-content .main-header-menu .menu-item > .menu-link:focus,
  .ast-mobile-popup-content .main-header-menu .menu-item > .menu-link:hover,
  .ast-mobile-popup-content .main-header-menu .menu-item.ast-submenu-expanded > .menu-link{ color:var(--asude-green) !important; background:transparent; }
  .ast-mobile-popup-content .main-header-menu .ast-menu-toggle:focus{ outline:2px solid var(--asude-accent); outline-offset:-2px; border-radius:8px; }
  .ast-mobile-popup-content .main-header-menu .ast-menu-toggle, .ast-mobile-popup-content .main-header-menu .ast-menu-toggle:hover{ color:var(--asude-green-dark) !important; }
  .asude-announce .a3{ display:none; }
  .ast-mobile-popup-content .ast-menu-toggle{ display:flex !important; color:var(--asude-green-dark); }
}

/* ---------- Müşteri hizmetleri düğmesi (sağ alt) ---------- */
.asude-help{ position:fixed; right:18px; bottom:18px; z-index:98; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.asude-help-btn{
  display:inline-flex; align-items:center; gap:8px; padding:0 18px 0 14px; height:52px; border-radius:999px; border:0; cursor:pointer;
  background:var(--asude-green-dark, #1f4a37); color:#fff; font:inherit; font-weight:700; font-size:0.95rem;
  box-shadow:0 10px 26px rgba(21,52,40,0.35); transition:transform .15s ease, background .15s ease;
}
.asude-help-btn svg{ width:22px; height:22px; }
.asude-help-btn:hover, .asude-help-btn.is-open{ background:var(--asude-accent, #c9752f); transform:translateY(-1px); }
.asude-help-panel{ width:min(320px, calc(100vw - 36px)); background:#fff; border:1px solid rgba(31,74,55,0.14); border-radius:16px; padding:14px; box-shadow:0 18px 44px rgba(21,52,40,0.22); }
.asude-help-title{ margin:0 0 2px; font-family:'Playfair Display', Georgia, serif; font-size:1.05rem; color:var(--asude-green-dark, #1f4a37); }
.asude-help-sub{ margin:0 0 10px; font-size:0.8rem; color:#7a7a70; }
.asude-help-item{ display:flex; align-items:center; gap:10px; padding:10px 10px; border-radius:10px; text-decoration:none !important; color:inherit; border:1px solid rgba(31,74,55,0.1); margin-top:6px; }
.asude-help-item:hover{ border-color:var(--asude-accent, #c9752f); background:rgba(201,117,47,0.06); }
.asude-help-item svg{ width:20px; height:20px; color:var(--asude-green-dark, #1f4a37); flex:0 0 auto; }
.asude-help-item strong{ display:block; font-size:0.92rem; color:var(--asude-green-dark, #1f4a37); }
.asude-help-item small{ display:block; font-size:0.78rem; color:#7a7a70; }
/* Yukarı çık düğmesi sol alta: yardım paneliyle çakışmasın */
body #ast-scroll-top{ left:18px !important; right:auto !important; bottom:18px !important; }
@media (max-width:600px){
  .asude-help{ right:12px; bottom:12px; }
  .asude-help-btn{ height:48px; padding:0 14px 0 12px; font-size:0.9rem; }
  body #ast-scroll-top{ left:12px !important; bottom:12px !important; }
}
