/* ═══════════════════════════════════════════
   Damlam Çiçekçilik – Custom Styles
   Bloomly-inspired pastel/sage/cream palette
   ═══════════════════════════════════════════ */

/* ── Global & Scroll ───────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background-color: rgba(168, 181, 160, 0.3);
  color: #3D3D3D;
}

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
  background-color: #C5D1BC;
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #A8B5A0;
}

/* ── Navbar Shadow on scroll ───────────── */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(61, 61, 61, 0.06);
}

/* ── Filter Buttons ────────────────────── */
.filter-btn {
  background-color: transparent;
  color: rgba(61, 61, 61, 0.55);
  border: 1.5px solid rgba(168, 181, 160, 0.2);
}
.filter-btn:hover {
  background-color: rgba(168, 181, 160, 0.08);
  color: #3D3D3D;
  border-color: rgba(168, 181, 160, 0.4);
}
.filter-btn.active {
  background-color: #A8B5A0;
  color: #fff;
  border-color: #A8B5A0;
}

/* ── Product Cards ─────────────────────── */
.product-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
}

.product-card:hover {
  z-index: 20;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ── Product Card Image Display ───────── */
.product-card .aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}
@supports not (aspect-ratio: 4 / 5) {
  .product-card .aspect-\[4\/5\] {
    height: 380px;
  }
}

/* ── Care Tip Tooltip ──────────────────── */
.care-tip {
  position: relative;
  cursor: help;
  z-index: 25;
}
.care-tip .tip-content {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  transform: translateY(6px) scale(0.95);
  width: 260px;
  max-width: 85vw;
  background: #2D2D2D;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.care-tip .tip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: #2D2D2D transparent transparent transparent;
}
.care-tip:hover .tip-content,
.care-tip:focus .tip-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── FAQ Accordion ─────────────────────── */
.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-content.open {
  max-height: 500px;
  display: block;
}

/* ── Animations ────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ── Step Cards hover ──────────────────── */
.step-card {
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
}

/* ── Testimonial card ──────────────────── */
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* ── Intersection Observer reveal ──────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Category Card active ring ─────────── */
.category-card.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid #A8B5A0;
  border-radius: 1rem;
  pointer-events: none;
  z-index: 10;
}

/* ── WhatsApp FAB pulse ────────────────── */
#whatsapp-fab {
  animation: pulse-green 2.5s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Mobile Menu Transition ────────────── */
#mobile-menu {
  transition: all 0.3s ease;
}
#mobile-menu.open {
  display: block;
}

/* ── Responsive Tweaks ─────────────────── */
@media (max-width: 640px) {
  .care-tip .tip-content {
    width: 220px;
    max-width: 75vw;
  }
}

/* ── Print Styles ──────────────────────── */
@media print {
  #announcement-bar,
  #navbar,
  #whatsapp-fab,
  #mobile-menu-toggle {
    display: none !important;
  }
}
