﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* FontAwesome'un CDN'den gelen woff2'leri için font-display swap garantisi */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-display: swap;
}
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-display: swap;
}

:root {
  /* Ana palet — Aymet Home tarzi: orman yesili + siyah, dogal ev dekor tonlari.
     DIKKAT: Bu blok _Layout.cshtml icindeki sabit palet blogu ile ayni kalmali. */
  --clr-primary: #366735;
  --clr-primary-light: #4d8549;
  --clr-primary-lighter: #eaf2e8;
  --clr-accent: #101010;
  --clr-accent-dark: #000000;
  --clr-bg: #ffffff;
  --clr-surface: #ffffff;
  --clr-surface-alt: #f5f5f3;
  --clr-border: #e7e7e2;
  --clr-text: #212529;
  --clr-text-secondary: #495057;
  --clr-text-muted: #8b9089;
  --clr-danger: #c0392b;
  --clr-success: #2e7d32;
  --clr-warning: #c9973a;

  /* Dogal aksan paleti — kategori halkalari, guven ikonlari ve rozetlerde
     sirayla kullanilir. Markup degistirmeden renk cesitliligi kazandirir. */
  --clr-toy-1: #c9a24b;
  --clr-toy-2: #6a8f6a;
  --clr-toy-3: #7a6248;
  --clr-toy-4: #2e7d32;
  --clr-toy-5: #a35d3f;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --shadow-xs: 0 1px 3px rgba(16,16,16,0.05);
  --shadow-sm: 0 2px 10px rgba(16,16,16,0.07);
  --shadow-md: 0 10px 34px rgba(16,16,16,0.09);
  --shadow-lg: 0 20px 50px rgba(16,16,16,0.13);
  --shadow-xl: 0 28px 66px rgba(16,16,16,0.17);
  --shadow-glow: 0 6px 20px color-mix(in srgb, var(--clr-primary) 30%, transparent);
  --shadow-glow-lg: 0 10px 30px color-mix(in srgb, var(--clr-primary) 36%, transparent);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
img { max-width: 100%; }
::selection { background: var(--clr-primary); color: #fff; }

/* ═══════════════ SCROLL ANIMATIONS ═══════════════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════ TOPBAR (h2o tarzı: tek satır pürüzsüz siyah) ═══════════════ */
.topbar {
  background: var(--clr-accent);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  padding: 9px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  letter-spacing: 0.4px;
  text-transform: none;
  font-weight: 400;
}
.topbar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.topbar-meta span + span::before {
  content: '|';
  margin-right: 6px;
  opacity: 0.25;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.4px;
  text-transform: none;
}
.topbar-announce {
  text-align: center;
  width: 100%;
}
/* Eski marquee — h2o tarzı için artık animasyonsuz duyuru olarak kullanılıyor */
.topbar-marquee {
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
  border: none;
  text-align: center;
}
.topbar-marquee .marquee-inner {
  display: inline-block;
}

/* ═══════════════ MAIN HEADER ═══════════════ */
.main-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  position: sticky; top: 0; z-index: 1050;
  transition: all 0.35s ease;
}
.main-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 992px) {
  .page-shell { padding-left: 40px; padding-right: 40px; }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-accent);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.brand-logo:hover { color: var(--clr-primary); }
.brand-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.brand-logo:hover .brand-logo-img { transform: scale(1.03); }
@media (max-width: 767px) { .brand-logo-img { height: 52px; } }
.brand-logo .brand-mark {
  display: none;
}
.brand-logo .brand-copy small {
  display: none;
}
.brand-logo .brand-accent { color: var(--clr-primary); }

.header-search { position: relative; flex: 1; max-width: 520px; }
.header-search input {
  width: 100%;
  border: 2px solid var(--clr-border);
  border-radius: 50px;
  padding: 12px 64px 12px 48px;
  font-size: 14px;
  background: var(--clr-bg);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
.header-search input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px var(--clr-primary-lighter), var(--shadow-glow);
  background: var(--clr-surface);
}
.header-search .si {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--clr-text-muted); font-size: 15px;
  transition: color 0.3s ease;
}
.header-search:focus-within .si { color: var(--clr-primary); }
.header-search .search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  background: var(--clr-accent); color: #fff; border: none; border-radius: 50px;
  height: 38px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all 0.3s ease;
}
.header-search .search-btn:hover {
  background: var(--clr-primary);
  transform: translateY(-50%) scale(1.04);
  box-shadow: var(--shadow-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.hdr-btn {
  background: none; border: none; color: var(--clr-text-secondary);
  font-size: 14px; font-weight: 600; padding: 10px 16px;
  border-radius: 50px; display: inline-flex; align-items: center; gap: 8px;
  position: relative; transition: all 0.25s; cursor: pointer;
  white-space: nowrap;
}
.hdr-btn:hover { background: var(--clr-primary-lighter); color: var(--clr-primary); }
.hdr-btn i { font-size: 18px; }
.cart-badge,
.hdr-badge {
  position: absolute; top: 0; right: 2px;
  background: var(--clr-danger); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--clr-surface);
  animation: badgePulse 2s infinite;
}
.cart-badge.is-empty,
.hdr-badge.is-empty { display: none; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mobile-search {
  display: none;
  padding: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
}
@media (max-width: 991px) {
  .mobile-search { display: block; }
  .mobile-search .mobile-header-search {
    padding: 0 16px;
    margin-bottom: 12px;
  }
  .mobile-search .mobile-header-search .si {
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .mobile-search .mobile-header-search .search-btn {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ═══════════════ MEGA NAV ═══════════════ */
.mega-nav {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  overflow: visible;
}
.mega-nav-list {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  position: relative;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mega-nav .nav-link {
  font-weight: 600; font-size: 14px; color: var(--clr-text-secondary);
  padding: 14px 20px !important; transition: all 0.25s;
  position: relative; display: block;
}
.mega-nav .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 20px; right: 20px;
  height: 2px; background: var(--clr-primary); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.3s ease;
}
.mega-nav .nav-link:hover::after,
.mega-nav .nav-link.active::after { transform: scaleX(1); }
.mega-nav .nav-link:hover, .mega-nav .nav-link.active { color: var(--clr-primary); }

.nav-item-rich { position: relative; }
.nav-item-shell { display: flex; align-items: center; }
.nav-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--clr-text-muted); padding: 4px 10px;
  transition: transform 0.25s;
}
.nav-item-rich.is-open .nav-toggle { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: 100%; left: 0; z-index: 1060;
  min-width: 280px; max-width: min(720px, calc(100vw - 48px));
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow: visible;
}
.nav-drop--mega {
  min-width: 720px;
  max-width: min(1080px, calc(100vw - 48px));
}
/* Right-edge aware: last nav items open dropdown to the left so it stays in viewport */
.nav-item-rich:nth-last-of-type(-n+2) > .nav-drop {
  left: auto; right: 0;
}
.nav-item-rich.is-open .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;
}
.nav-drop-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 2px solid var(--clr-primary-lighter);
  font-weight: 700; color: var(--clr-primary);
}
.nav-drop-header a {
  font-size: 12px; font-weight: 600;
  color: var(--clr-accent-dark);
}
.nav-drop-links {
  display: flex; flex-direction: column; gap: 6px;
}
.nav-drop-item { position: relative; }
.nav-drop-item-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.nav-drop-main {
  color: var(--clr-text-secondary); font-size: 14px;
  padding: 6px 0; border-bottom: 1px solid transparent;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.nav-drop-main:hover {
  color: var(--clr-primary); border-bottom-color: var(--clr-primary);
}
.nav-subtoggle {
  border: none; background: transparent; color: var(--clr-text-muted);
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.nav-subtoggle:hover { background: var(--clr-primary-lighter); color: var(--clr-primary); }
.nav-drop-item.has-children.is-open .nav-subtoggle,
.nav-drop-item.has-children:hover .nav-subtoggle {
  color: var(--clr-primary);
}
.nav-subdrop {
  position: absolute;
  left: 100%;
  top: -2px;
  min-width: 220px;
  max-width: 280px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all .2s ease;
  pointer-events: none;
}
.nav-subdrop a {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
/* Right-aligned items flip subdrop to open leftwards */
.nav-item-rich:nth-last-of-type(-n+2) .nav-subdrop {
  left: auto;
  right: 100%;
  transform: translateX(-8px);
}
.nav-item-rich:nth-last-of-type(-n+2) .nav-drop-item.has-children:hover .nav-subdrop,
.nav-item-rich:nth-last-of-type(-n+2) .nav-drop-item.has-children.is-open .nav-subdrop {
  transform: translateX(0);
}
.nav-subdrop a {
  color: var(--clr-text-secondary);
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-subdrop a:hover {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-primary);
}
.nav-drop-item.has-children:hover .nav-subdrop,
.nav-drop-item.has-children.is-open .nav-subdrop {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 18px;
  width: 100%;
}
.nav-mega-col {
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  min-width: 0;
}
.nav-mega-title {
  display: block;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nav-mega-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nav-mega-links a {
  font-size: 12px;
  color: var(--clr-text-secondary);
  padding: 2px 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nav-mega-links a:hover { color: var(--clr-primary); }

/* ═══════════════ HERO CAROUSEL (h2o tarzı: edge-to-edge) ═══════════════ */
.hero-slider-wrap,
.landing-hero-slider-wrap {
  padding: 0; background: var(--clr-bg);
}

.landing-hero-carousel .carousel-inner,
.carousel-inner { border-radius: 0; box-shadow: none; overflow: hidden; }

.hero-slide,
.landing-hero-slide {
  min-height: 60vh; max-height: 720px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; position: relative;
  background-color: var(--clr-primary);
  text-decoration: none;
  overflow: hidden;
  transition: transform 6s ease-out;
  will-change: transform;
}
@media (max-width: 991px) {
  .hero-slide, .landing-hero-slide { min-height: 40vh; }
}
.carousel-item.active .hero-slide,
.carousel-item.active .landing-hero-slide {
  transform: scale(1.04);
}
.hero-slide::before,
.landing-hero-slide::before {
  content: none;
}
.landing-hero-slide.no-image { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%); }
.landing-hero-slide.no-image::before { content: none; }

.hero-content,
.landing-hero-content {
  position: relative; z-index: 2; color: #fff; max-width: 720px; padding: 60px;
  text-align: center; text-shadow: 1px 1px 6px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; align-items: center;
}
.hero-slide::after,
.landing-hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30));
  z-index: 1;
  pointer-events: none;
}
.hero-slide.no-image::after, .landing-hero-slide.no-image::after { background: transparent; }
@media (max-width: 991px) {
  .hero-slide, .landing-hero-slide { min-height: 400px; }
  .hero-content, .landing-hero-content { padding: 32px; }
}
@media (max-width: 575px) {
  .hero-slide, .landing-hero-slide { min-height: 340px; }
  .hero-content, .landing-hero-content { padding: 24px; }
}

.carousel-item .hero-tag { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s; }
.carousel-item .landing-hero-title,
.carousel-item .hero-title { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s; }
.carousel-item .landing-hero-desc,
.carousel-item .hero-desc { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1) 0.45s; }
.carousel-item .hero-actions { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1) 0.6s; }
.carousel-item.active .hero-tag,
.carousel-item.active .landing-hero-title,
.carousel-item.active .hero-title,
.carousel-item.active .landing-hero-desc,
.carousel-item.active .hero-desc,
.carousel-item.active .hero-actions { opacity: 1; transform: translateY(0); }

