/* Özer Medikal - Modern Sağlık ve Medikal Malzeme Teması */

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

:root {
  --primary-navy: #0b2545;
  --secondary-navy: #133b68;
  --accent-cyan: #0284c7;
  --accent-teal: #0d9488;
  --accent-emerald: #10b981;
  --bg-slate: #f8fafc;
  --border-light: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Glassmorphism efektleri */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Nabız animasyonu (WhatsApp ve Acil Butonlar için) */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-button {
  animation: pulse-ring 2.2s infinite;
}

/* Kart hover yumuşak yükselişi */
.product-card {
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Özel Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hero Gradient */
.hero-gradient {
  background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.12), transparent 45%),
              radial-gradient(circle at bottom left, rgba(13, 148, 136, 0.1), transparent 40%),
              #ffffff;
}

/* Kategori Butonları (Haplar) - Asla Taşmayan, Şık ve Esnek */
.category-pill {
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.category-pill:hover {
  transform: translateY(-1px);
}

.category-pill.active {
  background-color: #0b2545 !important;
  color: #ffffff !important;
  border-color: #0b2545 !important;
  box-shadow: 0 6px 16px -2px rgba(11, 37, 69, 0.3) !important;
}

/* Modal animasyonu */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* SGK rozet ışıltısı */
.sgk-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}


/* ===== Yönetim paneli: mobil iyileştirmeleri ===== */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Modal yüksekliği: mobil tarayıcıların adres çubuğunu hesaba katar */
.edit-modal-panel { max-height: 90vh; max-height: 90dvh; }

@media (max-width: 1023px) {
  /* iOS Safari, yazı boyutu 16px'ten küçük alanlara dokunulunca sayfayı yakınlaştırır */
  body[data-page] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  body[data-page] select,
  body[data-page] textarea { font-size: 16px !important; }
  /* Kaydırmayı kısıtlayan yatay taşmaları engelle */
  body[data-page] { overflow-x: hidden; }
  body[data-page] input[type="checkbox"] { width: 1.25rem; height: 1.25rem; }
  body[data-page] [data-lucide] { flex-shrink: 0; }
  /* Üstteki sabit başlığa tıklanan bağlantılar gizlenmesin */
  body[data-page] { padding-bottom: env(safe-area-inset-bottom, 0px); }
}


/* ===== Herkese açık sayfalar: mobil iyileştirmeleri ===== */
/* Sabit üst başlığın altında kalmasın: #bölüm bağlantılarında başlık payı bırak */
html { scroll-padding-top: 6.5rem; }

/* Ürün penceresi: mobil adres çubuğunu hesaba kat, arka planı kaydırma */
#product-modal .modal-content { max-height: 92vh; max-height: 92dvh; overscroll-behavior: contain; }

@media (max-width: 639px) {
  /* iOS Safari 16px altı alanlarda yakınlaştırır */
  #catalog-search { font-size: 16px; }
  /* Kategori ve marka etiketleri alt alta yığılmak yerine yana kaydırılır */
  #catalog-categories, #catalog-brands { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .25rem; }
  #catalog-categories::-webkit-scrollbar, #catalog-brands::-webkit-scrollbar { display: none; }
  #catalog-categories > *, #catalog-brands > * { flex-shrink: 0; white-space: nowrap; }
  /* Harita telefonda ekranı kaplamasın */
  #iletisim iframe { min-height: 300px !important; }
}

/* Hareketi azaltmak isteyen kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  .pulse-button, .animate-ping { animation: none !important; }
  html, body { scroll-behavior: auto; }
}

/* ===== Çerez bildirimi ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 40rem; margin: 0 auto; background: #0a1e33; color: #e2e8f0; border: 1px solid #1e3a5f; border-radius: 1rem; padding: 1rem 1.1rem; box-shadow: 0 20px 40px rgba(2, 6, 23, .35); display: flex; flex-direction: column; gap: .8rem; font-size: .8125rem; line-height: 1.5; }
.cookie-banner a { color: #7dd3fc; text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-btn { flex: 1; min-height: 44px; padding: .55rem 1rem; border-radius: .75rem; font-weight: 700; font-size: .875rem; background: #fff; color: #0a1e33; border: 2px solid #fff; cursor: pointer; }
.cookie-btn:hover { background: #e2e8f0; border-color: #e2e8f0; }
.cookie-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
@media (min-width: 640px) { .cookie-banner { flex-direction: row; align-items: center; } .cookie-actions { flex: none; } .cookie-btn { flex: none; min-width: 7rem; } }

/* İkonlar yüklenmeden önce de yer ayırır (sayfa kayması olmasın) */
i[data-lucide] { display: inline-block; flex-shrink: 0; }

