/* ==========================================================================
   base.css — Ortak temel + chrome (her sayfada kullanılır)
   Reset, CSS değişkenleri, top-bar, header, ana menü, breadcrumb, footer,
   sepet çekmecesi, toast, sabit WhatsApp butonu.
   Alt sayfalar (sepet, ödeme, panel) bu dosyayı paylaşır.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #fff7ed;
  --green: #16A34A;
  --green-dark: #15803D;
  --dark: #1a1a2e;
  --darker: #111827;
  --gray-bg: #f8f8f8;
  --border: #e5e5e5;
  --text: #1f2937;
  --text-light: #6b7280;
}
body { font-family: 'Poppins', sans-serif; color: var(--text); background: #fff; line-height: 1.65; font-size: 16px; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select { font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

/* ===== TOP BAR — Sade announcement ===== */
.top-bar {
  background: #1f1f1f;
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
  overflow: hidden;
}
.top-bar .container { display: flex; align-items: center; gap: 24px; }
.marquee-wrap { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee { display: inline-block; white-space: nowrap; animation: scroll 50s linear infinite; padding-left: 100%; }
.marquee span { margin-right: 40px; color: rgba(255,255,255,0.85); }
.marquee .label { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.marquee .old-price { color: rgba(255,255,255,0.4); text-decoration: line-through; margin-right: 6px; font-size: 12px; }
.marquee .new-price { color: #8ce5a4; font-weight: 500; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.top-bar .btn-all {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.top-bar .btn-all:hover { opacity: 1; }

/* ===== HEADER TOP — Minimal, ferah ===== */
.header-top {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 0;
  font-size: 14px;
}
.header-top .container { display: flex; align-items: center; gap: 28px; }
.header-top .contact-info { display: flex; gap: 24px; align-items: center; color: #5f6368; font-weight: 400; }
.header-top .contact-info a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.header-top .contact-info a:hover { color: #1f1f1f; }
.search-box { flex: 1; max-width: 480px; position: relative; }
.search-box input {
  width: 100%;
  padding: 12px 18px 12px 44px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #f8f9fa;
  transition: all 0.2s;
}
.search-box input:focus { background: #fff; border-color: #1f1f1f; box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.search-box .search-svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #5f6368; }
.header-top .actions { display: flex; gap: 8px; margin-left: auto; }
.btn-orange {
  background: #1f1f1f;
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-orange:hover { background: #000; }
.btn-dark {
  background: transparent;
  color: #1f1f1f;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-dark:hover { background: #f8f9fa; border-color: #1f1f1f; }

/* ===== MAIN NAV — Apple/Google tarzı ===== */
.main-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav .container { display: flex; align-items: center; gap: 40px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .brand { font-size: 22px; font-weight: 500; color: #1f1f1f; letter-spacing: -0.4px; }
.logo .brand span { color: #1f1f1f; font-weight: 700; }
.logo .tagline { font-size: 9px; color: #5f6368; letter-spacing: 1.5px; margin-top: 4px; font-weight: 400; }
.nav-menu { display: flex; gap: 32px; flex: 1; justify-content: center; }
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: #1f1f1f;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { opacity: 1; }
.nav-icons { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #1f1f1f;
}
.icon-btn:hover { background: #f1f3f4; }
.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #1f1f1f;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #fff;
  padding: 20px 0 12px;
  font-size: 13px;
  color: #5f6368;
}
.breadcrumb .container { display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: #5f6368; transition: color 0.2s; }
.breadcrumb a:hover { color: #1f1f1f; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: #1f1f1f; font-weight: 500; }

/* ===== FOOTER — Sade Google tarzı ===== */
footer {
  background: #f8f9fa;
  color: #1f1f1f;
  padding: 70px 0 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.footer-brand .brand-name {
  font-size: 22px;
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}
.footer-brand .brand-name span { font-weight: 700; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #5f6368;
  max-width: 320px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #1f1f1f;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: #1f1f1f;
  color: #fff;
}
.contact-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #5f6368;
}
.contact-icon {
  width: 32px; height: 32px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #1f1f1f;
}
/* Footer iletişim satırı — ürün sayfası varyantı (.contact-row ile çakışmaması için) */
.f-contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #5f6368; }
.f-contact-ico { width: 32px; height: 32px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #1f1f1f; }
.footer-links a {
  display: block;
  font-size: 14px;
  padding: 7px 0;
  color: #5f6368;
  transition: color 0.2s;
}
.footer-links a:hover { color: #1f1f1f; }
.newsletter p {
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 16px;
  line-height: 1.6;
}
.newsletter-form {
  position: relative;
}
.newsletter input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px 50px 12px 16px;
  border-radius: 100px;
  color: #1f1f1f;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.newsletter input:focus { border-color: #1f1f1f; }
.newsletter input::placeholder { color: #9aa0a6; }
.newsletter button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: #1f1f1f;
  color: #fff;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.newsletter button:hover { background: #000; }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5f6368;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom-links {
  display: flex; gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: #5f6368;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: #1f1f1f; }
.payment-logos {
  display: flex; gap: 8px;
}
.payment-logo {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #5f6368;
  letter-spacing: 0.5px;
}

/* ===== CART DRAWER ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: -440px; width: 420px; max-width: 100%; height: 100vh; background: #fff; z-index: 101; transition: right 0.3s; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.12); }
.cart-drawer.active { right: 0; }
.cart-header { padding: 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cart-close { background: #f3f4f6; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cart-close:hover { background: #e5e7eb; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.cart-empty svg { color: #d1d5db; margin-bottom: 14px; }
.cart-empty h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-name { flex: 1; }
.cart-item .ci-domain { font-size: 14px; font-weight: 600; }
.cart-item .ci-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.cart-item .ci-price { font-size: 15px; font-weight: 700; }
.ci-remove { background: #fee2e2; color: #dc2626; width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.ci-remove:hover { background: #fecaca; }
.cart-summary { border-top: 2px solid var(--border); padding: 22px; background: var(--gray-bg); }
.cs-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cs-row.discount { color: var(--green); font-weight: 600; }
.cs-row.total { font-size: 22px; font-weight: 800; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cs-total-old { text-decoration: line-through; color: var(--text-light); font-weight: 500; font-size: 14px; margin-right: 6px; }
.discount-info { background: #fef3c7; color: #92400e; padding: 11px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.btn-checkout { width: 100%; background: #25D366; color: #fff; padding: 15px; border-radius: 10px; font-size: 15px; font-weight: 700; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn-checkout:hover { background: #1ba84e; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--darker); color: #fff; padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 200; transition: transform 0.3s; display: flex; align-items: center; gap: 9px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }

/* ===== WHATSAPP FIXED ===== */
.whatsapp-fixed { position: fixed; bottom: 30px; left: 30px; background: #25D366; color: #fff; padding: 15px 24px 15px 18px; border-radius: 32px; display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); z-index: 50; transition: transform 0.2s; }
.whatsapp-fixed:hover { transform: scale(1.05); }

/* ===== Hamburger butonu (mobil) ===== */
.nav-toggle {
  display: none;
  background: transparent;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: #1f1f1f;
  transition: background 0.2s;
}
.nav-toggle:hover { background: #f1f3f4; }

/* ===== CHROME RESPONSIVE (header / nav / footer — tüm sayfalar) ===== */
@media (max-width: 1024px) {
  .nav-menu { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav .container { flex-wrap: wrap; gap: 14px; }
  .nav-icons { margin-left: auto; }
  .nav-menu {
    display: none;
    order: 5; width: 100%; flex: none;
    flex-direction: column; align-items: stretch;
    gap: 0; justify-content: flex-start;
    margin-top: 4px; padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .main-nav.open .nav-menu { display: flex; }
  .nav-menu a { padding: 13px 6px; opacity: 0.9; border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav-menu a:last-child { border-bottom: none; }
  /* Üst bar: arama tam genişlik, ikincil aksiyon butonlarını gizle */
  .header-top .container { flex-wrap: wrap; gap: 12px; }
  .header-top .contact-info { width: 100%; justify-content: space-between; gap: 12px; font-size: 13px; }
  .search-box { order: 3; max-width: 100%; flex: 1 1 100%; }
  .header-top .actions { display: none; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top .contact-info { font-size: 12px; }
  .top-bar { font-size: 12px; }
  .whatsapp-fixed { padding: 13px 18px 13px 16px; font-size: 14px; bottom: 20px; left: 16px; }
  .cart-drawer { width: 100%; }
}
