﻿/* =====================================================================
   Mağaza ortak header + footer stilleri — TÜM sayfalarda aynı kaynak.
   Her sayfanın <head>'inde, sayfaya özel <style>'dan SONRA linklenir ki
   header/footer görünümü her yerde tutarlı olsun.
   (Renk değişkenleri var(--navy) vb. her sayfanın :root'undan gelir.)
   ===================================================================== */
.wrap{max-width:1320px;margin:0 auto;padding:0 24px}

/* ---------- HEADER ---------- */
.header{position:sticky;top:0;z-index:60;box-shadow:0 4px 18px rgba(7,46,110,.18);overflow:visible}
.header-bottom{overflow:visible}
.header-bottom .wrap{overflow:visible}
.header-top{background:var(--navy)}
.header-top .wrap{display:flex;align-items:stretch;justify-content:space-between;height:78px;gap:24px}
.logos{display:flex;align-items:stretch}
.logo-cepte{display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--yellow);border-radius:14px 14px 0 0;padding:12px 30px 14px;margin-top:12px;margin-bottom:-1px;align-self:stretch;transition:filter .2s}
.logo-cepte:hover{filter:brightness(1.04)}
.logo-img{height:48px;width:auto;display:block}
.top-links{display:flex;align-items:center;gap:34px}
.top-links a{color:#fff;font-weight:600;font-size:15px;display:flex;align-items:center;gap:8px;position:relative;transition:color .2s;white-space:nowrap;text-decoration:none}
.top-links a:hover{color:var(--yellow)}
.top-links a:not(:last-child)::after{content:"";position:absolute;right:-17px;top:50%;transform:translateY(-50%);height:15px;width:1px;background:rgba(255,255,255,.28)}
.header-bottom{background:var(--yellow)}
.header-bottom .wrap{display:flex;align-items:center;gap:20px;height:68px}
.cat-btn{display:flex;align-items:center;gap:10px;color:var(--navy);font-weight:700;font-size:16px;font-family:'Inter',system-ui,sans-serif;white-space:nowrap;padding:6px 4px;background:transparent;border:none;cursor:pointer}
.cat-btn .chev{transition:transform .2s}
.cat-btn:hover .chev{transform:translateY(2px)}
.search{flex:1;position:relative;max-width:680px;margin:0}
.search input{width:100%;height:46px;border:none;border-radius:8px;background:#fff;padding:0 54px 0 18px;font-size:15px;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1);transition:box-shadow .2s;font-family:inherit}
.search input::placeholder{color:#9aa1b2}
.search input:focus{outline:none;box-shadow:0 0 0 3px rgba(10,61,145,.3)}
.search .go{position:absolute;right:0;top:0;height:46px;width:52px;background:transparent;border:none;cursor:pointer;display:grid;place-items:center;transition:transform .15s}
.search .go:active{transform:scale(.9)}
.b-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.h-btn{display:flex;align-items:center;gap:9px;color:var(--navy);padding:8px 12px;border-radius:9px;transition:background .2s;font-weight:600;white-space:nowrap;background:transparent;border:none;cursor:pointer;text-decoration:none}
.h-btn:hover{background:rgba(0,0,0,.07)}
.h-btn .ico{width:24px;height:24px}
.h-btn small{display:block;font-size:11px;color:#7a6c00;font-weight:600}
.h-btn span b{font-size:14px}
.cart-btn{position:relative;overflow:visible}
.cart-count{
  position:absolute;top:-4px;right:-4px;left:auto;
  background:var(--red);color:#fff;font-size:10px;font-weight:800;
  min-width:18px;height:18px;padding:0 5px;border-radius:9px;
  display:none;place-items:center;border:2px solid var(--yellow);
  z-index:5;line-height:1;pointer-events:none;box-sizing:border-box
}
.cart-count.show{display:grid}
.b-actions .cart-btn .cart-count{top:0;right:auto;left:28px}

.header-mobile-bar{display:none}

/* ---------- ANASAYFA / SEPET MOBİL HEADER (header-home.php) ---------- */
.header-home-mobile{display:none}
.header-home-desktop{display:block}
.hh-top{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;padding:10px 14px 8px}
.hh-top--logo-only{grid-template-columns:1fr;justify-items:center;padding:12px 14px 10px}
.hh-top--logo-only .hh-logo--solo{justify-self:center}
.hh-top--logo-only .hh-logo--solo .logo-img{height:38px}
.hh-btn{
  width:44px;height:44px;border-radius:12px;background:#fffdf5;
  display:grid;place-items:center;color:var(--navy);box-shadow:0 1px 4px rgba(16,32,80,.08);
  flex-shrink:0;text-decoration:none
}
.hh-btn svg{width:22px;height:22px}
.hh-logo{display:flex;align-items:center;justify-content:center}
.hh-logo .logo-img{height:36px;width:auto}
.hh-cart-pill{
  display:flex;align-items:center;gap:8px;background:#fffdf5;color:var(--navy);
  font-weight:800;font-size:14px;padding:10px 14px;border-radius:12px;
  box-shadow:0 1px 4px rgba(16,32,80,.08);position:relative;white-space:nowrap;text-decoration:none
}
.hh-cart-pill svg{width:22px;height:22px;flex-shrink:0}
.hh-cart-pill .cart-count{top:-4px;right:-4px;border-color:#fffdf5}
.hh-tools{display:flex;align-items:center;gap:8px;padding:0 14px 12px}
.hh-tools--search-only .hh-search{flex:1}
.hh-search{
  flex:1;display:flex;align-items:center;background:#fffdf5;border-radius:12px;
  box-shadow:0 1px 4px rgba(16,32,80,.08);overflow:hidden;min-width:0
}
.hh-search input{
  flex:1;border:none;background:transparent;height:44px;padding:0 14px;
  font-size:15px;color:var(--ink);font-family:inherit;min-width:0
}
.hh-search input::placeholder{color:#9aa1b2}
.hh-search input:focus{outline:none}
.hh-search-go{
  width:44px;height:44px;display:grid;place-items:center;color:var(--navy);flex-shrink:0
}
.hh-search-go svg{width:20px;height:20px}
.hh-sort-pop{
  position:absolute;left:14px;right:14px;top:100%;margin-top:4px;
  background:#fff;border-radius:12px;box-shadow:0 12px 32px rgba(16,32,80,.18);
  border:1px solid var(--line);padding:6px;z-index:75;display:flex;flex-direction:column;gap:2px
}
.hh-sort-pop[hidden]{display:none !important}
.hh-sort-pop button{
  text-align:left;padding:12px 14px;border-radius:9px;font-weight:600;font-size:14px;
  color:var(--ink);background:transparent;border:none;cursor:pointer;width:100%
}
.hh-sort-pop button:hover,.hh-sort-pop button.active{background:#eef3fc;color:var(--navy)}
.header-home-mobile{position:relative;background:var(--yellow)}
.hh-filter-backdrop{
  position:fixed;inset:0;background:rgba(15,30,60,.45);z-index:74;
}
.hh-filter-backdrop[hidden]{display:none !important}
body.filter-open{overflow:hidden}

/* Adres / ödeme: footer yok, tam sayfa */
body.page-address,
body.page-payment{
  min-height:100dvh;
  display:flex;
  flex-direction:column
}
body.page-address main,
body.page-payment main{flex:1}
body.page-address .co-layout,
body.page-payment .co-layout{margin-bottom:24px}

/* ---------- SİPARİŞ ADIMLARI (Sepet / Adres / Ödeme header) ---------- */
.checkout-steps{
  display:flex;align-items:center;justify-content:flex-start;gap:8px;
  font-size:14px;font-weight:600;color:var(--muted);min-width:0
}
.header-bottom .wrap--checkout{
  justify-content:space-between;align-items:center;gap:20px
}
.header-bottom .wrap--checkout .checkout-steps{flex:0 1 auto}
.header-bottom .wrap--checkout .b-actions{
  flex-shrink:0;margin-left:auto;margin-right:0
}
.checkout-steps .st{
  display:flex;align-items:center;gap:9px;padding:8px 16px;border-radius:30px;
  background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06);text-decoration:none;color:inherit;
  white-space:nowrap
}
.checkout-steps .st .n{
  width:22px;height:22px;border-radius:50%;background:#e6e9f0;color:var(--muted);
  display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0
}
.checkout-steps .st.active{color:var(--navy)}
.checkout-steps .st.active .n{background:var(--navy);color:#fff}
.checkout-steps .st.done{color:var(--ink)}
.checkout-steps .st.done .n{background:var(--green);color:#fff}
.checkout-steps .sep{width:26px;height:2px;background:#dde2ec;flex-shrink:0}
.hh-tools--steps{padding:0 10px 12px}
.hh-tools--steps .checkout-steps{width:100%;gap:4px;justify-content:center}
.hh-tools--steps .checkout-steps .st{padding:6px 10px;font-size:12px;gap:6px}
.hh-tools--steps .checkout-steps .st .n{width:20px;height:20px;font-size:11px}
.hh-tools--steps .checkout-steps .sep{width:14px}

/* ---------- MOBİL ALT MENÜ ---------- */
.mobile-bottom-nav{display:none}

/* ---------- FOOTER ---------- */
.footer{background:var(--navy-deep);color:#aebfe4;padding:48px 0 0;margin-top:60px}
.footer .wrap{max-width:1320px}
.footer .cols{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:32px;padding-bottom:36px}
.footer h4{color:#fff;font-family:'Inter',system-ui,sans-serif;font-size:16px;margin-bottom:16px}
.footer ul{list-style:none;display:flex;flex-direction:column;gap:9px;padding:0;margin:0}
.footer ul a{font-size:13.5px;transition:color .2s;color:inherit;text-decoration:none}
.footer ul a:hover{color:var(--yellow)}
.footer .about .logo{display:inline-block;font-family:'Inter',system-ui,sans-serif;font-weight:700;font-size:22px;color:#fff;text-decoration:none}
.footer .about .logo .mark small{color:var(--yellow)}
.footer .about p{font-size:13.5px;line-height:1.7;margin-top:14px;max-width:280px}
.footer .pay{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}
.footer .pay span{background:rgba(255,255,255,.1);padding:7px 10px;border-radius:7px;font-size:11px;font-weight:700;color:#cdd9f5}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding:18px 0;text-align:center;font-size:12.5px;color:#8499cf;margin-top:8px}

/* Masaüstü: sadece telif satırı */
@media (min-width:901px){
  .footer{padding:0;margin-top:48px}
  .footer > .wrap{display:none}
  .foot-bottom{margin-top:0;padding:20px 0}
}

@media (max-width:900px){
  .page-home .header-home-desktop,
  .page-cart .header-home-desktop,
  .page-address .header-home-desktop,
  .page-payment .header-home-desktop{display:none}
  .page-home .header-home-mobile,
  .page-cart .header-home-mobile,
  .page-address .header-home-mobile,
  .page-payment .header-home-mobile{display:block}
  .page-home .header,
  .page-cart .header,
  .page-address .header,
  .page-payment .header{box-shadow:0 2px 12px rgba(16,32,80,.1)}
  .page-home .header-home-desktop .h-btn > span:not(.cart-count),
  .page-cart .header-home-desktop .h-btn > span:not(.cart-count),
  .page-address .header-home-desktop .h-btn > span:not(.cart-count),
  .page-payment .header-home-desktop .h-btn > span:not(.cart-count){display:none}

  .header-top{display:none}
  .header-bottom .wrap{flex-wrap:wrap;height:auto;padding:0 16px 12px;gap:0}
  .header-mobile-bar{
    display:grid;
    grid-template-columns:48px 1fr 48px;
    align-items:center;
    width:100%;
    padding:10px 0 8px;
    gap:8px;
  }
  .header-mobile-bar .h-btn-icon{
    width:44px;
    height:44px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
  }
  .header-mobile-bar .h-btn-icon:first-child{justify-self:start}
  .header-mobile-bar .cart-btn{justify-self:end}
  .header-mobile-bar .h-btn-icon .ico{width:26px;height:26px}
  .header-mobile-bar{overflow:visible}
  .header-mobile-bar .cart-btn .cart-count{top:-4px;right:-4px;left:auto}
  .logo-mobile{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    justify-self:center;
    grid-column:2;
  }
  .logo-mobile .logo-img{height:38px;width:auto;display:block}
  .cat-btn{display:none}
  .b-actions{display:none}
  .search{flex-basis:100%;max-width:none;width:100%;margin-top:4px}
  .footer{display:none !important}
  /* Sayfa stillerindeki .h-btn span{display:none} rozeti gizlemesin */
  .h-btn .cart-count{display:none}
  .h-btn .cart-count.show{display:grid !important}

  body.has-mobile-nav{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
  body.page-cart{padding-bottom:calc(148px + env(safe-area-inset-bottom,0px))}
  body.page-address{padding-bottom:calc(168px + env(safe-area-inset-bottom,0px))}
  body.page-payment{padding-bottom:calc(168px + env(safe-area-inset-bottom,0px))}

  .mobile-bottom-nav{
    display:grid;
    grid-template-columns:1fr 1fr 72px 1fr 1fr;
    align-items:end;
    position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:#fff;border-top:1px solid var(--line);
    padding:4px 6px calc(6px + env(safe-area-inset-bottom,0px));
    box-shadow:0 -4px 22px rgba(16,24,40,.1)
  }
  .mbn-item{
    display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
    gap:3px;padding:4px 2px 2px;color:#9aa1b2;text-decoration:none;min-height:48px
  }
  .mbn-item.is-active{color:var(--navy)}
  .mbn-ico{width:22px;height:22px;flex-shrink:0}
  .mbn-label{font-size:10px;font-weight:600;line-height:1.1;text-align:center}
  .mbn-item-cart{grid-column:3;justify-self:center;padding-bottom:0}
  .mbn-cart-fab{
    width:56px;height:56px;border-radius:50%;background:var(--yellow);
    display:grid;place-items:center;position:relative;margin-top:-26px;
    box-shadow:0 4px 16px rgba(16,32,80,.22);border:3px solid #fff
  }
  .mbn-ico-cart{width:26px;height:26px;color:var(--navy)}
  .mbn-cart-fab .cart-count{top:-2px;right:-2px;border-color:#fff}
  .mbn-item-cart.is-active .mbn-cart-fab{box-shadow:0 6px 20px rgba(10,61,145,.28)}

  /* Sepet / adres / ödeme: alt menü yok, sipariş özeti + aksiyon butonu altta */
  body.page-cart .mobile-bottom-nav,
  body.page-address .mobile-bottom-nav,
  body.page-payment .mobile-bottom-nav{display:none !important}

  body.page-cart .cart-layout{grid-template-columns:1fr}
  body.page-cart .cart-layout{display:block}
  body.page-address .co-layout,
  body.page-payment .co-layout{display:block;grid-template-columns:1fr}

  body.page-cart .cart-layout .summary,
  body.page-address .co-layout .summary,
  body.page-payment .co-layout .summary{
    display:block !important;position:fixed !important;top:auto !important;left:0 !important;right:0 !important;
    bottom:0 !important;z-index:70;margin:0;border-radius:16px 16px 0 0;width:100%;
    padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px));
    box-shadow:0 -10px 28px rgba(16,32,80,.14);max-width:none
  }
  body.page-cart .cart-layout .summary h2,
  body.page-address .co-layout .summary h2,
  body.page-payment .co-layout .summary h2{display:none}
  body.page-cart .cart-layout .summary .ship-banner,
  body.page-address .co-layout .summary .ship-banner{margin-bottom:8px;padding:10px 12px;font-size:12px}
  body.page-address .co-layout .summary .ship-banner{display:none}
  body.page-cart .cart-layout .summary .sum-line,
  body.page-address .co-layout .summary .sum-line,
  body.page-payment .co-layout .summary .sum-line{padding:5px 0;font-size:13px}
  body.page-cart .cart-layout .summary .sum-total,
  body.page-address .co-layout .summary .sum-total{padding-top:10px;margin-top:4px;margin-bottom:0}
  body.page-cart .cart-layout .summary .sum-total .lbl,
  body.page-address .co-layout .summary .sum-total .lbl{font-size:15px}
  body.page-cart .cart-layout .summary .sum-total .amt,
  body.page-address .co-layout .summary .sum-total .amt{font-size:20px}
  body.page-payment .co-layout .summary .divider,
  body.page-payment .co-layout .summary #sItems{display:none}
  body.page-payment .co-layout .summary .grand{margin-top:4px;padding-top:12px;border-top-width:1px}
  body.page-payment .co-layout .summary .grand .lbl{font-size:15px}
  body.page-payment .co-layout .summary .grand .amt{font-size:20px}
  body.page-cart .cart-layout .summary .continue,
  body.page-address .co-layout .summary .continue,
  body.page-payment .co-layout .summary .pay-btn{
    margin-top:10px;height:48px;font-size:15px;width:100%
  }
  body.page-cart .cart-layout .summary .safe-note{display:none}
}

