/* ==========================================================================
   yirtil.com — Kurumsal Açık Tema Tasarım Sistemi
   Lacivert + beyaz kurumsal kimlik, sektör vurgu renkleri (--sector-accent).
   Fontlar (Manrope + Inter) index.php / admin.php içindeki <link> ile yüklenir.

   İçindekiler
   1. Tasarım değişkenleri (tokens)
   2. Temel (reset, tipografi, yardımcılar)
   3. Yerleşim: .container, .section
   4. Header: .topbar, .site-header, .sector-nav, .mega-menu, .drawer
   5. Butonlar: .btn, .btn-primary, .btn-outline, .btn-ghost, .btn-secondary
   6. Kartlar: .card, .sector-card, .product-card, .grid-products
   7. Rozetler, sekmeler, breadcrumb, notice
   8. Hero, trust-strip, stats
   9. Filtreler, toolbar
   10. Formlar
   11. Modal, sepet çekmecesi, toast
   12. Ödeme / checkout
   13. Footer
   14. Admin paneli (mevcut admin.js sınıfları)
   15. Mevcut vitrin sınıfları (app.js — Task 6-9'da yeniden yapılanacak)
   16. Responsive (1280 / 1024 / 768 / 480)
   ========================================================================== */

/* ==========================================================================
   1. TASARIM DEĞİŞKENLERİ
   ========================================================================== */
:root {
  /* Spec §4 — birebir değerler */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F7FA;
  --brand-primary: #0F2A4A;
  --brand-primary-hover: #16395F;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border-subtle: #E5E7EB;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 74, .08);

  /* Sektör vurgusu — kapsayıcıda style="--sector-accent:#2E7D32" ile ezilir */
  --sector-accent: var(--brand-primary);
  --sector-gida: #2E7D32;
  --sector-tekstil: #3F51B5;
  --sector-kozmetik: #8E44AD;
  --sector-ev-yasam: #D2691E;
  --sector-elektronik: #0097A7;

  /* Türetilmiş değişkenler */
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --brand-tint: rgba(15, 42, 74, .06);
  --brand-tint-strong: rgba(15, 42, 74, .12);
  --text-muted: #8A94A3;
  --text-on-brand: #FFFFFF;
  --border-strong: #CBD5E1;
  --focus-ring: 0 0 0 3px rgba(15, 42, 74, .18);
  --shadow-md: 0 4px 14px rgba(15, 42, 74, .10);
  --shadow-lg: 0 18px 48px rgba(15, 42, 74, .16);

  --success: #15803D;
  --warning: #B45309;
  --danger: #DC2626;
  --info: #1D4ED8;
  --success-bg: #ECFDF3;
  --warning-bg: #FFF7E6;
  --danger-bg: #FEF2F2;
  --info-bg: #EFF6FF;

  /* Köşe yarıçapları (admin.js satır içi stilleri bunları kullanır) */
  --radius-sm: 6px;
  --radius-md: var(--radius);
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* Tipografi */
  --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-heading);
  --font-sans: var(--font-body);

  --container: 1280px;
  --gutter: 24px;
  --header-z: 90;
  --transition: all .2s ease;
}

/* ==========================================================================
   2. TEMEL
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-primary); }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-primary);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--sector-accent); }
.text-center { text-align: center; }

/* ==========================================================================
   3. YERLEŞİM
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 6px;
  max-width: 640px;
}

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sector-accent);
  margin-bottom: 6px;
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */

/* 4.1 Üst şerit */
.topbar {
  background: var(--brand-primary);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: rgba(255, 255, 255, .85);
  transition: var(--transition);
}

.topbar a:hover { color: #fff; }

/* 4.2 Ana header satırı */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .02em;
  color: var(--brand-primary);
}

.logo img {
  height: 40px;
  width: auto;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.header-search .form-control {
  padding-left: 42px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
}

.header-search svg,
.header-search .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.header-action {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--brand-primary);
  font-size: .75rem;
  font-weight: 500;
  transition: var(--transition);
}

