/* ============================================================
   THUNDERS CAMP — Design System / Global Styles
   Outdoor Premium E-Commerce
   ============================================================ */

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

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Brand Colors — Thunders Camp Logo Uyumlu */
  --clr-primary:       #2d6a1f;   /* Logo kalkan yeşili */
  --clr-primary-light: #3d8a2a;   /* Açık yeşil */
  --clr-primary-dark:  #1d4a13;   /* Koyu yeşil */
  --clr-accent:        #a05010;   /* Kahverengi — kontrast artırıldı */
  --clr-accent-light:  #c86820;   /* Açık kahverengi */
  --clr-accent-dark:   #6a3008;   /* Koyu kahverengi */
  --clr-accent-gold:   #e8a020;   /* Altın vurgu */

  /* Neutrals */
  --clr-bg:            #f8f5ef;
  --clr-bg-alt:        #f0ebe0;
  --clr-surface:       #ffffff;
  --clr-border:        #e2d9c8;
  --clr-text:          #1c1c1c;
  --clr-text-muted:    #6b6560;
  --clr-text-light:    #9e9890;

  /* Semantic */
  --clr-success:       #2d7a4f;
  --clr-warning:       #c97b00;
  --clr-danger:        #c0392b;
  --clr-info:          #1a6a9a;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 16px 60px rgba(0,0,0,.18);
  --shadow-accent: 0 8px 30px rgba(232,160,32,.3);
  --shadow-primary: 0 8px 30px rgba(26,58,42,.3);

  /* Transitions */
  --tr-fast:   150ms ease;
  --tr-base:   250ms ease;
  --tr-slow:   400ms ease;
  --tr-spring: 350ms cubic-bezier(.34,1.56,.64,1);

  /* Layout */
  --container-max: 1380px;
  --header-h:      72px;
  --sidebar-w:     280px;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ─── DARK MODE ──────────────────────────────────────────── */
[data-theme="dark"] {
  --clr-bg:            #0d1510;
  --clr-bg-alt:        #151f18;
  --clr-surface:       #1b2820;
  --clr-border:        #2a3d30;
  --clr-text:          #edeae2;
  --clr-text-muted:    #8aaa94;
  --clr-text-light:    #526b5c;
  --clr-primary:       #4a9e35;   /* Açık yeşil — dark'ta okunabilir */
  --clr-primary-light: #5cc040;
  --clr-primary-dark:  #2d6a1f;
  --clr-accent:        #c47a2a;   /* Dark'ta görünür amber */
  --clr-accent-light:  #e8a020;
  --clr-accent-dark:   #a05e15;
  --clr-accent-gold:   #f0b030;
  --clr-success:       #3da868;
  --clr-warning:       #d99b1a;
  --clr-danger:        #e05240;
  --clr-info:          #2a8fc7;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.6);
  --shadow-primary: 0 8px 30px rgba(74,158,53,.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  transition: background-color var(--tr-base), color var(--tr-base);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

.text-muted   { color: var(--clr-text-muted); }
.text-accent  { color: var(--clr-accent); }
.text-primary { color: var(--clr-primary); }
.text-success { color: var(--clr-success); }
.text-danger  { color: var(--clr-danger); }
.text-warning { color: var(--clr-warning); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.125rem; }
.text-xl      { font-size: 1.25rem; }
.text-center  { text-align: center; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-heading { font-family: var(--font-heading); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.section {
  padding: var(--sp-4xl) 0;
}

.section-sm { padding: var(--sp-2xl) 0; }

.grid {
  display: grid;
  gap: var(--sp-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-sm      { gap: var(--sp-sm); }
.gap-md      { gap: var(--sp-md); }
.gap-lg      { gap: var(--sp-lg); }
.items-center{ align-items: center; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr-spring);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--tr-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--clr-primary-light);
  box-shadow: 0 12px 40px rgba(26,58,42,.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--clr-border);
  color: var(--clr-text);
}
.btn-ghost:hover {
  background: var(--clr-bg-alt);
  border-color: var(--clr-text-muted);
}

.btn-danger {
  background: var(--clr-danger);
  color: #fff;
}
.btn-danger:hover { background: #a93226; }

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ─── FORM ELEMENTS ──────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-lg);
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--clr-text);
}
.form-label.required::after {
  content: ' *';
  color: var(--clr-danger);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: 0.9375rem;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26,58,42,.12);
}
.form-control::placeholder { color: var(--clr-text-light); }
.form-control.error { border-color: var(--clr-danger); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6560' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--clr-primary);
  cursor: pointer;
  margin-top: 2px;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--clr-danger);
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--tr-base), transform var(--tr-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-body { padding: var(--sp-xl); }
.card-body-sm { padding: var(--sp-lg); }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-primary { background: rgba(26,58,42,.12); color: var(--clr-primary); }
.badge-accent  { background: rgba(232,160,32,.15); color: var(--clr-accent-dark); }
.badge-success { background: rgba(45,122,79,.12); color: var(--clr-success); }
.badge-warning { background: rgba(201,123,0,.12); color: var(--clr-warning); }
.badge-danger  { background: rgba(192,57,43,.12); color: var(--clr-danger); }
.badge-solid-accent  { background: var(--clr-accent); color: #fff; }
.badge-solid-primary { background: var(--clr-primary); color: #fff; }
.badge-solid-danger  { background: var(--clr-danger); color: #fff; }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  border-left: 4px solid;
}
.alert-success { background: rgba(45,122,79,.1); border-color: var(--clr-success); color: var(--clr-success); }
.alert-danger  { background: rgba(192,57,43,.1); border-color: var(--clr-danger); color: var(--clr-danger); }
.alert-warning { background: rgba(201,123,0,.1); border-color: var(--clr-warning); color: var(--clr-warning); }
.alert-info    { background: rgba(26,106,154,.1); border-color: var(--clr-info); color: var(--clr-info); }

/* ─── PRODUCT CARD ───────────────────────────────────────── */
.product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: all var(--tr-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}
.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badges {
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.product-card__actions {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--tr-base);
}
.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card__action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-fast);
  color: var(--clr-text-muted);
  font-size: 1rem;
}
.product-card__action-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: scale(1.1);
}
.product-card__action-btn.active { color: var(--clr-danger); }

