/* ── NEONCARD ORTAK STİL ── */
:root {
  --bg: #07070d;
  --surface: #0f0f1a;
  --card: #16162a;
  --border: #252540;
  --accent: #8b5cf6;
  --accent2: #00d4ff;
  --accent3: #fbbf24;
  --sale: #ff3b3b;
  --text: #f1f5f9;
  --muted: #6b7280;
  --header-bg: rgba(7,7,13,0.92);
}

/* ── AÇIK MOD ── */
body.light-mode {
  --bg: #f0f2f8;
  --surface: #e4e7f0;
  --card: #ffffff;
  --border: #d0d5e8;
  --accent: #7c3aed;
  --accent2: #0284c7;
  --accent3: #d97706;
  --sale: #dc2626;
  --text: #1e1b4b;
  --muted: #64748b;
  --header-bg: rgba(240,242,248,0.95);
}
body.light-mode::before {
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 80%, rgba(2,132,199,0.06) 0%, transparent 60%);
}
body.light-mode header { background: var(--header-bg); border-bottom-color: var(--border); }
body.light-mode .logo { background: linear-gradient(135deg,#7c3aed,#0284c7); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
body.light-mode .search-bar,
body.light-mode .cart-btn,
body.light-mode .currency-btn,
body.light-mode .user-btn { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
body.light-mode .balance-chip { background:rgba(2,132,199,0.1); border-color:rgba(2,132,199,0.3); color:#0284c7; }

/* TEMA BUTONU */
.theme-btn {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.45rem 0.75rem;
  color: var(--text); cursor: pointer; font-size: 1rem;
  transition: all 0.2s; line-height: 1;
}
.theme-btn:hover { border-color: var(--accent); }

/* ── SAYFA GEÇİŞ ANİMASYONU ── */
#nc-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  opacity: 1; transition: opacity 0.3s ease;
}
#nc-loader.fade-out { opacity: 0; pointer-events: none; }
.nc-loader-logo {
  font-weight: 900; font-size: 2rem;
  background: linear-gradient(135deg,#a855f7,#00d4ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: nc-spin 0.8s ease-in-out;
}
.nc-loader-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: #a855f7;
  border-right-color: #00d4ff;
  animation: nc-rotate 0.6s linear infinite;
}
@keyframes nc-spin {
  0%   { transform: scale(0.7) rotate(-10deg); opacity:0; }
  60%  { transform: scale(1.08) rotate(3deg); opacity:1; }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes nc-rotate { to { transform: rotate(360deg); } }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Poppins', sans-serif; min-height: 100vh; overflow-x: hidden; }
body::before {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 10% 20%, rgba(139,92,246,0.13) 0%, transparent 60%),
              radial-gradient(ellipse 50% 35% at 90% 80%, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* HEADER */
header { position: sticky; top: 0; z-index: 200; background: rgba(7,7,13,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0 2rem; }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { font-weight: 800; font-size: 1.5rem; background: linear-gradient(135deg,#a855f7,#00d4ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; cursor: pointer; text-decoration: none; }
.logo span { -webkit-text-fill-color: var(--accent3); }
nav { display: flex; gap: 0.15rem; align-items: center; }
nav a { color: var(--muted); text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 8px; font-size: 0.82rem; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
nav a:hover { color: var(--text); background: var(--card); }
nav a.active { color: var(--text); background: rgba(139,92,246,0.14); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; position: relative; }

/* SEARCH */
.search-wrap { position: relative; }
.search-bar { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 1rem; width: 240px; transition: border-color 0.2s; }
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 0.82rem; width: 100%; font-family: inherit; }
.search-bar input::placeholder { color: var(--muted); }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: none; z-index: 300; box-shadow: 0 16px 40px rgba(0,0,0,0.5); max-height: 320px; overflow-y: auto; }
.search-dropdown.open { display: block; }
.search-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: rgba(139,92,246,0.1); }
.search-item-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.search-item-name { font-size: 0.82rem; font-weight: 600; }
.search-item-cat { font-size: 0.7rem; color: var(--muted); }
.search-none { padding: 1rem; text-align: center; color: var(--muted); font-size: 0.82rem; }

.cart-btn { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 1rem; color: var(--text); cursor: pointer; font-size: 0.82rem; font-family: inherit; transition: border-color 0.2s; white-space: nowrap; }
.cart-btn:hover { border-color: var(--accent); }
.currency-btn { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.75rem; color: var(--text); font-size: 0.82rem; cursor: pointer; font-family: inherit; outline: none; }

/* MAIN */
main { max-width: 1280px; margin: 0 auto; padding: 2rem; position: relative; z-index: 1; }

/* SECTION HEADER */
.section-hd { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.section-hd-bar { width: 4px; height: 22px; border-radius: 2px; background: linear-gradient(180deg,#a855f7,#00d4ff); flex-shrink: 0; }
.section-hd h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.section-hd .see-all { margin-left: auto; font-size: 0.78rem; color: var(--accent2); text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.section-hd .see-all:hover { opacity: 0.7; }

/* PRODUCT CARD */
.prod-card { flex: 0 0 calc(20% - 0.8rem); background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all 0.25s; text-decoration: none; color: inherit; display: flex; flex-direction: column; min-width: 0; }
.prod-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(139,92,246,0.25); }
.prod-img { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--surface); position: relative; overflow: hidden; font-size: 3.2rem; }
.prod-badge-new { position: absolute; top: 8px; left: 8px; background: var(--accent); color: white; font-size: 0.58rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; text-transform: uppercase; }
.prod-badge-sale { position: absolute; top: 8px; right: 8px; background: var(--sale); color: white; font-size: 0.58rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; }
.prod-body { padding: 0.7rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.prod-name { font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.prod-price { font-size: 0.72rem; color: var(--accent2); font-weight: 700; margin-top: auto; }
.prod-btn { background: linear-gradient(135deg,var(--accent),#6d28d9); border: none; border-radius: 0 0 14px 14px; padding: 0.55rem; color: white; font-family: 'Poppins',sans-serif; font-size: 0.68rem; font-weight: 700; cursor: pointer; letter-spacing: 1px; text-transform: uppercase; transition: opacity 0.2s; width: 100%; }
.prod-btn:hover { opacity: 0.85; }

/* SLIDER */
.slider-wrap { position: relative; margin-bottom: 3rem; }
.slider-track-outer { overflow: hidden; border-radius: 12px; }
.slider-track { display: flex; gap: 1rem; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; z-index: 10; font-family: inherit; }
.slider-arrow:hover { border-color: var(--accent); background: rgba(139,92,246,0.15); }
.slider-arrow.left { left: -19px; }
.slider-arrow.right { right: -19px; }
.slider-arrow:disabled { opacity: 0.25; cursor: not-allowed; }

/* FOOTER */
footer { border-top: 1px solid var(--border); margin-top: 4rem; background: var(--surface); position: relative; z-index: 1; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .logo { font-size: 1.3rem; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.78rem; color: var(--muted); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.8rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 2rem; text-align: center; font-size: 0.75rem; color: var(--muted); max-width: 1280px; margin: 0 auto; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.78rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* PAGE HEADING */
.page-hero { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; margin-bottom: 2.5rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(139,92,246,0.15) 0%, transparent 60%); }
.page-hero h1 { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; position: relative; z-index: 1; }
.page-hero p { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; position: relative; z-index: 1; }

@media(max-width:900px){
  .footer-inner { grid-template-columns: 1fr 1fr; }
  nav a { padding: 0.4rem 0.6rem; font-size: 0.75rem; }
  .prod-card { flex: 0 0 calc(50% - 0.5rem); }
}

/* ── LIGHT MODE — ANA SAYFA EK STİLLER ── */
body.light-mode .stats-strip { background: var(--card); border-color: var(--border); }
body.light-mode .stat-lbl { color: var(--muted); }
body.light-mode .section-hd-bar { background: var(--accent); }
body.light-mode .section-hd h2 { color: var(--text); }
body.light-mode main { background: var(--bg); }
body.light-mode footer { background: var(--surface); border-top: 1px solid var(--border); }
body.light-mode footer * { color: var(--text); }
body.light-mode .footer-bottom { color: var(--muted); }
body.light-mode .hero-title { color: var(--text); }
body.light-mode .hero-sub { color: var(--muted); }
body.light-mode .prod-name { color: var(--text); }
body.light-mode .prod-card { background: var(--card); border-color: var(--border); }
body.light-mode .prod-card:hover { border-color: var(--accent); }
body.light-mode .cat-card { background: var(--card); }
body.light-mode .breadcrumb { color: var(--muted); }
body.light-mode .breadcrumb a { color: var(--accent); }
