/* =========================================
   ECE KIDS STORE — style.css
   Font: Montserrat
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:    #F5EFE6;
  --brown:   #8B6F47;
  --brown-d: #5C4A2A;
  --brown-l: #C4A882;
  --cream:   #FDFAF6;
  --dark:    #1C1A17;
  --mid:     #7A7060;
  --white:   #FFFFFF;
  --accent:  #D4956A;
  --accent2: #6B9B8E;
  --red:     #C44B3A;
  --gold:    #C8A84B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ─── HEADER ─── */
header {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 120px;
}

.h-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mid);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
}
.h-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.h-search span {
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.h-search:hover span { border-color: var(--mid); }

.logo { display: flex; align-items: center; justify-self: center; }
.logo-img { height: 110px; width: auto; object-fit: contain; display: block; }

.h-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.h-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.h-btn:hover { background: var(--sand); }
.h-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: 5px;
  right: 7px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: .55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── NAV ─── */
nav {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-link {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 14px 16px;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nl-badge {
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-size: .52rem;
  padding: 1px 5px;
  margin-left: 4px;
  font-weight: 700;
  vertical-align: middle;
}

/* ─── HERO SLIDER ─── */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 0;
}
.hero-slider {
  position: relative;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
}
.h-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.h-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 60px;
  position: relative;
  z-index: 2;
}
.h-slide:nth-child(1) .slide-left { background: linear-gradient(135deg, #F5EFE6, #EDE0CE); }
.h-slide:nth-child(2) .slide-left { background: linear-gradient(135deg, #E8EFF0, #D4E4E2); }
.h-slide:nth-child(3) .slide-left { background: linear-gradient(135deg, #F0ECE8, #E4D8CC); }

.s-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-size: .62rem;
  font-weight: 700;
  padding: 5px 12px;
  margin-bottom: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
}
.s-eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}
.s-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.s-title em { color: var(--accent); font-style: normal; }
.s-desc {
  font-size: .85rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 340px;
}
.s-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
  width: fit-content;
}
.s-cta:hover { background: var(--accent); transform: translateY(-1px); }
.s-cta svg { width: 14px; height: 14px; }

.slide-right { position: relative; overflow: hidden; }
.slide-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 8s ease;
}
.h-slide.active .slide-right img { transform: scale(1.05); }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 60px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.h-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: background .3s, width .3s;
}
.h-dot.active { background: var(--dark); width: 48px; }

/* ─── BÖLÜM ORTAK ─── */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 32px 0;
}
.sec-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sec-title span { color: var(--accent); }

/* ─── KATEGORİ GRID ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: #e8e0d6;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 26, 23, .72) 0%, rgba(28, 26, 23, 0) 50%);
  transition: opacity .3s;
}
.cat-card:hover .cat-overlay { opacity: 1; }
.cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 18px 18px;
  color: var(--white);
}
.cat-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: .02em;
}
.cat-sub {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.cat-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateY(0); }
.cat-arrow svg { width: 14px; height: 14px; color: #fff; }

/* ─── KAMPANYA BANDI ─── */
.feature-band {
  max-width: 1320px;
  margin: 48px auto 0;
  padding: 0 32px;
}
.feature-inner {
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 240px;
}
.fi-left {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}
.fi-left::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}
.fi-eyebrow {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brown-l);
  margin-bottom: 10px;
}
.fi-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -.01em;
}
.fi-title em { color: var(--gold); font-style: normal; }
.fi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--dark);
  padding: 11px 22px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  width: fit-content;
  transition: background .2s;
}
.fi-btn:hover { background: var(--sand); }
.fi-right { position: relative; overflow: hidden; }
.fi-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ─── E-BÜLTEN ─── */
.ebulten {
  background: var(--sand);
  margin-top: 56px;
  padding: 64px 32px;
}
.eb-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.eb-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eb-sub {
  font-size: .83rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.8;
}
.eb-form {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, .14);
}
.eb-input {
  flex: 1;
  border: none;
  background: var(--white);
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: .83rem;
  outline: none;
  color: var(--dark);
}
.eb-input::placeholder { color: var(--brown-l); }
.eb-btn {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.eb-btn:hover { background: var(--accent); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  padding: 64px 32px 0;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.f-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.f-logo em { color: var(--accent); font-style: normal; }
.f-desc {
  font-size: .78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .38);
  line-height: 1.9;
  margin-bottom: 24px;
}
.f-socials { display: flex; gap: 8px; }
.f-soc {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.f-soc:hover { border-color: var(--accent); background: var(--accent); }
.f-soc svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .55); }
.f-soc:hover svg { color: #fff; }

.f-col h5 {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 20px;
}
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul li a {
  font-size: .78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .3);
  transition: color .2s;
}
.f-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.footer-bottom p {
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .2);
}
.pay-row { display: flex; gap: 8px; }
.pay {
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .28);
  letter-spacing: .05em;
}

/* ─── RESPONSIVE ─── */

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {

  /* Header */
  .header-inner {
    height: 90px;
    padding: 0 24px;
  }
  .logo-img { height: 80px; }

  /* Nav — yatay scroll */
  .nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-link { padding: 13px 14px; font-size: .8rem; }

  /* Hero */
  .hero { padding: 24px 20px 0; }
  .hero-slider { height: 380px; }
  .h-slide { grid-template-columns: 55% 45%; }
  .slide-left { padding: 36px 40px; }
  .s-title { font-size: 2rem; }

  /* Kategoriler */
  .section { padding: 56px 20px 0; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }

  /* Kampanya */
  .feature-band { padding: 0 20px; }
  .feature-inner { height: 200px; }
  .fi-left { padding: 32px 36px; }
  .fi-title { font-size: 1.4rem; }

  /* E-bülten */
  .ebulten { padding: 48px 20px; }
  .eb-inner { gap: 40px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 20px 40px;
  }
  footer { padding: 48px 20px 0; }
}

