/* Flora & Bloom - Ana Stil Dosyası */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f2;
}
::-webkit-scrollbar-thumb {
    background: #e0a892;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c08573;
}

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glass Header */
.glass-header {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 50s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* Dropdown Mega Menu */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero Slider */
.hero-slide {
    transition: opacity 0.7s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}

/* Product Card Hover */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
}

/* Image Zoom on Hover */
.img-zoom {
    transition: transform 0.7s ease;
}
.group:hover .img-zoom {
    transform: scale(1.10);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Pulse Animation for Badge */
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.badge-pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}
img[loading="lazy"] {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Modal Transitions */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}
.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Toast Notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.toast-enter {
    animation: slideInRight 0.4s ease forwards;
}

/* Custom Checkbox */
input[type="checkbox"]:checked {
    background-color: #6f856b;
    border-color: #6f856b;
}

/* Color Theme Button Active */
.color-theme-btn.active {
    border-color: #6f856b;
    background-color: #f4f6f4;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Cart Sidebar */
#cartSidebar {
    transform: translateX(100%);
}
#cartSidebar.open {
    transform: translateX(0);
}

/* Search Overlay */
.search-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== FemLine Tipografi & Cila ===== */

/* Tek font ailesi tutarlılığı: Poppins her yerde (tailwind config serif->Poppins) */
body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Basliklarda profesyonel dar harf araligi */
h1, h2, h3, .font-serif {
    letter-spacing: -0.015em;
}

h1 { line-height: 1.08; }
h2 { line-height: 1.15; }

/* Metin secimi marka renginde */
::selection {
    background: #c08573;
    color: #fff;
}

/* Yatay tasma guvenligi (tum cihazlar) */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Uzun urun isimleri mobilde kirilmadan kalsin */
a, p, span, h1, h2, h3 {
    overflow-wrap: break-word;
}

/* Gorseller yumusak yukleme */
img {
    max-width: 100%;
    height: auto;
}

/* Butunlarda dokunma alani (mobil) */
button, a[class*='py-2'], a[class*='py-3'] {
    touch-action: manipulation;
}

/* reduced-choice: hareket hassasiyeti olanlar icin animasyonlari azalt */
@media (prefers-reduced-motion: reduce) {
    .hero-slide img, .hero-slide.active img { animation: none !important; transform: none !important; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
