:root {
  --brand: #1a6cff;
  --brand-dark: #0d4fcc;
  --navy: #0b1b3a;
  --navy-2: #12264d;
  --text: #1c2434;
  --muted: #6b7280;
  --line: #e6ebf2;
  --bg: #f6f8fc;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 80, .08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 10px; padding: .75rem 1.2rem; font-weight: 600;
  cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  min-height: 74px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -.02em; }
.logo span { color: var(--brand); font-weight: 700; margin-left: .25rem; }
.nav { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.nav a { color: #334155; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.search-box {
  display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; min-width: 210px;
}
.search-box input { border: 0; outline: 0; padding: .55rem .8rem; width: 100%; }
.search-box button {
  border: 0; background: var(--brand); color: #fff; width: 42px; cursor: pointer;
}
.cart-link {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--bg);
  border: 0; cursor: pointer; font: inherit;
}
.cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--brand); color: #fff;
  font-size: .7rem; min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700;
}
.auth-link { color: #334155; font-weight: 500; font-size: .92rem; }
.register-btn { white-space: nowrap; }

.hero-slider {
  position: relative;
  background: #07111f;
  color: #fff;
  overflow: hidden;
}
.hero-slides { position: relative; }
.hero-slide {
  position: relative;
  min-height: clamp(520px, 78vh, 780px);
  display: none;
}
.hero-slide.is-active { display: block; }
.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-slide-overlay {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 78vh, 780px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5,12,28,.88) 0%, rgba(5,12,28,.62) 42%, rgba(5,12,28,.18) 68%, rgba(5,12,28,.35) 100%),
    linear-gradient(180deg, rgba(5,12,28,.25) 0%, transparent 35%, rgba(5,12,28,.55) 100%);
  padding: 4.5rem 0 3rem;
}
.hero-slide-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-slide h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -.03em;
}
.hero-slide h1 span { color: #4da3ff; }
.hero-lead {
  color: rgba(255,255,255,.82);
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.2rem; }
.hero-stats span { color: rgba(255,255,255,.65); font-size: .88rem; }

.hero-trust {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,.97);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
}
.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
}
.hero-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef4ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-trust-item strong { display: block; font-size: .95rem; }
.hero-trust-item span { color: var(--muted); font-size: .82rem; }

.section { padding: 4rem 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.02em; }
.section-head a { color: var(--brand); font-weight: 600; }

