/* ============================================================
   RUZGARIX - Özel Stiller
   (Tailwind CDN üzerine ince özel katman)
   ============================================================ */

* {
  font-family: "Inter", sans-serif;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: #fafafa;
  color: #0f172a;
  overflow-x: hidden;
  position: relative;
  min-width: 0;
  max-width: 100vw;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------- Animasyonlar ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
  opacity: 0;
}
.animate-slide-right {
  animation: slideInRight 0.7s ease-out forwards;
  opacity: 0;
}
.animate-scale {
  animation: scaleIn 0.5s ease-out forwards;
  opacity: 0;
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-600 {
  animation-delay: 0.6s;
}

/* ---------- Ürün Kartı ---------- */
.product-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
}
.product-card .quick-view {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.product-card:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}
.product-card .img-secondary {
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card:hover .img-secondary {
  opacity: 1;
}

/* ---------- Butonlar ---------- */
.btn-primary {
  background: #0f172a;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.25);
}
.btn-secondary {
  background: transparent;
  color: #0f172a;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: #0f172a;
  background: #f8fafc;
}
.btn-accent {
  background: #0ea5e9;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-accent:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.3);
}

/* ---------- Sepet Çekmecesi ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active {
  transform: translateX(0);
}

/* ---------- Toast Bildirimi ---------- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 80;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  /* Tıklamaları asla engellemesin: görünmezken bile sağ üstte durduğu için
     mobilde header'daki arama/sepet/menü butonlarının üzerini örtüyordu */
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Ürün Galeri Küçük Resimleri ---------- */
.thumbnail {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0.65;
}
.thumbnail:hover {
  opacity: 1;
}
.thumbnail.active {
  opacity: 1;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 2px #0f172a;
}

/* ---------- Mobil Alt Menü ---------- */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 50;
  padding: 8px 0 env(safe-area-inset-bottom);
  display: none;
}
@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }
  .desktop-footer-pb {
    padding-bottom: 80px;
  }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Arama Overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(12px);
  z-index: 55;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Çeşitli ---------- */
.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
}
.category-card img {
  transition: transform 0.6s ease;
}
.category-card:hover img {
  transform: scale(1.08);
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.7) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.blog-card {
  transition: all 0.35s ease;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
}
.blog-card img {
  transition: transform 0.5s ease;
}
.blog-card:hover img {
  transform: scale(1.05);
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
}

.thumbnail {
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumbnail.active {
  border-color: #0ea5e9;
}
.thumbnail:hover {
  border-color: #cbd5e1;
}

.star-filled {
  color: #f59e0b;
}
.star-empty {
  color: #e2e8f0;
}

.tab-btn {
  position: relative;
  padding-bottom: 12px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 15px;
}
.tab-btn.active {
  color: #0f172a;
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}
.tab-btn:hover {
  color: #334155;
}

.filter-sidebar {
  transition:
    transform 0.3s ease,
    visibility 0.3s ease;
}
@media (max-width: 1024px) {
  .filter-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 55;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    padding: 24px;
  }
  .filter-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: #475569;
}
.qty-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Hero Slider (mobil kompakt butonlar) ---------- */
@media (max-width: 639px) {
  .hero-slide .btn-primary,
  .hero-slide .btn-secondary {
    padding: 8px 14px;
    font-size: 12px;
    gap: 6px;
    border-radius: 7px;
  }
}