.header-action svg {
  width: 22px;
  height: 22px;
}

.header-action:hover { background: var(--bg-secondary); }

.cart-count {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  flex-shrink: 0;
}

.menu-toggle svg { width: 22px; height: 22px; }

/* 4.3 Sektör menüsü + mega menü */
.sector-nav {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.sector-nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  list-style: none;
}

.sector-nav-item {
  position: static;
}

.sector-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-primary);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.sector-nav-link .sector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sector-accent);
}

.sector-nav-item:hover > .sector-nav-link,
.sector-nav-link.active {
  color: var(--brand-primary);
  border-bottom-color: var(--sector-accent);
}

.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 3px solid var(--sector-accent);
  box-shadow: var(--shadow-md);
  padding: 28px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 5;
}

.sector-nav-item:hover > .mega-menu,
.sector-nav-item:focus-within > .mega-menu,
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px 32px;
}

.mega-menu-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.mega-menu a {
  display: block;
  padding: 5px 0;
  font-size: .9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mega-menu a:hover { color: var(--sector-accent); }

/* 4.4 Mobil çekmece menü (.drawer) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  visibility: hidden;
  pointer-events: none;
}

.drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 74, .45);
  opacity: 0;
  transition: opacity .22s ease;
}

.drawer.open::before { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 88vw);
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s ease;
}

.drawer-right .drawer-panel {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.drawer.open .drawer-panel { transform: none; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h3 {
  font-size: 1.1rem;
  color: var(--brand-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.drawer-nav a,
.drawer-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.drawer-nav .sector-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sector-accent);
  flex-shrink: 0;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
}

.drawer-close:hover { background: var(--bg-secondary); color: var(--brand-primary); }

/* ==========================================================================
   5. BUTONLAR
   ========================================================================== */
.btn,
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.btn:disabled,
.btn-primary:disabled,
.btn-outline:disabled,
.btn-secondary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-on-brand);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline,
.btn-secondary {
  background: var(--bg-primary);
  border-color: var(--border-strong);
  color: var(--brand-primary);
}

.btn-outline:hover,
.btn-secondary:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
}

.btn-ghost:hover { background: var(--brand-tint); }

.btn-accent {
  background: var(--sector-accent);
  border-color: var(--sector-accent);
  color: #fff;
}

.btn-accent:hover { filter: brightness(.92); }

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   6. KARTLAR
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

/* 6.1 Sektör kartı */
.grid-sectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sector-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--sector-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.sector-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sector-card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  overflow: hidden;
}

.sector-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sector-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px;
}

.sector-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--sector-accent);
  background: color-mix(in srgb, var(--sector-accent) 12%, #fff);
}

.sector-card h3 { font-size: 1.1rem; }

.sector-card p {
  font-size: .88rem;
  color: var(--text-secondary);
}

.sector-card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: .88rem;
  color: var(--sector-accent);
}

.sector-card-link:hover { text-decoration: underline; }

/* 6.2 Ürün ızgarası ve ürün kartı */
.grid-products,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  min-width: 0;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  overflow: hidden;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .product-media img { transform: scale(1.04); }

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 14px 16px 16px;
}

.product-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-secondary);
}

.product-rating {
  color: var(--warning);
  font-weight: 600;
}

.product-title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
}

.product-title:hover { color: var(--brand-primary); text-decoration: underline; }

.product-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.old-price {
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--brand-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}

.add-cart-btn:hover { background: var(--brand-primary-hover); }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  color: var(--danger);
  border-color: var(--danger);
}

.quick-view-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  font-size: .74rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .quick-view-pill { opacity: 1; }