.product-card__body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent-dark);
  margin-bottom: var(--sp-xs);
}
.product-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.35;
  margin-bottom: var(--sp-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-top: auto;
}
.product-card__price {
  display: flex;
  flex-direction: column;
}
.product-card__price-sale {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--clr-primary);
}
.product-card__price-original {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.product-card__stock {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.stock-in    { background: rgba(45,122,79,.1); color: var(--clr-success); }
.stock-low   { background: rgba(201,123,0,.1); color: var(--clr-warning); }
.stock-out   { background: rgba(192,57,43,.1); color: var(--clr-danger); }

.product-card__add-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(248,245,239,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--tr-base), box-shadow var(--tr-base);
  height: var(--header-h);
}
[data-theme="dark"] .site-header {
  background: rgba(17,26,20,0.92);
  border-bottom-color: var(--clr-border);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--sp-xl);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
}
/* Header logo: light modda orijinal renkler, dark modda parlaklık artır */
.header-logo-img {
  filter: none;
  transition: filter var(--tr-base);
}
[data-theme="dark"] .header-logo-img {
  filter: brightness(2) saturate(0.8);
}
.header-logo__mark {
  width: 42px;
  height: 42px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform var(--tr-spring);
}
.header-logo:hover .header-logo__mark { transform: rotate(-5deg) scale(1.05); }
.header-logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--clr-text);
  line-height: 1;
}
.header-logo__tagline {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}
/* Footer logo: koyu zemin üzerinde beyaz gösterim */
.site-footer .footer-brand__logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.header-nav__link {
  padding: 0.5rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  border-radius: var(--radius-md);
  transition: all var(--tr-fast);
  position: relative;
}
.header-nav__link:hover,
.header-nav__link.active {
  color: var(--clr-primary);
  background: rgba(26,58,42,.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.header-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  transition: all var(--tr-fast);
}
.header-icon-btn:hover {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}
.header-icon-btn .badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle {
  background: var(--clr-bg-alt);
  border: 1.5px solid var(--clr-border);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
}
.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--tr-base);
  display: block;
}

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-2xl);
  gap: var(--sp-lg);
}
.section-header__left { min-width: 0; }
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent-dark);
  margin-bottom: var(--sp-sm);
}
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--clr-text);
  margin: 0;
}
.section-title span { color: var(--clr-primary); }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  padding: var(--sp-md) 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--clr-text); font-weight: 500; }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-2xl);
  flex-wrap: wrap;
}
.pagination__btn {
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pagination__btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.pagination__btn.active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── TOAST NOTIFICATIONS ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--clr-primary);
  min-width: 280px;
  max-width: 400px;
  pointer-events: all;
  animation: toastIn 0.4s var(--tr-spring);
  font-size: 0.9375rem;
  font-weight: 500;
}
.toast.success { border-color: var(--clr-success); }
.toast.error   { border-color: var(--clr-danger); }
.toast.warning { border-color: var(--clr-warning); }
.toast.out     { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn  { from { opacity:0; transform: translateX(100px); } to { opacity:1; transform: translateX(0); } }
@keyframes toastOut { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(100px); } }

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-lg) var(--sp-xl);
  box-shadow: 0 -4px 30px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--clr-text-muted); }
