/* Header Styles */
:root {
    --header-red: #c80910;
    --text-dark: #1A1A1A;
    --transition-speed: 200ms;
}

/* Font imports */
@font-face {
    font-family: 'Geologica';
    src: url('../fonts/Geologica-VariableFont_CRSV,SHRP,slnt,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Header Reset */
.site-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Header Styles */
.site-header {
    width: 100%;
    background: #fff;
    padding: 0.5rem 0 1.2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Ana sayfa sticky durumunda header dönüşümü */
.home .site-header.is-sticky {
    padding: 6px;
}

.home .site-header.is-sticky .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    margin: auto 30px;
    position: relative;
    padding: 0.5rem 1rem;
}

.home .site-header.is-sticky .logo img {
    max-width: 130px;
    transition: max-width 0.3s ease;
}

/* Ana sayfa sticky durumunda nav düzeni */
.home .site-header.is-sticky .nav-layout {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    min-width: 600px;
    padding: 0;
}

.home .site-header.is-sticky .nav-center {
    flex: unset;
    /* margin-right: 2rem; */
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
}

/* Ana sayfa dışındaki sayfalar için tek satır düzeni */
body:not(.home) .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    margin: auto 30px;
    position: relative;
}

/* Ana sayfa dışındaki sayfalarda logo boyutu */
body:not(.home) .site-header .logo img {
    max-width: 115px;
}

/* Logo Styles */
.site-header .logo {
    display: block;
    text-decoration: none;
    text-align: center;
    margin: 0;
}

.site-header .logo img {
    width: 200px;
    height: auto;
    display: block;
}

/* Navigation Layout */
.nav-layout {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

.nav-left {
    flex: 1;
}

/* Ana sayfa için nav-center stili */
.home .nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

/* Diğer sayfalar ve sticky durumunda nav-center ve nav-right container */
body:not(.home) .nav-layout,
.home .site-header.is-sticky .nav-layout {
    justify-content: center;
    position: absolute;
    left: 59%;
    top: 50%;
    transform: translate(-50%, -40%);
    width: auto;
    min-width: 500px;
}

/* Diğer sayfalar için nav-center stili */
body:not(.home) .nav-center {
    display: flex;
    justify-content: flex-end;
    /* margin-right: 2rem;*/
}

/* Ana sayfa için nav-right stili */
.home .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Diğer sayfalar için nav-right stili */
body:not(.home) .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navigation Lists */
.nav-center ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    margin-right: 2rem; /* Contact ile Instagram arasına ekstra boşluk */
}

.site-nav a {
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 0.90rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    transition: color var(--transition-speed);
    position: relative;
    padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--header-red);
}

.site-nav a[aria-current="page"] {
    color: var(--header-red);
}

/* Aktif sayfa ve hover durumunda sadece renk değişimi */
body.home .nav-center a[href="/"],
body.page-women .nav-center a[href="/women"],
body.page-men .nav-center a[href="/men"],
body.page-contact .nav-center a[href="/contact"] {
    color: var(--header-red);
}

/* Icon Styles */
.nav-right .icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    background: none;
    border: none;
}

.nav-right .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--text-dark);
    transition: fill var(--transition-speed);
}

.nav-right .icon:hover svg {
    fill: var(--header-red);
}

/* Search Styles */
.search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.search-wrap input {
    width: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transition: width 220ms ease, opacity 200ms ease, padding 200ms ease;
    opacity: 0;
    pointer-events: none;
}

.search-wrap.is-open input {
    width: 260px;
    padding: 8px 14px;
    background: #F0F2F4;
    border-radius: 20px;
    opacity: 1;
    pointer-events: auto;
}

.search-wrap input:focus {
    outline: none;
}

.search-wrap input::placeholder {
    color: #6B7280;
}

.search-toggle {
    width: 22px;
    height: 34px;
    padding: 7px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: url(../images/searchicon.png) no-repeat center / contain;
    justify-content: center;
}

.search-toggle:hover,
.search-wrap input:focus + .search-toggle {
    background: url("../images/searchicon_kirmizi.png") no-repeat center/contain;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    fill: #000;
    transition: fill var(--transition-speed);
}

.search-toggle img {
    width: 23px;
    height: 23px;
}

.search-toggle:hover svg {
    fill: #EC1C24;
}

.search-wrap:hover .search-toggle img {
    filter: brightness(0) saturate(100%) invert(23%) sepia(94%) saturate(7496%) hue-rotate(357deg) brightness(97%) contrast(113%);
}

