body, input, select, textarea, button, h1, h2, h3, h4, h5, h6 { font-family: Inter, system-ui, 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: #ffffff; }
::-webkit-scrollbar-thumb { background: #CCE7F9; }
::-webkit-scrollbar-thumb:hover { background: #0171CE; }
[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.25rem; 
    width: auto; 
    object-fit: contain; 
}

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

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

/* Mobil üst şerit — 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: 120px; }
}

/* Ü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;
}

.store-wa-fab {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 9999px !important;
    padding: 0.4rem 1.15rem 0.4rem 0.4rem;
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.18);
    overflow: visible;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-wa-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.26);
}

.store-wa-fab__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    background: #25D366;
    color: #ffffff;
    border-radius: 9999px !important;
}

.store-wa-fab__dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0.7rem;
    height: 0.7rem;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 9999px !important;
}

.store-wa-fab__label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

footer .footer-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 4px;
    background-image: linear-gradient(#ffffff, #ffffff);
    background-position: left 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 0.35s ease;
}

footer .footer-link:hover,
footer .footer-link:focus-visible {
    color: #ffffff;
    background-size: 100% 2px;
}
