/* ==========================================================================
   3derin.tr - Vibrant, Elegant & Ultra-Readable Modern Theme
   Kurucu & Tasarımcı: Çağla Hanım | Kadın Girişimci 3D Atölyesi - Osmangazi / BURSA
   Renk Paleti Hiyerarşisi: 
     1. Öncelik: PEMBE (Pink - #EC4899, #DB2777)
     2. Öncelik: BEYAZ (White - #FFFFFF)
     3. Öncelik: MOR (Purple - #8B5CF6, #7C3AED)
   ========================================================================== */

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

:root {
  /* 1. ÖNCELİK: PEMBE (Pink) */
  --brand-pink: #EC4899;
  --brand-pink-dark: #DB2777;
  --brand-pink-deep: #BE185D;
  --brand-pink-light: #FDF2F8;
  --brand-pink-soft: #FCE7F3;
  --brand-pink-border: #FBCFE8;
  --brand-pink-glow: rgba(236, 72, 153, 0.22);

  /* 2. ÖNCELİK: BEYAZ (White - Aydınlık, Net Canvas) */
  --brand-white: #FFFFFF;
  --brand-white-pure: #FFFFFF;
  --brand-white-off: #FAFAFC;
  --brand-white-surface: #FFFFFF;

  /* 3. ÖNCELİK: MOR (Purple - İkincil Vurgular & Geçişler) */
  --brand-purple: #8B5CF6;
  --brand-purple-dark: #7C3AED;
  --brand-purple-deep: #6D28D9;
  --brand-purple-light: #FAF5FF;
  --brand-purple-soft: #F3E8FF;
  --brand-purple-border: #DDD6FE;
  --brand-purple-glow: rgba(139, 92, 246, 0.20);

  /* Yüksek Okunabilirlik Metin Renkleri (Slate / Neutral) */
  --text-main: #0F172A;     /* Derin, keskin kontrast */
  --text-muted: #334155;    /* Açıklama ve gövde metinleri */
  --text-subtle: #64748B;   /* İkincil etiketler */
  --text-light: #94A3B8;    /* Pasif metinler */

  /* İkonik Gradyanlar (Pembe + Beyaz + Mor) */
  --gradient-pink-purple: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  --gradient-purple-pink: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --gradient-pink-soft: linear-gradient(135deg, #FDF2F8 0%, #FFFFFF 50%, #FAF5FF 100%);
  
  /* Kullanıcının özel beğendiği Hikayemiz Rengarenk Başlık Gradyanı */
  --gradient-rainbow: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #06B6D4 100%);

  /* Çerçeveler & Gölgeler */
  --border-light: #F1F5F9;
  --border-pink: #FCE7F3;
  --border-purple: #F3E8FF;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.10);
  --shadow-pink: 0 10px 25px rgba(236, 72, 153, 0.25);
  --shadow-purple: 0 10px 25px rgba(139, 92, 246, 0.20);

  /* Yuvarlama Değerleri */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Temel Sayfa Ayarları */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--brand-white);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--brand-white);
}

/* Tipografi - Ultra Net ve Modern Başlıklar */
h1, h2, h3, h4, .font-heading, .font-serif-luxury {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Özel Kaydırma Çubuğu */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #FAF5FF;
}
::-webkit-scrollbar-thumb {
  background: #FBCFE8;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-pink);
}

/* Glassmorphism & Header */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #F1F5F9;
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--brand-pink-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Gradyan Başlıklar ve Metinler */
.gradient-text-rainbow {
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-pink-purple, .gold-gradient-text {
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-pink {
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rozetler (Badges) */
.badge-pink, .badge-female-founder {
  background: var(--brand-pink-light);
  border: 1px solid var(--brand-pink-border);
  color: var(--brand-pink-dark);
  font-weight: 700;
}

.badge-purple {
  background: var(--brand-purple-light);
  border: 1px solid var(--brand-purple-border);
  color: var(--brand-purple-dark);
  font-weight: 700;
}

.badge-vibrant-cagla {
  background: linear-gradient(135deg, #FDF2F8 0%, #FAF5FF 100%);
  border: 1px solid var(--brand-pink-border);
  color: var(--brand-pink-dark);
}

/* Buton Stilleri */
.btn-pink {
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pink:hover {
  background: linear-gradient(135deg, #DB2777 0%, #BE185D 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.36);
}

.btn-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-purple:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.32);
}

.btn-pink-purple {
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pink-purple:hover {
  background: linear-gradient(135deg, #DB2777 0%, #7C3AED 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.32);
}

.btn-white-pink {
  background: #FFFFFF;
  color: #DB2777;
  border: 1.5px solid #FBCFE8;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-white-pink:hover {
  background: #FDF2F8;
  border-color: #EC4899;
}

.btn-white-purple {
  background: #FFFFFF;
  color: #7C3AED;
  border: 1.5px solid #DDD6FE;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-white-purple:hover {
  background: #FAF5FF;
  border-color: #8B5CF6;
}

/* Pazaryeri Butonları */
.btn-marketplace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-trendyol {
  background: #FFF5EB;
  color: #F27A1A;
  border: 1px solid #FED7AA;
}
.btn-trendyol:hover {
  background: #F27A1A;
  color: #FFFFFF;
}

.btn-hepsiburada {
  background: #FFF7ED;
  color: #EA580C;
  border: 1px solid #FFEDD5;
}
.btn-hepsiburada:hover {
  background: #EA580C;
  color: #FFFFFF;
}

.btn-n11 {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.btn-n11:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.btn-shopier {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  color: #BE123C;
  border: 1px solid #FDA4AF;
}
.btn-shopier:hover {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* WhatsApp Doğrudan Sipariş Butonu */
.btn-whatsapp-buy {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}
.btn-whatsapp-buy:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Ürün Kartları */
.product-image-container {
  overflow: hidden;
  position: relative;
  background-color: #FAF5FF;
}

.product-image-container img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-card .quick-actions {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .quick-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Bildirimleri */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  padding: 14px 18px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 16px;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    padding: 12px 14px;
  }
}

.toast.toast-success {
  border-left: 5px solid #10B981;
}

.toast.toast-info {
  border-left: 5px solid var(--brand-pink);
}

.toast.toast-error {
  border-left: 5px solid #EF4444;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* Dokunmatik Ekranlar İçin Kart Butonları */
@media (hover: none) {
  .product-card .quick-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* Accordion */
.accordion-content {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.accordion-content.open {
  max-height: 600px;
  opacity: 1;
}

/* Form Kontrolleri & Range Input (1. Öncelik Pembe Accent) */
input[type=range] {
  accent-color: #EC4899;
}

input[type=radio]:checked, input[type=checkbox]:checked {
  accent-color: #EC4899;
}
