body, input, select, textarea, button, h1, h2, h3, h4, h5, h6 { font-family: 'Lexend Deca', sans-serif !important; }
body { background-color: #ffffff; color: #1d1d1f; overflow-x: hidden; }
.glass { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f5f7; }
::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #86868b; }
[x-cloak] { display: none !important; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.animate-marquee { animation: marquee 10s linear infinite; }
.cart-count { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cart-count.bump { transform: scale(1.4); }

/* Sticky: global scroll-behavior:smooth tekerlek/trackpad ile yapışkan başlıkta takılma hissi yaratabildiği için kaldırıldı */
#main-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}
@media (min-width: 1024px) {
    /* translateZ(0) katmanı bazı WebKit sürümlerinde blur+scroll ile ek yeniden boyamaya yol açabiliyor */
    #main-header {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    /* Kaydırınca blur kapatılıyor — GPU maliyeti düşer, başlık yine yapışkan kalır */
    .is-scrolled #main-header {
        background-color: #ffffff !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

#main-header .middle-bar { 
    padding-top: 0.75rem; 
    padding-bottom: 0.75rem; 
}

@media (min-width: 1024px) {
    #main-header .middle-bar { 
        padding-top: 1rem; 
        padding-bottom: 1rem; 
    }
    .is-scrolled #main-header .middle-bar { 
        padding-top: 0.5rem !important; 
        padding-bottom: 0.5rem !important; 
    }
}

#main-header .logo-img { 
    height: 2.625rem; 
    width: auto; 
    object-fit: contain; 
}

@media (min-width: 1024px) {
    #main-header .logo-img { 
        height: 3.625rem; 
    }
    .is-scrolled #main-header .logo-img { 
        height: 2.875rem !important; 
    }
}

/* Instant Visibility with Zero Layout Shift */
.is-scrolled .hide-on-scroll {
    display: none !important;
}

/* Mobil JCID Reseller şeridi — daha erken gizlenir (masaüstü is-scrolled’dan bağımsız) */
@media (max-width: 1023px) {
    html.is-mobile-reseller-collapsed .mobile-reseller-strip {
        display: none !important;
    }
}

/* Prevent content jump when header shrinks */
.header-wrapper {
    min-height: 120px; /* Initial height of header */
}
@media (min-width: 1024px) {
    .header-wrapper { min-height: 160px; }
}

/* Ürün detay HTML açıklaması: düzenleyiciden gelen ağır font-weight ile tipiyi hizala */
.product-description-content { font-weight: 400; }
.product-description-content p { font-weight: 400 !important; }
.product-description-content li { font-weight: 400; }
.product-description-content td { font-weight: 400; }
.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 { font-weight: 500; }
.product-description-content strong,
.product-description-content b { font-weight: 500; }
.product-description-content th { font-weight: 500; }
.product-description-content p[style*="font-size"],
.product-description-content span[style*="font-size"],
.product-description-content div[style*="font-size"] {
    font-size: inherit !important;
}