.cookie-banner a { color: var(--clr-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--sp-4xl) 0 0;
  margin-top: var(--sp-4xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-3xl);
  padding-bottom: var(--sp-3xl);
}
.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}
.footer-brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.footer-brand__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  opacity: 0.7;
}
.footer-socials {
  display: flex;
  gap: var(--sp-sm);
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--tr-fast);
}
.footer-social-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-widget__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-lg);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--tr-fast);
}
.footer-links a:hover { color: var(--clr-accent-light); }

.footer-contact-item {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-md);
}
.footer-contact-item .icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; color: var(--clr-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--tr-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ─── HERO SLIDER ────────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Ken Burns kaldırıldı — fotoğraf sabit ve tam kaplıyor */
  transform: scale(1);
  will-change: auto;
}
/* Dark mod hero: overlay biraz daha koyu */
[data-theme="dark"] .hero-slide__overlay {
  background: linear-gradient(105deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 65%, transparent 100%);
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,14,.75) 0%, rgba(10,22,14,.3) 60%, transparent 100%);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: #fff;
  padding: 0 var(--sp-xl);
  animation: heroContentIn 0.9s 0.2s both;
}
@keyframes heroContentIn {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent-light);
  background: rgba(232,160,32,.2);
  border: 1px solid rgba(232,160,32,.4);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-lg);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--sp-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: var(--sp-2xl);
  line-height: 1.6;
}
.hero-btns { display: flex; gap: var(--sp-md); flex-wrap: wrap; }

.hero-controls {
  position: absolute;
  bottom: var(--sp-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--sp-sm);
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--tr-base);
}
.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--clr-accent);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}
.hero-arrow {
  position: absolute;
  top: -22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--tr-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.hero-arrow:hover { background: rgba(255,255,255,.25); }
.hero-arrow-prev { left: var(--sp-xl); }
.hero-arrow-next { right: var(--sp-xl); }

/* ─── CATEGORY CARDS ─────────────────────────────────────── */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--clr-bg-alt);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}
.category-card:hover img { transform: scale(1.08); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,14,.85) 0%, rgba(10,22,14,.2) 60%, transparent 100%);
  transition: background var(--tr-base);
}
.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(10,22,14,.9) 0%, rgba(10,22,14,.4) 60%, transparent 100%);
}
.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-xl);
  color: #fff;
  transform: translateY(8px);
  transition: transform var(--tr-base);
}
.category-card:hover .category-card__content { transform: translateY(0); }
.category-card__icon { font-size: 1.75rem; margin-bottom: var(--sp-sm); }
.category-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: var(--sp-xs);
}
.category-card__count {
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* ─── BRAND STRIP ──────────────────────────────────── */
.brand-strip {
  padding: var(--sp-xl) 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
  position: relative;
}
.brand-strip::before,
.brand-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.brand-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-surface), transparent);
}
.brand-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-surface), transparent);
}
.brand-strip-scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--sp-sm) var(--sp-xl);
  justify-content: center;
  flex-wrap: wrap;
}
.brand-strip-scroll::-webkit-scrollbar { display: none; }
.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--clr-text-muted);
  white-space: nowrap;
  transition: all var(--tr-base);
  flex-shrink: 0;
  padding: var(--sp-sm) var(--sp-lg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: var(--clr-bg);
  text-decoration: none;
}
.brand-chip:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  background: rgba(26,58,42,.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.brand-chip img { height: 28px; width: auto; object-fit: contain; }

/* ─── CHECKOUT STEPS ───────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto var(--sp-2xl);
  max-width: 480px;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-direction: column;
}
.checkout-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: all var(--tr-base);
  flex-shrink: 0;
}
.step-item.active .step-num {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.step-item.done .step-num {
  background: var(--clr-success);
  border-color: var(--clr-success);
  color: #fff;
}
.step-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  white-space: nowrap;
}
.step-item.active .step-label { color: var(--clr-primary); }

/* ─── ORDER SUMMARY BOX ──────────────────────────────────── */
.order-summary {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-lg));
}
.order-summary__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--clr-border);
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-sm) 0;
  font-size: 0.9375rem;
}
.order-line.total {
  border-top: 1px solid var(--clr-border);
  margin-top: var(--sp-sm);
  padding-top: var(--sp-md);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}