.hero-tag {
  display: inline-block;
  background: transparent; color: #fff;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; padding: 0; border-radius: 0; margin-bottom: 14px;
  border: none;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}
.landing-hero-title,
.hero-title {
  font-family: var(--font-display); font-size: 56px; font-weight: 700;
  line-height: 1.08; margin-bottom: 24px; color: #fff;
  text-transform: uppercase; letter-spacing: 1px;
}
@media (max-width: 991px) { .landing-hero-title, .hero-title { font-size: 34px; } }
@media (max-width: 575px) { .landing-hero-title, .hero-title { font-size: 28px; } }
.landing-hero-desc,
.hero-desc { font-size: 16px; opacity: 0.88; margin-bottom: 28px; line-height: 1.7; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; padding: 14px 36px;
  border-radius: 50px; border: none; cursor: pointer;
  transition: all 0.3s;
  background: #fff; color: var(--clr-accent);
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hero-btn:hover { background: var(--clr-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); }
.hero-btn-primary { background: #fff; color: var(--clr-accent); }
.hero-btn-primary:hover { background: var(--clr-primary); color: #fff; }
.hero-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); box-shadow: none; }
.hero-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* Acik (light) tema: beyaz/acik gorseller icin siyah yazi + siyah buton */
.hero-slide.hero-slide-light::after { background: transparent; }
.hero-slide-light .hero-content { color: #141414; text-shadow: none; }
.hero-slide-light .hero-tag { color: #141414; text-shadow: none; }
.hero-slide-light .hero-title { color: #141414; }
.hero-slide-light .hero-desc { color: #141414; }
.hero-slide-light .hero-btn-primary { background: #141414; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero-slide-light .hero-btn-primary:hover { background: #333; color: #fff; }
.hero-slide-light .hero-btn-outline { color: #141414; border-color: rgba(0,0,0,0.55); }
.hero-slide-light .hero-btn-outline:hover { border-color: #141414; background: rgba(0,0,0,0.06); color: #141414; }

.carousel-indicators,
.landing-hero-dots { margin-bottom: 24px; gap: 8px; }
.carousel-indicators button,
.landing-hero-dots button {
  width: 10px !important; height: 10px !important; border-radius: 50%;
  border: none !important; opacity: 0.5 !important;
  transition: all 0.3s ease !important;
  background-color: #fff !important;
}
.carousel-indicators button.active,
.landing-hero-dots button.active {
  width: 28px !important; border-radius: 20px;
  opacity: 1 !important; background-color: #fff !important;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}
.carousel-control-prev, .carousel-control-next,
.landing-hero-control {
  width: 52px; height: 52px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border-radius: 50%; margin: 0 16px; opacity: 0;
  transition: all 0.3s;
}
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next,
.landing-hero-carousel:hover .landing-hero-control { opacity: 1; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: rgba(255,255,255,0.3); }

/* ═══════════════ TRUST BAND ═══════════════ */
.trust-band,
.hero-trustbar {
  padding: 0 16px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
}
@media (min-width: 992px) {
  .trust-band,
  .hero-trustbar { padding: 0 24px; margin-top: -36px; }
}
.trust-inner {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 767px) { .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; } }
.trust-item,
.hero-trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px;
}
.trust-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--trust-hue, var(--clr-primary)) 14%, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--trust-hue, var(--clr-primary));
  flex-shrink: 0;
  transition: all 0.3s;
}
/* Guven bandindaki dort ikon aksan paletinden ayri renk alir. */
.trust-item:nth-child(1) { --trust-hue: var(--clr-primary); }
.trust-item:nth-child(2) { --trust-hue: var(--clr-toy-2); }
.trust-item:nth-child(3) { --trust-hue: var(--clr-toy-3); }
.trust-item:nth-child(4) { --trust-hue: var(--clr-toy-4); }
.trust-item:hover .trust-icon {
  background: var(--trust-hue, var(--clr-primary));
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.trust-title { font-weight: 700; font-size: 13px; color: var(--clr-text); }
.trust-desc { font-size: 12px; color: var(--clr-text-muted); line-height: 1.4; }

.hero-trustbar.compact {
  margin-top: 16px;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust-item {
  font-size: 13px;
  color: var(--clr-text-secondary);
  gap: 8px;
}
.hero-trust-item i { color: var(--clr-primary); }

/* ═══════════════ SECTION HEADERS ═══════════════ */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
  position: relative;
}
/* Buyuk harf + genis harf araligi kurumsal/sert duruyordu; cumle duzeni + daha
   agir govde hem Turkce metinlerde daha okunakli hem gorsel olarak daha guncel. */
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; color: var(--clr-text);
  line-height: 1.15;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-toy-1) 100%);
  border-radius: 999px;
}
.section-title-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle { color: var(--clr-text-muted); font-size: 14px; margin-top: 8px; }
.section-link {
  font-weight: 700; font-size: 13px; color: var(--clr-text);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface-alt);
  transition: all 0.25s ease; white-space: nowrap;
  letter-spacing: 0.1px;
}
.section-link:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════ CATEGORY CIRCLES (h2o tarzı) ═══════════════ */
.cat-scroll,
.landing-cat-scroll {
  display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 16px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}
@media (min-width: 992px) {
  .cat-scroll, .landing-cat-scroll { justify-content: center; flex-wrap: wrap; }
}
.cat-scroll::-webkit-scrollbar,
.landing-cat-scroll::-webkit-scrollbar { height: 0; }
.cat-card,
.landing-cat-card {
  flex: 0 0 96px; scroll-snap-align: start;
  background: transparent; border: none; padding: 0;
  text-align: center; cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
}
.cat-card::before, .landing-cat-card::before { content: none; }
.cat-card:hover,
.landing-cat-card:hover { transform: none; box-shadow: none; }
.cat-icon,
.landing-cat-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--clr-surface-alt);
  border: 2.5px solid var(--cat-hue, var(--clr-border));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--cat-hue, var(--clr-accent));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.cat-icon img,
.landing-cat-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Kategori halkalari aksan paletinde sirayla renklenir - markup degismeden
   her satir farkli renkte gorunur, oyuncak vitrini hissi verir. */
.cat-card:nth-child(5n+1), .landing-cat-card:nth-child(5n+1) { --cat-hue: var(--clr-primary); }
.cat-card:nth-child(5n+2), .landing-cat-card:nth-child(5n+2) { --cat-hue: var(--clr-toy-1); }
.cat-card:nth-child(5n+3), .landing-cat-card:nth-child(5n+3) { --cat-hue: var(--clr-toy-2); }
.cat-card:nth-child(5n+4), .landing-cat-card:nth-child(5n+4) { --cat-hue: var(--clr-toy-3); }
.cat-card:nth-child(5n+5), .landing-cat-card:nth-child(5n+5) { --cat-hue: var(--clr-toy-5); }

.cat-card:hover .cat-icon,
.landing-cat-card:hover .landing-cat-icon {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--cat-hue, var(--clr-primary)) 34%, transparent);
}
.cat-name {
  font-weight: 600; font-size: 13px; color: var(--clr-text);
  margin: 0; line-height: 1.3;
  max-width: 96px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.25s, font-weight 0.25s;
}
.cat-card:hover .cat-name,
.landing-cat-card:hover .cat-name {
  color: var(--cat-hue, var(--clr-primary)); font-weight: 700;
}
.cat-count { display: none; }
.landing-cat-copy { text-align: center; }
.landing-cat-copy strong { display: block; font-size: 13px; font-weight: 600; color: var(--clr-text); }
.landing-cat-copy small { display: none; }

/* ═══════════════ PRODUCT CARDS (h2o tarzı: sade + alt full-width buton) ═══════════════ */
.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 18px; overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  height: 100%; display: flex; flex-direction: column;
  position: relative;
  min-width: 0;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--clr-primary) 30%, var(--clr-border));
  transform: translateY(-5px);
}

