/* MotoChipFiles - koyu tema + amber vurgu */
:root {
  --bg: #0d0b08;
  --surface: #16120c;
  --surface-2: #1f1910;
  --border: #2e2618;
  --text: #f3ede2;
  --muted: #b3a78f;
  --amber: #ff9f1c;
  --amber-hover: #ffb340;
  --amber-ink: #1a1100;
  --danger: #ff6a5c;
  --success: #3ddc97;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hover); color: var(--amber-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 106, 92, .4); }
.btn-danger:hover { background: rgba(255, 106, 92, .12); color: var(--danger); }
.btn-sm { padding: 7px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Üst menü */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 8, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 38px; width: auto; max-width: none; }
.logo-mini { display: none; height: 40px !important; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { color: var(--text); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--amber); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang a { color: var(--muted); font-weight: 700; font-size: .85rem; padding: 4px 6px; }
.lang a.on { color: var(--amber); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--text); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 600; }
.cart-link:hover { border-color: var(--amber); color: var(--amber); }
.badge { background: var(--amber); color: var(--amber-ink); border-radius: 999px; min-width: 20px; height: 20px; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Bildirimler */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.flash-success { border-color: rgba(61, 220, 151, .5); color: var(--success); }
.flash-error { border-color: rgba(255, 106, 92, .5); color: var(--danger); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(255, 159, 28, .22), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, rgba(255, 159, 28, .12), transparent 60%); border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; opacity: .22; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); pointer-events: none; }
/* Arka plan videosu */
.hero.has-video { background: #0d0b08; }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; background-size: cover; background-position: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.hero-video.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 11, 8, .9) 0%, rgba(13, 11, 8, .66) 52%, rgba(13, 11, 8, .42) 100%),
              radial-gradient(900px 420px at 88% 0%, rgba(255, 159, 28, .16), transparent 60%); }
.hero.has-video::before { z-index: 1; opacity: .1; }
.hero.has-video .hero-inner { z-index: 2; }
.hero.no-video .hero-video { display: none; }
.hero-toggle { position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(13, 11, 8, .55); color: var(--text); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero-toggle svg { fill: currentColor; grid-area: 1 / 1; }
.hero-toggle .ico-play { display: none; }
.hero-toggle[aria-pressed="true"] .ico-play { display: block; }
.hero-toggle[aria-pressed="true"] .ico-pause { display: none; }
.hero-toggle:hover { border-color: var(--amber); color: var(--amber); }
.hero-toggle[hidden] { display: none; }
@media (max-width: 760px) { .hero-scrim { background: rgba(13, 11, 8, .72); } .hero-toggle { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero-toggle { display: none; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--amber); font-weight: 800; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 span { color: var(--amber); }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(320px, 80%); filter: drop-shadow(0 20px 50px rgba(255, 159, 28, .25)); }

/* Bölümler */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 159, 28, .14); color: var(--amber); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 600; font-size: .92rem; background: var(--surface); }
.chip:hover, .chip.on { border-color: var(--amber); color: var(--amber); }

/* Ürün kartları */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 159, 28, .6); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { width: 38%; opacity: .5; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--amber); color: var(--amber-ink); font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.tag.out { background: var(--danger); color: #fff; left: auto; right: 10px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.card-title { color: var(--text); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.card-title:hover { color: var(--amber); }
.price { font-weight: 800; font-size: 1.2rem; }
.price del { color: var(--muted); font-weight: 500; font-size: .9rem; margin-right: 6px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }

/* Mağaza sayfası */
.page-head { padding: 40px 0 8px; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-bottom: 64px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.filters h3 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.filters ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.filters li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.filters li a:hover, .filters li a.on { background: var(--surface-2); color: var(--amber); }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.pagination .on { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); font-weight: 800; }

/* Ürün detay */
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; padding: 32px 0 56px; align-items: start; }
.gallery { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery .ph { width: 30%; opacity: .45; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.product .price { font-size: 2rem; margin: 14px 0; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.qty { width: 84px; }
.meta-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Formlar */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea, input[type=file] {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255, 159, 28, .18); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; accent-color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-narrow { max-width: 460px; margin: 48px auto 72px; }

/* Sepet / ödeme */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 24px 0 64px; align-items: start; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); object-fit: cover; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { border-top: 1px solid var(--border); padding-top: 12px; font-size: 1.2rem; font-weight: 800; }
.secure { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); }
.status.paid, .status.delivered { color: var(--success); border-color: rgba(61, 220, 151, .5); }
.status.shipped { color: var(--amber); border-color: rgba(255, 159, 28, .5); }
.status.failed, .status.cancelled { color: var(--danger); border-color: rgba(255, 106, 92, .5); }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 28px; }
.footer-grid h4 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0 28px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.pay-note { display: flex; align-items: center; gap: 10px; }
.footer-pay { border-top: 1px solid var(--border); padding: 16px 0; }
.pay-band { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-plate { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 14px; line-height: 0; }
.pay-plate img { height: 36px; width: auto; max-width: 100%; }
.pay-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 16px; line-height: 0; margin-bottom: 14px; }
.pay-logo img { height: 56px; width: auto; max-width: 100%; }
.pay-text { font-weight: 700; letter-spacing: .02em; color: var(--text); }

/* Hata sayfası */
.error-page { text-align: center; padding: 96px 0; }
.error-page .code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; color: var(--amber); line-height: 1; }

/* Yönetim paneli */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { display: block; padding: 4px 8px 18px; }
.admin-side .brand img { height: 34px; }
.admin-side a.item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.admin-side a.item:hover, .admin-side a.item.on { background: var(--surface-2); color: var(--amber); }
.admin-main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 1.8rem; font-weight: 800; color: var(--amber); }
.stat .l { color: var(--muted); font-size: .88rem; }
.notice { background: rgba(255, 159, 28, .1); border: 1px solid rgba(255, 159, 28, .4); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }

/* Mobil */
@media (max-width: 940px) {
  .hero-inner, .product, .cart-layout, .shop-layout { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side .brand { width: 100%; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav { gap: 10px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .logo-full { display: none; }
  .logo-mini { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
