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

:root {
  --white: #f5f5f0;
  --black: #111111;
  --anthracite: #2c2c2c;
  --gray-mid: #5a5a5a;
  --gray-light: #e8e8e4;
  --success: #4caf50;
  --danger: #c0392b;
  --radius: 4px;
  --transition: 0.25s ease;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 1px solid var(--anthracite);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 0.55rem;
  color: #999;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar__menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar__menu a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.navbar__menu a:hover { color: var(--white); }

.cart-icon { position: relative; display: flex; align-items: center; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ─── HERO SLIDER ────────────────────────────── */
.hero { width: 100%; overflow: hidden; }

.slider {
  position: relative;
  width: 100%;
  height: 580px;
  background: var(--anthracite);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--anthracite);
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.slide.active { opacity: 1; }

.slide__content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 580px;
}

.slide__tag {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 12px;
}

.slide__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.slide__subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 28px;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.slider__arrow:hover { background: rgba(255,255,255,0.2); }
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }

.slider__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active { background: var(--white); transform: scale(1.3); }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: var(--anthracite); }
.btn--secondary { background: transparent; border-color: var(--black); color: var(--black); }
.btn--secondary:hover { background: var(--black); color: var(--white); }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--danger:hover { background: #a93226; }
.btn--success { background: var(--success); color: #fff; border-color: var(--success); }
.btn--small { padding: 6px 14px; font-size: 0.8rem; }
.btn--full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── ALERTS ─────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert--error { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ─── FORMS ──────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--anthracite);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: #fff;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-group small { font-size: 0.75rem; color: var(--gray-mid); margin-top: 4px; display: block; }

.form-group--checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group--checkbox input { width: auto; }
.form-group--checkbox label { margin-bottom: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ─── AUTH ───────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
}

.auth-box--wide { max-width: 720px; }

.auth-box h1 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.auth-box__subtitle {
  color: var(--gray-mid);
  margin-bottom: 24px;
  margin-top: -16px;
}

.auth-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.85rem;
}

.auth-links a { color: var(--gray-mid); text-decoration: none; }
.auth-links a:hover { color: var(--black); }

.success-icon {
  width: 56px;
  height: 56px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ─── PAGE CONTENT ───────────────────────────── */
.page-content { padding: 40px 20px; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* ─── PRODUCTS ───────────────────────────────── */
.featured-section { padding: 60px 0; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.product-card a { text-decoration: none; color: inherit; }

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card__no-image {
  width: 100%;
  height: 200px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.85rem;
}

.product-card__info { padding: 16px; }
.product-card__info h3 { font-size: 0.95rem; margin-bottom: 8px; }
.product-card__price { font-size: 1.1rem; font-weight: 700; color: var(--black); }

.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 80px;
}
@media (max-width: 768px) {
  .filters {
    position: static;
  }
}

/* ─── PRODUCT DETAIL ─────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__main-image {
  transition: opacity 0.3s ease;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.product-detail__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-detail__thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.product-detail__thumbs img:hover { border-color: var(--black); }

.product-detail__brand { color: var(--gray-mid); margin-bottom: 16px; }

.product-detail__price { margin: 16px 0; }

.price--main { font-size: 1.8rem; font-weight: 800; }
.price--original { text-decoration: line-through; color: var(--gray-mid); font-size: 1.1rem; margin-right: 8px; }
.price--discounted { font-size: 1.8rem; font-weight: 800; color: var(--success); }

.discount-badge {
  display: inline-block;
  background: #e8f5e9;
  color: var(--success);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.product-detail__stock { color: var(--gray-mid); font-size: 0.85rem; margin-bottom: 12px; }
.product-detail__desc { margin-bottom: 24px; line-height: 1.7; }

.no-image--large {
  width: 100%;
  height: 400px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--gray-mid);
}

/* ─── CART ───────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
}

.cart-item__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item__info { flex: 1; }
.cart-item__info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item__price { font-weight: 700; }

.cart-item__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item__actions form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-item__actions input[type="number"] {
  width: 60px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.cart-summary h2 { margin-bottom: 20px; }

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-light);
}

.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart p { margin-bottom: 20px; color: var(--gray-mid); }

/* ─── ADMIN ──────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.dashboard-card h3 { font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 8px; }
.dashboard-card__number { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }

.admin-menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.875rem;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.admin-table th {
  background: var(--anthracite);
  color: #fff;
  font-weight: 600;
}

.admin-table tr:hover td { background: #fafafa; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge--onaylandi { background: #e8f5e9; color: var(--success); }
.status-badge--reddedildi { background: #fdecea; color: var(--danger); }
.status-badge--beklemede { background: #fff8e1; color: #f57f17; }

/* ─── ERROR PAGE ─────────────────────────────── */
.error-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-box {
  text-align: center;
  padding: 40px;
}

.error-box h1 { font-size: 2rem; margin-bottom: 16px; }
.error-box p { color: var(--gray-mid); margin-bottom: 24px; }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--anthracite);
  color: #bbb;
  padding-top: 56px;
  margin-top: 80px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
}

.footer__brand .logo-text { color: var(--white); }

.footer__address {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer__address a { color: #bbb; text-decoration: none; transition: color var(--transition); }
.footer__address a:hover { color: var(--white); }

.footer__links h3 {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__links ul { list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: #bbb; text-decoration: none; font-size: 0.85rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }

.ssl-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--success);
  margin-bottom: 20px;
}

.payment-icons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.payment-icons img {
  height: 28px;
  width: auto;
  background: #fff;
  border-radius: 3px;
  padding: 3px 6px;
}

.footer__bottom {
  text-align: center;
  padding: 18px;
  font-size: 0.78rem;
  color: #666;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .filters { position: static !important; }
}

@media (max-width: 640px) {
  .navbar__menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--black);
    padding: 16px 0;
    border-top: 1px solid var(--anthracite);
  }

  .navbar__menu.open { display: block; }

  .navbar__menu ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 0 20px;
  }

  .navbar__menu ul li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #222;
  }

  .navbar__toggle { display: flex; }
  .slider { height: 420px; }
  .slide__content { padding: 0 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .auth-box { padding: 24px; }
}
/* Logo düzeltme */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__logo img {
  height: 45px;
  width: auto;
}
.logo-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
}