.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.category-card {
  background: var(--bg); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center;
  transition: .2s ease; border: 1px solid transparent;
}
.category-card:hover { transform: translateY(-3px); border-color: #d7e4ff; box-shadow: var(--shadow); }
.category-card .icon {
  width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 14px;
  background: #eaf1ff; color: var(--brand); display: grid; place-items: center; font-size: 1.3rem;
}
.category-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.category-card span { color: var(--muted); font-size: .88rem; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-media {
  position: relative; aspect-ratio: 16/11; background: linear-gradient(160deg,#eef3ff,#dfe9ff);
  display: grid; place-items: center; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: .7rem; right: .7rem; background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .28rem .55rem; border-radius: 999px;
}
.badge.populer { background: #7c3aed; }
.badge.trend { background: #0ea5e9; }
.badge.indirim { background: #ef4444; }
.badge.yeni { background: #16a34a; }
.product-body { padding: 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.product-body h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.product-body p { margin: 0; color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; gap: .45rem; margin-top: .2rem; }
.price { color: var(--brand); font-weight: 800; font-size: 1.15rem; }
.compare { color: #94a3b8; text-decoration: line-through; font-size: .9rem; }
.rating { color: #f59e0b; font-size: .88rem; }
.product-actions { margin-top: auto; padding-top: .4rem; }

.promo-band {
  background:
    linear-gradient(90deg, rgba(8,18,43,.92), rgba(18,38,77,.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath fill='%23ffffff10' d='M0 80h160M80 0v160'/%3E%3C/svg%3E");
  color: #fff; border-radius: 20px; padding: 2.4rem; display: grid;
  grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
.promo-band h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.promo-points { display: grid; gap: .9rem; }
.promo-point { display: flex; gap: .8rem; align-items: center; }
.promo-point i {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.12);
  display: grid; place-items: center;
}

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; background: #fff;
}
.testimonial-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #e8f0ff; color: var(--brand);
  display: grid; place-items: center; font-weight: 800;
}
.testimonial h4 { margin: 0; font-size: .95rem; }
.testimonial .role { color: var(--muted); font-size: .82rem; }
.testimonial p { margin: .5rem 0 0; color: #475569; font-style: italic; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 3.5rem 0 1.2rem; margin-top: 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 1.5rem; margin-bottom: 2rem;
}
.site-footer h4 { color: #fff; margin: 0 0 1rem; }
.site-footer a { display: block; margin-bottom: .45rem; color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.65); max-width: 18rem; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; margin: 0;
}
.newsletter { display: flex; gap: .4rem; }
.newsletter input {
  flex: 1; border: 0; border-radius: 10px; padding: .7rem .8rem; outline: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem;
}
.footer-links { display: flex; gap: 1rem; }
.back-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px;
  border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); z-index: 40;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 2.2rem 0;
}
.page-hero h1 { margin: 0 0 .4rem; }
.page-hero p { margin: 0; color: rgba(255,255,255,.7); }

.panel {
  display: grid; grid-template-columns: 240px 1fr; gap: 1.2rem; padding: 1.5rem 0 3rem;
}
.side-nav {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .8rem;
  height: fit-content; position: sticky; top: 90px;
}
.side-nav a {
  display: block; padding: .7rem .85rem; border-radius: 10px; color: #334155; font-weight: 500;
}
.side-nav a:hover, .side-nav a.active { background: #eef4ff; color: var(--brand); }
.panel-content { min-width: 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem;
  margin-bottom: 1rem;
}
.card h2, .card h3 { margin-top: 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem;
}
.stat strong { display: block; font-size: 1.4rem; margin-top: .2rem; }
.stat span { color: var(--muted); font-size: .88rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { color: var(--muted); font-weight: 600; }

.form-grid { display: grid; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; outline: 0;
  background: #fff;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #93b7ff; box-shadow: 0 0 0 3px #e8f0ff; }
.checkbox { display: flex; align-items: center; gap: .5rem; font-weight: 500; }

.alert {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #047857; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.status {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.status.paid, .status.answered { background: #dcfce7; color: #166534; }
.status.pending, .status.open { background: #fef3c7; color: #92400e; }
.status.failed, .status.closed { background: #fee2e2; color: #991b1b; }

.auth-wrap {
  min-height: calc(100vh - 74px); display: grid; place-items: center; background: var(--bg); padding: 2rem 0;
}
.auth-card {
  width: min(440px, calc(100% - 2rem)); background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 .4rem; font-size: 1.5rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.2rem; }

.mobile-toggle { display: none; border: 0; background: var(--bg); width: 42px; height: 42px; border-radius: 10px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 74px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem; gap: .7rem;
  }
  .mobile-toggle { display: grid; place-items: center; }
  .search-box { display: none; }
  .promo-band, .panel, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero-trust-grid, .category-grid, .product-grid, .testimonials, .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(5,12,28,.78) 0%, rgba(5,12,28,.72) 55%, rgba(5,12,28,.88) 100%);
    padding: 3rem 0 2rem;
  }
  .hero-slide, .hero-slide-overlay { min-height: 560px; }
  .hero-slide-image { object-position: 70% center; }
}
@media (max-width: 640px) {
  .hero-trust-grid, .category-grid, .product-grid, .testimonials, .stats { grid-template-columns: 1fr; }
  .header-actions .auth-link { display: none; }
  .hero-slide, .hero-slide-overlay { min-height: 520px; }
  .cart-drawer { width: min(100vw, 100%); }
}

/* Cart drawer */
body.cart-drawer-open { overflow: hidden; }
.cart-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(8,18,43,.45); z-index: 90;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.cart-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100%;
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  box-shadow: -16px 0 40px rgba(15,35,80,.18);
  transform: translateX(105%); transition: transform .28s ease;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; padding: 1.15rem 1.2rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { margin: 0; font-size: 1.15rem; }
.cart-drawer-toast {
  margin: .35rem 0 0; color: var(--success); font-size: .88rem; font-weight: 700;
}
.cart-drawer-close {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.cart-drawer-body { flex: 1; overflow: auto; padding: 1rem 1.2rem; }
.cart-drawer-empty {
  text-align: center; color: var(--muted); padding: 3rem 1rem; font-weight: 500;
}
.cart-drawer-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; align-items: start;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.cart-drawer-item img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg);
}
.cart-drawer-item-info a { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .2rem; }
.cart-drawer-item-info a:hover { color: var(--brand); }
.cart-drawer-meta { color: var(--muted); font-size: .82rem; margin-bottom: .2rem; }
.cart-drawer-remove {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fee2e2;
  color: #991b1b; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.cart-drawer-foot {
  border-top: 1px solid var(--line); padding: 1rem 1.2rem 1.25rem; background: #fff;
}
.cart-drawer-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .9rem; font-size: 1.05rem;
}
.cart-drawer-total strong { color: var(--brand); font-size: 1.2rem; }

