.navbar {
    background-color: transparent !important;
    padding-bottom: 0;
}
.navbar-brand {

        display: block;
        max-width: 208px;
        width: 100%;
}

.navbar-brand img {
    width: 100%;
}

.siteLogo {
    display: block;
    height: auto;
    overflow: visible;
}

.siteLogo img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center center;
    transition: transform 0.18s ease;
    will-change: transform;
    max-width: none;
    max-height: none;
}

@media (hover: hover) and (pointer: fine) {
    .siteLogo:hover img {
        transform: scale(1.08);
    }
}

.logo-section {
    padding-bottom: 30px;
}

.menu-section {
    background-color: #dfe1e0a5;
    z-index: 2; /* for shadow to be visible */
    box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.20);
    -moz-box-shadow: 0 5px 6px 2px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 5px 6px 2px rgba(0, 0, 0, 0.15);


}


.sticky_element.fixed {
    position: fixed;
    top: 0;
    z-index: 3000;
    /* UX-P16: brand gradient when sticky — warm cream, premium look */
    background: linear-gradient(180deg, #f5efe8 0%, #ede5dc 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(91, 35, 40, 0.10), 0 1px 0 rgba(201, 169, 110, 0.18);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* .sticky_element handles menu bar sticky behavior via position:fixed when scrolled.
   The @supports block below is a no-op placeholder (legacy from previous refactoring). */
@supports (position: sticky) {
    /* no-op: reserved for future sticky enhancements if needed */
}

/* MOBILE STICKY HEADER — viewport-specific behavior
   Mobile (≤991px): Full header stays visible at top while scrolling
   Desktop (≥992px): Header static, only menu bar becomes fixed on scroll */
@media (max-width: 991.98px) {
    .header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 3100;
        /* Keep original visuals: background image, logo size, spacing unchanged */
    }
}

/* UX-P17: legacy selector — retained to prevent position:fixed regression on resize */
.sticky_element.no-stick.fixed, .sticky_element.fixed.no-stick {
    z-index: 3000;
}


.header-icons ul {
    list-style: none;
    margin: 0;
    float: right;
    padding-left: 0;
}

.header-icons ul li {
    display: inline-block;
    position: relative;
}



.header-icons > ul > li > a {
    font-size: 24px;
    display: block;
    padding: 0 10px;
    position: relative;
    text-align: center;
    color: #282828 !important;
    
}

.header-icons > ul > li .user-menu-trigger {
    font-size: 24px;
    display: block;
    padding: 0 10px;
    position: relative;
    text-align: center;
    color: #282828 !important;
}

.header-icons > ul > li > a >i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, color 0.18s ease; /* smooth hover transition */
    color: #333 !important;
}

.header-icons > ul > li .user-menu-trigger > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, color 0.18s ease;
    color: #333 !important;
}

.header-icons > ul > li > a:hover > i {
    color: #6e574b !important; /* icon color on hover */
    transform: scale(1.08);      /* subtle grow effect */
    
}

.header-icons > ul > li .user-menu-trigger:hover > i {
    color: #6e574b !important;
    transform: scale(1.08);
}