/* ===== Zengin metin (açıklama düzenleyici ve gösterim) ===== */
.rt p { margin: .5rem 0; } .rt p:first-child, .rt h2:first-child, .rt h3:first-child { margin-top: 0; }
.rt h2 { font-size: 1.05rem; font-weight: 800; margin: 1rem 0 .4rem; color: #0f172a; } .rt h3 { font-size: .95rem; font-weight: 800; margin: .8rem 0 .3rem; color: #0f172a; }
.rt ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; } .rt ol { list-style: decimal; padding-left: 1.25rem; margin: .5rem 0; } .rt li { margin: .2rem 0; }
.rt a { color: #0369a1; text-decoration: underline; } .rt blockquote { border-left: 3px solid #7dd3fc; padding-left: .75rem; color: #475569; margin: .6rem 0; }
.oe-wrap { border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; }
.oe-wrap:focus-within { box-shadow: 0 0 0 2px #0ea5e9; }
.oe-bar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; border-radius: .75rem .75rem 0 0; position: relative; }
.oe-btn { min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border-radius: .5rem; border: 1px solid #e2e8f0; background: #fff; font-size: .8rem; color: #334155; cursor: pointer; }
.oe-btn:hover { background: #e0f2fe; border-color: #7dd3fc; }
.oe-area { min-height: 10rem; max-height: 22rem; overflow-y: auto; padding: .75rem .9rem; font-size: .875rem; line-height: 1.6; color: #334155; outline: none; word-break: break-word; }
.oe-emoji { position: absolute; top: 100%; left: .4rem; z-index: 20; display: grid; grid-template-columns: repeat(8, 2.1rem); gap: .15rem; padding: .4rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .6rem; box-shadow: 0 10px 24px rgba(15, 23, 42, .15); }
.oe-emoji[hidden] { display: none; } .oe-emoji button { height: 2.1rem; font-size: 1.1rem; border-radius: .4rem; cursor: pointer; background: transparent; border: 0; } .oe-emoji button:hover { background: #e0f2fe; }
.oe-colors { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.oe-swatch { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem .25rem .3rem; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: .72rem; font-weight: 700; color: #334155; cursor: pointer; min-height: 2rem; }
.oe-swatch.on { background: #e0f2fe; border-color: #0284c7; color: #075985; box-shadow: inset 0 0 0 1px #0284c7; }
.oe-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid #cbd5e1; display: inline-block; flex: none; }
.color-dot { display: inline-block; width: .95rem; height: .95rem; border-radius: 50%; border: 1px solid #cbd5e1; flex: none; }

/* Ürün kartı görsel alanı: her kartta aynı kare ölçü; farklı oranlı görseller kutuyu büyütmez, kırpılmadan ortalanır */
.pcard-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f8fafc; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .75rem; box-sizing: border-box; }

/* ===== Dükkan görselleri slaytı (Hakkımızda) ===== */
.shop-slider { margin: 0 0 2rem; }
.shop-slider[hidden] { display: none; }
.shop-slider__viewport { position: relative; overflow: hidden; border-radius: 1rem; background: #0f172a; aspect-ratio: 16 / 10; outline-offset: 3px; touch-action: pan-y; }
.shop-slider__track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform .5s ease; }
.shop-slider__slide { flex: 0 0 100%; position: relative; height: 100%; margin: 0; }
.shop-slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.shop-slider__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(2, 6, 23, .78)); }
.shop-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #0f172a; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(15, 23, 42, .25); }
.shop-slider__nav:hover { background: #fff; }
.shop-slider__prev { left: .6rem; } .shop-slider__next { right: .6rem; }
.shop-slider__bar { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .6rem; }
.shop-slider__dots { display: flex; gap: .15rem; }
.shop-slider__dot { position: relative; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.shop-slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: .6rem; height: .6rem; border-radius: 999px; background: #cbd5e1; transform: translate(-50%, -50%); transition: width .2s, background .2s; }
.shop-slider__dot[aria-current="true"]::before { width: 1.1rem; background: #0284c7; }
.shop-slider__pause { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; font-size: .7rem; color: #334155; cursor: pointer; }
.shop-slider button:focus-visible, .shop-slider__viewport:focus-visible { outline: 3px solid #38bdf8; }
@media (prefers-reduced-motion: reduce) { .shop-slider__track { transition: none; } }
@media (max-width: 640px) { .shop-slider__viewport { aspect-ratio: 4 / 3; } .shop-slider__nav { width: 2.4rem; height: 2.4rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