/* ==========================================================================
   7. ROZETLER, SEKMELER, BREADCRUMB, NOTICE
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.badge-brand {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.badge-sector {
  background: color-mix(in srgb, var(--sector-accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--sector-accent) 35%, #fff);
  color: var(--sector-accent);
}

.badge-new,
.badge-info {
  background: var(--info-bg);
  border-color: #BFDBFE;
  color: var(--info);
}

.badge-discount,
.badge-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.badge-success {
  background: var(--success-bg);
  border-color: #BBF7D0;
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  border-color: #FDE3B0;
  color: var(--warning);
}

/* Sekmeler */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  padding: 12px 18px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--brand-primary); }

.tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--sector-accent);
}

.tab-panel { padding: 20px 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: .84rem;
  color: var(--text-secondary);
  padding: 14px 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--brand-primary); text-decoration: underline; }

.breadcrumb [aria-current] {
  color: var(--text-primary);
  font-weight: 600;
}

/* Bilgi kutuları */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid #BFDBFE;
  border-left-width: 4px;
  background: var(--info-bg);
  color: var(--text-primary);
  font-size: .9rem;
}

.notice-warning {
  background: var(--warning-bg);
  border-color: #F5C26B;
}

.notice-success {
  background: var(--success-bg);
  border-color: #86EFAC;
}

.notice-danger {
  background: var(--danger-bg);
  border-color: #FCA5A5;
}

/* ==========================================================================
   8. HERO, GÜVEN ŞERİDİ, İSTATİSTİKLER
   ========================================================================== */
.hero {
  position: relative;
  background: var(--brand-primary);
  color: #fff;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 42, 74, .92) 0%, rgba(15, 42, 74, .65) 50%, rgba(15, 42, 74, .15) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 56px 0;
}

.hero h1,
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}

.hero p,
.hero-desc {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.hero-actions,
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--brand-primary);
}

.hero .btn-primary:hover { background: var(--bg-secondary); }

.hero .btn-outline,
.hero .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.hero .btn-outline:hover,
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}

.hero-dots button.active { background: #fff; width: 26px; border-radius: 5px; }

/* Güven şeridi */
.trust-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
}

.trust-strip .container,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .92rem;
  color: var(--brand-primary);
}

.trust-item span {
  font-size: .8rem;
  color: var(--text-secondary);
}

/* İstatistikler */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 22px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   9. FİLTRELER VE TOOLBAR
   ========================================================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.filters {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px;
}

.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }

.filter-title {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: .88rem;
  color: var(--text-primary);
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--sector-accent);
  width: 16px;
  height: 16px;
}

.filter-option.active {
  color: var(--sector-accent);
  font-weight: 600;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: .84rem;
  font-weight: 500;
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-pill.active {
  background: var(--sector-accent);
  border-color: var(--sector-accent);
  color: #fff;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-primary);
  font-size: .85rem;
  color: var(--text-primary);
  max-width: 100%;
}

/* ==========================================================================
   10. FORMLAR
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  min-width: 0;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label,
.form-label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-hint {
  font-size: .78rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--text-primary);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

.form-control:disabled {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.form-control.is-invalid { border-color: var(--danger); }

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  padding-right: 36px;
  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 d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-primary);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.qty-control button {
  width: 26px;
  height: 26px;
  font-weight: 700;
  color: var(--brand-primary);
  border-radius: 4px;
}

.qty-control button:hover { background: var(--bg-secondary); }

/* ==========================================================================
   11. MODAL, SEPET ÇEKMECESİ, TOAST
   ========================================================================== */
.modal,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 42, 74, .45);
  overflow-y: auto;
}

.modal.open,
.modal-backdrop.open { display: flex; }

.modal-dialog,
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalPop .2s ease-out;
}

.modal-dialog { max-width: 560px; padding: 28px; }

.modal-dialog h3 { margin-bottom: 10px; padding-right: 40px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* Ürün detay (mevcut modal düzeni) */
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 32px;
}

