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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', sans-serif; transition: background-color 0.3s; }

.dark body { background-color: #020617 !important; }

/* Partials include: layout zıplamasını azalt */
[data-include] { display: block; }
/* Header/Footer yükseklik rezervi (partial gelmeden sayfa yukarı zıplamasın) */
[data-include$="/includes/header.html"],
[data-include$="/includes/header.html"] { min-height: 96px; }
[data-include$="/includes/footer.html"],
[data-include$="/includes/footer.html"] { min-height: 240px; }
/* fetch ile partial: boşken sayfa görünmez kalmasın */
[data-include] { opacity: 1; }
[data-include].included { transition: opacity 140ms ease; }

/* Footer: optik ortalama — sadece hafif sola kaydır (logo boyutu HTML/Tailwind) */
footer .max-w-7xl {
    transform: translateX(0);
}
@media (min-width: 768px) {
    footer .max-w-7xl {
        transform: translateX(0);
    }
}

/* Footer logo resmi içindeki boşluğu telafi et */
footer .space-y-12 > a > img {
    margin-left: -50px;
}

/* Sayfa geçişi: kısa ve yumuşak fade-out */
:root { --page-leave-ms: 180ms; }
@media (prefers-reduced-motion: reduce) {
    :root { --page-leave-ms: 0ms; }
}

html {
    /* Scrollbar/paint jitter azaltır */
    background: #fff;
    /* body'de overflow-x-hidden sticky header'ı kırar; yatay taşmayı root'ta kes */
    overflow-x: clip;
}
html.dark { background: #020617; }

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
    transform: translateZ(0);
    transition: opacity var(--page-leave-ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-loader{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--page-leave-ms) cubic-bezier(0.16, 1, 0.3, 1),
                transform var(--page-leave-ms) cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-spinner{
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(148, 33, 113, 0.25);
    border-top-color: rgba(148, 33, 113, 0.95);
    animation: page-spin 700ms linear infinite;
    box-shadow: 0 10px 25px rgba(148, 33, 113, 0.10);
}

.page-transition-text{
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.75);
}

html.dark .page-transition-text,
body.dark .page-transition-text{
    color: rgba(226, 232, 240, 0.75);
}

@keyframes page-spin { to { transform: rotate(360deg); } }

/* Tema koyuyken beyaz flaş olmasın */
html.dark .page-transition-overlay,
body.dark .page-transition-overlay {
    background: rgba(2, 6, 23, 0.72);
}

/* Body'yi zıplatmak yerine sadece hafif fade */
body {
    transition: opacity var(--page-leave-ms) cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}
html.page-leaving body { opacity: 0.92; }
html.page-leaving .page-transition-overlay { opacity: 1; }
html.page-leaving .page-transition-loader { opacity: 1; transform: translateY(0); }

.glass-header { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.dark .glass-header { background: rgba(15, 23, 42, 0.96); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.nav-link { position: relative; transition: all 0.3s; cursor: pointer; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; padding: 15px 0; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background-color: #942171; transition: width 0.3s; }
.nav-link.active { color: #942171; }
.nav-link.active::after { width: 100%; }

/* Ürün kartı arkaplanı için transparan sınıf */
.product-card-bg {
    background: transparent !important;
}
.nav-link { color: #0f172a; }
.nav-link:hover { color: #942171; }
.dark .nav-link { color: rgba(255, 255, 255, 0.82); }
.dark .nav-link:hover { color: #b84c94; }

.view-container { display: none; }
.view-container.active { display: block; animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.card-modern {
    background-color: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 0;
    transition: all 0.5s ease;
    box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.05);
}
.dark .card-modern {
    background-color: #1e293b;
    border-color: rgb(51 65 85 / 0.5);
}
.card-modern:hover {
    border-color: rgb(148 33 113 / 0.35);
    box-shadow:
        0 20px 25px -5px rgb(15 23 42 / 0.08),
        0 8px 10px -6px rgb(15 23 42 / 0.06),
        0 0 0 1px rgb(148 33 113 / 0.08);
    transform: translateY(-6px);
}
.dark .card-modern:hover {
    border-color: rgb(184 76 148 / 0.45);
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.35),
        0 0 28px -8px rgb(148 33 113 / 0.18);
}

.brand-gradient { background: linear-gradient(135deg, #942171 0%, #7a1b5d 100%); }


.btn-product {
    color: #942171;
    background: transparent;
    border: 2px solid #942171;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.btn-product:hover {
    background: #942171;
    color: #fff;
    box-shadow: 0 12px 30px rgba(148, 33, 113, 0.25);
    transform: translateY(-1px);
}

.hero-pill {
    color: #fff;
    background: rgba(148, 33, 113, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.logo-container {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.dark .logo-container {
    background-color: transparent;
    border-color: transparent;
}

.zoom-img { cursor: zoom-in; }
.modal-img-container { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.modal-img-container img { transition: transform 0.1s ease-out; }
.modal-img-container img.zoomed { cursor: crosshair; transform: scale(2.5); }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #942171; }

img[src=""] { opacity: 0; }

/* Mobilde okunabilirlik + dokunma alanları */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .glass-header { padding: 16px 16px; }
    .nav-link { padding: 18px 0; }
    button, a { -webkit-tap-highlight-color: transparent; }
}

.search-result-item {
    padding: 1rem; /* p-4 */
    border-bottom: 1px solid #f1f5f9; /* slate-100 */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 200ms;
}
.search-result-item:hover {
    background: #f8fafc; /* slate-50 */
}
.dark .search-result-item {
    border-bottom-color: #1e293b; /* slate-800 */
}
.dark .search-result-item:hover {
    background: rgba(30, 41, 59, 0.50); /* slate-800/50 */
}

/* Search overlay: seçilince mor alt çizgi + mor ikon */
#searchOverlay #searchInput:focus {
    border-bottom-color: #942171 !important;
}

#searchOverlay #searchInput:focus + i {
    color: #942171 !important;
}

/* Header arama ikonu: mouse üzerine gelince mor */
#headerSearchBtn:hover i {
    color: #942171 !important;
}

/* Header inline search (slide-in) */
#headerSearchPanel {
    transition: max-width 240ms ease, opacity 160ms ease, transform 240ms ease;
    max-width: 0;
    opacity: 0;
    transform: translateX(12px);
    overflow: hidden;
    pointer-events: none;
}

#headerSearchPanel.is-open {
    max-width: 520px;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.cards .card {
  background-color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cards .card img {
  width: 170px;   /* boyutu küçülttük */
  height: 220px;
  object-fit: contain;

  
}

/* hover animasyon */
.cards .card:hover {
  transform: scale(1.05) translateY(-25px);
  box-shadow: 0 10px 40px rgba(248, 250, 252, 0.5);
}

/* ============================================
   LUXURY PRELOADER - Deep Focus Edition
   ============================================ */
#luxuryPreloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#luxuryPreloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Animated gradient background */
#luxuryPreloader::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(148, 33, 113, 0.15) 0%, transparent 50%);
    animation: preloader-pulse 4s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.6; }
}

/* Logo container with glow effect */
.preloader-logo-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
}

/* Outer rotating ring - NEON ENHANCED */
.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(148, 33, 113, 1);
    border-right-color: rgba(184, 76, 148, 0.6);
    animation: preloader-rotate 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 12px rgba(148, 33, 113, 0.9))
            drop-shadow(0 0 24px rgba(148, 33, 113, 0.6))
            drop-shadow(0 0 36px rgba(148, 33, 113, 0.4));
    box-shadow: 
        inset 0 0 20px rgba(148, 33, 113, 0.3),
        0 0 20px rgba(148, 33, 113, 0.5),
        0 0 40px rgba(148, 33, 113, 0.3);
}

.preloader-ring:nth-child(2) {
    inset: 12px;
    border-width: 2px;
    border-top-color: rgba(184, 76, 148, 1);
    border-right-color: rgba(148, 33, 113, 0.5);
    animation-duration: 3s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 10px rgba(184, 76, 148, 0.9))
            drop-shadow(0 0 20px rgba(184, 76, 148, 0.6));
    box-shadow: 
        inset 0 0 15px rgba(184, 76, 148, 0.4),
        0 0 15px rgba(184, 76, 148, 0.6);
}

@keyframes preloader-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Logo with scale animation - NEON ENHANCED */
.preloader-logo {
    position: relative;
    z-index: 2;
    width: 160px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    animation: preloader-logo-appear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
    filter: 
        drop-shadow(0 0 15px rgba(148, 33, 113, 0.8))
        drop-shadow(0 0 30px rgba(148, 33, 113, 0.5))
        drop-shadow(0 8px 40px rgba(148, 33, 113, 0.6))
        brightness(1.1);
}

@keyframes preloader-logo-appear {
    0% { opacity: 0; transform: scale(0.8) rotate(-10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Loading text with typing effect - NEON ENHANCED */
.preloader-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 1);
    opacity: 0;
    animation: preloader-text-fade 1s ease-out 0.8s forwards;
    text-shadow: 
        0 0 10px rgba(184, 76, 148, 0.8),
        0 0 20px rgba(148, 33, 113, 0.6),
        0 0 30px rgba(148, 33, 113, 0.4),
        0 2px 25px rgba(148, 33, 113, 0.5);
    filter: brightness(1.2);
}

@keyframes preloader-text-fade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Progress bar - NEON ENHANCED */
.preloader-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 3px;
    background: rgba(148, 33, 113, 0.15);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 10px rgba(148, 33, 113, 0.3),
        0 0 10px rgba(148, 33, 113, 0.2);
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(148, 33, 113, 0.6) 0%, 
        rgba(184, 76, 148, 1) 30%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(184, 76, 148, 1) 70%,
        rgba(148, 33, 113, 0.6) 100%);
    border-radius: 3px;
    animation: preloader-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 
        0 0 15px rgba(184, 76, 148, 0.8),
        0 0 30px rgba(148, 33, 113, 0.6),
        0 0 45px rgba(148, 33, 113, 0.4);
    filter: brightness(1.2);
}

@keyframes preloader-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Floating particles - NEON ENHANCED */
.preloader-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(184, 76, 148, 0.9);
    border-radius: 50%;
    pointer-events: none;
    animation: preloader-float 3s ease-in-out infinite;
    box-shadow: 
        0 0 8px rgba(184, 76, 148, 1),
        0 0 16px rgba(148, 33, 113, 0.8),
        0 0 24px rgba(148, 33, 113, 0.5),
        inset 0 0 4px rgba(255, 255, 255, 0.6);
    filter: brightness(1.3);
}

.preloader-particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; animation-duration: 3s; }
.preloader-particle:nth-child(2) { top: 40%; left: 80%; animation-delay: 0.5s; animation-duration: 4s; }
.preloader-particle:nth-child(3) { top: 60%; left: 30%; animation-delay: 1s; animation-duration: 3.5s; }
.preloader-particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 1.5s; animation-duration: 4.5s; }
.preloader-particle:nth-child(5) { top: 30%; left: 50%; animation-delay: 2s; animation-duration: 3.8s; }

@keyframes preloader-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .preloader-logo-container {
        width: 200px;
        height: 200px;
    }
    
    .preloader-logo {
        width: 120px;
    }
    
    .preloader-text {
        font-size: 11px;
        letter-spacing: 0.25em;
    }
    
    .preloader-progress {
        width: 180px;
        bottom: 60px;
    }
}


