/* ========================================
   MOTO MARKET — Profesyonel Stil Dosyası
   ======================================== */

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

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

:root {
  --red:       #d90000;
  --red-dark:  #aa0000;
  --red-light: #ff2222;
  --black:     #0f0f0f;
  --dark:      #1a1a1a;
  --mid:       #444;
  --muted:     #888;
  --border:    #e2e2e2;
  --bg:        #f6f6f6;
  --white:     #ffffff;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
  --card-hover:  0 10px 35px rgba(0,0,0,0.14);
  --radius:    10px;
  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Inter', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- HEADER ---- */
header {
  background: var(--white);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo span { color: var(--black); }

.search-box {
  display: flex;
  width: 380px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-box:focus-within { border-color: var(--red); }

.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
}

.search-box button {
  padding: 10px 22px;
  background: var(--red);
  border: none;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--red-dark); }

.user-menu { display: flex; align-items: center; gap: 20px; }

.user-menu a {
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 7px;
  transition: all 0.2s;
}

.user-menu a:hover { background: #f0f0f0; color: var(--red); }

/* ---- ANA ALAN ---- */
.main-area {
  display: flex;
  padding: 28px 48px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---- SOL KATEGORİ MENÜSÜ ---- */
.category-menu {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: visible;
  align-self: flex-start;
  position: sticky;
  top: 100px;
  z-index: 9999;
}

.category-menu h3 {
  background: var(--red);
  color: var(--white);
  padding: 15px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand {
  position: relative;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.18s;
  color: var(--dark);
}

.brand:last-child { border-bottom: none; }

.brand:hover {
  background: #fff5f5;
  color: var(--red);
  padding-left: 22px;
}

.brand .arrow {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.2s;
}

.brand:hover .arrow,
.brand:focus-within .arrow { transform: translateX(3px); color: var(--red); }

.sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 210px;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 6px 4px 20px rgba(0,0,0,0.12);
  z-index: 20;
  overflow: hidden;
}

.sub-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
}

.sub-menu a:last-child { border-bottom: none; }

.sub-menu a:hover {
  background: var(--red);
  color: var(--white);
  padding-left: 22px;
}

.brand:hover .sub-menu,
.brand:focus-within .sub-menu { display: block; }

/* Marka/model açılır menüsü: hover ve klavye focus desteği */
.brand.has-submenu { outline: none; }
.brand.has-submenu:focus-within,
.brand.has-submenu:hover { background: #fff5f5; color: var(--red); }
.sub-menu { min-width: 210px; }

/* ---- CONTENT ALANI ---- */
.content {
  flex: 1;
  min-width: 0;
}

/* ---- SLIDER ---- */
.slider {
  position: relative;
  z-index: 1;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--card-shadow);
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
}

.slide.active { display: block; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(78%);
}

.slide-text {
  position: absolute;
  left: 52px;
  top: 60px;
  color: var(--white);
}

.slide-text .tag {
  display: inline-block;
  background: var(--red);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.slide-text h1 {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.slide-text button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
}

.slide-text button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,0,0,0.45);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.slider-btn:hover { background: var(--red); }
.prev { left: 18px; }
.next { right: 18px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.active-dot {
  background: var(--red);
  width: 26px;
  border-radius: 5px;
}

/* ---- MOTOR SEÇ ---- */
.bike-selector {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-top: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.bike-selector h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bike-selector p { color: var(--muted); margin-bottom: 20px; font-size: 14px; }

.bike-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.bike-buttons button {
  padding: 10px 22px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-body);
}

.bike-buttons button:hover {
  background: var(--red);
  transform: translateY(-2px);
}

/* ---- ÖZELLİK KUTULARI ---- */
.feature-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature-card {
  background: var(--white);
  padding: 28px 18px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}

.feature-icon { font-size: 34px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 13px; }

/* ---- ÜRÜN BÖLÜMLERI ---- */
.special-products { margin-top: 40px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
}

.section-title a {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.section-title a:hover { opacity: 0.75; }

.product-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.preview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
}

.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover);
}

.discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.product-image {
  height: 120px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 14px;
  margin-top: 20px;
}

.preview-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.preview-card p { color: var(--muted); font-size: 13px; }

.price { color: var(--red); font-weight: 700; font-size: 19px; }
.old-price { color: var(--muted); text-decoration: line-through; margin-right: 5px; font-size: 14px; }

.deals { margin-top: 40px; }

/* ---- PARTS PAGE (musatti125.html) ---- */
.parts-page {
  padding: 30px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.parts-page h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--black);
}