.detail-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sepet çekmecesi (mevcut index.php işaretlemesi) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  justify-content: flex-end;
  background: rgba(15, 42, 74, .45);
}

.drawer-backdrop.open { display: flex; }

.cart-drawer {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.cart-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: .78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Toast */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 40px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: .9rem;
  font-weight: 500;
  transition: opacity .25s ease;
  animation: slideIn .2s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   12. ÖDEME / CHECKOUT
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 28px;
  padding: 32px;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.payment-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: var(--radius);
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.payment-tab:hover { border-color: var(--border-strong); }

.payment-tab.active {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
  color: var(--brand-primary);
}

.credit-card-visual {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cc-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cc-chip {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E5E7EB, #9CA3AF);
}

.cc-number-display {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: .14em;
  color: #fff;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.cc-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .76rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.cc-bottom-row strong {
  display: block;
  margin-top: 2px;
  font-size: .9rem;
  color: #fff;
}

.bank-iban-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.bank-iban-card code {
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-primary);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 64px;
  padding: 56px 0 0;
  background: var(--brand-primary);
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 14px;
}

.site-footer p { color: rgba(255, 255, 255, .7); margin-bottom: 18px; }

.site-footer a:hover { color: #fff; }

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .02em;
  color: #fff;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-grid > * { min-width: 0; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a,
.footer-links button,
.footer-links span {
  color: rgba(255, 255, 255, .78);
  text-align: left;
  overflow-wrap: anywhere;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-links button:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  background: rgba(0, 0, 0, .18);
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  padding: 16px 0;
  font-size: .8rem;
}

.footer-bottom a { color: rgba(255, 255, 255, .85); }
.footer-bottom a:hover { color: #fff; }

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .footer-copy {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.payment-logos,
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-logos span {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #0F2A4A;
  font-size: .72rem;
  font-weight: 700;
}

/* ==========================================================================
   14. ADMİN PANELİ (admin.js sınıfları — açık tema)
   ========================================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg-secondary);
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 30px;
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.admin-lock-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--brand-tint);
  border: 1px solid var(--border-subtle);
}

.admin-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 24px;
  background: var(--brand-primary);
  color: rgba(255, 255, 255, .9);
  font-size: .84rem;
}

.admin-session-bar a { color: #fff; }

.admin-wrapper {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 44px);
  background: var(--bg-secondary);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 12px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  font-size: .9rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.admin-nav-item:hover {
  background: var(--bg-secondary);
  color: var(--brand-primary);
}

.admin-nav-item.active {
  background: var(--brand-tint);
  border-left-color: var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 600;
}

.admin-main {
  min-width: 0;
  padding: 28px 32px;
  overflow-x: auto;
}

.admin-main h2,
.admin-main h3 { color: var(--brand-primary); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.kpi-label,
.kpi-card .kpi-label {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.kpi-value,
.kpi-card .kpi-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.admin-card {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.data-table tbody tr:hover { background: var(--bg-secondary); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-processing { background: var(--info-bg); color: var(--info); }
.status-shipped { background: #F3E8FF; color: #7E22CE; }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.gateway-card {
  position: relative;
  padding: 16px;
  text-align: left;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.gateway-card:hover { border-color: var(--border-strong); }

.gateway-card.active {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
}

.gateway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

/* Google SERP önizlemesi */
.serp-preview {
  max-width: 640px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.serp-url { font-size: .8rem; color: #4D5156; margin-bottom: 4px; overflow-wrap: anywhere; }
.serp-title { font-size: 1.15rem; color: #1A0DAB; margin-bottom: 4px; }
.serp-desc { font-size: .86rem; color: #4D5156; line-height: 1.45; }

/* WYSIWYG sözleşme editörü */
.wysiwyg-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.wysiwyg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.wysiwyg-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.wysiwyg-editor {
  min-height: 280px;
  max-height: 550px;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: .95rem;
  outline: none;
}

.wysiwyg-editor:focus {
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

.wysiwyg-editor h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.wysiwyg-editor h4 { font-size: 1.05rem; margin: 14px 0 6px; }
.wysiwyg-editor p { margin-bottom: 12px; }
.wysiwyg-editor ul,
.wysiwyg-editor ol { padding-left: 24px; margin-bottom: 14px; }
.wysiwyg-editor li { margin-bottom: 6px; }
.wysiwyg-editor a { color: var(--info); text-decoration: underline; }

/* ==========================================================================
   15. MEVCUT VİTRİN SINIFLARI (app.js)
   Task 6-9'da yeni yapıya geçilene kadar mevcut vitrin okunur kalsın diye.
   ========================================================================== */
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  background: var(--brand-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  overflow: hidden;
}

.announcement-marquee {
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  flex-shrink: 0;
}

.announcement-actions button {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 600;
}

.announcement-actions button:hover { background: rgba(255, 255, 255, .26); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-width: 0;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--brand-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-btn:hover { background: var(--bg-secondary); color: var(--brand-primary); }

.nav-btn.active {
  background: var(--brand-tint);
  color: var(--brand-primary);
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-box {
  position: relative;
  width: 220px;
  max-width: 100%;
}

.search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  color: var(--text-primary);
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--focus-ring);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
}

.icon-btn:hover { border-color: var(--brand-primary); }

.icon-btn.icon-btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.icon-btn.icon-btn-primary:hover { background: var(--brand-primary-hover); }

.icon-btn.admin-switch-btn {
  background: var(--brand-tint);
  border-color: var(--brand-primary);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

/* Eski hero */
.hero-section {
  max-width: var(--container);
  margin: 24px auto;
  padding: 0 var(--gutter);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 20px;
  min-height: 460px;
}

.hero-main-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-primary);
  color: #fff;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 42, 74, .92) 0%, rgba(15, 42, 74, .35) 100%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-main-card .hero-content { padding: 0; }

.hero-main-card .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--brand-primary);
}

.hero-main-card .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-side-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-primary);
  cursor: pointer;
}

.hero-side-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 42, 74, .9) 0%, rgba(15, 42, 74, .2) 100%);
}

.hero-side-info { position: relative; z-index: 1; }
.hero-side-info h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.hero-side-info p { color: rgba(255, 255, 255, .85); font-size: .85rem; }

/* Eski özellik şeridi */
.features-strip {
  max-width: var(--container);
  margin: 28px auto;
  padding: 0 var(--gutter);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  font-size: 1.2rem;
}

.feature-text h4 { font-size: .9rem; margin-bottom: 2px; }
.feature-text p { font-size: .78rem; color: var(--text-secondary); }

/* Eski bölüm başlıkları */
.section-container {
  max-width: var(--container);
  margin: 48px auto;
  padding: 0 var(--gutter);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title-wrap h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* Eski kategori kartları */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 220px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--brand-primary);
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover,
.category-card.active {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-card.active { outline: 3px solid var(--sector-accent); outline-offset: 2px; }

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 42, 74, .9) 0%, rgba(15, 42, 74, .15) 70%);
}