.order-line.total .val { color: var(--clr-primary); }
.order-line .discount { color: var(--clr-success); }

/* ─── MAINTENANCE / 404 ──────────────────────────────────── */
.full-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--clr-bg);
}
.full-page-inner { max-width: 540px; padding: var(--sp-2xl); }
.full-page__emoji { font-size: 5rem; margin-bottom: var(--sp-xl); display: block; }
.full-page__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: var(--sp-md); }
.full-page__text  { color: var(--clr-text-muted); margin-bottom: var(--sp-2xl); font-size: 1.0625rem; }

.countdown { display: flex; gap: var(--sp-lg); justify-content: center; margin: var(--sp-xl) 0; }
.countdown-block { text-align: center; }
.countdown-block .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--clr-primary);
  display: block;
}
.countdown-block .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-text-muted); }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: none;
}
.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--tr-base);
}
.mobile-nav__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background: var(--clr-surface);
  transform: translateX(-100%);
  transition: transform var(--tr-slow);
  overflow-y: auto;
  padding: var(--sp-xl);
}
.mobile-nav.open {
  pointer-events: all;
}
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav.open .mobile-nav__panel   { transform: translateX(0); }
.mobile-nav__links { display: flex; flex-direction: column; gap: var(--sp-sm); margin-top: var(--sp-xl); }
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-text);
  transition: all var(--tr-fast);
}
.mobile-nav__link:hover { background: var(--clr-bg-alt); color: var(--clr-primary); }

/* ─── UTILITIES ──────────────────────────────────────────── */
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.rounded-full { border-radius: var(--radius-full); }
.w-full  { width: 100%; }
.relative{ position: relative; }
.overflow-hidden { overflow: hidden; }
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

/* ─── SKELETON LOADING ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--clr-bg-alt) 25%, var(--clr-border) 50%, var(--clr-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--clr-text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* 1200px — Büyük Tablet */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); }
  .hero-slide-title { font-size: clamp(1.8rem, 4vw, 3.5rem); }
}

/* 1024px — Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-lg); }
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { min-height: 400px; }
  .hero-slide-title { font-size: clamp(1.5rem, 3.5vw, 2.8rem); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-table thead th:nth-child(3),
  .cart-table tbody td:nth-child(3) { display: none; }
  /* Admin sidebar */
  .admin-sidebar { width: 220px; }
}

/* 768px — Mobil (Büyük) */
@media (max-width: 768px) {
  :root { --header-h: 60px; --sp-xl: 1.25rem; --sp-2xl: 1.75rem; }
  .container { padding: 0 var(--sp-md); }

  /* Grid */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero-slider { max-height: 480px; min-height: 320px; }
  .hero-slide-title { font-size: clamp(1.25rem, 5vw, 2rem); }
  .hero-slide-subtitle { font-size: .85rem; }
  .hero-btns { flex-direction: column; gap: var(--sp-sm); }
  .hero-btns .btn { width: 100%; text-align: center; justify-content: center; }

  /* Sections */
  .section { padding: var(--sp-2xl) 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: var(--sp-md); }
  .section-title { font-size: 1.4rem; }

  /* Product cards */
  .product-card__img { height: 180px; }
  .product-card__body { padding: var(--sp-md); }

  /* Sepet */
  .cart-table thead th:nth-child(2),
  .cart-table tbody td:nth-child(2) { display: none; }
  .cart-totals { position: static; }

  /* Ödeme */
  .checkout-steps { overflow-x: auto; padding-bottom: var(--sp-sm); white-space: nowrap; }
  .checkout-steps .step-label { display: none; }
  .payment-cards { flex-wrap: wrap; gap: var(--sp-sm); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--sp-sm); }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* Hesabım */
  .account-layout { flex-direction: column; }
  .account-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--clr-border); }
  .account-nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-xs); padding: var(--sp-md); }
  .account-nav-link { padding: var(--sp-xs) var(--sp-md) !important; border-radius: var(--radius-full); font-size: .85rem; }

  /* Admin */
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; max-height: 200px; overflow-y: auto; }
  .admin-main { margin-left: 0 !important; }
  .admin-table { font-size: .82rem; }
  .admin-table thead th:nth-child(3),
  .admin-table tbody td:nth-child(3) { display: none; }
  .admin-card__header { flex-wrap: wrap; gap: var(--sp-sm); }
  .stat-card { padding: var(--sp-lg); }
  .stat-card__value { font-size: 1.5rem; }

  /* Toast */
  .toast-container { left: var(--sp-md); right: var(--sp-md); bottom: var(--sp-md); }
  .toast { min-width: 0; max-width: 100%; }

  /* Modal */
  .modal-box, #regModal > div { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

  /* Tables - horizontal scroll */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
}

