/* ═══════════════════════════════════════════════════════════════
   Yalova İkinci El — Global Styles
   Renk Teması: Kırmızı (#C0392B primary)
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --red:        #C0392B;
  --red-dark:   #922B21;
  --red-light:  #E74C3C;
  --red-pale:   #FFF5F5;
  --red-border: #F5B7B1;
  --text:       #2C3E50;
  --text-light: #636E72;
  --white:      #FFFFFF;
  --gray-100:   #F8F9FA;
  --gray-200:   #E9ECEF;
  --gray-300:   #DEE2E6;
  --shadow:     0 2px 12px rgba(192,57,43,0.10);
  --shadow-lg:  0 8px 32px rgba(192,57,43,0.15);
  --radius:     10px;
  --radius-sm:  6px;
  --transition: 0.22s ease;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width:  1200px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
main { flex: 1; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 0.75rem auto 2rem;
}

/* ─── Header / Nav ──────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
}
.nav-logo-text span {
  color: var(--red-dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--red-pale);
  color: var(--red);
}
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.1rem !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--red);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
  border-color: #25D366;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}
.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  color: var(--white);
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-100);
}
.card-img-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-pale);
  color: var(--red);
  font-size: 3rem;
}
.card-body {
  padding: 1.25rem;
}
.card-category {
  display: inline-block;
  background: var(--red-pale);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.card-price span { font-size: 0.85rem; font-weight: 500; color: var(--text-light); }

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

/* ─── Category Cards ────────────────────────────────────────── */
.cat-card {
  background: var(--white);
  border: 2px solid var(--red-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.cat-card:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cat-card:hover .cat-icon,
.cat-card:hover .cat-name {
  color: var(--white);
}
.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--red);
  transition: color var(--transition);
}
.cat-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  transition: color var(--transition);
}

/* ─── Product Detail ────────────────────────────────────────── */
.product-gallery {
  position: relative;
}
.gallery-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-100);
  margin-bottom: 1rem;
}
.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: border-color var(--transition);
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--red);
}
.gallery-placeholder {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-pale);
  border-radius: var(--radius);
  font-size: 5rem;
  color: var(--red);
}
.product-info { }
.product-price-big {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  margin: 1rem 0;
}
.product-price-big span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-left: 4px;
}
.product-desc {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.02rem;
  white-space: pre-wrap;
  margin: 1.5rem 0;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-light);
  flex-wrap: wrap;
  padding: 1rem 0;
}
.breadcrumb a {
  color: var(--red);
}
.breadcrumb a:hover { color: var(--red-dark); }
.breadcrumb-sep { color: var(--gray-300); }

/* ─── Category Filter ───────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ─── Blog ──────────────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.blog-card-body { padding: 1.5rem; }
.blog-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--red); }
.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
}
.blog-read-more:hover { color: var(--red-dark); }

/* Blog Article */
.blog-article { max-width: 800px; margin: 0 auto; }
.blog-article h1 { margin-bottom: 1rem; }
.blog-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.blog-content h2 { margin: 2rem 0 1rem; color: var(--red); }
.blog-content h3 { margin: 1.5rem 0 0.75rem; }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content ul { margin: 1rem 0 1.25rem 1.5rem; list-style: disc; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content strong { color: var(--text); }

/* ─── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--red-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--red);
}
.contact-info-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-info-text span,
.contact-info-text a {
  color: var(--text-light);
  font-size: 0.95rem;
}
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gray-200);
}

/* ─── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}
.about-img {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  object-fit: cover;
  background: var(--red-pale);
}
.about-img-placeholder {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--red);
}
.feature-list { margin-top: 1.5rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.feature-icon {
  width: 34px;
  height: 34px;
  background: var(--red-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-text strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.feature-text span { font-size: 0.9rem; color: var(--text-light); }

/* ─── Stats Banner ──────────────────────────────────────────── */
.stats-bar {
  background: var(--red);
  color: var(--white);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}
.stat-label { font-size: 0.9rem; opacity: 0.9; }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: #B2BEC3;
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-heading {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: #B2BEC3;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--red-light); }
.footer-bottom a:hover { color: var(--white); }

/* ─── Alert / Badge ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-red { background: var(--red); color: var(--white); }
.badge-pale { background: var(--red-pale); color: var(--red); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1.1rem; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 4px solid var(--red-border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* ─── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.88); margin-top: 0.5rem; }

/* ─── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.bg-pale { background: var(--red-pale); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--red);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.65rem 1rem; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-main { height: 260px; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--red); }

/* ─── Print / Accessibility ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