.category-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-card-content h3 { color: #fff; font-size: 1.15rem; }

.category-card-content span {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .85);
}

.category-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
}

/* Eski beden filtreleri / seçicileri */
.size-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.size-filter-btn,
.size-chip {
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.size-filter-btn:hover,
.size-chip:hover { border-color: var(--brand-primary); }

.size-filter-btn.active,
.size-chip.selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-size-selector { margin-bottom: 8px; }

.card-size-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: .75rem;
  color: var(--text-secondary);
}

.card-size-label button {
  color: var(--info);
  font-size: .73rem;
  text-decoration: underline;
}

/* Eski lookbook */
.lookbook-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.lookbook-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lookbook-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WhatsApp yüzen buton */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
  transition: var(--transition);
}

.whatsapp-float:hover { transform: translateY(-2px); }

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  padding: 7px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   15b. VİTRİN KABUĞU (Görev 6): mega menü ekleri, çekmece, hero oklar,
        kurumsal blok, bülten, yer tutucu / 404 sayfaları
   ========================================================================== */
/* Bağlantıdan sonra fare menü üzerindeyken mega menü kapanır; fare ayrılınca normale döner */
.sector-nav.suppress .mega-menu {
  opacity: 0;
  visibility: hidden;
}

.mega-menu-desc {
  font-size: .88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.mega-menu a.mega-menu-all {
  font-weight: 600;
  color: var(--sector-accent);
}

.mega-menu-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
}