/* 480px — Mobil (Küçük) */
@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .container { padding: 0 var(--sp-sm); }

  /* Grid */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Hero */
  .hero-slider { min-height: 260px; max-height: 340px; }
  .hero-slide-content { padding: var(--sp-xl) var(--sp-md); }
  .hero-slide-badge { font-size: .7rem; }
  .hero-slide-title { font-size: 1.15rem; line-height: 1.35; }

  /* Auth */
  .auth-card { padding: var(--sp-xl) var(--sp-lg); margin: var(--sp-lg); }

  /* Product */
  .product-card__img { height: 160px; }

  /* Buttons */
  .btn-lg { padding: 0.75rem 1.25rem; font-size: .9rem; }
  .btn-full-mobile { display: block; width: 100%; text-align: center; }

  /* Ticket detail */
  #messagesArea, #userMessagesArea { max-height: 350px; }

  /* Admin tablolar — gizle fazla sütunları */
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5) { display: none; }

  /* Fiyat özeti */
  .order-summary td { font-size: .85rem; }

  /* Form */
  .form-row { flex-direction: column; }
  .form-col { width: 100% !important; }
}

/* 360px — Çok Küçük Mobil */
@media (max-width: 360px) {
  .hero-slide-title { font-size: 1rem; }
  .product-card__price { font-size: .9rem; }
  .header-actions { gap: var(--sp-xs); }
  .header-action-btn { width: 36px; height: 36px; font-size: .9rem; }
  .cart-badge { width: 16px; height: 16px; font-size: .6rem; }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-slider { min-height: 380px; max-height: 520px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px !important; }
}

/* Touch cihazlar — hover efektlerini kaldır */
@media (hover: none) {
  .product-card:hover { transform: none; }
  .btn:hover { transform: none; }
  .category-card:hover { transform: none; }
}

/* Yüksek DPI / Retina ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-slide::before { background-size: cover; }
}

/* Print — Genel */
@media print {
  .header, .footer, .mobile-nav, .cookie-banner,
  .btn:not(.btn-print), .cart-badge, #announcements,
  .product-card__actions, .wishlist-btn { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  a { text-decoration: none !important; color: inherit !important; }
}

/* =============================================================
   ÜRÜN DETAY SAYFASI — TAM DÜZELTME
   ============================================================= */

/* Galeri + Bilgi grid */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

/* Ana resim alanı */
.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-lg));
}
.product-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-gallery__main:hover img { transform: scale(1.04); }

/* Küçük resimler */
.product-gallery__thumbs {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--clr-border);
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--clr-primary);
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ürün bilgi paneli */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-info__brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent-dark);
  margin-bottom: var(--sp-xs);
}
.product-info__name {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--clr-text);
  margin-bottom: var(--sp-lg);
}

/* Fiyat — hizalama tam düzeltme */
.product-info__price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  padding: var(--sp-lg);
  background: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}