.header-icons > ul > li > a .badge {
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.header-icons > ul > li > a:hover .badge {
    background-color: #6e574b !important;
    color: #fff !important;
}

.navbar-toggle-button {
    padding: 0 10px;
}

/* TODO header-toolbar diye aratip hepsine bak, burada da gereksizleri kapat */
@media (max-width: 575px) {
    .header-icons > ul > li > a {
        font-size: 20px;
        padding: 0 4px;
    }

    .header-icons > ul > li .user-menu-trigger {
        font-size: 20px;
        padding: 0 4px;
    }
}


.navbar-toggle-button {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

.navbar-nav.justify-content-between {
    align-items: center;
}




.navbar-collapse.collapsing {
    transition: height 0.5s ease;
}

.nav-item {
    display: inline-block;
}







.navbar-nav > li > a {
    padding: 25px 12px;
    display: block;
    position: relative;
    font-size: 14px;
    color: #282828;
    line-height: 1;
    transition: color 0.3s ease 0s;
    -moz-transition: color 0.3s ease 0s;
    -o-transition: color 0.3s ease 0s;
    -webkit-transition: color 0.3s ease 0s;
}

/* TODO incele */
.navbar-nav > li > a {
    padding-left: 0;
    padding-right: 0;
    font-size: 18px;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
    padding-bottom: 9px;
}

.navbar-nav .nav-link {
    border-bottom: 4px solid transparent;
}

.navbar-nav > li:hover > a, .navbar-nav > li.active > a {
    border-bottom: 2px solid #000;
    
}

.navbar-nav > li:hover > a {
    color: #c00000;
    font-weight: 500; /* keep normal visual weight */
    text-shadow: 0.3px 0 0 currentColor, -0.3px 0 0 currentColor; /* faux bold look */
}

.reseller-menu-item {
    display: inline-flex;
    align-items: center;
}

.reseller-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6a3737 0%, #5C2E2E 55%, #4b2424 100%);
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: none !important;
    margin-bottom: 0 !important;
    line-height: 1;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.15px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(92, 46, 46, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.reseller-btn i {
    font-size: 0.9rem;
}

.reseller-btn:hover,
.reseller-btn:focus {
    background: linear-gradient(135deg, #5d2f2f 0%, #4a2525 60%, #3e1f1f 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(60, 30, 30, 0.3);
}

.reseller-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 46, 46, 0.28), 0 10px 20px rgba(60, 30, 30, 0.25);
}

@media (max-width: 1200px) {
    .reseller-btn {
        padding: 9px 14px !important;
        font-size: 0.86rem;
    }
}

/* ============================================================
   DESKTOP NAV DROPDOWN — hover-to-open, premium styling
   ============================================================ */
@media (min-width: 992px) {
    /* Make dropdown transition-ready when not hovered */
    .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        display: block;
        min-width: 240px;
        padding: 8px 0;
        margin-top: 0;
        border: 1px solid rgba(201, 169, 110, 0.22);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow:
            0 8px 32px rgba(91, 35, 40, 0.10),
            0 2px 8px rgba(0, 0, 0, 0.04);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 200ms ease, transform 200ms ease;
    }

    /* Hover-to-open for navigation dropdowns (desktop only) */
    .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu,
    .navbar-nav > .nav-item.dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Remove Bootstrap's click toggle arrow, use custom one */
    .navbar-nav > .nav-item.dropdown > .dropdown-toggle::after {
        border: none;
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        margin-left: 6px;
        transition: transform 0.2s ease;
        vertical-align: middle;
    }

    .navbar-nav > .nav-item.dropdown:hover > .dropdown-toggle::after,
    .navbar-nav > .nav-item.dropdown:focus-within > .dropdown-toggle::after {
        transform: rotate(-135deg) translateY(-1px);
    }

    /* Dropdown items — warm, airy, gold accent on hover */
    .navbar-nav > .nav-item.dropdown .dropdown-item {
        padding: 10px 20px;
        font-size: 0.88rem;
        font-weight: 500;
        font-family: 'Inter', system-ui, sans-serif;
        color: #2d2419;
        border-radius: 8px;
        margin: 2px 6px;
        transition: background 0.15s, color 0.15s, padding-left 0.15s;
    }

    .navbar-nav > .nav-item.dropdown .dropdown-item:hover {
        background: rgba(201, 169, 110, 0.10);
        color: #5b2328;
        padding-left: 24px;
    }
}


@media (max-width: 768px) {
    html {
        font-size: 81.25%;
    }
}

.navbar>.container.logo-section {
    display: block !important;
}



@media (max-width: 991px) {
    .navbar-toggle-button {
        display: inline-block !important;
        opacity: 1;
        visibility: visible;
    }

    .sticky-tool {
        display: none !important;
    }

    .navbar-nav.justify-content-between {
        align-items: flex-start;
    }

    .navbar-nav .nav-link {
        color: #4a3a32 !important;
        font-weight: 500;
        padding-left: 17px;
    }

    .navbar-collapse.collapsing ul, .navbar-collapse.show ul{
        padding-bottom: 15px;
    }

    .navbar-nav > li.active > a {
        border-bottom: none;
    }

    .menu-section {
        background-color: #e3e2df;
    }

    .navbar-nav > li > a {
        font-family: 'Inter', serif !important;
        font-weight: bold !important;
    }

    .navbar-collapse {
        position: relative;
    }

    .navbar-collapse .image-bg-overlay {
         width: 100%;
         height: 100%;
         left: 20%;
         bottom: 10%;
         position: absolute;
         background-image: url('/static/img/menu-bg-20.png');
         background-position: center;
         background-repeat: no-repeat;
         background-size: contain;
         transition: opacity 0.1s ease 1s;
         opacity: 0;
    }

    .navbar-collapse.collapsing .image-bg-overlay {
        opacity: 0;
    }

    .navbar-collapse.collapse.show .image-bg-overlay {
         opacity: 1;
    }


    /*
    TODO diger menude birinci ul icin block gerektigi icin not gerekmisti, burada gerekmiyor gibi ama kontrol edilecek
    .show-on-mobile ul:not(.seconder-dropdown){
        display: block !important;
    }
     */
}


/* ============================================
   MOBILE NAV DRAWER — modern, airy, premium
   ============================================ */

@keyframes mobileNavItemSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: completely hidden */
@media (min-width: 992px) {
    .mobile-nav__wrapper {
        display: none !important;
    }
}

/* Mobile: in-flow drawer that expands and pushes content down */
@media (max-width: 991px) {
    .mobile-nav__wrapper {
        display: block;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background:
            radial-gradient(ellipse 90% 70% at 50% 0%,
                rgba(201, 169, 110, 0.08) 0%,
                transparent 70%),
            linear-gradient(180deg, #fbf8f4 0%, #f6f1ea 100%);
        border-top: 1px solid rgba(201, 169, 110, 0.22);
        transition: max-height 360ms cubic-bezier(0.22, 1, 0.36, 1);
        position: relative;
        z-index: 900;
    }

    .mobile-nav__wrapper.expanded {
        /* max-height is set by JS to exact measured content height — no 0→9999px distortion */
        /* Fallback only: if JS hasn't fired yet, large value ensures menu is visible */
        max-height: 9999px;
        box-shadow: 0 18px 38px -22px rgba(91, 35, 40, 0.18);
    }

    .mobile-nav__content {
        padding: 14px 16px 22px;
        overflow-y: auto;
        overflow-x: hidden;
        /* Content fade+slide: hidden by default, revealed when wrapper is expanded */
        opacity: 0;
        transform: translateY(-10px);
        transition:
            opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-nav__wrapper.expanded .mobile-nav__content {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 55ms; /* brief delay after height starts opening */
    }

    /* Closing: fade content out before wrapper fully collapses */
    .mobile-nav__wrapper.closing .mobile-nav__content {
        opacity: 0;
        transform: translateY(-8px);
        transition-duration: 200ms;
        transition-delay: 0ms;
    }
}

/* Container: airy white card, no more dark brown box */
.mobile-nav__container {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: 14px;
    padding: 6px 0;
    margin-bottom: 14px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 28px -18px rgba(91, 35, 40, 0.14);
    overflow: hidden;
}

/* Menu list */
.mobile-nav__container .navbar-nav {
    flex-direction: column !important;
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav__container .navbar-nav > li {
    display: block !important;
    position: relative;
    animation: mobileNavItemSlideIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(1) { animation-delay: 40ms; }
.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(2) { animation-delay: 80ms; }
.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(3) { animation-delay: 120ms; }
.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(4) { animation-delay: 160ms; }
.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(5) { animation-delay: 200ms; }
.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(6) { animation-delay: 240ms; }
.mobile-nav__wrapper.expanded .mobile-nav__container .navbar-nav > li:nth-child(n+7) { animation-delay: 280ms; }

/* Hairline divider between top-level items */
.mobile-nav__container .navbar-nav > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 169, 110, 0.28) 18%,
        rgba(201, 169, 110, 0.28) 82%,
        transparent 100%);
    pointer-events: none;
}

/* Remove legacy borders */
.mobile-nav__container .navbar-nav > li:not(:last-child),
.mobile-nav__container .dropdown-menu > li:not(:last-child) {
    border-bottom: none !important;
}

/* Top-level link rows: tall, generous, dark text on light */
.mobile-nav__container .nav-link,
.mobile-nav__container .dropdown-item {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    color: #1e1512 !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: 1.3;
    min-height: 52px;
    height: auto;
    padding: 12px 18px !important;
    border-bottom: none !important;
    background: transparent !important;
    text-shadow: none !important;
    position: relative;
    transition:
        color 240ms ease,
        background-color 240ms ease,
        padding-left 240ms ease;
}

/* Subtle gold left-accent on press/hover */
.mobile-nav__container .nav-link::before,
.mobile-nav__container .dropdown-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, #c9a96e 0%, #b89358 100%);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: center;
    transition: opacity 240ms ease, transform 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-nav__container .nav-link:hover,
    .mobile-nav__container .dropdown-item:hover {
        color: #5b2328 !important;
        background-color: rgba(201, 169, 110, 0.06) !important;
        padding-left: 22px !important;
    }
    .mobile-nav__container .nav-link:hover::before,
    .mobile-nav__container .dropdown-item:hover::before {
        opacity: 1;
        transform: scaleY(1);
    }
}

.mobile-nav__container .nav-link:active,
.mobile-nav__container .dropdown-item:active {
    background-color: rgba(201, 169, 110, 0.1) !important;
}

.mobile-nav__container .nav-link.expanded,
.mobile-nav__container .dropdown-item.expanded {
    color: #5b2328 !important;
    background-color: rgba(201, 169, 110, 0.05) !important;
}

.mobile-nav__container .nav-link.expanded::before,
.mobile-nav__container .dropdown-item.expanded::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Dropdown submenus — soft inset, lighter type, indented */
.mobile-nav__container .dropdown-menu {
    display: none;
    position: static !important;
    background: rgba(201, 169, 110, 0.04) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 4px 0 8px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(201, 169, 110, 0.18) !important;
}

.mobile-nav__container .dropdown-menu .dropdown-item {
    min-height: 44px;
    font-size: 14px;
    font-weight: 400;
    color: #3d3a36 !important;
    padding-left: 36px !important;
}

.mobile-nav__container .dropdown-menu .dropdown-item::before {
    left: 18px;
    width: 6px;
    height: 6px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) scale(0.6);
    border-radius: 50%;
    background: #c9a96e;
    opacity: 0.45;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-nav__container .dropdown-menu .dropdown-item:hover {
        padding-left: 40px !important;
    }
    .mobile-nav__container .dropdown-menu .dropdown-item:hover::before {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.mobile-nav__container .dropdown-menu > li {
    border-bottom: none;
}

/* Refined chevron toggle — no more dark square */
.mobile-nav__container .nav-link > button,
.mobile-nav__container .dropdown-item > button {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.32);
    outline: 0;
    color: #5b2328;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 240ms ease,
        border-color 240ms ease,
        color 240ms ease;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    font-size: 11px;
}

.mobile-nav__container .nav-link > button.expanded,
.mobile-nav__container .dropdown-item > button.expanded {
    transform: rotate(180deg);
    background-color: #5b2328;
    border-color: #5b2328;
    color: #f6efe2;
}

.mobile-nav__container .nav-link > button:active,
.mobile-nav__container .dropdown-item > button:active {
    background-color: rgba(201, 169, 110, 0.12);
}

/* Remove Bootstrap dropdown arrow */
.mobile-nav__container .dropdown-toggle::after {
    display: none !important;
}

/* Hide elements not needed in mobile nav */
.mobile-nav__container .sticky-tool {
    display: none !important;
}

/* Bottom CTA area — premium reseller pill */
.mobile-nav__bottom {
    display: flex;
    justify-content: center;
    padding: 4px 4px 2px;
    animation: mobileNavItemSlideIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 320ms;
}

.mobile-nav__reseller-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mobile-nav__reseller-btn i {
    font-size: 15px;
    color: #c9a96e;
    transition: color 240ms ease;
}

.mobile-nav__reseller-btn:hover i,
.mobile-nav__reseller-btn:focus-visible i {
    color: #f6efe2;
}

/* Scrollbar styling — gold-tinted, subtle */
.mobile-nav__content::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav__content::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav__content::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.32);
    border-radius: 2px;
}

/* Mobile nav drawer positioning — below header, in-flow */
.mobile-nav__wrapper {
    position: relative;
    top: 0;
    z-index: 900;
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    .mobile-nav__wrapper {
        border-top: 1px solid rgba(201, 169, 110, 0.22) !important;
    }
}

/* ============================================================
   MOBILE MENU ANIMATION — close + hamburger
   ============================================================ */

/* Close: items slide out with quick forward stagger (top items first) */
@keyframes mobileNavItemSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-5px); }
}

.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li {
    animation: mobileNavItemSlideOut 160ms ease both;
}

.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(1) { animation-delay: 0ms; }
.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(2) { animation-delay: 20ms; }
.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(3) { animation-delay: 40ms; }
.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(4) { animation-delay: 60ms; }
.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(5) { animation-delay: 80ms; }
.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(6) { animation-delay: 100ms; }
.mobile-nav__wrapper.closing .mobile-nav__container .navbar-nav > li:nth-child(n+7) { animation-delay: 120ms; }

/* Hamburger: spring rotation when menu is open */
.mobile-nav__toggler i {
    display: inline-block;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav__toggler.is-open i {
    transform: rotate(90deg) scale(0.88);
}