.mega-menu-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Çekmece açıkken yüzen WhatsApp düğmesi alt butonun üstünü kapatmasın */
body.nav-open .whatsapp-float { display: none; }

.drawer-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.drawer-nav .sector-dot {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.drawer-nav .drawer-back {
  justify-content: flex-start;
  color: var(--brand-primary);
  font-weight: 600;
}

.hero .eyebrow { color: rgba(255, 255, 255, .8); }

.hero-arrow {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition);
}

.hero-arrow:hover { background: rgba(255, 255, 255, .28); }
.hero-prev { right: 64px; }
.hero-next { right: 16px; }

a.product-media { display: block; }
.product-title a { color: inherit; }

.rich-text { color: var(--text-secondary); margin: 8px 0 18px; }
.rich-text p + p { margin-top: 10px; }

.corporate-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.corporate-block .stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 32px;
  align-items: center;
}

.newsletter h2 { margin-bottom: 6px; }

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form .form-control { flex: 1; }

.newsletter .form-hint { grid-column: 2; }
.newsletter .form-hint a { color: var(--brand-primary); text-decoration: underline; }

.page-placeholder {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

.page-placeholder p { color: var(--text-secondary); }

.not-found {
  align-items: center;
  text-align: center;
  margin: 20px auto;
}

.not-found-code {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-primary);
  opacity: .15;
}

@media (max-width: 1024px) {
  .corporate-block,
  .newsletter { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .newsletter .form-hint { grid-column: auto; }
}

@media (max-width: 768px) {
  .hero-arrow { display: none; }
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ==========================================================================
   15c. SEKTÖR / KATEGORİ / ÜRÜN SAYFALARI (Görev 7)
   ========================================================================== */
.listing-page > .container:first-child { padding-top: 20px; }

.listing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--sector-accent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--sector-accent) 6%, var(--bg-primary));
  overflow: hidden;
}

.listing-hero-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 36px 40px;
}

.listing-hero-content .eyebrow { color: var(--sector-accent); }
.listing-hero-content p { color: var(--text-secondary); max-width: 52ch; }

.listing-hero-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 220px;
  background: var(--bg-secondary);
}

/* Görsel yüksekliği satırı belirlemesin: içerik kadar yükseklik, görsel kırpılır */
.listing-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-categories { margin-top: 24px; }

.grid-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-width: 0;
}

.cat-tile:hover {
  border-color: var(--sector-accent);
  box-shadow: var(--shadow-md);
}

.cat-tile-media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.cat-tile-media img { width: 100%; height: 100%; object-fit: cover; }

.cat-tile-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-tile-body strong {
  font-family: var(--font-heading);
  color: var(--brand-primary);
  overflow-wrap: anywhere;
}

.cat-tile-body span { font-size: .82rem; color: var(--text-secondary); }

.listing-section { padding-top: 28px; }

.filters fieldset.filter-group {
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  min-width: 0;
}

.filters fieldset.filter-group:last-child { border-bottom: none; }

.filters legend.filter-title { padding: 0; }

.filter-links { list-style: none; }

.filter-links .filter-option { padding: 6px 0; }
.filter-links .filter-option:hover { color: var(--sector-accent); }

.filter-count {
  margin-left: auto;
  font-size: .76rem;
  color: var(--text-muted);
}

