/* ALTINOLUK PASTANESİ - Ana Stil Dosyası
 * 1985'ten Beri İzmit'in Kalbinde
 * Mobil Uyumlu, Erişilebilir, Hızlı ve Yüksek Kontrastlı
 */

:root {
  --primary: #3D2314;         /* Zengin Çikolata */
  --primary-light: #5D3720;
  --gold: #C59B27;            /* Sıcak Altın */
  --gold-hover: #AA771C;
  --gold-soft: #F9F3E5;
  --accent: #B23B2A;          /* Frambuaz / Kırmızı Vurgu */
  --bg-page: #FAF6F0;         /* Doğal Fırın Beji / Krem */
  --bg-card: #FFFFFF;
  --text-dark: #2B180D;       /* Yüksek kontrastlı metin */
  --text-muted: #6B5547;
  --border-color: #E6DCCD;
  --success: #2E7D32;
  --warning: #ED6C02;
  --error: #D32F2F;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm: 0 2px 6px rgba(61, 35, 20, 0.06);
  --shadow-md: 0 4px 14px rgba(61, 35, 20, 0.10);
  --shadow-lg: 0 8px 25px rgba(61, 35, 20, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --touch-target: 44px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Erişilebilirlik - Klavye Odak Belirteci */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Tipografi */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Kapsayıcı */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Üst Bildirim & İletişim Şeridi */
.top-bar {
  background-color: var(--primary);
  color: #F7EFE6;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-contact a {
  color: #F7EFE6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar-contact a:hover {
  color: var(--gold);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch a {
  padding: 2px 8px;
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
}

.lang-switch a.active {
  background: var(--gold);
  color: var(--primary);
}

/* Ana Header */
.main-header {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img, .brand-logo svg {
  height: 48px;
  width: auto;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title .brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.brand-title .brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Navigasyon */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

/* Header Sağ Eylemler */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-qr-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #FFF !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.3);
  font-size: 0.88rem;
  min-height: var(--touch-target);
}

.cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--primary);
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobil Menü Butonu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  width: var(--touch-target);
  height: var(--touch-target);
  align-items: center;
  justify-content: center;
}

/* Butonlar & CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: var(--touch-target);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFF;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--gold);
  color: #2B1408;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: #FFF;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFF;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-block {
  width: 100%;
}

/* Hero Bölümü */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(61, 35, 20, 0.94), rgba(43, 20, 8, 0.96)), url('../images/pasta-cikolata-frambuaz.webp') center/cover;
  color: #FFF;
  padding: 70px 0 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(197, 155, 39, 0.25);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  color: #FFF;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #F1E5D8;
  margin-bottom: 35px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Özellik Barı (Fırından Taze, Hızlı Teslimat vb.) */
.features-bar {
  background: var(--bg-card);
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.feature-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

/* Bölüm Başlıkları */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Ürün Kartları & Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-thumb {
  position: relative;
  overflow: hidden;
  background: #EEE;
  aspect-ratio: 4/3;
}

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

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.prep-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(43, 20, 8, 0.85);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-hover);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-allergens {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.allergen-tag {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Kategori Hapları (Pills) */
.category-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 20px 0;
  scrollbar-width: thin;
}

.pill-item {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.pill-item:hover, .pill-item.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-header {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-body {
  padding: 0 22px 18px 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}

.faq-item.active .faq-header {
  color: var(--gold-hover);
}

/* Formlar */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #FFF;
  color: var(--text-dark);
  min-height: var(--touch-target);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
  outline: none;
}

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

/* Çerez Bildirim Barı (Banner) */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 650px;
  background: var(--primary);
  color: #FFF;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  border: 1px solid var(--gold);
  display: none;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #EDE3D8;
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Çerez Tercih Modalı */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  width: var(--touch-target);
  height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Sabit Alt Eylemler (WhatsApp, Yukarı Çık) */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #FFF !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Footer */
.site-footer {
  background-color: #24140B;
  color: #DFD3C6;
  padding: 60px 0 25px 0;
  margin-top: 60px;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 35px;
  margin-bottom: 45px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 18px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  color: #DFD3C6;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--gold);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
  font-size: 0.82rem;
  color: #A89587;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Mobil Uyumluluk Kuralı (Responsive Breakpoints) */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .top-bar-contact {
    display: none;
  }

  .top-bar .container {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