.product-info__price-current {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.product-info__price-old {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

/* Kısa açıklama */
.product-info__short-desc {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
}

/* Adet kontrolü */
.product-info__qty-row {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
}
.product-info__actions {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

/* Özellikler tablosu */
.product-info__attrs {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.attr-row {
  display: flex;
  padding: var(--sp-sm) var(--sp-lg);
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.875rem;
  gap: var(--sp-lg);
}
.attr-row:last-child { border-bottom: none; }
.attr-row:nth-child(odd) { background: var(--clr-bg-alt); }
.attr-name {
  font-weight: 600;
  color: var(--clr-text);
  min-width: 140px;
  flex-shrink: 0;
}

/* Tam açıklama bölümü */
.product-description {
  margin-top: var(--sp-4xl);
  padding: var(--sp-3xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
}
.product-description h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: var(--sp-xl);
  color: var(--clr-text);
  padding-bottom: var(--sp-md);
  border-bottom: 2px solid var(--clr-primary);
  display: inline-block;
}
.product-description-content {
  color: var(--clr-text-muted);
  line-height: 1.85;
  font-size: 0.9375rem;
}
.product-description-content p { margin-bottom: var(--sp-md); }
.product-description-content ul,
.product-description-content ol {
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.product-description-content li { margin-bottom: var(--sp-xs); }
.product-description-content h3,
.product-description-content h4 {
  font-weight: 700;
  color: var(--clr-text);
  margin: var(--sp-lg) 0 var(--sp-sm);
}
.product-description-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--sp-md) 0;
}
.product-description-content strong { color: var(--clr-text); }

/* =============================================================
   STOK BADGE — GÖRÜNÜRLÜK DÜZELTMESİ
   ============================================================= */

/* "Son X Adet!" badge — çok belirgin yap */
.badge-stock-low {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.9rem !important;
  background: linear-gradient(135deg, #e67e22, #d35400) !important;
  color: #fff !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  border-radius: var(--radius-full) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(230,126,34,.5);
  animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 2px 8px rgba(230,126,34,.4); }
  50% { box-shadow: 0 4px 16px rgba(230,126,34,.7); }
}

/* Ürün listesindeki stock-low badge */
.stock-low {
  background: rgba(230,126,34,.15) !important;
  color: #d35400 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(230,126,34,.3) !important;
}

/* =============================================================
   LOGO — BÜYÜTME VE OPTİMİZASYON
   ============================================================= */

/* Header logo alanı için minimum genişlik garantisi */
.header-logo {
  flex-shrink: 0;
  min-width: 160px;
}

/* Logo resmi — daha büyük ve net */
.header-logo-img {
  height: clamp(52px, 7vw, 90px) !important;
  width: auto !important;
  max-width: 220px !important;
  min-width: 140px !important;
  object-fit: contain !important;
  display: block !important;
  filter: none;
  transition: filter var(--tr-base), transform var(--tr-fast);
}
.header-logo:hover .header-logo-img {
  transform: scale(1.03);
}
/* Dark modda logoyu aydınlat */
[data-theme="dark"] .header-logo-img {
  filter: brightness(1.8) contrast(1.1) saturate(0.9);
}

/* Footer logosu — koyu zemin üzerinde beyaz */
.site-footer .footer-brand__logo img {
  height: 60px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* =============================================================
   GİRİŞ / ÜYE OL SAYFASI — LOGO
   ============================================================= */

.auth-card__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-xl);
}
.auth-card__logo-img {
  height: 72px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: var(--sp-sm);
}

/* =============================================================
   RESPONSIVE — ÜRÜN DETAY
   ============================================================= */
@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }
  .product-gallery {
    position: static;
  }
  .product-info__price-current { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .product-info__actions { flex-direction: column; }
  .product-info__price-current { font-size: 1.4rem; }
  .product-gallery__thumbs { gap: var(--sp-xs); }
  .product-gallery__thumb { width: 56px; height: 56px; }
}


/* =============================================================
   AUTH SAYFASI LOGO — BUYUTME
   ============================================================= */
.auth-card__logo-img {
  height: 110px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
  margin-bottom: var(--sp-md) !important;
}

/* =============================================================
   FOOTER LOGO — BUYUTME
   ============================================================= */
.site-footer .footer-brand__logo img {
  height: 72px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* =============================================================
   URUNLER — FILTRE SIDEBAR STICKY (tam uzunluk, scroll)
   ============================================================= */
.products-sidebar {
  position: sticky !important;
  top: calc(var(--header-h) + var(--sp-lg)) !important;
  max-height: calc(100vh - var(--header-h) - 3rem) !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
}
.products-sidebar::-webkit-scrollbar { width: 4px; }
.products-sidebar::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 2px; }

/* =============================================================
   PEYRAVI ATTRIBUTION — FOOTER
   ============================================================= */
.peyravi-credit {
  text-align: center;
  padding: var(--sp-sm) 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0;
  letter-spacing: 0.03em;
}
.peyravi-credit a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--tr-fast);
}
.peyravi-credit a:hover { color: rgba(255,255,255,0.7); }

/* =============================================================
   SEPET BADGE — ANLIK GUNCELLEME (cart-count display fix)
   ============================================================= */
.header-icon-btn .badge-count.cart-count {
  display: flex !important;
}
.header-icon-btn .badge-count.cart-count[data-count="0"],
.header-icon-btn .badge-count.cart-count:empty {
  display: none !important;
}