.filters-toggle { display: none; }

.listing-count { font-size: .9rem; color: var(--text-secondary); }
.listing-count strong { color: var(--brand-primary); }

.listing-main { min-width: 0; }
.listing-main .notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Satışta olmayan ürün kartı */
.badge-unavailable {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}

.product-card.is-unavailable .product-media img { opacity: .55; filter: grayscale(.6); }
.product-card.is-unavailable .current-price { color: var(--text-secondary); }

/* Ürün sayfası */
.product-page { padding-top: 20px; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 18px;
  align-items: start;
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.product-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.active { border-color: var(--sector-accent); }

.product-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.product-info-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge-warranty {
  background: var(--success-bg);
  border-color: #BBF7D0;
  color: var(--success);
}

.product-name { overflow-wrap: anywhere; }
.product-category { margin-top: -8px; }

.product-price { flex-direction: row; align-items: baseline; gap: 12px; }
.product-price .current-price { font-size: 1.8rem; }
.product-price .old-price { font-size: 1rem; }

.variant-group { display: flex; flex-direction: column; gap: 8px; }
.variant-label { font-size: .9rem; color: var(--text-secondary); }
.variant-label strong { color: var(--text-primary); }

.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }

.variant-option {
  min-width: 52px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-primary);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.variant-option:hover:not(:disabled) { border-color: var(--sector-accent); color: var(--sector-accent); }

.variant-option.selected {
  border-color: var(--sector-accent);
  background: var(--sector-accent);
  color: #fff;
}

.variant-option:disabled {
  cursor: not-allowed;
  color: var(--text-muted);
  background: var(--bg-secondary);
  text-decoration: line-through;
}

.stock-note { font-size: .85rem; font-weight: 600; color: var(--success); }
.stock-note.stock-low { color: var(--warning); }
.stock-note.stock-out { color: var(--danger); }

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.product-buy .product-add { flex: 1 1 200px; }
.product-buy .product-wish { padding-left: 18px; padding-right: 18px; font-size: 1.2rem; }
.product-buy .product-wish.active { color: var(--danger); border-color: var(--danger); }

.qty-control.qty-lg { padding: 4px 8px; border-radius: var(--radius); }
.qty-control.qty-lg button { width: 34px; height: 38px; font-size: 1.1rem; }
.qty-control button:disabled { opacity: .4; cursor: not-allowed; }

