/* Vanilla CSS Design System - Oto Yedek Parça (0 External CDNs) */
:root {
  --primary: #1e293b;
  --primary-hover: #0f172a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --phone-red: #dc2626;
  --phone-red-hover: #b91c1c;
  --wa-green: #16a34a;
  --wa-green-hover: #15803d;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  padding-bottom: 70px; /* Space for mobile sticky CTA bar */
}

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

/* Utilities */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .mobile-hide { display: none !important; }
}

@media (max-width: 480px) {
  .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Header & Navigation */
.site-topbar {
  background: var(--primary);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

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

/* Search Bar */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: #f1f5f9;
}

.search-input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Live Search Suggestions Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 200;
  max-height: 350px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #f8fafc;
}

.search-result-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

/* Header CTAs */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-phone {
  background: var(--phone-red);
  color: #ffffff;
}

.btn-phone:hover {
  background: var(--phone-red-hover);
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--wa-green);
  color: #ffffff;
}

.btn-wa:hover {
  background: var(--wa-green-hover);
  transform: translateY(-1px);
}

.btn svg,
.btn-phone svg,
.btn-wa svg,
.btn-card-phone svg,
.btn-card-wa svg,
.mobile-sticky-bar svg {
  width: 1.1em !important;
  height: 1.1em !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Sub Navigation Categories Bar */
.cat-nav {
  background: var(--primary);
  color: #ffffff;
  overflow-x: auto;
  white-space: nowrap;
}

.cat-nav ul {
  display: flex;
  list-style: none;
}

.cat-nav a {
  display: inline-block;
  padding: 12px 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.cat-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* Hero Section & Slider */
.hero-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
  background: #000;
  height: 340px;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

.slide-item.active {
  opacity: 1;
  z-index: 1;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.slide-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #ffffff;
  max-width: 600px;
  z-index: 2;
}

.slide-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* Trust Badges Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.trust-item {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-color);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Category Grid Cards */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.cat-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Product Cards Grid - NO PRICE DISPLAY */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  background: #f1f5f9;
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oem-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.temsili-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-compat {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-ctas {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-phone {
  background: var(--phone-red);
  color: #ffffff;
  padding: 8px;
  font-size: 0.82rem;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
}

.btn-card-wa {
  background: var(--wa-green);
  color: #ffffff;
  padding: 8px;
  font-size: 0.82rem;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
}

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

.detail-actions-box {
  background: #f8fafc;
  border: 2px dashed var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.detail-actions-box h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.detail-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  width: 100%;
}

/* Sticky Mobile Bottom CTA Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.12);
  padding: 8px 12px;
  z-index: 999;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* Modal Campaign Popup */
.popup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-modal-overlay.show .popup-modal-card {
  transform: scale(1);
}

.popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.popup-modal-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.popup-modal-body {
  padding: 24px;
  text-align: center;
}

.popup-modal-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.popup-modal-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 40px 0 20px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Ana Kategori Vitrin Kartları (Resimli + Altta Başlık) */
.home-categories-section {
  margin: 32px 0 24px 0;
}
.home-categories-section .section-title {
  margin-bottom: 16px;
}
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
@media (max-width: 1200px) {
  .home-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .home-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
@media (max-width: 400px) {
  .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  padding: 14px 8px 12px 8px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: #0f172a;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.home-cat-card:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}
.home-cat-img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 0.25s ease;
}
@media (max-width: 600px) {
  .home-cat-img {
    width: 64px;
    height: 64px;
  }
}
.home-cat-card:hover .home-cat-img {
  transform: scale(1.08);
  border-color: #bfdbfe;
}
.home-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-cat-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color 0.2s;
  display: block;
}
.home-cat-card:hover .home-cat-title {
  color: #2563eb;
}
.home-cat-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 8px;
  line-height: 1;
  display: inline-block;
}
.home-cat-special {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
}
.home-cat-special .home-cat-img {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f59e0b;
}
.home-cat-special .home-cat-title {
  color: #ffffff;
}
.home-cat-special .home-cat-count {
  background: #f59e0b;
  color: #0f172a;
}
.home-cat-special:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.2);
}