.navbar__logo {
  flex-direction: row !important;
  align-items: center !important;
}
.navbar__logo img {
  height: 40px !important;
  width: auto !important;
}

.navbar__logo {
  flex-direction: column !important;
  align-items: flex-start !important;
}
.logo-sub {
  margin-top: -4px !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
}

.navbar__logo {
  flex-direction: row !important;
  align-items: center !important;
}
.navbar__logo img {
  height: 40px !important;
  width: auto !important;
}

.navbar__logo {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}
.navbar__logo img {
  height: 38px !important;
}
.navbar__logo .logo-sub {
  font-size: 9px !important;
  letter-spacing: 3px !important;
  margin-top: -2px !important;
  color: #fff !important;
}

.navbar__logo {
  flex-direction: row !important;
  align-items: center !important;
}
.navbar__logo img {
  height: 40px !important;
  width: auto !important;
}

.navbar__logo {
  flex-direction: row !important;
  align-items: center !important;
}
.navbar__logo img {
  height: 40px !important;
  width: auto !important;
}

.navbar__logo {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}
.navbar__logo .logo-sub {
  font-size: 11px !important;
  letter-spacing: 2px !important;
  color: #fff !important;
  margin-top: 0 !important;
}

/* Yasal Sayfalar */
.legal-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}
.legal-content h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  border-bottom: 3px solid #e94560;
  padding-bottom: 16px;
}
.legal-content .last-update {
  color: #888;
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #1a1a2e;
  padding-left: 12px;
  border-left: 4px solid #e94560;
}
.legal-content p {
  line-height: 1.9;
  color: #444;
  margin-bottom: 16px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: #ccc;
  flex: 1;
}
.cookie-banner a {
  color: #e94560;
  text-decoration: underline;
}
.cookie-banner__buttons {
  display: flex;
  gap: 10px;
}
.cookie-accept {
  background: #e94560;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.cookie-reject {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* Sayfa Geçiş Animasyonu */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.page-loader__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: loaderPulse 1s ease-in-out infinite;
}
.page-loader__logo img {
  height: 60px;
  width: auto;
}
.page-loader__logo span {
  font-size: 11px;
  letter-spacing: 3px;
  color: #8ab4d4;
  text-transform: uppercase;
}
.page-loader__bar {
  width: 200px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}
.page-loader__bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: #e94560;
  animation: loaderBar 1s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#featuredGrid {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

}