.product-badges { position: absolute; top: 16px; left: 16px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.p-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 999px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(27,23,51,0.18);
}
.p-badge-new { background: var(--clr-toy-4); color: #fff; }
.p-badge-sale { background: var(--clr-primary); color: #fff; }
.p-badge-hot { background: var(--clr-toy-1); color: var(--clr-accent); }

.product-actions {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px);
  transition: all 0.3s ease;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.p-action-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; font-size: 14px; color: var(--clr-text-secondary);
  box-shadow: var(--shadow-xs);
}
.p-action-btn:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

.product-img-wrap {
  background: var(--clr-surface-alt); aspect-ratio: 2 / 3;
  display: flex; align-items: center; justify-content: center;
  margin: 0; border-radius: 0;
  overflow: hidden; position: relative;
}
.product-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%,
              color-mix(in srgb, var(--clr-primary) 12%, transparent) 0%,
              transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.product-card:hover .product-img-wrap::after { opacity: 1; }
.product-img-wrap i { font-size: 56px; color: var(--clr-text-muted); opacity: 0.15; }
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
  padding: 16px;
  position: relative;
  z-index: 1;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-body {
  padding: 16px 14px 12px;
  flex: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.product-brand {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--clr-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.product-name {
  font-weight: 600; font-size: 14px;
  margin-bottom: 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 40px;
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 100%;
}
.product-name a { color: var(--clr-text); }
.product-name a:hover { color: var(--clr-primary); }
.product-stock {
  font-size: 12px; display: inline-flex; align-items: center;
  gap: 6px; margin-bottom: 6px;
  color: var(--clr-text-muted);
}
/* Stok + koli ici bilgi cipleri */
.product-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin-bottom: 8px;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
  padding: 4px 10px; border-radius: 999px;
  background: var(--clr-surface-alt);
  border: 1px solid transparent;
  color: var(--clr-text-secondary);
  white-space: nowrap;
}
.meta-chip i { font-size: 10px; opacity: 0.65; }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; }
.stock-in { background: var(--clr-success); }
.stock-low { background: var(--clr-warning, #f59e0b); }
.stock-out { background: var(--clr-danger); }

.product-footer {
  padding: 0;
  display: flex; flex-direction: column;
  gap: 0;
  border-top: none;
  margin-top: auto;
}
.price-group {
  line-height: 1.2;
  text-align: center;
  padding: 0 14px 14px;
}
.price-old { font-size: 12px; color: var(--clr-text-muted); text-decoration: line-through; }
/* Brut / net fiyat karsilastirma satiri */
.price-compare {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 3px;
}
.price-gross-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: 1px 5px; line-height: 1.5;
}
.price-gross {
  font-size: 12px;
  color: var(--clr-text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.discount-badge {
  font-size: 10px; font-weight: 700; line-height: 1.6;
  color: var(--clr-danger);
  background: color-mix(in srgb, var(--clr-danger) 10%, transparent);
  border-radius: 999px;
  padding: 0 7px;
}
.price-now {
  font-size: 19px; font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.4px;
  transition: color 0.3s;
}
.price-unit { font-size: 11px; color: var(--clr-text-muted); font-weight: 400; }

/* h2o tarzı full-width butonu — kompakt */
.add-cart-btn {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff; border: none;
  border-radius: 0; padding: 11px 12px; font-size: 12px;
  font-weight: 700; cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  width: 100%;
  text-decoration: none;
  line-height: 1.2;
}
.add-cart-btn:hover {
  filter: brightness(1.07);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.add-cart-btn i { font-size: 13px; }

/* Quick-add form: B2B koli adet input + buton (50/50) */
.quick-add-form {
  display: flex; align-items: stretch; gap: 0;
  flex-wrap: nowrap;
  width: 100%;
  border-top: 1px solid var(--clr-border);
}
.quick-add-form .quick-add-input { flex: 1 1 50%; width: auto; min-width: 0; }
.quick-add-form .add-cart-btn { flex: 1 1 50%; min-width: 0; }

@media (max-width: 767px) {
  .quick-add-form { flex-direction: column; }
  .quick-add-form .quick-add-input,
  .quick-add-form .add-cart-btn { flex: 1 1 auto; width: 100%; }
  .quick-add-form .quick-add-input {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
    padding: 8px 4px;
  }
}

@media (max-width: 575px) {
  .price-now { font-size: 16px; }
  .add-cart-btn { padding: 10px 8px; font-size: 11px; letter-spacing: 0.3px; }
  .quick-add-form .quick-add-input { font-size: 13px; padding: 6px 4px; }
  .quick-add-koli-info { display: none; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ═══════════════ PRICE OLD / QUICK ADD ═══════════════ */
.price-old {
  text-decoration: line-through;
  color: var(--clr-text-muted);
  font-size: 12px;
  line-height: 1;
}
.detail-price-group {
  margin: 16px 0;
}
.detail-price-group .price-old {
  font-size: 14px;
  margin-bottom: 2px;
}
.quick-add-input {
  width: 48px;
  padding: 4px 2px;
  text-align: center;
  border: none;
  border-right: 1px solid var(--clr-border);
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  background: var(--clr-surface);
  color: var(--clr-text);
  flex: 0 0 48px;
}
.quick-add-input:focus { outline: none; background: var(--clr-primary-lighter); }
.quick-add-input:focus {
  outline: 2px solid var(--clr-primary);
  border-color: var(--clr-primary);
}
.quick-add-koli-info {
  font-size: 10px;
  color: var(--clr-text-muted);
  white-space: nowrap;
}
.cart-qty-box { display: flex; flex-direction: column; gap: 4px; }
.cart-koli-form { display: flex; align-items: center; gap: 4px; }
.cart-koli-input { text-align: center; }
.discount-input { width: 80px; text-align: center; display: inline-block; }
.discount-inline-form { display: inline; }

.cart-summary-box {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 20px; max-width: 420px;
  margin-left: auto;
}
.cart-summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 14px; color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border-subtle, rgba(0,0,0,0.06));
}
.cart-summary-line:last-child { border-bottom: none; }
.cart-summary-line.text-success span { color: var(--clr-success); }
.cart-summary-grand {
  font-size: 18px; font-weight: 700; padding-top: 12px; margin-top: 4px;
  border-top: 2px solid var(--clr-primary);
  border-bottom: none;
}

/* ═══════════════ PROMO BANNERS ═══════════════ */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 767px) { .promo-grid { grid-template-columns: 1fr; } }
.promo-card {
  border-radius: var(--radius-xl); overflow: hidden;
  position: relative; min-height: 220px; display: flex;
  align-items: flex-end; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.promo-card:hover { transform: scale(1.02); }
.promo-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.promo-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s ease;
}
.promo-card:hover .promo-bg { transform: scale(1.08); }
.promo-content { position: relative; z-index: 2; padding: 28px; color: #fff; }
.promo-tag {
  display: inline-block; background: var(--clr-primary-light); color: var(--clr-accent);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 14px; border-radius: 50px; margin-bottom: 10px;
}
.promo-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.promo-desc { font-size: 13px; opacity: 0.85; margin-top: 6px; }

/* ═══════════════ CTA BANNER ═══════════════ */
.cta-banner {
  background: var(--clr-primary);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(208,184,112,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -40%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-title { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-desc { font-size: 16px; opacity: 0.8; max-width: 500px; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--clr-primary); font-weight: 700;
  padding: 14px 32px; border-radius: 50px; border: none;
  font-size: 14px; cursor: pointer; transition: all 0.3s ease;
  position: relative; z-index: 1;
}
.cta-btn:hover { background: var(--clr-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); }
@media (max-width: 767px) { .cta-banner { padding: 36px 24px; } .cta-title { font-size: 26px; } }

/* ═══════════════ HOME SHELL & PANELS ═══════════════ */
.home-shell { display: flex; flex-direction: column; gap: 0; }
.home-shell.premium-home { gap: 0; }
.home-panel {
  padding: 48px 16px;
}
@media (min-width: 992px) { .home-panel { padding: 56px 24px; } }

/* ═══════════════ LANDING TRUST BAND (h2o örneğine uymadığı için sade) ═══════════════ */
.landing-trust-band {
  padding: 32px 16px 0;
  position: relative;
  z-index: 10;
}
@media (min-width: 992px) { .landing-trust-band { padding: 40px 24px 0; } }
.landing-trust-inner {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) { .landing-trust-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .landing-trust-inner { grid-template-columns: 1fr; gap: 12px; padding: 16px; } }
.landing-trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 12px;
}
.landing-trust-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--clr-primary-lighter);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--clr-primary);
  flex-shrink: 0; transition: all 0.3s;
}
.landing-trust-item:hover .landing-trust-icon { background: var(--clr-primary); color: #fff; transform: scale(1.05); }
.landing-trust-title { font-weight: 700; font-size: 13px; color: var(--clr-text); }
.landing-trust-desc { font-size: 12px; color: var(--clr-text-muted); line-height: 1.4; }

/* ═══════════════ LANDING SECTION HEADERS ═══════════════ */
.landing-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.landing-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: var(--clr-text);
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.landing-section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
}
.landing-section-subtitle { color: var(--clr-text-muted); font-size: 14px; margin-top: 8px; }
.landing-section-link {
  font-weight: 600; font-size: 13px; color: var(--clr-text);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 50px;
  border: 1.5px solid var(--clr-text);
  transition: all 0.25s ease; white-space: nowrap; text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.landing-section-link:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════ LANDING PROMO GRID (h2o tarzı: arkaplan resimli büyük banner) ═══════════════ */
.landing-promo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 0 16px;
}
@media (min-width: 992px) { .landing-promo-grid { padding: 0 24px; } }
@media (max-width: 575px) { .landing-promo-grid { grid-template-columns: 1fr; } }

/* 3 banner varsa 1+1+1 yerine 2'li + alt sıra: */
.landing-promo-grid > .landing-promo-card:nth-child(3) {
  grid-column: 1 / -1;
}
@media (min-width: 992px) {
  .landing-promo-grid:has(> .landing-promo-card:nth-child(3)) {
    grid-template-columns: 1fr 1fr;
  }
  .landing-promo-grid > .landing-promo-card:nth-child(3) { grid-column: 1 / -1; }
}

.landing-promo-card {
  border-radius: 12px; overflow: hidden;
  position: relative; min-height: 300px; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
}
.landing-promo-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}
.landing-promo-card:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.65) 100%);
}
.landing-promo-card.secondary {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}
.landing-promo-card.tertiary {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}
.landing-promo-card:hover { transform: scale(1.01); }
.landing-promo-content {
  position: relative; z-index: 2; padding: 32px; color: #fff;
  text-align: center; max-width: 460px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.landing-promo-content h3 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  line-height: 1.15; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
@media (max-width: 767px) { .landing-promo-content h3 { font-size: 24px; } }
.landing-promo-content p { font-size: 14px; opacity: 0.92; line-height: 1.6; margin-bottom: 16px; }
.landing-promo-tag {
  display: inline-block; background: rgba(255,255,255,0.15); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; padding: 6px 16px; border-radius: 50px; margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  text-shadow: none;
}
.promo-link {
  font-size: 13px; font-weight: 700;
  display: inline-block;
  background: #fff; color: var(--clr-accent);
  padding: 10px 24px; border-radius: 50px;
  text-shadow: none;
  transition: all 0.3s ease;
}
.promo-link:hover {
  background: var(--clr-primary); color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════ LANDING CTA BANNER ═══════════════ */
.landing-cta-banner {
  background: var(--clr-primary);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  margin: 0 16px;
  color: #fff;
  position: relative; overflow: hidden;
}
@media (min-width: 992px) { .landing-cta-banner { margin: 0 24px; } }
.landing-cta-banner::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(208,184,112,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.landing-cta-banner h2 {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  margin-bottom: 12px; position: relative; z-index: 1;
}
.landing-cta-banner p {
  font-size: 16px; opacity: 0.8; max-width: 500px;
  margin-bottom: 28px; position: relative; z-index: 1;
}
.landing-cta-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  position: relative; z-index: 1;
}
.landing-cta-stat {
  text-align: center; padding: 20px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}
.landing-cta-stat strong {
  display: block; font-size: 32px; font-weight: 700;
  font-family: var(--font-display); color: var(--clr-primary-light);
  margin-bottom: 4px;
}
.landing-cta-stat span { font-size: 13px; opacity: 0.7; }
@media (max-width: 767px) {
  .landing-cta-banner { padding: 36px 24px; margin: 0 16px; }
  .landing-cta-banner h2 { font-size: 26px; }
  .landing-cta-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .landing-cta-stat { padding: 14px 8px; }
  .landing-cta-stat strong { font-size: 24px; }
}

/* ═══════════════ HOME CTA GROUP ═══════════════ */
.home-cta-group {
  display: flex; gap: 12px; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ═══════════════ CONTENT SHOWCASE ═══════════════ */
.content-showcase {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 767px) { .content-showcase { grid-template-columns: 1fr; } }
.content-showcase-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s;
}
.content-showcase-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.content-showcase-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: var(--clr-primary); margin-bottom: 10px;
}
.content-showcase-card p { font-size: 14px; color: var(--clr-text-secondary); line-height: 1.7; }

/* ═══════════════ HOME FEATURE CARDS ═══════════════ */
.home-feature-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 32px; height: 100%;
  transition: all 0.3s;
}
.home-feature-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.home-feature-card-muted { background: var(--clr-bg); }
.home-kicker {
  display: inline-block; background: var(--clr-primary-lighter); color: var(--clr-primary);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.home-feature-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: var(--clr-primary); margin-bottom: 10px;
}
.home-feature-card p { font-size: 14px; color: var(--clr-text-secondary); line-height: 1.7; }

