/* =============================================================
   Peyzaj & Bahçe Tasarımı — PHP sürümü stilleri
   ============================================================= */
:root {
  --brand-50: #f0f7f3;
  --brand-100: #d9ece2;
  --brand-200: #b4d9c6;
  --brand-300: #86bfa3;
  --brand-400: #56a17d;
  --brand-500: #348563;
  --brand-600: #236a4e;
  --brand-700: #1c553f;
  --brand-800: #184433;
  --brand-900: #0b2b21;
  --stone: #f5f1ea;
  --slate-800: #1c2a24;
  --slate-600: #4b5563;
  --slate-500: #64706b;
  --slate-400: #94a3a8;
  --slate-300: #cbd5d1;
  --line: #e3ddd2;
  --amber: #d97706;
  --red: #dc2626;
  --green: #16a34a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--stone);
  color: var(--slate-800);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 20px; width: 100%; }
.main { flex: 1; }
.muted { color: var(--slate-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-800); }
.brand-icon { color: var(--brand-600); font-size: 24px; display: inline-flex; }
.nav { display: none; gap: 24px; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.nav a:hover { color: var(--brand-700); }
.cart-link { position: relative; display: inline-flex; align-items: center; padding: 8px; color: var(--slate-600); border-radius: 999px; }
.cart-link:hover { background: var(--brand-50); }
.cart-icon { font-size: 22px; display: inline-flex; }
.cart-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand-600); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700) 55%, var(--brand-500));
  color: #fff; padding: 72px 0;
}
.hero .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-200); }
.hero h1 { font-size: 2.25rem; font-weight: 800; margin: 12px 0 16px; max-width: 640px; }
.hero p { color: var(--brand-100); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border-radius: 999px; padding: 12px 24px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-outline { border-color: var(--brand-700); color: var(--brand-800); }
.btn-outline:hover { background: var(--brand-50); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.1); }
.btn-outline-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.btn-whatsapp:hover { filter: brightness(.95); }
.btn-icon { font-size: 16px; display: inline-flex; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.9); }

/* ---------- Bölümler ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 1.75rem; font-weight: 800; color: var(--brand-900); }
.section-head .sub { color: var(--slate-500); }
.page { padding: 48px 0; }
.page h1 { font-size: 1.9rem; font-weight: 800; color: var(--brand-900); }

/* ---------- Grid & Kartlar ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1023px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.card h3 { font-size: 16px; color: var(--slate-800); }
.card .muted { font-size: 14px; }

.project-card, .product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s;
}
.project-card:hover, .product-card:hover { box-shadow: 0 8px 24px rgba(11,43,33,.08); }
.card-media { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand-100), var(--brand-300)); display: flex; align-items: center; justify-content: center; color: var(--brand-500); font-size: 40px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.badge-ongoing { background: var(--amber); }
.badge-completed { background: var(--brand-700); }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 16px; font-weight: 700; color: var(--slate-800); }
.card-body .muted { font-size: 14px; }
.card-body .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-size: 18px; font-weight: 800; color: var(--brand-700); }
.meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate-400); margin-top: 8px; }

/* ---------- Rozetler ---------- */
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.pill-green { background: var(--brand-600); }
.pill-amber { background: var(--amber); }
.pill-red { background: var(--red); }
.pill-gray { background: var(--slate-400); }

/* ---------- Formlar ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { margin-bottom: 16px; }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--slate-600); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: 10px;
  font-size: 14px; color: var(--slate-800); background: #fff; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(52,133,99,.12); }
textarea.input { min-height: 110px; resize: vertical; }
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-600); }
.form-error { color: var(--red); font-size: 13px; margin-top: 4px; }

/* ---------- Uyarılar ---------- */
.alert { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; background: var(--stone); color: var(--slate-600); font-weight: 600; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--slate-600); }
.table tr:hover td { background: #fbfaf7; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--slate-500); }
.empty .empty-icon { font-size: 44px; color: var(--slate-300); margin-bottom: 8px; }

/* ---------- Detay sayfası ---------- */
.detail-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1.4fr 1fr; } }
.kunye { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; height: fit-content; }
.kunye dl { margin: 16px 0 0; }
.kunye .item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.kunye .item svg { color: var(--brand-600); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.kunye dt { color: var(--slate-400); font-size: 12px; }
.kunye dd { margin: 0; font-weight: 600; color: var(--slate-600); }
.video-wrap { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; width: 100%; }

/* ---------- Sepet ---------- */
.cart-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cart-item .thumb { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-100), var(--brand-300)); color: var(--brand-500); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cart-item .info { flex: 1; min-width: 0; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 4px; }
.qty-btn { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.qty-btn:hover { background: var(--brand-50); }
.qty-val { width: 32px; text-align: center; font-weight: 600; font-size: 14px; }
.link-danger { color: var(--slate-400); }
.link-danger:hover { color: var(--red); }

/* ---------- Yorumlar ---------- */
.quote-card { background: var(--stone); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.quote-card .stars { color: #f59e0b; font-size: 15px; display: inline-flex; gap: 2px; }

/* ---------- Stat kartları (admin) ---------- */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stat-card svg { color: var(--brand-600); font-size: 24px; }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--brand-900); margin-top: 8px; }
.stat-card .lbl { font-size: 14px; color: var(--slate-500); }

/* ---------- Admin düzeni ---------- */
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .admin-grid { grid-template-columns: 220px 1fr; } }
.admin-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; height: fit-content; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--slate-600); }
.admin-sidebar a:hover { background: var(--brand-50); color: var(--brand-700); }
.admin-sidebar a.active { background: var(--brand-50); color: var(--brand-700); }
.admin-sidebar svg { font-size: 16px; }
.admin-sidebar .sep { border-top: 1px solid var(--line); margin: 8px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 56px; }
.footer-grid { display: grid; gap: 32px; padding: 48px 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { font-size: 14px; font-weight: 700; color: var(--slate-800); }
.footer-tag { margin-top: 12px; }
.footer-links { margin-top: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--slate-500); font-size: 14px; }
.footer-links a:hover { color: var(--brand-700); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; text-align: center; font-size: 12px; color: var(--slate-400); }

/* ---------- CTA bandı ---------- */
.cta { background: var(--brand-900); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; }
.cta h2 { color: #fff; font-size: 1.6rem; }
.cta p { color: var(--brand-100); max-width: 560px; margin: 12px auto 24px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tab { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--slate-600); }
.tab:hover { background: var(--brand-50); }
.tab-active { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--slate-500); }
.back-link:hover { color: var(--brand-700); }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.login-wrap { max-width: 420px; margin: 0 auto; }

/* ---------- Üyelik / hesap ---------- */
.header-actions { display: flex; align-items: center; gap: 12px; }
.account-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--slate-800); text-decoration: none; white-space: nowrap; }
.account-link svg { width: 18px; height: 18px; }
.account-link:hover { color: var(--brand-600); }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.account-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-name { display: none; }
}

/* ---------- İletişim / harita ---------- */
.contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 10px 0; color: var(--slate-700); }
.contact-line svg { width: 16px; height: 16px; color: var(--brand-600); flex-shrink: 0; margin-top: 1px; }
.contact-line a { color: inherit; text-decoration: none; }
.contact-line a:hover { color: var(--brand-600); }
.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }
