/* ============================================================
   Şifa Medikal — Ana Stil Dosyası
   ============================================================ */

/* Değişkenler */
:root {
  --navy:    #1a2e5a;
  --blue:    #0099cc;
  --light-blue: #e8f4f8;
  --white:   #ffffff;
  --gray:    #f5f7fa;
  --text:    #2c3e50;
  --muted:   #6c7a8d;
  --border:  #dde3ec;
  --shadow:  0 2px 12px rgba(26,46,90,.10);
  --radius:  10px;
  --transition: .25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }

/* Utility */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #0080aa; color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; color: var(--white); }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 36px; }
section { padding: 72px 0; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand .brand-text { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.navbar-brand .brand-sub { font-size: .7rem; color: var(--blue); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; color: var(--text); transition: var(--transition); font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3d7a 50%, #0d4f8c 100%);
  color: var(--white);
  padding: 90px 0 80px;
  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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: var(--white); padding: 6px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero h1 span { color: #7dd4f0; }
.hero p { font-size: 1.05rem; opacity: .9; margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.hero-img img { width: 100%; height: 360px; object-fit: cover; }
.hero-placeholder { width: 100%; height: 360px; background: rgba(255,255,255,.08); border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(255,255,255,.2); }
.hero-placeholder span { color: rgba(255,255,255,.4); font-size: .9rem; }

/* ── Özellikler Bandı ── */
.features-strip { background: var(--gray); padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon { width: 48px; height: 48px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; }
.feature-item h3 { font-size: .9rem; font-weight: 700; color: var(--navy); }
.feature-item p { font-size: .8rem; color: var(--muted); }

/* ── Hakkımızda ── */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-placeholder { width: 100%; height: 380px; background: var(--light-blue); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 3rem; }
.about-brands { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.brand-badge { background: var(--light-blue); color: var(--navy); padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; border: 1px solid #c5dff0; }

/* ── Öne Çıkan Ürünler ── */
.featured { background: var(--gray); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,46,90,.15); }
.product-card-img { height: 200px; background: var(--light-blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .no-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; }
.product-card-img .no-img span { font-size: 2rem; opacity: .5; }
.product-card-img .no-img small { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.empty-cat { display: flex; align-items: center; gap: 10px; padding: 32px 0; color: var(--muted); font-size: .92rem; }
.empty-cat span { font-weight: 500; }
.product-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-category { font-size: .75rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.product-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-card-body p { font-size: .87rem; color: var(--muted); flex: 1; }
.product-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

/* ── SSS ── */
.faq .container { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; background: none; border: none; padding: 18px 22px;
  text-align: left; font-weight: 600; font-size: .95rem; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray); }
.faq-question.open { background: var(--light-blue); color: var(--blue); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-answer.open { max-height: 200px; padding: 14px 22px 18px; }
.faq-answer p { color: var(--muted); font-size: .92rem; }

/* ── İletişim ── */
.contact { background: var(--gray); }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 12px; }
.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; }
.contact-detail .icon { width: 40px; height: 40px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; }
.contact-detail h4 { font-size: .82rem; color: var(--muted); font-weight: 500; }
.contact-detail p { font-size: .95rem; font-weight: 600; color: var(--navy); }
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 7px; font-size: .93rem; color: var(--text);
  transition: border-color var(--transition); background: var(--white);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,153,204,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: .88rem; display: none; }
.form-msg.success { background: #d4edda; color: #155724; display: block; }
.form-msg.error { background: #f8d7da; color: #721c24; display: block; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-text { color: var(--white); font-size: 1.2rem; font-weight: 700; }
.footer-brand p { margin-top: 10px; font-size: .87rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ── Ürünler Sayfası ── */
.page-hero { background: linear-gradient(135deg, var(--navy), #1e4a8a); color: var(--white); padding: 48px 0; }
.page-hero h1 { font-size: 2rem; font-weight: 800; }
.page-hero p { opacity: .85; margin-top: 8px; }
.category-tabs-wrap { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 68px; z-index: 50; }
.category-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 4px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 16px 22px; border: none; background: none; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: var(--transition); font-family: inherit;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.products-section { padding: 48px 0; }
.products-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-panel { display: none; }
.product-panel.active { display: block; }

/* ── Ürün Detay ── */
.product-detail { padding: 56px 0; }
.product-detail .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-gallery img { width: 100%; height: 420px; object-fit: cover; }
.product-gallery .no-img { width: 100%; height: 420px; background: var(--light-blue); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 4rem; opacity: .4; }
.product-info .breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.product-info .breadcrumb a { color: var(--blue); }
.product-info h1 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.product-info .product-category-tag { display: inline-block; background: var(--light-blue); color: var(--blue); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px; }
.product-description { color: var(--muted); font-size: .97rem; line-height: 1.8; margin-bottom: 28px; }
.product-actions { display: flex; flex-direction: column; gap: 12px; }
.product-actions .btn { width: 100%; text-align: center; padding: 14px; font-size: 1rem; }

/* ── Harita ── */
.map-wrap { width: 100%; line-height: 0; position: relative; }
.map-wrap iframe { width: 100% !important; height: 400px !important; border: 0; display: block; }
.map-overlay { position: absolute; inset: 0; background: #e8f4f8; display: flex; align-items: center; justify-content: center; cursor: pointer; min-height: 200px; }
.map-overlay-inner { text-align: center; color: #1a2e5a; }
.map-overlay-inner p { font-size: .9rem; font-weight: 600; margin-top: 8px; }

/* ── Admin ── */
.admin-wrap { min-height: 100vh; background: #f0f2f5; }
.admin-header { background: var(--navy); color: var(--white); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-header .logo { font-weight: 700; font-size: 1.05rem; }
.admin-header nav { display: flex; gap: 18px; align-items: center; }
.admin-header nav a { color: rgba(255,255,255,.8); font-size: .88rem; transition: color var(--transition); }
.admin-header nav a:hover { color: var(--white); }
.admin-content { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.admin-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--gray); padding: 10px 14px; text-align: left; font-size: .82rem; text-transform: uppercase; color: var(--muted); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray); }
.btn-sm { padding: 6px 14px; font-size: .82rem; border-radius: 5px; }
.btn-danger { background: #e74c3c; color: var(--white); }
.btn-danger:hover { background: #c0392b; color: var(--white); }
.btn-edit { background: var(--blue); color: var(--white); }
.btn-edit:hover { background: #0080aa; color: var(--white); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray); }
.login-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; width: 100%; max-width: 380px; }
.login-box h1 { font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.login-box p { color: var(--muted); font-size: .88rem; margin-bottom: 28px; }
.alert { padding: 12px 16px; border-radius: 6px; font-size: .88rem; margin-bottom: 18px; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .products-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-img, .hero-placeholder { display: none; }
  .about .container { grid-template-columns: 1fr; }
  .contact .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-strip .container { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .products-grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* ── WhatsApp Sabit Butonu ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(37,211,102,.55); }
.wa-float svg  { width: 30px; height: 30px; fill: #fff; }
.wa-float .wa-tooltip {
  position: absolute;
  right: 66px;
  background: #333;
  color: #fff;
  font-size: .78rem;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ── KVKK Banner ── */
.kvkk-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(26,46,90,.97);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .83rem;
  line-height: 1.5;
}
.kvkk-banner p   { margin: 0; opacity: .9; }
.kvkk-banner button {
  flex-shrink: 0;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
}
.kvkk-banner button:hover { background: #1da851; }
@media (max-width: 600px) {
  .kvkk-banner { flex-direction: column; align-items: flex-start; }
  .wa-float { bottom: 20px; right: 16px; }
}