/* ═══════════════ FOOTER (h2o tarzı: pürüzsüz koyu) ═══════════════ */
.site-footer {
  background: var(--clr-accent-dark);
  color: rgba(255,255,255,0.62);
  padding: 64px 0 0;
  margin-top: 80px;
  font-size: 14px;
  border-top: 4px solid var(--clr-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: #fff; margin-bottom: 12px;
}
.footer-brand .brand-accent { color: var(--clr-primary-light); }
.footer-lead,
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 320px; margin-bottom: 16px; }
.footer-socials {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-socials span {
  display: flex; align-items: center; gap: 8px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all 0.3s;
}
.footer-social a:hover { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.site-footer h4,
.footer-title {
  color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 1px;
}
.site-footer p { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.footer-link-stack {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-link-stack a,
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: all 0.2s; }
.footer-link-stack a:hover,
.footer-links a:hover { color: var(--clr-primary-light); padding-left: 4px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-newsletter input {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px; padding: 12px 20px; color: #fff; font-size: 14px;
  width: 100%; font-family: var(--font-body); transition: all 0.3s;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { outline: none; border-color: var(--clr-primary); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-primary) 30%, transparent); }
.footer-newsletter button {
  background: var(--clr-primary); color: #fff; border: none;
  border-radius: 50px; padding: 12px 24px; font-weight: 700;
  font-size: 14px; cursor: pointer; margin-top: 10px;
  transition: all 0.3s ease; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.footer-newsletter button:hover { background: var(--clr-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  margin-top: 48px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--clr-primary-light); }

/* ═══════════════ BACK TO TOP ═══════════════ */
.back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 9998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--clr-text-secondary); cursor: pointer;
  opacity: 0; pointer-events: none; transition: all 0.3s;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* ═══════════════ MOBILE BOTTOM BAR ═══════════════ */
.mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}
.mobile-bottom-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--clr-text-muted);
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  position: relative; transition: color 0.2s;
}
.mobile-bottom-link i { font-size: 18px; }
.mobile-bottom-link.active { color: var(--clr-primary); }
.mobile-bottom-link.active::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; background: var(--clr-primary); border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-glow);
}
.mobile-bottom-link:hover { color: var(--clr-primary); }
.mobile-cart-badge {
  position: absolute; top: -4px; right: 0;
  font-size: 9px; min-width: 16px; height: 16px;
}
.mobile-theme-toggle { display: none; }

/* ═══════════════ OFFCANVAS MOBILE CATALOG ═══════════════ */
.mobile-catalog-panel {
  background: var(--clr-primary);
  color: #fff;
  max-width: 320px;
}
.mobile-catalog-panel .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
}
.mobile-catalog-panel .offcanvas-header .eyebrow {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--clr-primary-light); margin-bottom: 2px;
}
.mobile-catalog-panel .offcanvas-header h5 { font-size: 18px; margin: 0; }
.mobile-catalog-panel .offcanvas-body { padding: 16px 20px; }
.mobile-panel-home {
  display: block; padding: 12px 16px; margin-bottom: 12px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  color: #fff; font-weight: 700; font-size: 14px;
  text-align: center; transition: background 0.2s;
}
.mobile-panel-home:hover { background: rgba(255,255,255,0.2); color: #fff; }
.mobile-category-list { display: flex; flex-direction: column; gap: 2px; }
.mobile-category-group { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-category-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-category-link {
  flex: 1; padding: 12px 8px; font-weight: 600; font-size: 14px;
  color: rgba(255,255,255,0.9); transition: color 0.2s;
}
.mobile-category-link:hover { color: var(--clr-primary-light); }
.mobile-category-toggle {
  background: none; border: none; color: rgba(255,255,255,0.5);
  padding: 12px; cursor: pointer; transition: all 0.25s;
}
.mobile-category-group.is-open .mobile-category-toggle { transform: rotate(180deg); color: var(--clr-primary-light); }
.mobile-subcategory-list {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 16px;
}
.mobile-subcategory-list a {
  display: block; padding: 8px 12px; font-size: 13px;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.mobile-subcategory-list a:hover { color: var(--clr-primary-light); padding-left: 16px; }
.mobile-subcategory-toggle {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-subcategory-item.is-open .mobile-subcategory-toggle i { transform: rotate(180deg); }
.mobile-subcategory-list-l2 {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 10px;
}

/* ═══════════════ LOADING OVERLAY ═══════════════ */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.loading-overlay.is-active { display: flex; }
.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid color-mix(in srgb, var(--clr-primary) 22%, transparent);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: var(--shadow-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay-text {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  max-width: 320px;
}

/* ═══════════════ TOAST NOTIFICATIONS ═══════════════ */
.toast-viewport {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  max-width: 360px;
}
.app-toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: auto;
}
.app-toast.is-visible { opacity: 1; transform: translateX(0); }
.app-toast.is-leaving { opacity: 0; transform: translateX(100%); }
.app-toast-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.app-toast.is-success .app-toast-icon { color: var(--clr-success); }
.app-toast.is-error .app-toast-icon { color: var(--clr-danger); }
.app-toast-body { flex: 1; }
.app-toast-body strong { display: block; font-size: 13px; margin-bottom: 2px; }
.app-toast-body span { font-size: 12px; color: var(--clr-text-secondary); }
.app-toast-close {
  background: none; border: none; color: var(--clr-text-muted);
  cursor: pointer; padding: 4px; font-size: 14px;
}

/* ═══════════════ HOME CMS PAGE ═══════════════ */
.home-cms-page { padding-bottom: 40px; }
.home-cms-body { padding: 0; }

/* ═══════════════ CATALOG PAGE ═══════════════ */
.catalog-page { padding: 24px 0 60px; }
/* Katalog tek sutun: sol kategori agaci kaldirildi, kategoriler ust menuden gezilir. */
.catalog-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.catalog-content { min-width: 0; }
.catalog-sidebar { min-width: 0; }
.catalog-sidebar .page-card {
  position: sticky; top: 100px;
  overflow: hidden;
}
.catalog-side-title .eyebrow {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--clr-accent-dark); margin-bottom: 2px;
}
.catalog-side-title h3 { margin: 0; font-size: 18px; font-weight: 700; }

.catalog-tree { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.catalog-tree-link {
  display: block; padding: 8px 12px; border-radius: 50px;
  font-weight: 600; font-size: 14px; color: var(--clr-text-secondary);
  transition: all 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-tree-link:hover { background: var(--clr-primary-lighter); color: var(--clr-primary); }
.catalog-tree-link.active { background: var(--clr-primary); color: #fff; }
.catalog-tree-children { padding-left: 16px; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.catalog-tree-child {
  display: block; padding: 6px 10px; border-radius: 10px;
  font-size: 13px; color: var(--clr-text-muted); transition: all 0.2s;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-tree-child:hover { color: var(--clr-primary); background: var(--clr-primary-lighter); }
.catalog-tree-child.active { font-weight: 700; color: var(--clr-primary); background: var(--clr-primary-lighter); }
.catalog-tree-child-l2 {
  margin-left: 6px;
  border-left: 2px solid var(--clr-border);
  padding-left: 10px;
}
.catalog-tree-child-l3 {
  margin-left: 18px;
  border-left: 2px dashed var(--clr-border);
  padding-left: 10px;
  font-size: 12px;
  color: var(--clr-text-secondary);
}
.catalog-tree-child-l3::before {
  content: "•";
  margin-right: 6px;
  color: var(--clr-primary);
  font-size: 11px;
}

.catalog-hero-block {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 32px;
  margin-bottom: 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
}
@media (max-width: 991px) { .catalog-hero-block { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 575px) {
  .catalog-page { padding: 16px 0 40px; }
  .catalog-hero-block { padding: 18px; margin-bottom: 20px; gap: 16px; }
  .catalog-hero-copy h1 { font-size: 22px; }
  .catalog-hero-notes { gap: 10px; font-size: 11px; }
  .catalog-metrics { gap: 10px; font-size: 12px; flex-wrap: wrap; }
  .catalog-subcategories { gap: 8px; margin-bottom: 16px; }
  .catalog-subcategory-card { padding: 10px 16px; min-width: 110px; }
  .catalog-subcategory-card span { font-size: 13px; }
  .catalog-toolbar h2 { font-size: 16px; }
}
/* .hero-tag karusel icin tasarlandi (koyu foto uzerine beyaz). Katalog basligi
   beyaz kart uzerinde ayni sinifi kullandigindan yazi gorunmez oluyordu. */
.catalog-hero-copy .hero-tag {
  color: var(--clr-primary);
  text-shadow: none;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 6px;
}
.catalog-hero-copy h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 8px 0; }
.catalog-hero-copy p { color: var(--clr-text-secondary); margin-bottom: 12px; }
.catalog-breadcrumbs { font-size: 13px; color: var(--clr-text-muted); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.catalog-breadcrumbs a { color: var(--clr-text-muted); }
.catalog-breadcrumbs a:hover { color: var(--clr-primary); }
.catalog-breadcrumbs strong { color: var(--clr-text); }
.catalog-metrics { display: flex; gap: 16px; font-size: 13px; color: var(--clr-text-muted); }
.catalog-metrics strong { color: var(--clr-primary); }

.catalog-search-inline { display: flex; gap: 8px; margin-bottom: 12px; }
.catalog-search-inline input {
  flex: 1; border: 2px solid var(--clr-border); border-radius: 50px;
  padding: 10px 20px; font-size: 14px; background: var(--clr-bg);
  transition: all 0.3s;
}
.catalog-search-inline input:focus {
  outline: none; border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px var(--clr-primary-lighter);
}
.catalog-search-inline button {
  background: var(--clr-primary); color: #fff; border: none;
  border-radius: 50px; padding: 10px 24px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}
.catalog-search-inline button:hover { background: var(--clr-accent-dark); }
.catalog-hero-notes {
  display: flex; gap: 16px; font-size: 12px; color: var(--clr-text-muted); flex-wrap: wrap;
}
.catalog-hero-notes span { display: inline-flex; align-items: center; gap: 4px; }
.catalog-hero-notes i { color: var(--clr-primary); }

/* Alt kategori seridi: renkli zeminle urun listesinden ayrisir ve dikkat ceker. */
.catalog-subcategories {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 14px; margin-bottom: 24px;
  scroll-snap-type: x mandatory;
  background: var(--clr-primary-lighter);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.catalog-subcategory-card {
  flex: 0 0 auto; scroll-snap-align: start;
  background: linear-gradient(160deg, var(--clr-surface) 0%, var(--clr-primary-lighter) 100%);
  border: 1px solid var(--clr-primary-light);
  border-radius: var(--radius); padding: 14px 24px; text-align: center;
  color: var(--clr-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.3s; min-width: 130px;
}
.catalog-subcategory-card:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.catalog-subcategory-card.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.catalog-subcategory-card span { display: block; font-weight: 700; font-size: 14px; }
.catalog-subcategory-card small { display: block; font-size: 11px; color: var(--clr-text-muted); margin-top: 2px; }
.catalog-subcategory-card:hover small { color: rgba(255,255,255,0.8); }
.catalog-subcategory-card.active small { color: rgba(255,255,255,0.7); }
@media (max-width: 575px) {
  .catalog-subcategories { gap: 8px; padding: 10px; margin-bottom: 16px; }
  .catalog-subcategory-card { padding: 10px 16px; min-width: 110px; }
}

.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.catalog-toolbar h2 { font-size: 18px; font-weight: 700; margin: 0; }
.catalog-toolbar p { font-size: 13px; color: var(--clr-text-muted); margin: 0; }
.catalog-toolbar-badge {
  background: var(--clr-primary-lighter); color: var(--clr-primary);
  font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 50px;
}

/* ═══════════════ PRODUCT DETAIL ═══════════════ */
.product-detail-page { padding: 24px 0 60px; }
.product-hero-block { margin-bottom: 32px; }
.product-breadcrumbs {
  font-size: 13px; color: var(--clr-text-muted); margin-bottom: 16px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.product-breadcrumbs a { color: var(--clr-text-muted); }
.product-breadcrumbs a:hover { color: var(--clr-primary); }
.product-breadcrumbs strong { color: var(--clr-text); }

.product-gallery-panel {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 16px; height: 100%;
}
.detail-gallery {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
.detail-gallery-main {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 3;
  max-height: 660px;
  margin-inline: auto;
  position: relative;
  cursor: zoom-in;
  padding: 10px;
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-gallery-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-gallery-thumbs-wrap {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 8px;
  align-items: center;
}
.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2px;
}
.detail-gallery-thumbs::-webkit-scrollbar { height: 0; }
.detail-gallery-thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border: 2px solid var(--clr-border);
  border-radius: 10px;
  background: var(--clr-bg);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-gallery-thumb.active {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 2px var(--clr-primary-lighter);
}
.detail-gallery-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.detail-gallery-nav:hover {
  background: var(--clr-primary-lighter);
  color: var(--clr-primary);
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
}
.detail-lightbox.is-open { display: flex; }
.detail-lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
}
.detail-lightbox-close,
.detail-lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.detail-lightbox-close { top: 16px; right: 16px; }
.detail-lightbox-nav.is-prev { left: 16px; }
.detail-lightbox-nav.is-next { right: 16px; }
.detail-lightbox-close:hover,
.detail-lightbox-nav:hover { background: rgba(15, 23, 42, 0.95); }
body.no-scroll {
  overflow: hidden;
}

.page-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 32px;
}
.product-buy-card h1 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin: 8px 0 12px;
}
.product-buy-lead { color: var(--clr-text-secondary); font-size: 14px; margin-bottom: 20px; }
.product-facts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.product-facts span {
  background: var(--clr-bg); padding: 6px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 600; color: var(--clr-text-secondary);
}
.detail-price {
  font-size: 32px; font-weight: 700; color: var(--clr-primary);
  margin: 16px 0;
}
.product-highlight-strip {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0;
  font-size: 12px; color: var(--clr-text-muted);
}
.product-highlight-strip span { display: inline-flex; align-items: center; gap: 6px; }
.product-highlight-strip i { color: var(--clr-primary); }

.product-buy-form .form-label { font-weight: 700; font-size: 13px; }
.product-buy-form .form-control {
  border: 2px solid var(--clr-border); border-radius: var(--radius);
  padding: 10px 14px;
}

.product-service-points {
  margin-top: 24px; border-top: 1px solid var(--clr-border); padding-top: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.product-service-points > div {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--clr-text-secondary);
}
.product-service-points i {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--clr-primary-lighter); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

.detail-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.detail-feature-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.detail-feature-list li { font-size: 14px; color: var(--clr-text-secondary); line-height: 1.5; }
.detail-note {
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--clr-primary-lighter); color: var(--clr-primary);
  font-size: 13px; font-weight: 600;
}
.detail-note.is-danger { background: #fef2f2; color: var(--clr-danger); }

.product-description-body {
  font-size: 14px; line-height: 1.8; color: var(--clr-text-secondary);
}
.product-section { margin-top: 40px; }

/* ═══════════════ SIMPLE PAGES (About, Contact, Account, Cart) ═══════════════ */
.simple-page { padding: 24px 0 60px; }
.page-hero-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); padding: 40px 32px;
  margin-bottom: 32px;
}
.page-hero-card h1 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin: 8px 0 12px;
}
.page-hero-card p { color: var(--clr-text-secondary); margin-bottom: 0; }

.corporate-body { line-height: 1.8; color: var(--clr-text-secondary); font-size: 14px; }
.corporate-body h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: var(--clr-text); }
.corporate-facts h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.corporate-fact {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--clr-border);
}
.corporate-fact:last-child { border-bottom: none; }
.corporate-fact i {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--clr-primary-lighter); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.corporate-fact strong { display: block; font-size: 14px; margin-bottom: 4px; }
.corporate-fact p { font-size: 13px; color: var(--clr-text-muted); margin: 0; }

.contact-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.contact-stack { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--clr-border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item i {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--clr-primary-lighter); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item span { font-size: 13px; color: var(--clr-text-muted); }

.map-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.map-card iframe { border-radius: var(--radius); width: 100%; min-height: 340px; border: none; }

/* ═══════════════ AUTH PAGES ═══════════════ */
.auth-split-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
@media (max-width: 767px) { .auth-split-card { grid-template-columns: 1fr; } }
.auth-panel { padding: 40px 36px; }
.auth-panel-primary {
  background: var(--clr-primary); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-panel-primary h1 {
  font-family: var(--font-display); font-size: 32px; margin: 12px 0;
}
.auth-panel-primary p { opacity: 0.8; font-size: 15px; margin-bottom: 20px; }
.hero-benefits {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
}
.hero-benefits span { display: flex; align-items: center; gap: 8px; opacity: 0.7; }

/* .hero-btn karusel icin beyaz zeminlidir; auth formunda beyaz kartin uzerinde
   birincil eylem olarak zayif kaliyordu. Kirmizi panelin icindekiler haric tutulur. */
.auth-panel:not(.auth-panel-primary) .hero-btn {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.auth-panel:not(.auth-panel-primary) .hero-btn:hover {
  filter: brightness(1.07);
  color: #fff;
  box-shadow: var(--shadow-glow-lg);
}

.auth-form-card {
  max-width: 640px; margin: 0 auto;
}
.auth-form-card .form-page-header { margin-bottom: 24px; }
.form-page-header h1 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin: 8px 0 8px;
}
.form-page-header p { color: var(--clr-text-secondary); }

.form-label { font-weight: 700; font-size: 13px; color: var(--clr-text); }
.form-control,
.form-select {
  border: 2px solid var(--clr-border); border-radius: var(--radius);
  padding: 10px 14px; font-size: 14px; background: var(--clr-bg);
  transition: all 0.3s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--clr-primary); outline: none;
  box-shadow: 0 0 0 4px var(--clr-primary-lighter);
  background: var(--clr-surface);
}

.alert {
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 14px; font-weight: 600;
}
.alert-danger { background: #fef2f2; color: var(--clr-danger); border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: var(--clr-success); border: 1px solid #a7f3d0; }

/* ═══════════════ CART ═══════════════ */
.cart-shell { }
.cart-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.cart-header-copy h1 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  margin: 8px 0 4px;
}
.cart-header-copy p { color: var(--clr-text-muted); font-size: 14px; margin: 0; }
.cart-table { font-size: 14px; }
.cart-table thead th {
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--clr-text-muted);
  border-bottom: 2px solid var(--clr-border);
}
.cart-table td { border-bottom: 1px solid var(--clr-border); padding: 14px 8px; }

.empty-state {
  text-align: center; padding: 60px 24px;
}
.empty-state-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--clr-primary-lighter); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
}
.empty-state h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--clr-text-muted); margin-bottom: 20px; }

.section-empty-note {
  text-align: center; padding: 40px 20px;
  color: var(--clr-text-muted); font-size: 14px;
  background: var(--clr-bg); border-radius: var(--radius);
}

.restricted-box {
  text-align: center; padding: 60px 24px;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
}
.restricted-box h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.restricted-box p { color: var(--clr-text-muted); margin-bottom: 20px; }

/* ═══════════════ PAGINATION ═══════════════ */
.premium-pagination-wrap { margin-top: 32px; }
.premium-pagination .page-item .page-link {
  border-radius: 50px; margin: 0 3px;
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-secondary);
  transition: all 0.2s;
}
.premium-pagination .page-item.active .page-link {
  background: var(--clr-primary); border-color: var(--clr-primary); color: #fff;
}
.premium-pagination .page-item .page-link:hover {
  background: var(--clr-primary-lighter); border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.premium-pagination .page-item.disabled .page-link {
  background: transparent; color: var(--clr-text-muted); cursor: default;
  border-color: var(--clr-border);
}
.premium-pagination-ellipsis .page-link {
  border: none !important; background: transparent !important;
  color: var(--clr-text-muted); padding: 6px 4px;
}
.premium-pagination-info .page-link {
  background: var(--clr-primary-lighter) !important;
  color: var(--clr-primary) !important;
  border-color: var(--clr-primary-lighter) !important;
  min-width: 70px; text-align: center;
}
@media (max-width: 575.98px) {
  .premium-pagination .page-item .page-link {
    margin: 0 2px; padding: 6px 10px; font-size: 12px;
  }
}

/* ═══════════════ LOADING STATE ═══════════════ */
.is-loading { opacity: 0.6; pointer-events: none; }

/* ═══════════════ MOBILE RESPONSIVE ═══════════════ */
@media (max-width: 991px) {
  .section-title { font-size: 22px; }
  .mobile-collapse-group .nav-link {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
  }
  .mobile-collapse-submenu .nav-link,
  .mobile-collapse-submenu-l2 .nav-link {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
  }
}
@media (max-width: 767px) {
  .hdr-btn span { display: none; }
  .hdr-btn { padding: 8px 10px; }
  .brand-logo { font-size: 22px; }
}
@media (max-width: 575px) {
  .product-name { font-size: 13px; }
  .price-now { font-size: 17px; }
  .trust-item { flex-direction: column; text-align: center; gap: 8px; padding: 4px; }
  .trust-icon { width: 40px; height: 40px; font-size: 16px; }
  .page-card { padding: 20px; }
}

/* ═══════════════ THEME SWITCHER (hidden - no dark mode) ═══════════════ */
.theme-toggle { display: none !important; }

/* ═══════════════ CMS EDITOR (Admin Content) ═══════════════ */
.cms-page-editor {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 400px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}
.cms-editor-help {
  margin-top: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.cms-editor-help h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.cms-token-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cms-token-list code {
  background: #12372A; color: #D0B870;
  padding: 4px 12px; border-radius: 50px;
  font-size: 12px; font-weight: 700;
}
.cms-template-cheatsheet {
  background: #1e293b; color: #e2e8f0;
  border-radius: 8px; padding: 16px;
  font-size: 12px; overflow-x: auto;
}

/* Bootstrap 5.2'de gelen text-bg-* siniflari; paketteki Bootstrap 5.1'de olmadigi icin fallback. */
.text-bg-success { background-color: var(--clr-success) !important; color: #fff !important; }
.text-bg-danger { background-color: var(--clr-danger) !important; color: #fff !important; }
.text-bg-warning { background-color: #f59e0b !important; color: #1f2937 !important; }
.text-bg-info { background-color: #0ea5e9 !important; color: #fff !important; }
.text-bg-secondary { background-color: #64748b !important; color: #fff !important; }
.text-bg-dark { background-color: #1f2937 !important; color: #fff !important; }
.text-bg-light { background-color: #f1f5f9 !important; color: #1f2937 !important; }

/* ═══════════════════════════════════════════════════════════════════
   AYMET HOME TARZI GORUNUM KATMANI
   Siyah header + yesil nav + gorselli kategori kartlari + karanlik mod.
   Ustteki temel stilleri override eder; yapisal markup degismedi.
   ═══════════════════════════════════════════════════════════════════ */

/* --- Topbar & siyah header --- */
.topbar { background: #000; }
.main-header {
  background: var(--clr-accent-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.main-header .brand-logo { color: #fff; }
.main-header .brand-logo:hover { color: var(--clr-primary-light); }
.main-header .hdr-btn { color: rgba(255,255,255,0.85); }
.main-header .hdr-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.main-header .hdr-btn i { color: inherit !important; }
.main-header .hdr-badge { border-color: var(--clr-accent-dark); background: var(--clr-primary); }
.mobile-search { background: var(--clr-accent-dark); }

/* Arama: beyaz pill + yesil yuvarlak buton (Aymet arama cubugu) */
.header-search input {
  border: none;
  background: #fff;
  padding: 13px 60px 13px 48px;
}
.header-search input:focus {
  border: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-primary) 45%, transparent);
  background: #fff;
}
.header-search .search-btn {
  background: var(--clr-primary);
  border-radius: 50%;
  width: 40px; height: 40px; padding: 0;
}
.header-search .search-btn:hover { background: var(--clr-primary-light); }

/* --- Yesil nav seridi --- */
.mega-nav { background: var(--clr-primary); border-bottom: none; }
.mega-nav .nav-link { color: rgba(255,255,255,0.92); }
.mega-nav .nav-link:hover,
.mega-nav .nav-link.active { color: #fff; background: rgba(255,255,255,0.14); }
.mega-nav .nav-link::after { background: #fff; }
.mega-nav .nav-toggle { color: rgba(255,255,255,0.8); }
.mega-nav .nav-item.ms-auto .nav-link { color: #fff !important; }

/* --- Urun karti: Aymet birebir (kenarliksiz kart, kare gorsel, ortali buton) --- */
.product-card {
  border: none;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
}
.product-img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--clr-surface-alt);
  overflow: hidden;
}
.product-img-wrap::after { content: none; }
.product-img-wrap img {
  padding: 0;
  object-fit: cover;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

/* Rozet sag ustte, normal harf, ince pill (Aymet .new) */
.product-badges { left: auto; right: 12px; top: 12px; align-items: flex-end; }
.p-badge {
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: none;
}
.p-badge-new { background: var(--clr-primary); }

/* Kod + koli ici satiri */
.product-body { padding: 14px 8px 4px; }
.product-info-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.product-code {
  font-weight: 700;
  font-size: 15px;
  color: var(--clr-text);
  letter-spacing: 0.2px;
}
.product-code:hover { color: var(--clr-primary); }
.product-koli {
  font-size: 12px;
  color: var(--clr-text-muted);
  white-space: nowrap;
}
.product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-text-muted);
  min-height: 0;
  -webkit-line-clamp: 1;
  margin-bottom: 6px;
}
.product-name a { color: var(--clr-text-muted); }
.product-meta { margin-bottom: 4px; }
.price-group { padding: 0 8px 10px; }

/* Butonlar: ortali, otomatik genislik, 8px kose (Aymet Giris Yap) */
.add-cart-btn {
  background: var(--clr-primary);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
}
.product-footer > a.add-cart-btn,
.product-footer > button.add-cart-btn {
  margin: 2px auto 14px;
  width: auto;
  align-self: center;
}
.add-cart-btn:hover { background: var(--clr-primary-light); filter: none; box-shadow: var(--shadow-glow); }

/* Girisli kullanici: adet + sepete ekle satiri kart altina ortali oturur */
.quick-add-form {
  border-top: none;
  gap: 8px;
  padding: 0 8px 14px;
}
.quick-add-form .quick-add-input {
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  background: var(--clr-surface-alt);
  flex: 0 0 64px;
}
.quick-add-form .add-cart-btn { flex: 1 1 auto; }

/* --- Gorselli kategori karuseli (Aymet ust serit) --- */
.cat-hero-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.cat-hero-scroll::-webkit-scrollbar { height: 6px; }
.cat-hero-scroll::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
.cat-hero-card {
  flex: 0 0 240px;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--clr-surface-alt);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-hero-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-hero-card:hover img { transform: scale(1.06); }
.cat-hero-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}
.cat-hero-name {
  position: relative; z-index: 2;
  color: #fff; font-weight: 700; font-size: 15px;
  text-align: center; line-height: 1.35;
  padding: 0 14px 18px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
/* Ozel kartlar: Kampanyali Urunler (kirmizi) & Yeni Gelenler (altin).
   Serit basinda durur; canli gradyan + isik halesi ile calisir, uzerine
   gelince kart yukselir ve dondurulen isikli cerceve belirir. */
.cat-hero-card--special {
  align-items: center;
  flex-direction: column; justify-content: center;
  gap: 10px; padding: 18px 14px;
  color: #fff; text-align: center;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.cat-hero-card--special::after { content: none; }
.cat-hero-card--new { background: linear-gradient(165deg, #caa84e 0%, #a8853a 100%); }
.cat-hero-card--featured { background: linear-gradient(165deg, #b03a2e 0%, #7e241b 100%); }

/* Katman 0: surekli akan gradyan zemin */
.cat-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: 400% 400%;
  animation: catHeroGradient 8s ease infinite;
}
.cat-hero-card--featured .cat-hero-bg {
  background-image: linear-gradient(-45deg, #e63946, #d62828, #a4133c, #ff6b6b, #c71f37, #e63946);
}
.cat-hero-card--new .cat-hero-bg {
  background-image: linear-gradient(-45deg, #e5c67a, #d4a843, #a67428, #f0d89b, #c9a23f, #e5c67a);
}
.cat-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.15) 0%, transparent 50%);
}

/* Katman 1: merkezdeki nabiz gibi atan isik halesi */
.cat-hero-glow {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 170px; height: 170px; border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(22px); pointer-events: none;
  animation: catHeroGlow 4s ease-in-out infinite;
}
.cat-hero-card--featured .cat-hero-glow { background: radial-gradient(circle, rgba(255,107,107,0.55), transparent 70%); }
.cat-hero-card--new .cat-hero-glow { background: radial-gradient(circle, rgba(255,222,146,0.5), transparent 72%); }

/* Katman 3: yalnizca hover'da beliren donen isikli cerceve */
.cat-hero-border {
  position: absolute; inset: -2px; z-index: 3;
  border-radius: inherit;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.cat-hero-border::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(transparent, #fff, transparent, rgba(255,255,255,0.65), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
  animation: catHeroBorderSpin 3s linear infinite;
}
.cat-hero-card--special:hover .cat-hero-border { opacity: 1; }

.cat-hero-card--special:hover { transform: translateY(-8px) scale(1.02); }
.cat-hero-card--featured:hover { box-shadow: 0 25px 60px rgba(200,30,50,0.4), 0 0 40px rgba(230,57,70,0.2); }
.cat-hero-card--new:hover { box-shadow: 0 25px 60px rgba(166,116,40,0.38), 0 0 40px rgba(229,198,122,0.22); }

/* Icerik katmani gradyanin ustunde kalir */
.cat-hero-card--special > .cat-hero-chip,
.cat-hero-card--special > .cat-hero-icon,
.cat-hero-card--special > .cat-hero-title,
.cat-hero-card--special > .cat-hero-sub,
.cat-hero-card--special > .cat-hero-cta { position: relative; z-index: 2; }

.cat-hero-chip {
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px; padding: 5px 14px;
  backdrop-filter: blur(8px);
}
.cat-hero-icon {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 2px solid rgba(255,255,255,0.32);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
}
/* Nabiz + donen kesikli halka yalnizca ozel kartlarda */
.cat-hero-card--special .cat-hero-icon {
  position: relative;
  animation: catHeroRing 3s ease-in-out infinite;
}
.cat-hero-card--special .cat-hero-icon::before {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; border: 1px dashed rgba(255,255,255,0.22);
  animation: catHeroBorderSpin 10s linear infinite;
}
/* Ozel kategorinin kendi gorseli varsa halkanin icine yuvarlak olarak oturur. */
.cat-hero-card--special .cat-hero-icon img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.cat-hero-card--special .cat-hero-title {
  font-size: 18px; font-weight: 800; line-height: 1.3;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.cat-hero-card--special .cat-hero-sub { font-size: 11.5px; opacity: 0.85; }
.cat-hero-cta {
  font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px; padding: 8px 18px;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, letter-spacing 0.3s ease;
}
.cat-hero-cta i { animation: catHeroArrow 1.5s ease-in-out infinite; }
.cat-hero-card--special:hover .cat-hero-cta {
  background: rgba(255,255,255,0.38);
  border-color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

@keyframes catHeroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes catHeroGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes catHeroBorderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes catHeroRing {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  50% { transform: scale(1.07); box-shadow: 0 0 25px 8px rgba(255,255,255,0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes catHeroArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Hareket azaltma tercihi: sadece hover yukselmesi kalir */
@media (prefers-reduced-motion: reduce) {
  .cat-hero-bg,
  .cat-hero-glow,
  .cat-hero-border::before,
  .cat-hero-card--special .cat-hero-icon,
  .cat-hero-card--special .cat-hero-icon::before,
  .cat-hero-cta i { animation: none; }
}

/* ═══════════════ KARANLIK MOD ═══════════════ */
:root[data-theme="dark"] {
  --clr-bg: #131513;
  --clr-surface: #1b1e1b;
  --clr-surface-alt: #242824;
  --clr-border: #313531;
  --clr-text: #e9ebe7;
  --clr-text-secondary: #c0c4bd;
  --clr-text-muted: #848a81;
  --clr-primary-lighter: #223420;
  --clr-primary-light: #5fa15a;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.45);
  --shadow-md: 0 10px 34px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.55);
  --shadow-xl: 0 28px 66px rgba(0,0,0,0.6);
}
:root[data-theme="dark"] body { background: var(--clr-bg); }
:root[data-theme="dark"] .bg-white { background-color: var(--clr-surface) !important; color: var(--clr-text); }
:root[data-theme="dark"] .nav-mega-col { background: var(--clr-surface); }
:root[data-theme="dark"] .header-search input,
:root[data-theme="dark"] .header-search input:focus { background: var(--clr-surface-alt); color: var(--clr-text); }
:root[data-theme="dark"] .header-search input::placeholder { color: var(--clr-text-muted); }
:root[data-theme="dark"] .main-header,
:root[data-theme="dark"] .mobile-search { background: #000; }
:root[data-theme="dark"] .site-footer { background: #0b0d0b; }
:root[data-theme="dark"] .text-bg-light { background-color: var(--clr-surface-alt) !important; color: var(--clr-text) !important; }

/* --- Urun izgarasi: ana sayfada 5, katalog/kategori sayfalarinda 4 sutun --- */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 15px;
}
.home-cms-page .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.catalog-page .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1399px) {
  .home-cms-page .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .home-cms-page .product-grid,
  .catalog-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .home-cms-page .product-grid,
  .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* --- Ana sayfa sonsuz akis --- */
.home-feed-section { margin-top: 40px; }
.feed-sentinel {
  display: flex; justify-content: center; align-items: center;
  padding: 28px 0;
}
.feed-sentinel.is-done { display: none; }
.feed-sentinel .loading-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: feedSpin 0.9s linear infinite;
}
@keyframes feedSpin { to { transform: rotate(360deg); } }

/* --- Hizli filtre cipleri (Aymet ust bant) --- */
.quick-filters {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  background: var(--clr-surface-alt);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--clr-text);
  transition: all 0.2s ease;
}
.filter-chip i { font-size: 12px; color: var(--clr-primary); }
.filter-chip:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-1px);
}

/* --- Ince footer (Aymet tek satir) --- */
.site-footer--slim {
  padding: 0;
  margin-top: 64px;
  border-top: 3px solid var(--clr-primary);
  background: var(--clr-accent-dark);
  font-size: 13px;
}
.footer-slim-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 20px 0;
}
.footer-slim-copy { color: rgba(255,255,255,0.75); font-weight: 600; }
.footer-slim-links {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-slim-links a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-slim-links a:hover { color: #fff; }
.footer-slim-sep { opacity: 0.25; color: #fff; }
.footer-slim-dev strong { color: var(--clr-primary-light); font-weight: 700; }
:root[data-theme="dark"] .site-footer--slim { background: #0b0d0b; }

/* Ana sayfa kategori seridi nav'in hemen altinda nefes alsin */
.home-cat-strip { padding-top: 20px; }

/* Flex sutun icinde margin:auto'lu .page-shell icerige gore daraliyordu */
.home-shell > .page-shell { width: 100%; }

/* Bolum basliklari Aymet tarzi: normal harf, alt cizgisiz */
.landing-section-title {
  text-transform: none;
  letter-spacing: -0.3px;
  padding-bottom: 0;
  font-size: 24px;
}
.landing-section-title::after { content: none; }

/* ═══════════════════════════════════════════════════════════════════
   MODERN CILA KATMANI
   Sablonu/yerlesimi degistirmez; derinlik, gecis ve detay kalitesini
   yukseltir. Tum kurallar mevcut siniflari override eder.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ring: 0 0 0 3px color-mix(in srgb, var(--clr-primary) 28%, transparent);
}

/* Erisilebilir odak halkasi: yalnizca klavye odaginda gorunur */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ince, zarif kaydirma cubugu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--clr-text-muted) 45%, transparent);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--clr-text-muted) 70%, transparent);
  background-clip: content-box;
  border: 2px solid transparent;
}

/* --- Header incelikleri --- */
.brand-logo-img { border-radius: 10px; }
.header-search input {
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s var(--ease-out);
}
.header-search input:focus { box-shadow: var(--ring); }
.header-search .search-btn {
  transition: transform 0.2s var(--ease-out), background 0.2s ease, box-shadow 0.2s ease;
}
.header-search .search-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--clr-primary) 45%, transparent);
}
.header-search .search-btn:active { transform: translateY(-50%) scale(0.96); }
.main-header .hdr-btn { transition: background 0.2s ease, color 0.2s ease, transform 0.15s var(--ease-out); }
.main-header .hdr-btn:active { transform: scale(0.96); }

/* --- Nav incelikleri --- */
.mega-nav .nav-link { transition: background 0.2s ease, color 0.2s ease; }
.mega-nav .nav-link::after { height: 3px; border-radius: 3px 3px 0 0; }
.nav-drop {
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
}
.nav-mega-col {
  border: 1px solid transparent;
  background: var(--clr-surface-alt);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-mega-col:hover { border-color: var(--clr-border); background: var(--clr-surface); }

/* --- Kategori kartlari --- */
.cat-hero-card {
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.cat-hero-card::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.28) 68%, rgba(0,0,0,0.78) 100%);
}
/* Ozel kartlarin kendi hover animasyonu var; buradaki genel hover onlari kapsamaz. */
.cat-hero-card:not(.cat-hero-card--special):hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}
.cat-hero-card img { transition: transform 0.6s var(--ease-out), filter 0.4s ease; }
.cat-hero-card:hover img { transform: scale(1.08); filter: saturate(1.08); }
.cat-hero-name { letter-spacing: 0.2px; font-size: 14.5px; }
.cat-hero-card--new { background: linear-gradient(160deg, #d4b25c 0%, #b08c3e 55%, #96742f 100%); }
.cat-hero-card--featured { background: linear-gradient(160deg, #bd4437 0%, #93291e 60%, #741d14 100%); }
.cat-hero-card--special { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 3px rgba(0,0,0,0.08); }

/* --- Filtre cipleri --- */
.quick-filters { border: 1px solid var(--clr-border); }
.filter-chip {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.filter-chip:hover {
  background: var(--clr-primary-lighter);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--clr-primary) 14%, transparent);
}
.filter-chip:active { transform: scale(0.97); }

/* --- Bolum baslik satiri --- */
.landing-section-header { align-items: center; margin-bottom: 24px; }
.landing-section-link {
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 13px;
  padding: 9px 20px;
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text-secondary);
  background: var(--clr-surface);
}
.landing-section-link:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--clr-primary) 28%, transparent);
}

/* --- Urun kartlari --- */
.product-img-wrap {
  border: 1px solid color-mix(in srgb, var(--clr-border) 60%, transparent);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.product-card:hover .product-img-wrap {
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
  border-color: var(--clr-border);
}
.product-card { transition: transform 0.3s var(--ease-out); }
.product-code { transition: color 0.2s ease; }
.p-badge { box-shadow: 0 2px 8px rgba(0,0,0,0.18); backdrop-filter: blur(2px); }
.price-now { font-weight: 800; }
/* Gradyan tamamen paletten turetilir; ana renk degisince buton da degisir. */
.add-cart-btn {
  background: linear-gradient(180deg, var(--clr-primary-light) 0%, var(--clr-primary) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.18s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
.add-cart-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--clr-primary) 32%, transparent);
}
.add-cart-btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 2px 6px color-mix(in srgb, var(--clr-primary) 25%, transparent); }
.quick-add-input { transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.quick-add-input:focus { border-color: var(--clr-primary); box-shadow: var(--ring); background: var(--clr-surface); }

/* --- Sayfalama --- */
.premium-pagination { gap: 6px; }
.premium-pagination .page-link {
  border: 1px solid var(--clr-border);
  border-radius: 10px !important;
  color: var(--clr-text-secondary);
  font-weight: 600;
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  background: var(--clr-surface);
  transition: all 0.2s ease;
  box-shadow: none;
}
.premium-pagination .page-link:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-lighter);
}
.premium-pagination .page-item.active .page-link {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--clr-primary) 30%, transparent);
}
.premium-pagination .page-item.disabled .page-link { opacity: 0.4; }

/* --- Katalog kenar cubugu --- */
.catalog-tree-link { transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s var(--ease-out); }
.catalog-tree-link:hover { padding-left: 16px; }

/* --- Yukari cik butonu --- */
.back-top {
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  transition: opacity 0.3s ease, transform 0.25s var(--ease-out), background 0.2s ease, color 0.2s ease;
}
.back-top:hover { transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--clr-primary) 30%, transparent); }

/* --- Footer linkleri --- */
.footer-slim-links a { position: relative; }
.footer-slim-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1.5px; background: var(--clr-primary-light);
  transition: right 0.25s var(--ease-out);
}
.footer-slim-links a:hover::after { right: 0; }

/* --- Karanlik mod incelikleri --- */
:root[data-theme="dark"] .product-img-wrap {
  background: #202420;
  border-color: color-mix(in srgb, var(--clr-border) 70%, transparent);
}
:root[data-theme="dark"] .product-card:hover .product-img-wrap { box-shadow: 0 14px 28px rgba(0,0,0,0.45); }
:root[data-theme="dark"] .cat-hero-card { box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
:root[data-theme="dark"] .cat-hero-card:hover { box-shadow: 0 18px 36px rgba(0,0,0,0.5); }
/* Karanlik modda --clr-primary koyu yesil kaldigi icin alt kategori yazisi acik tonla yazilir. */
:root[data-theme="dark"] .catalog-subcategory-card { color: var(--clr-primary-light); }
:root[data-theme="dark"] .catalog-subcategory-card:hover { color: #0e140d; }
:root[data-theme="dark"] .catalog-subcategory-card:hover small { color: rgba(0,0,0,0.6); }
:root[data-theme="dark"] .quick-filters { border-color: var(--clr-border); }
:root[data-theme="dark"] .filter-chip { box-shadow: none; }
:root[data-theme="dark"] .nav-drop { box-shadow: 0 24px 48px rgba(0,0,0,0.55); background: var(--clr-surface); }
:root[data-theme="dark"] .nav-mega-col { background: var(--clr-surface-alt); }
:root[data-theme="dark"] .header-search input { box-shadow: inset 0 1px 3px rgba(0,0,0,0.35); }
:root[data-theme="dark"] .premium-pagination .page-link { background: var(--clr-surface); }
:root[data-theme="dark"] .landing-section-link { background: var(--clr-surface); }

/* --- Hareket hassasiyeti --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===================================================================
   KATEGORILER SAYFASI (/Catalog/Categories)
   Aymet referansi: iki sutunlu kart listesi, mobilde de iki sutun.
   Sira A_CATEGORY.SAYFASIRA alanindan gelir.
   =================================================================== */
.categories-page { padding: 28px 0 56px; }
.categories-page-head { text-align: center; margin-bottom: 24px; }
.categories-page-head h1 {
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clr-primary);
  margin: 0 0 6px;
}
.categories-page-head p {
  color: var(--clr-text-muted);
  font-size: 14px;
  margin: 0;
}

.cat-page-grid {
  display: grid;
  /* Mobilde de iki sutun - talep bu. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 992px)  { .cat-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1400px) { .cat-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cat-page-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 12px;
  border-radius: 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.2s ease;
}
.cat-page-card:hover {
  transform: translateY(-3px);
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.cat-page-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: var(--clr-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Kategori gorseli kirpilmadan tam gorunur. */
.cat-page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.cat-page-thumb.is-icon { color: var(--clr-primary); font-size: 26px; }

.cat-page-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-page-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--clr-text);
  overflow-wrap: anywhere;
}
.cat-page-count { font-size: 13px; color: var(--clr-text-muted); }

@media (max-width: 400px) {
  .cat-page-card { gap: 9px; padding: 10px; min-height: 84px; }
  .cat-page-thumb { width: 54px; height: 54px; }
  .cat-page-name { font-size: 13.5px; }
  .cat-page-count { font-size: 12px; }
}

:root[data-theme="dark"] .cat-page-card { box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
:root[data-theme="dark"] .cat-page-card:hover { box-shadow: 0 18px 36px rgba(0,0,0,0.5); }

/* --- Kategoriler sayfasi gruplari: ana kategori basligi + ayirac + alt kategoriler --- */
.cat-group { margin-bottom: 40px; }
.cat-group:last-child { margin-bottom: 8px; }

.cat-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.cat-group-head:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-group-thumb {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cat-group-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cat-group-thumb.is-icon { font-size: 26px; color: #fff; }

.cat-group-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.cat-group-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.75;
}
.cat-group-name {
  font-size: 21px; font-weight: 800; line-height: 1.2;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.cat-group-meta {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.cat-group-chip {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700; font-size: 12px;
  white-space: nowrap;
}

.cat-group-sep {
  border: 0;
  border-top: 2px dashed var(--clr-border);
  margin: 16px 0;
  opacity: 1;
}
.cat-group-empty {
  font-size: 13px; color: var(--clr-text-muted);
  margin: 0 0 4px;
}

@media (max-width: 575px) {
  .cat-group { margin-bottom: 28px; }
  .cat-group-head { gap: 12px; padding: 12px 14px; }
  .cat-group-thumb { width: 52px; height: 52px; }
  .cat-group-name { font-size: 17px; }
  /* Dar ekranda rozetler basligi ezmesin, sadece ok kalir. */
  .cat-group-chip { display: none; }
}

/* ===================================================================
   HEADER - iki marka logosu (solda CHANAK, sagda SAHANE & D'M HOME)
   =================================================================== */
.brand-logo-pair {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo-sep {
  width: 1px;
  align-self: stretch;
  margin: 6px 0;
  background: var(--clr-border);
  flex: 0 0 auto;
}
.brand-logo-secondary { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo-secondary img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.brand-logo-secondary:hover img { transform: scale(1.03); }
@media (max-width: 991px) {
  .brand-logo-pair { gap: 9px; }
  .brand-logo-secondary img { height: 42px; }
}
@media (max-width: 575px) {
  .brand-logo-pair { gap: 7px; }
  .brand-logo-secondary img { height: 34px; }
  .brand-logo-img { height: 34px !important; }
}
/* NOT: .main-header her iki temada da siyah zeminlidir (--clr-accent-dark).
   Bu yuzden logolara karanlik moda ozel bir filtre UYGULANMAZ - yuklenen
   gorselin kendisi acik renkli (beyaz) olmalidir. Siyah bir logo yuklenirse
   iki temada da gorunmez. */

/* ===================================================================
   KUCUK RESIMLER TAM GORUNSUN (t1: "kucuk resimler tam ciksin")
   Urun kartlari ve galeri kucuk resimleri kirpilmaz.
   =================================================================== */
.product-img-wrap img { object-fit: contain !important; padding: 10px; }
.detail-gallery-thumb img { object-fit: contain; padding: 4px; }

/* ===================================================================
   URUN GALERISI - kaydirma (swipe) destegi
   =================================================================== */
.detail-gallery-main { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.detail-gallery-main img { pointer-events: none; }
.detail-lightbox img { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* Ana gorselin uzerindeki ileri/geri oklari - tek gorselde gizlenir. */
.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, transform 0.2s ease;
}
.detail-gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.detail-gallery-arrow.is-prev { left: 10px; }
.detail-gallery-arrow.is-next { right: 10px; }
.detail-gallery[data-single] .detail-gallery-arrow { display: none; }
:root[data-theme="dark"] .detail-gallery-arrow {
  background: rgba(32,36,32,0.92);
  color: var(--clr-text);
}
:root[data-theme="dark"] .detail-gallery-arrow:hover { background: rgba(32,36,32,1); }

/* Gorsel sayaci (1 / 5) - mobilde kaydirma oldugunu belli eder. */
.detail-gallery-counter {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  z-index: 3;
}
.detail-gallery[data-single] .detail-gallery-counter { display: none; }

/* ===================================================================
   KATEGORI BASLIKLARINA / GECISLERE GORSEL
   (t1: "gecisler ve kategori basliklarina resim eklenecek")
   =================================================================== */
/* Mega menu kategori basligi */
.nav-mega-title { display: flex; align-items: center; gap: 8px; }
.nav-mega-thumb {
  width: 28px; height: 28px; flex: 0 0 auto;
  border-radius: 7px; object-fit: contain; padding: 2px;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
}
/* Mobil menu kategori satiri */
.nav-mobile-thumb {
  width: 28px; height: 28px; flex: 0 0 auto;
  border-radius: 7px; object-fit: contain; padding: 2px;
  background: var(--clr-surface-alt); border: 1px solid var(--clr-border);
}
/* Katalog sayfasi kategori basligi */
.catalog-hero-title { display: flex; align-items: center; gap: 12px; }
.catalog-hero-thumb {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 12px; object-fit: contain; padding: 4px;
  background: var(--clr-surface-alt); border: 1px solid var(--clr-border);
}
@media (max-width: 575px) {
  .catalog-hero-title { gap: 9px; }
  .catalog-hero-thumb { width: 42px; height: 42px; }
}
/* Alt kategori gecis kartlari */
.catalog-subcategory-card { padding-top: 12px; }
.catalog-subcategory-thumb {
  display: block; margin: 0 auto 7px;
  width: 44px; height: 44px;
  border-radius: 10px; object-fit: contain; padding: 3px;
  background: var(--clr-surface-alt); border: 1px solid var(--clr-border);
}
.catalog-subcategory-card:hover .catalog-subcategory-thumb {
  background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4);
}
.catalog-subcategory-card.active .catalog-subcategory-thumb {
  background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35);
}

/* Ana gorsel + oklarin bulundugu sahne (grid icinde tek satir). */
.detail-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.detail-gallery-stage .detail-gallery-main { width: 100%; }

/* ===================================================================
   URUN DETAY - BENZER URUNLER
   Sayfanin diger bloklariyla ayni kart cercevesi; kartlar satiri
   bosluk birakmadan doldurur (auto-fill yerine auto-fit).
   =================================================================== */
.product-related { padding-bottom: 20px; }
.product-related-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.product-related-head h2 { margin: 0; }
.product-related-sub { font-size: 13px; color: var(--clr-text-muted); }

.product-related-grid {
  /* auto-fit: bos kalan sutunlar cokup kartlar satiri doldurur,
     sagda genis bir bosluk birakmaz. */
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
@media (min-width: 1400px) {
  /* Cok genis ekranda 6 kart asiri buyumesin. */
  .product-related-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .product-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===================================================================
   SEPET - MOBIL
   Sepet 5 sutunlu bir tablo; dar ekranda yatay kaydirma gerektiriyordu.
   767px altinda her satir kendi kartina donusur, basliklar data-label'dan
   gelir. Masaustu tablo gorunumu degismez.
   =================================================================== */
@media (max-width: 767px) {
  .cart-header { gap: 12px; }
  .cart-header-copy h1 { font-size: 22px; }
  /* Excel / PDF / Sepeti Temizle: iki sutuna yayilir, tasmaz. */
  .cart-header-actions { width: 100%; }
  .cart-header-actions > *,
  .cart-header-actions form { flex: 1 1 calc(50% - 4px); }
  .cart-header-actions .btn,
  .cart-header-actions button { width: 100%; }

  /* Tablo -> kart listesi */
  .cart-table-wrap { overflow-x: visible; }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td { display: block; width: 100%; }
  .cart-table thead { display: none; }

  .cart-table tr {
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--clr-surface);
    position: relative;
  }
  .cart-table td {
    border-bottom: none;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  /* Hucre basligi (Miktar / Birim Fiyat / Toplam) solda gri etiket olur. */
  .cart-table td[data-label]::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--clr-text-muted);
    text-align: left;
    flex: 0 0 auto;
  }

  /* Urun adi tam genislikte, etiketsiz, solda */
  .cart-table td.cart-cell-product {
    display: block;
    text-align: left;
    padding: 0 44px 8px 0;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--clr-border);
  }
  .cart-table td.cart-cell-product strong { font-size: 14px; line-height: 1.35; }

  .cart-table td.cart-cell-total { font-weight: 700; }

  /* Sil butonu kartin sag ust kosesine tasinir. */
  .cart-table td.cart-cell-action {
    position: absolute;
    top: 10px;
    right: 12px;
    width: auto;
    padding: 0;
    display: block;
  }
  .cart-table td.cart-cell-action .btn {
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.6;
  }

  .cart-qty-box { align-items: flex-end; }
  .cart-koli-form { justify-content: flex-end; }

  /* Ozet kutusu tam genislik */
  .cart-summary-box { max-width: none; margin-left: 0; padding: 16px; }

  /* Kupon alani: input + buton alt alta tasmadan */
  .cart-coupon-box form { max-width: none !important; width: 100%; }

  /* Onay / odeme butonlari tam genislik */
  .cart-shell .hero-btn { width: 100%; justify-content: center; }
  .cart-shell #cartSubmitForm,
  .cart-shell #cartPayForm { flex: 1 1 100%; }
}

/* --- Sepette urun gorseli --- */
.cart-product { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.cart-product-thumb {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  background: var(--clr-surface-alt);
  overflow: hidden;
  display: block;
}
.cart-product-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px;
}
.cart-product-copy { min-width: 0; }
.cart-product-name {
  display: block;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.cart-product-name:hover { color: var(--clr-primary); }

/* .hero-btn karusel icin beyaz zeminlidir; beyaz .page-card uzerinde
   birincil eylem olarak gorunmuyordu (beyaz uzerine beyaz).
   Sepet onay butonu, bos durum butonlari vb. burada yesile cevrilir.
   Inline arka plani olan buton (PayTR turuncusu) etkilenmez. */
.page-card .hero-btn {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.page-card .hero-btn:hover { filter: brightness(1.07); color: #fff; }

@media (max-width: 767px) {
  .cart-product-thumb { width: 52px; height: 52px; }
  /* Kart basligindaki sil butonunun altina girmesin */
  .cart-table td.cart-cell-product { padding-right: 52px; }
}

/* ===================================================================
   MOBIL ALT BAR PAYI
   .mobile-bottom-bar sabit (position:fixed) ve ~54px yuksekliginde.
   Sayfaya alt bosluk birakilmadigi icin son satiri - pratikte footer'daki
   "Gelistirici: Mortech Yazilim" satirini - ortuyordu.
   Bar Bootstrap'in d-md-none'i ile 768px'den itibaren gizlenir, bu yuzden
   pay da ayni kirilimda verilir.
   =================================================================== */
@media (max-width: 767px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  /* Yukari cik butonu da barin uzerinde kalsin. */
  .back-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  /* Ince footer mobilde ortalanip iki satira rahat yayilir. */
  .footer-slim-row { justify-content: center; text-align: center; gap: 8px; padding: 16px 0; }
  .footer-slim-links { justify-content: center; gap: 12px; row-gap: 6px; }
  .footer-slim-sep { display: none; }
  .footer-slim-dev { flex: 1 1 100%; }
}