.parts-page h1 span { color: var(--red); }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--mid); }

.parts-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.parts-categories button {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--border);
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.parts-categories button:hover,
.parts-categories button.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover);
}

.product-icon {
  height: 110px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card h3 a { color: var(--dark); }
.product-card h3 a:hover { color: var(--red); }

.product-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
}

/* ---- ÜRÜN DETAY SAYFASI ---- */
.product-detail {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 48px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.detail-image {
  width: 320px;
  height: 320px;
  min-width: 320px;
  background: #f5f5f5;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 110px;
  box-shadow: var(--card-shadow);
}

.detail-info { flex: 1; }

.detail-info h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.detail-price {
  font-size: 34px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 18px;
}

.detail-info p {
  color: var(--mid);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.detail-meta {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.detail-meta ul { list-style: none; }
.detail-meta ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  gap: 8px;
}
.detail-meta ul li:last-child { border-bottom: none; }
.detail-meta ul li strong { color: var(--dark); min-width: 120px; }
.detail-meta ul li span { color: var(--mid); }

/* ---- BUTONLAR ---- */
.btn-add {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-body);
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn-add:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

.whatsapp-btn,
.whatsapp-float {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.22s;
  text-decoration: none;
  font-family: var(--font-body);
}

.whatsapp-btn {
  padding: 10px 16px;
  font-size: 13px;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  border-radius: 7px;
}

.whatsapp-btn:hover { background: #1db954; transform: translateY(-2px); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  padding: 13px 20px;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  background: #1db954;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: #ccc;
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 48px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-box {}

.footer-box .logo {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-box p { font-size: 14px; color: #999; line-height: 1.7; }

.footer-box h3 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-box a {
  display: block;
  color: #999;
  font-size: 14px;
  margin-bottom: 9px;
  transition: color 0.2s;
}

.footer-box a:hover { color: var(--red); }

.footer-social {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 48px 0;
  border-top: 1px solid #2e2e2e;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-social a.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 50px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
  box-shadow: 0 6px 18px rgba(238, 42, 123, 0.28);
  transition: transform 0.22s, box-shadow 0.22s;
}

.footer-social a.ig-link .ig-icon { flex-shrink: 0; }

.footer-social a.ig-link:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(238, 42, 123, 0.45);
}

/* footer-social zaten üst çizgi çiziyor, aynı yerde çift çizgi olmasın */
.footer-social + .footer-bottom { border-top: none; }

.footer-bottom {
  border-top: 1px solid #2e2e2e;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 48px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

/* ---- PRODUCT LINK ---- */
.product-link { color: var(--dark); }
.product-link:hover { color: var(--red); }

/* ---- PAGE HEADER (alt sayfa başlık bandı) ---- */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, #2a0000 100%);
  color: var(--white);
  padding: 28px 48px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header p { color: rgba(255,255,255,0.65); font-size: 14px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .feature-boxes, .product-preview { grid-template-columns: repeat(2, 1fr); }
  .parts-products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  header { padding: 0 20px; }
  .main-area { padding: 18px 20px; flex-direction: column; }
  .category-menu { width: 100%; position: static; }
  .category-menu { overflow: hidden; }
  .sub-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin-top: 10px;
    background: #fafafa;
  }
  .brand { align-items: flex-start; flex-wrap: wrap; }
  .brand .brand-title { flex: 1; }

  .feature-boxes { grid-template-columns: repeat(2, 1fr); }
  .product-preview { grid-template-columns: repeat(2, 1fr); }
  .parts-products { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .product-detail { flex-direction: column; padding: 20px; }
  .detail-image { width: 100%; min-width: unset; height: 220px; }
  .parts-page { padding: 20px; }
  .slider { height: 280px; }
  .slide-text h1 { font-size: 28px; }
  .search-box { width: 220px; }
}

@media (max-width: 480px) {
  .feature-boxes, .product-preview, .parts-products { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
    row-gap: 10px;
  }
  .logo { font-size: 19px; order: 1; }
  .user-menu { order: 2; gap: 8px; }
  .user-menu a { padding: 6px 10px; font-size: 13px; }
  .search-box { order: 3; width: 100%; flex: 1 1 100%; }
}

/* ---- MARKA / MODEL SEÇİMİ VE DİNAMİK PARÇA LİSTESİ ---- */
.bike-select-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.bike-select-row label {
  font-weight: 700;
  color: var(--dark);
}

.bike-select-row select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
}

.bike-select-row select:focus {
  border-color: var(--red);
}

.selected-model-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.compact-title {
  margin-bottom: 16px;
}

.model-products {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.category-menu .brand {
  min-height: 48px;
}

.category-menu  span.brand-title,
.category-menu .arrow {
  pointer-events: none;
}

.category-menu .sub-menu {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .bike-select-row {
    grid-template-columns: 1fr;
  }

  .sub-menu {
    position: static;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    margin-top: 10px;
  }
}
.product-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

.preview-card {
    width: 100%;
    min-height: 230px;
}
@media (max-width: 900px) {
    .product-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .product-preview {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MOTO MARKET — Ek Bileşenler (güvenli/DB sürümü)
   ============================================================ */

/* Dil seçimi */
.user-menu .lang-active { font-weight: 700; color: var(--red); border-bottom: 2px solid var(--red); }

/* Stok rozetleri */
.stock-ok { color: #16a34a; font-weight: 600; font-size: 13px; }
.stock-no { color: #b91c1c; font-weight: 600; font-size: 13px; }
.card-stock { margin: 4px 0; }

/* İndirimli fiyat */
.price .old, .detail-price .old { text-decoration: line-through; color: var(--muted); font-size: .8em; margin-right: 6px; font-weight: 400; }

/* Boş durum notu */
.empty-note { padding: 30px; color: var(--muted); text-align: center; width: 100%; }

/* Motor seçici "git" butonu */
.go-model { background: var(--red); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.go-model:hover { background: var(--red-dark); }

/* ---- ÜRÜN DETAY SAYFASI ---- */
.product-detail {
  max-width: 1100px; margin: 24px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }

.detail-gallery img#mainImg {
  width: 100%; height: 280px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.detail-gallery .no-image, .product-detail .no-image {
  width: 100%; height: 280px; display: flex; align-items: center; justify-content: center;
  font-size: 80px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.detail-gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-gallery .thumbs img {
  width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: .2s;
}
.detail-gallery .thumbs img:hover { border-color: var(--red); }

.detail-info h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.detail-info .sku { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.detail-info .detail-meta { color: var(--mid); margin-bottom: 14px; }
.detail-price { font-size: 30px; font-weight: 700; color: var(--red); margin: 16px 0; font-family: var(--font-display); }
.detail-stock { margin-bottom: 16px; }
.detail-desc { color: var(--mid); line-height: 1.7; margin-bottom: 24px; }

.whatsapp-btn.big {
  display: inline-block; background: #25d366; color: #fff; padding: 16px 30px;
  border-radius: 10px; font-weight: 700; font-size: 17px; text-align: center;
}
.whatsapp-btn.big:hover { background: #1db954; }

/* ============================================================
   SAYFALAMA (frontend) — kategori / model / arama listeleri
   ============================================================ */
.parts-page .pagination {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    align-items: center; margin: 32px 0 10px;
}
.parts-page .pagination .pg-item {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 8px;
    border: 1px solid #ddd; background: #fff; color: #333;
    font-weight: 600; text-decoration: none; transition: .15s;
}
.parts-page .pagination a.pg-item:hover { border-color: #e60000; color: #e60000; }
.parts-page .pagination .pg-active { background: #e60000; border-color: #e60000; color: #fff; }
.parts-page .pagination .pg-disabled { opacity: .4; cursor: default; }
.parts-page .pagination .pg-dots { border: none; background: transparent; }
/* ===== Ürün kartı görseli — kutuya düzgün sığdır (estetik) ===== */
.product-icon {
  height: 140px;
  overflow: hidden;
  padding: 10px;
}
.product-icon img,
.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Ana sayfa vitrin kartı: büyük ürün görsellerinin taşmasını engeller. */
.preview-card {
  overflow: hidden;
}

.preview-card .product-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.preview-card .product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.preview-card .product-image img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
/* ===== Beden seçimi (ürün detay) ===== */
.size-select { margin: 18px 0; }
.size-label { display:block; font-weight:600; margin-bottom:8px; color: var(--dark); }
.size-options { display:flex; flex-wrap:wrap; gap:10px; }
.size-btn {
  min-width:52px; padding:10px 14px; border:1.5px solid var(--border);
  background:#fff; border-radius:8px; font-weight:600; font-size:14px;
  cursor:pointer; transition:.15s; color: var(--dark);
}
.size-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.size-btn.selected { background: var(--red); border-color: var(--red); color:#fff; }
.size-btn:disabled { opacity:.4; cursor:not-allowed; text-decoration: line-through; }
.size-warning { display:none; color: var(--red); font-size:13px; margin-top:8px; font-weight:500; }
/* ===== Marka alt menüsü: yana doğru, çok sütunlu, taşmayan ===== */
.sub-menu {
  width: auto;
  min-width: 440px;
  max-width: 560px;
  max-height: 78vh;       /* ekrandan taşarsa kendi içinde kayar */
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(180px, 1fr));  /* 2 sütun */
  padding: 6px;
}
.brand:hover .sub-menu,
.brand:focus-within .sub-menu { display: grid; }   /* açıldığında grid olarak diz */
.sub-menu a {
  border-bottom: none;
  border-radius: 6px;
}

/* Telefonda tek sütun kalsın */
@media (max-width: 768px) {
  .sub-menu {
    min-width: 0;
    max-width: none;
    max-height: none;
    grid-template-columns: 1fr;
  }
}
/* ===== Sol menü başlığı "Motor Markaları" — daha büyük ===== */
.category-menu h3 {
  font-size: 19px;
  padding: 20px 18px;
  letter-spacing: 0.8px;
}
/* ===== Sol menü bölümünü komple büyüt ===== */
.category-menu {
  width: 290px;            /* 240 -> 290: daha geniş kolon */
}
.category-menu h3 {
  font-size: 19px;         /* başlık daha iri */
  padding: 20px 20px;
  letter-spacing: 0.8px;
}
.brand {
  padding: 16px 20px;      /* satırlar daha ferah */
  font-size: 15.5px;       /* marka/kategori yazısı daha büyük */
}
.brand:hover { padding-left: 24px; }
.brand .arrow { font-size: 18px; }
/* ===== İçerik alanını tam genişliğe yay (sol boşluğu doldur, header ile hizala) ===== */
.main-area {
  max-width: none;   /* 1400px sınırını kaldır → header ile aynı hizada */
  margin: 0;
}
.category-menu {
  width: 290px;      /* menü biraz daha geniş */
}

/* ===== MODEL SAYFASI — Kategori Filtre Çipleri ===== */
.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 0, 0, 0.12);
}

.filter-chip.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.filter-chip.active:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.chip-count {
  background: rgba(0,0,0,0.08);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.filter-chip.active .chip-count {
  background: rgba(255,255,255,0.25);
}

/* Model başlık alanındaki toplam */
.page-header .model-total {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-top: 6px;
}
.page-header .model-total strong {
  color: #fff;
  font-size: 18px;
}

/* Filtre bilgi satırı */
.filter-info {
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #8c5800;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.clear-filter {
  color: var(--red) !important;
  font-weight: 600;
  font-size: 13px;
  margin-left: auto;
  transition: opacity 0.2s;
}
.clear-filter:hover {
  opacity: 0.7;
}

/* Alt toplam bilgisi */
.model-footer-info {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  color: var(--mid);
  font-size: 15px;
}
.model-footer-info strong {
  color: var(--dark);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .filter-strip {
    gap: 8px;
    padding: 14px 0;
  }
  .filter-chip {
    padding: 7px 14px;
    font-size: 13px;
  }
  .filter-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .clear-filter {
    margin-left: 0;
  }
}

/* ============================================================
   SLIDER — MODERN İYİLEŞTİRME  (mevcut kuralların üstüne biner)
   style.css'in EN ALTINA ekle. Var olan hiçbir şeyi bozmaz.
   ============================================================ */

/* Slide'lar artık yumuşak geçişle gelir (aniden değil) */
.slide {
  display: block;               /* hepsi DOM'da, opacity ile yönetilir */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}
.slide.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Aktif slide'ın fotoğrafı yavaşça yakınlaşır (Ken Burns) */
.slide img {
  transform: scale(1);
  transition: transform 8s ease-out;
}
.slide.active img {
  transform: scale(1.08);
}

/* Yazılar alttan yukarı süzülerek belirir */
.slide-text {
  right: auto;
  max-width: 560px;
}
.slide.active .slide-text .tag,
.slide.active .slide-text h1,
.slide.active .slide-text p,
.slide.active .slide-text button {
  animation: slideUpFade 0.7s ease both;
}
.slide.active .slide-text h1     { animation-delay: 0.12s; }
.slide.active .slide-text p      { animation-delay: 0.24s; }
.slide.active .slide-text button { animation-delay: 0.36s; }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fotoğrafın üstüne alttan yukarı koyu degrade — yazı daha okunur */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
/* Degrade yazının arkasında ama fotoğrafın önünde kalsın */
.slide img { position: relative; z-index: 0; }
.slide::after { z-index: 1; }
.slide-text { z-index: 2; }

/* Etiket (tag) hafif parlayan modern görünüm */
.slide-text .tag {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 4px 14px rgba(217,0,0,0.4);
}

/* Ok tuşları biraz daha modern */
.slider-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 24px;
}
.slider-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
}

/* Üstte akan ilerleme çubuğu — slide otomatik değişimini gösterir */
.slider::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  animation: sliderProgress 6s linear infinite;
  z-index: 6;
  opacity: 0.9;
}
@keyframes sliderProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Noktalar biraz daha belirgin */
.dot {
  width: 11px; height: 11px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.3);
}
.dot:hover { background: rgba(255,255,255,0.8); }
.active-dot {
  background: var(--red);
  width: 30px;
  border-color: var(--red);
}

/* Hover'da otomatik geçiş çubuğunu duraklat (fare üstündeyken) */
.slider:hover::before {
  animation-play-state: paused;
}
/* Slider yüksekliği — Motorunu Seç kaldırıldı, biraz büyütüldü */
.slider {
  height: 500px;
}

/* ============================================================
   KAYAN ÜRÜN VİTRİNİ (kesintisiz akan) — style.css'in EN ALTINA
   Not: Bu blok önceki carousel CSS'inin YERİNE geçer.
   Eskisini eklediyysen, onu silip bunu koy.
   ============================================================ */
.carousel {
  position: relative;
  overflow: hidden;          /* taşan kısım gizli, akış görünür */
  padding: 6px 0 16px;
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;        /* içerik kadar genişlesin */
  animation: marquee 60s linear infinite;
}

/* Kesintisiz sağdan sola akış.
   İçerik 2 kez basıldığı için -50%'de başa dönmüş gibi görünür. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Fare üstündeyken dursun (ürünü incelemek için) */
.carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Her kart sabit genişlikte */
.carousel-track > * {
  flex: 0 0 auto;
  width: 240px;
}

/* Ok butonları — akış yönünü hızlı ileri/geri sarmak için */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: background .2s, transform .2s;
  opacity: 0;                /* normalde gizli */
}
.carousel:hover .carousel-btn { opacity: 1; }  /* fareyle gelince görünür */
.carousel-btn:hover { background: var(--red-dark); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

@media (max-width: 768px) {
  .carousel-track > * { width: 200px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 22px; opacity: 1; }
}
/* ============================================================
   ÜST MENÜ SABİT (STICKY) — aşağı kaydırınca hep üstte kalır
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;                        /* altındaki içerik görünmesin */
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); /* kaydırınca hafif gölge */
}

/* ============================================================
   SEPET — üst menü ikonu, "Sepete Ekle" butonu, bildirim (toast)
   ve sepet sayfası (cart.php)
   ============================================================ */
.user-menu a.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.cart-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  margin-top: 8px;
  border: 1.5px solid var(--dark);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.22s;
}
.cart-add-btn:hover { background: var(--dark); color: var(--white); }
.cart-add-btn.big { padding: 16px 30px; font-size: 17px; border-radius: 10px; margin-top: 12px; }

/* Bildirim (toast) */
.toast {
  position: fixed;
  bottom: 90px;
  right: 28px;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 100000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---- Sepet sayfası ---- */
.cart-page { max-width: 900px; margin: 0 auto 60px; padding: 0 20px; }

.cart-flash { margin-bottom: 16px; }

.cart-empty {
  text-align: center;
  padding: 70px 20px;
}
.cart-empty-icon { font-size: 52px; margin-bottom: 6px; }
.cart-empty-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.cart-empty p.muted { color: var(--muted); margin-bottom: 22px; }
.btn-go-shop {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: background .2s;
}
.btn-go-shop:hover { background: var(--red-dark); }

.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto auto auto;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--card-shadow);
}
.cart-row-img {
  width: 70px; height: 70px; border-radius: 8px; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 26px;
}
.cart-row-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-row-name { font-weight: 600; font-size: 14.5px; }
.cart-row-size { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-row-warn { font-size: 12px; color: #b91c1c; font-weight: 600; margin-top: 3px; }
.cart-row-price { font-weight: 600; color: var(--muted); white-space: nowrap; }
.cart-row-total { font-weight: 700; color: var(--red); white-space: nowrap; min-width: 90px; text-align: right; }

.cart-qty {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #e5e7eb; border-radius: 8px; padding: 4px 6px;
}
.cart-qty .qty-btn {
  width: 26px; height: 26px; border: none; background: #f5f5f5; border-radius: 6px;
  font-size: 16px; font-weight: 700; cursor: pointer; line-height: 1; color: var(--dark);
}
.cart-qty .qty-btn:hover { background: #e5e7eb; }
.cart-qty .qty-val { min-width: 18px; text-align: center; font-weight: 700; }

.cart-remove-btn {
  border: none; background: transparent; color: var(--muted); font-size: 17px;
  cursor: pointer; padding: 6px; border-radius: 6px; transition: all .15s;
}
.cart-remove-btn:hover { background: #fee2e2; color: #b91c1c; }

.cart-summary {
  background: var(--white); border-radius: 12px; padding: 22px;
  box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 14px;
}
.cart-total-line {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.cart-total-line b { color: var(--red); font-size: 22px; }
.clear-cart-btn {
  border: 1px solid #e5e7eb; background: var(--white); color: var(--muted);
  padding: 10px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.clear-cart-btn:hover { border-color: #b91c1c; color: #b91c1c; }

@media (max-width: 640px) {
  .cart-row {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "img info"
      "img price"
      "qty total"
      "remove remove";
  }
  .cart-row-img { grid-area: img; }
  .cart-row-info { grid-area: info; }
  .cart-row-price { grid-area: price; }
  .cart-qty { grid-area: qty; }
  .cart-row-total { grid-area: total; }
  .cart-remove-btn { grid-area: remove; justify-self: end; }
}