.qty-control input {
  width: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-tabs { margin-top: 40px; }

.product-description { white-space: pre-line; color: var(--text-primary); max-width: 75ch; }

.spec-list {
  display: grid;
  max-width: 760px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}

.spec-list > div:last-child { border-bottom: none; }

.spec-list dt,
.spec-list dd { padding: 10px 14px; font-size: .9rem; }

.spec-list dt { background: var(--bg-secondary); font-weight: 600; color: var(--brand-primary); }
.spec-list dd { white-space: pre-line; overflow-wrap: anywhere; }

.delivery-list { padding-left: 20px; display: grid; gap: 6px; margin-bottom: 12px; }
.text-link { color: var(--brand-primary); text-decoration: underline; }

@media (max-width: 1024px) {
  .catalog-layout .filters { order: 0; display: none; }
  .catalog-layout .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .listing-hero { grid-template-columns: minmax(0, 1fr); }
  .listing-hero-media { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 7; }
  .listing-hero-content { grid-row: 2; padding: 22px 20px; }
  .product-price .current-price { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .grid-categories { grid-template-columns: minmax(0, 1fr); }
  .shop-toolbar { padding: 12px; }
  .shop-toolbar .toolbar-right { width: 100%; }
  .shop-toolbar .sort-select { flex: 1; }
  .product-buy .product-add { order: 3; flex-basis: 100%; }
  .spec-list > div { grid-template-columns: minmax(0, 1fr); }
  .spec-list dt { padding-bottom: 4px; }
}

/* ==========================================================================
   16. RESPONSIVE — 1280 / 1024 / 768 / 480
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 20px; }

  .grid-sectors { gap: 14px; }
  .grid-products,
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  /* Mobil header: sektör menüsü çekmeceye geçer */
  .menu-toggle { display: inline-flex; }
  .sector-nav { display: none; }
  .header-main { gap: 14px; }
  .header-action span { display: none; }

  .grid-sectors { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { order: 2; }

  .trust-strip .container,
  .trust-grid,
  .stats { grid-template-columns: repeat(2, 1fr); }

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

  .hero-grid,
  .lookbook-banner,
  .product-detail-grid,
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }

  .features-grid,
  .categories-grid,
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .header-inner { flex-wrap: wrap; }

  .admin-wrapper { grid-template-columns: minmax(0, 1fr); }

  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 12px;
  }

  .admin-nav-item { flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent; }
  .admin-nav-item.active { border-bottom-color: var(--brand-primary); }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }

  .section { padding: 40px 0; }

  .header-main {
    flex-wrap: wrap;
    min-height: 0;
    padding: 10px 0;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .topbar .container { justify-content: center; }
  .topbar-hide-mobile { display: none; }

  .grid-sectors,
  .grid-products,
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .hero-slide { min-height: 360px; }

  .form-grid,
  .payment-tabs { grid-template-columns: minmax(0, 1fr); }

  .product-detail-grid,
  .checkout-grid { padding: 22px 18px; gap: 22px; }

  .admin-main { padding: 20px 16px; }
  .admin-card { padding: 18px; }

  .header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .header-inner > * { min-width: 0; max-width: 100%; }
  .main-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-btn { flex-shrink: 0; white-space: nowrap; }
  .search-box { width: 100%; }
}

@media (max-width: 480px) {
  .grid-sectors { grid-template-columns: 1fr; }
  .grid-products,
  .products-grid { gap: 10px; }

  .product-body { padding: 10px 12px 12px; }
  .product-footer { flex-direction: column; align-items: stretch; }
  .add-cart-btn { justify-content: center; }

  .trust-strip .container,
  .trust-grid,
  .stats,
  .footer-grid,
  .features-grid,
  .categories-grid,
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }

  .hero-main-card { padding: 24px; }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { flex: 1 1 100%; }

  .modal,
  .modal-backdrop { padding: 10px; }
  .modal-dialog { padding: 22px 18px; }

  .card { padding: 18px; }
  .tab { padding: 10px 14px; }

  .logo { font-size: 1.2rem; }
  .header-actions { gap: 0; }
  .header-action { padding: 6px 7px; }

  .announcement-actions { display: none; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}

/* ==========================================================================
   İletişim ve sözleşme sayfaları (Görev 9)
   ========================================================================== */
.contact-grid,
.legal-layout {
  display: grid;
  gap: 24px;
  margin-top: 8px;
  align-items: start;
}
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.legal-layout { grid-template-columns: 300px minmax(0, 1fr); }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.contact-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-item a { color: var(--brand-primary); text-decoration: underline; }
.contact-lead { margin-bottom: 14px; }

.map-frame { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.legal-nav { display: flex; flex-direction: column; gap: 4px; }
.legal-nav-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .92rem;
  transition: var(--transition);
}
.legal-nav-link:hover { background: var(--brand-tint); }
.legal-nav-link.active { background: var(--brand-tint-strong); color: var(--brand-primary); font-weight: 700; }

.legal-body { overflow-wrap: anywhere; }
.legal-body h1 { font-size: 1.6rem; margin-bottom: 14px; color: var(--brand-primary); }
.legal-body .rich-text h3 { margin: 18px 0 6px; color: var(--text-primary); }
.legal-body .rich-text { line-height: 1.75; }

@media (max-width: 900px) {
  .contact-grid,
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
}