.search-toggle[aria-expanded="true"] img {
    filter: brightness(0) saturate(100%) invert(23%) sepia(94%) saturate(7496%) hue-rotate(357deg) brightness(97%) contrast(113%);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (min-width: 1773px) and (max-width: 2400px) {
    .site-header .container {
        max-width: 1710px;
    }
}

@media (max-width: 991px) {
    .search-wrap.is-open input {
        width: 220px;
    }
}

@media (max-width: 768px) {
    /* Tüm sayfalarda mobil görünüm için container'ı dikey hizala */
    .site-header .container {
        flex-direction: column !important;
        align-items: baseline;
        gap: 1rem;
    }

    /* Mobilde logo boyutunu sabit tut */
    .site-header .logo img {
        max-width: 125px !important;
    }

    .nav-layout {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
}


/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 1px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    margin-top: 7px;
    z-index: 999;
}

/* Hem hover hem de active class ile açılır */
.has-dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dropdown-menu .dropdown-item {
    padding: 7px 10px;
    border-radius: 4px;
    font-weight: 300;
    color: #000;
    font-size: 12px;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: none;
}

.dropdown-menu .dropdown-item.red {
    color: #c80910;
}

.site-nav li:hover {
    color: red;
}

.site-nav li.has-dropdown:hover {
    color: #c80910;
}

/* Contact menüsü için özel stiller */
.site-nav li:has(> [href="/contact"]) {
    color: #000;
}

.site-nav li.has-dropdown:hover > a {
    color: #c80910;
}

.site-nav li:has(> [href="/contact"]) .dropdown-trigger {
    color: #000;
    text-decoration: none !important;
}

.site-nav a.active {
    color: #c80910;
}

/* Mobile Submenu Styles */
@media (max-width: 768px) {
    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        margin-top: 0;
        padding: 0;
        min-width: auto;
    }

    .submenu-content {
        gap: 1rem;
    }

    .submenu-item {
        padding: 0.5rem 0;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--header-red);
    outline-offset: 2px;
}

/* AYRI MOBİL MENÜ CSS - Eski mobil CSS kodlarını sil, bunu ekle */

/* Desktop Navigation - Mobilde gizle */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: flex !important; /* display: none yerine flex yap */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Başlangıçta gizli ama display flex olsun */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;

}

.mobile-nav.mobile-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

/* Mobile Menu List */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-nav-menu li {
    margin-bottom: 2rem;
}

/* Mobile Menu Links */
.mobile-dropdown-trigger {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    padding: 1rem 2rem;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mobile-dropdown-trigger:hover,
.mobile-dropdown-trigger.active {
    color: var(--header-red);
}

/* Mobile Dropdown Arrow */
.mobile-dropdown-trigger::after {
    content: '▾';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-has-dropdown.mobile-dropdown-active .mobile-dropdown-trigger::after {
    transform: rotate(180deg);
}

.mobile-without-trigger {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    padding: 1rem 2rem;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
}

.mobile-has-dropdown.mobile-dropdown-active .mobile-dropdown-menu {
    display: flex;
}

/* Mobile Dropdown Items */
.mobile-dropdown-item {
    font-family: 'Geologica', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item.active {
    color: var(--header-red);
}

/* Mobile Bottom Section */
.mobile-nav-bottom {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Icon */
.mobile-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: none;
    border: none;
    text-decoration: none;
}

.mobile-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

.mobile-icon:hover svg {
    fill: var(--header-red);
}

/* Mobile Search */
.mobile-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.mobile-search-wrap input {
    width: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: width 220ms ease, opacity 200ms ease, padding 200ms ease;
    opacity: 0;
    pointer-events: none;
}

.mobile-search-wrap.is-open input {
    width: 250px;
    padding: 1rem 1.5rem;
    background: #F0F2F4;
    border-radius: 20px;
    opacity: 1;
    pointer-events: auto;
}

.mobile-search-toggle {
    width: 45px;
    height: 45px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-toggle img {
    width: 25px;
    height: 25px;
    transition: filter 0.3s ease;
}

.mobile-search-toggle:hover img,
.mobile-search-toggle[aria-expanded="true"] img {
    filter: brightness(0) saturate(100%) invert(23%) sepia(94%) saturate(7496%) hue-rotate(357deg) brightness(97%) contrast(113%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mobil menü butonunu göster */
    .mobile-menu-button {
        display: block !important;
        position: absolute !important;
        top: 1.5rem !important;
        right: 1rem !important;
        z-index: 1002 !important;
        padding: 0.5rem !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        outline: none !important;
        width: 45px !important;
        height: 45px !important;
    }

    .mobile-menu-button svg {
        width: 25px;
        height: 25px;
        fill: #1A1A1A;
        transition: fill 0.3s ease, transform 0.3s ease;
    }

    .mobile-menu-button:hover svg,
    .mobile-menu-button[aria-expanded="true"] svg {
        fill: var(--header-red);
    }

    .mobile-menu-button[aria-expanded="true"] svg {
        transform: rotate(90deg);
    }

    /* Body scroll lock */
    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Container relative positioning */
    .site-header .container {
        position: relative;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .mobile-dropdown-trigger {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }

    .mobile-dropdown-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .mobile-search-wrap.is-open input {
        width: 200px;
        padding: 0.75rem 1rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 26%;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    display: none; /* başlangıçta görünmesin */
}

.back-to-top img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.back-to-top:hover img {
    transform: scale(1.1);
}