/* ── MOBİL BÜYÜK (max 768px) ── */
@media (max-width: 768px) {

  /* Header */
  .header-inner {
    height: 72px;
    padding: 0 16px;
    gap: 12px;
  }
  .logo-img { height: 58px; }
  .h-search span { display: none; } /* sadece ikon göster */

  /* Nav */
  .nav-inner { padding: 0 8px; }
  .nav-link { padding: 12px 10px; font-size: .72rem; letter-spacing: .04em; }

  /* Hero — tek kolon, resim arkaya alınır */
  .hero { padding: 16px 16px 0; }
  .hero-slider { height: 320px; border-radius: 10px; }
  .h-slide { grid-template-columns: 1fr; }
  .slide-right {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .25; /* fotoğraf soluk arkada kalır */
  }
  .slide-left {
    position: relative;
    z-index: 2;
    padding: 28px 28px;
    background: none !important; /* gradient kaldır, fotoğraf arkada */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  /* Slide arka plan rengini tekrar ver blur ile */
  .h-slide:nth-child(1) { background: linear-gradient(135deg, #F5EFE6dd, #EDE0CEdd); }
  .h-slide:nth-child(2) { background: linear-gradient(135deg, #E8EFF0dd, #D4E4E2dd); }
  .h-slide:nth-child(3) { background: linear-gradient(135deg, #F0ECE8dd, #E4D8CCdd); }
  .s-title { font-size: 1.7rem; }
  .s-desc { font-size: .78rem; max-width: 100%; margin-bottom: 20px; }
  .s-cta { padding: 11px 22px; font-size: .65rem; }
  .hero-dots { left: 28px; bottom: 16px; }

  /* Kategoriler — 2 kolon */
  .section { padding: 40px 16px 0; }
  .sec-title { font-size: 1.1rem; margin-bottom: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-name { font-size: .88rem; }

  /* Kampanya */
  .feature-band { padding: 0 16px; margin-top: 32px; }
  .feature-inner { grid-template-columns: 1fr; height: auto; }
  .fi-left { padding: 32px 28px; }
  .fi-title { font-size: 1.3rem; margin-bottom: 16px; }
  .fi-right { height: 180px; }

  /* E-bülten */
  .ebulten { padding: 40px 16px; margin-top: 32px; }
  .eb-inner { grid-template-columns: 1fr; gap: 20px; }
  .eb-title { font-size: 1.1rem; }
  .eb-form { flex-direction: column; border-radius: 8px; }
  .eb-input { padding: 13px 16px; border-radius: 6px 6px 0 0; }
  .eb-btn { padding: 13px 16px; border-radius: 0 0 6px 6px; text-align: center; }

  /* Footer */
  footer { padding: 40px 16px 0; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 0;
  }
}

/* ── MOBİL KÜÇÜK (max 480px) ── */
@media (max-width: 480px) {

  /* Header */
  .header-inner { height: 64px; }
  .logo-img { height: 50px; }
  .h-btn { padding: 6px 8px; }
  .h-btn svg { width: 18px; height: 18px; }

  /* Nav — daha küçük */
  .nav-link { padding: 11px 8px; font-size: .65rem; letter-spacing: .02em; }

  /* Hero */
  .hero-slider { height: 280px; }
  .s-title { font-size: 1.45rem; }
  .s-eyebrow { font-size: .56rem; }
  .s-badge { font-size: .56rem; padding: 4px 10px; margin-bottom: 10px; }
  .s-desc { display: none; } /* çok küçük ekranda açıklamayı gizle */
  .s-cta { padding: 10px 18px; font-size: .6rem; }

  /* Kategoriler */
  .cat-grid { gap: 8px; }
  .cat-name { font-size: .78rem; }
  .cat-sub { font-size: .55rem; }

  /* Footer — tek kolon */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
/* ══════════════════════════════════════
   MOBİL HAMBURGER MENÜ
══════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.acik span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.acik span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.acik span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobil nav drawer */
.mobil-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 498;
}
.mobil-nav-overlay.acik { display: block; }

.mobil-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 499;
  transition: left .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobil-nav.acik { left: 0; }

.mobil-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.mobil-nav-logo { height: 48px; object-fit: contain; }
.mobil-nav-kapat {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: #aaa; padding: 4px;
}

.mobil-nav-links { padding: 12px 0; flex: 1; }
.mobil-nav-link {
  display: flex;
  align-items: center;
  padding: 13px 24px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}
.mobil-nav-link:hover,
.mobil-nav-link.active {
  background: var(--sand);
  color: var(--accent);
  border-left-color: var(--accent);
}
.mobil-nav-ayirac {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 20px;
}
.mobil-nav-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
}
.mobil-nav-footer a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mnf-giris { background: var(--dark); color: #fff; }
.mnf-sepet { background: var(--sand); color: var(--dark); border: 1.5px solid #e0d8cc; }

@media (max-width: 768px) {
  /* Masaüstü nav'ı gizle */
  nav { display: none; }
  /* Hamburger göster */
  .hamburger { display: flex; }
}
