/* ============================================================
   HOMENSA MOBİLYA – Ana Tasarım Sistemi
   ============================================================ */

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

/* ── CSS Design Tokens ─────────────────────────────────────── */
:root {
  /* Renkler */
  --primary: #1a1a2e;
  --primary-dark: #12121f;
  --primary-light: #252540;
  --accent: #c8a96e;
  --accent-dark: #a8894e;
  --accent-light: #e8d5b0;
  --accent-pale: #fdf8f0;

  --bg-light: #f8f7f4;
  --bg-cream: #faf9f6;
  --bg-white: #ffffff;
  --bg-dark: #0f0f1a;

  --text-primary: #1a1a2e;
  --text-secondary: #5a5a7a;
  --text-muted: #9090aa;
  --text-light: #ffffff;
  --text-accent: #c8a96e;

  --border: #e8e6e0;
  --border-light: #f0eeea;
  --border-dark: #d0cec8;

  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #3b82f6;

  /* Gölgeler */
  --shadow-xs: 0 1px 2px rgba(26,26,46,0.05);
  --shadow-sm: 0 2px 8px rgba(26,26,46,0.08);
  --shadow-md: 0 4px 20px rgba(26,26,46,0.10);
  --shadow-lg: 0 8px 40px rgba(26,26,46,0.14);
  --shadow-xl: 0 16px 60px rgba(26,26,46,0.18);
  --shadow-accent: 0 4px 20px rgba(200,169,110,0.30);

  /* Kenar Yarıçapları */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Aralıklar */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Tipografi */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Geçiş */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1320px;
  --header-height: 130px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,26,46,0.2);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(26,26,46,0.25);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,169,110,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-full { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

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

.card-body { padding: var(--space-6); }
.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: #d97706; }
.badge-danger  { background: var(--danger-light);  color: var(--danger); }
.badge-primary { background: var(--primary); color: #fff; }
.badge-accent  { background: var(--accent-pale); color: var(--accent-dark); border: 1px solid var(--accent-light); }

/* ── Form Elements ───────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: var(--space-5);
}
.alert-success { background: var(--success-light); color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: var(--danger-light);  color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }

/* ── Section Spacing ─────────────────────────────────────────── */
.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }

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

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

/* ── Loading Skeleton ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0eeea 25%, #e8e6e0 50%, #f0eeea 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Toast Notification ──────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 260px;
  animation: toast-in 0.35s var(--transition);
}

.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stars ───────────────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
  font-size: 14px;
}

/* ── Price ───────────────────────────────────────────────────── */
.price-current {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.price-old {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  :root { --container-max: 100%; }
  .container { padding: 0 var(--space-4); }
}

@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-3); }
  .section { padding: var(--space-10) 0; }
  .section-title { font-size: 22px; }
}

@media (max-width: 400px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-2); }
}

/* ── Trust Strip ─────────────────────────────────────────────── */
.trust-strip {
  background: var(--primary);
  padding: var(--space-8) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.trust-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.trust-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.trust-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  padding: var(--space-16) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-6);
}
.footer-brand img { height: 48px; margin-bottom: var(--space-4); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: var(--space-5); }
.footer-social { display: flex; gap: var(--space-2); }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--accent); transform: translateY(-2px); }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-contact-item .icon { flex-shrink: 0; font-size: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) 0 var(--space-6);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.payment-logos { display: flex; align-items: center; gap: var(--space-2); }
.payment-logo-item {
  padding: 3px 9px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

/* ── Campaign Banner ─────────────────────────────────────────── */
.campaign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.campaign-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  height: 280px;
}
.campaign-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.campaign-banner:hover img { transform: scale(1.06); }
.campaign-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,20,0.8), rgba(10,10,20,0.3));
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.campaign-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  width: fit-content;
}
.campaign-title { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 6px; font-family: var(--font-heading); }
.campaign-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.campaign-cta { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ── Qty Control ─────────────────────────────────────────────── */
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  background: var(--bg-light);
  color: var(--text-primary);
  border: none;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--border); }
.qty-value {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  -moz-appearance: textfield;
}
.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Payment Tabs ────────────────────────────────────────────── */
.payment-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.payment-tab {
  flex: 1;
  padding: 11px var(--space-4);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  background: white;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-tab.active { background: var(--primary); color: #fff; }

/* ── Secure Badge ────────────────────────────────────────────── */
.secure-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-4);
}

/* ── Installment Table ────────────────────────────────────────── */
.installment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.installment-table thead th {
  padding: 10px 12px;
  text-align: left;
  background: var(--bg-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.installment-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
}
.installment-table tbody tr:hover { background: var(--bg-light); }
.installment-table tbody tr:last-child { border-bottom: none; }
.installment-table td { padding: 10px 12px; }

/* ── badge-info ──────────────────────────────────────────────── */
.badge-info { background: #eff6ff; color: var(--info); }

/* ── Responsive Footer / Trust ───────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .campaign-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}


/* ── İLETİŞİM BÖLÜMÜ ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.contact-info-card { background: var(--bg-white); padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.contact-info-card h3 { font-size: 24px; font-weight: 700; margin-bottom: var(--space-6); color: var(--primary); }
.contact-item { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-5); }
.contact-icon { font-size: 24px; color: var(--accent); }
.contact-detail { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.contact-detail strong { display: block; color: var(--text-primary); margin-bottom: 4px; }
.contact-map { width: 100%; height: 400px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.social-buttons { display: flex; gap: 12px; margin-top: var(--space-6); }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--primary); color: #fff; border-radius: var(--radius-full); font-weight: 600; text-decoration: none; transition: all var(--transition); }
.social-btn:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-map { height: 300px; } }

