/* Header Styles */
/* Header Styles */
.site-header {
    background: #fff;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); Only on sticky */
    position: relative;
    /* Default: Normal flow */
    width: 100%;
    z-index: 9990;
    transition: all 0.3s ease;
    height: 100px;
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.site-header__container {
    max-width: 1450px;
    /* Wide container */
    margin: 0 auto;
    padding: 0 40px;
    /* More padding on sides */
    height: 100%;
    position: relative;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.site-header__logo {
    /* Reference exact: padding-left 80px on logo container */
    flex-shrink: 0;
}

.site-header__logo-image {
    max-height: 40px;
    /* Increased from 40px */
    width: auto;
    display: block;
    min-width: 200px;
    /* Ensure visibility even if SVG has 0 dimensions */
    object-fit: contain;
}

.site-header__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

/* Logo Toggling */
.logo-inverse {
    display: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* When header is transparent (e.g. homepage default), show inverse (white) logo */
.site-header--transparent .logo-default {
    display: none;
}

.site-header--transparent .logo-inverse {
    display: block;
}

/* When sticky (scrolled), force default appearance (white bg, black logo) */
.site-header.is-sticky .logo-default {
    display: block;
}

.site-header.is-sticky .logo-inverse {
    display: none;
}

/* Navigation - Centered/Right Aligned */
/* Based on reference, the menu is grouped with actions on the right */
.site-header__nav {
    margin-left: auto;
    /* Pushes everything to right */
    margin-right: auto;
    /* Space between Menu and Actions */
}

.site-header__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    /* Generous spacing */
}

.site-header__menu-link {
    font-size: 16px;
    font-weight: 300;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Add dropdown arrow to specific items if needed via CSS or JS, here generic for now */

.site-header__menu-link:hover {
    color: #000;
}

/* Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Space between Lang, Search, Toggle */
    padding-left: 25px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    /* Separator line often present ? Not in ref image but good for separation if needed. Ref image doesn't show line clearly, ignoring */
    border-left: none;
}

/* Language Switcher */
.site-header__lang {
    position: relative;
}

.site-header__lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Bridge for Language Switcher */
.site-header__lang::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    /* Safe bridge */
    background: transparent;
}

.site-header__lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 120px;
    margin-top: 10px;
    /* Kept for visual spacing, spanned by bridge */
    z-index: 10002;
}

.site-header__lang:hover .site-header__lang-dropdown {
    display: block;
}

.site-header__lang-item {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.site-header__lang-item:hover {
    background: #f5f5f5;
}

/* Buttons */
.site-header__search-btn,
.site-header__toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.site-header__toggle {
    display: none;
}

.site-header__toggle svg {
    width: 28px;
    /* Larger hamburger */
    height: 28px;
}

/* Transparent State */
.site-header--transparent {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.site-header--transparent .site-header__menu-link,
.site-header--transparent .site-header__logo-text,
.site-header--transparent .site-header__search-btn,
.site-header--transparent .site-header__toggle,
.site-header--transparent .site-header__lang-btn {
    color: #fff;
}

.site-header--transparent .site-header__menu-link:hover,
.site-header--transparent .site-header__search-btn:hover {
    opacity: 0.8;
}

/* Sticky + Transparent Overrides (Force Solid on Scroll) */
.site-header.is-sticky {
    background-color: #fff !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.site-header.is-sticky .site-header__menu-link,
.site-header.is-sticky .site-header__logo-text,
.site-header.is-sticky .site-header__search-btn,
.site-header.is-sticky .site-header__toggle,
.site-header.is-sticky .site-header__lang-btn {
    color: #333 !important;
}

.site-header.is-sticky .site-header__menu-link:hover {
    color: #000 !important;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .site-header__nav {
        display: none;
        /* Hide standard nav on Tablet/Mobile */
    }

    .site-header__lang {
        display: none;
    }

    .site-header__toggle {
        display: flex;
        /* Ensure visible */
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

    .site-header__logo-image {
        max-height: 45px;
        /* Adjust for smaller header */
    }

    .site-header__container {
        padding: 0 20px;
    }

    .site-header__lang-btn span {
        display: none;
        /* Hide 'TURKCE' text on mobile, just icon */
    }
}

/* -----------------------------------------------------------------------------
   Search Overlay
   ----------------------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 22, 22, 0.95);
    /* Slightly lighter black for depth */
    backdrop-filter: blur(10px);
    /* Modern frosted glass effect */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.search-overlay__close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    padding: 10px;
}

.search-overlay__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.search-overlay__content {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-overlay.is-active .search-overlay__content {
    transform: translateY(0);
}

.search-overlay__title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.search-overlay__input-wrapper {
    position: relative;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.search-overlay__input-wrapper:focus-within {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.search-overlay__input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 300;
    padding: 20px 60px 20px 0;
    outline: none;
    text-align: left;
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-overlay__icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    opacity: 0.5;
}

.search-overlay__spinner {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.search-overlay__results {
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
}

/* Custom Scrollbar */
.search-overlay__results::-webkit-scrollbar {
    width: 6px;
}

.search-overlay__results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-overlay__results::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.search-overlay__message {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    text-align: center;
    margin-top: 30px;
    font-weight: 300;
}

/* Result Item Card */
.search-result-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-result-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #fff;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-info {
    flex-grow: 1;
}

.search-result-title {
    display: block;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: lowercase;
}

.search-result-meta {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.search-result-sku {
    display: inline-block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------------------
   Mobile Menu Overlay
   ----------------------------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0.4s;
}

.mobile-menu.is-active {
    visibility: visible;
}

.mobile-menu__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.is-active .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.mobile-menu.is-active .mobile-menu__content {
    right: 0;
}

.mobile-menu__header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu__logo-image {
    max-height: 35px;
    width: auto;
}

.mobile-menu__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: #333;
    padding: 5px;
    cursor: pointer;
}

.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__item {
    border-bottom: 1px solid #f9f9f9;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.mobile-menu__link:active {
    background: #f5f5f5;
}

.mobile-menu__sub {
    background: #fcfcfc;
    padding: 10px 0;
    display: none;
}

.mobile-menu__item.is-open .mobile-menu__sub {
    display: block;
}

.mobile-menu__sub-group {
    padding: 10px 25px;
}

.mobile-menu__sub-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.mobile-menu__sub-link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.mobile-menu__footer {
    padding: 25px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.mobile-menu__lang {
    margin-bottom: 20px;
}

.mobile-menu__lang-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mobile-menu__lang-switcher {
    display: flex;
    gap: 10px;
}

.mobile-menu__lang-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-menu__lang-item.is-active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.mobile-menu__contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

body.mobile-menu-open {
    overflow: hidden !important;
    height: 100vh;
}