/* Header Styles - Minimal Design */

.header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.header__main {
    position: absolute;
    top: 30px; /* Below top bar */
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Black header background for all pages except homepage */
body:not(.home) .header__main {
    position: relative;
    top: 0;
    background: #000000;
    padding: 10px 0;
}

body:not(.home) .header {
    background: #000000;
}

.header__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* Left: Menu Toggle */
.header__left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header__menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.header__menu-toggle:hover {
    color: #ffffff;
    opacity: 0.8;
}

.header__menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
    position: relative;
}

.header__menu-toggle-line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.header__menu-toggle:hover .header__menu-toggle-line {
    background-color: #ffffff;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header__menu-toggle-text {
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* Center: Logo */
.header__center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__logo-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.header__logo-image {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Right: Icons */
.header__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header__icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hide mobile icons by default (desktop) */
.header__icons--mobile {
    display: none;
}

/* Show desktop icons by default */
.header__icons--desktop {
    display: flex;
}

.header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.header__icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.header__icon:active {
    transform: scale(0.95);
}

.header__icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__icon--language .header__icon-svg {
    fill: currentColor;
    stroke: none;
}

/* Cart Count Badge */
.header__cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    background-color: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Search Overlay */
.header__search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.header__search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
    position: relative;
}

.header__search-form {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header__search-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header__search-input:focus {
    border-bottom-color: #ffffff;
}

.header__search-submit,
.header__search-close {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.header__search-submit:hover,
.header__search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.header__search-submit svg,
.header__search-close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Responsive Styles */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .header__container {
        padding: 18px 30px;
    }

    .header__logo-text {
        font-size: 22px;
    }

    .header__icons {
        gap: 15px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .header__container {
        padding: 15px 25px;
        gap: 20px;
    }

    .header__logo-text {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .header__logo-image {
        max-height: 50px;
    }

    .header__menu-toggle-text {
        display: none;
    }

    .header__icons {
        gap: 12px;
    }

    .header__icon {
        width: 36px;
        height: 36px;
    }

    .header__icon-svg {
        width: 18px;
        height: 18px;
    }

    /* Keep desktop layout for tablets */
    .header__icons--desktop {
        display: flex !important;
    }

    .header__icons--mobile {
        display: none !important;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .header__main {
        top: 30px;
    }

    .header__container {
        padding: 12px 20px;
        gap: 15px;
        position: relative;
    }

    /* Hide desktop icons in mobile */
    .header__icons--desktop {
        display: none !important;
    }

    /* Show mobile icons */
    .header__icons--mobile {
        display: flex !important;
    }

    /* Left: Menu Toggle */
    .header__left {
        order: 1;
        flex: 0 0 auto;
    }

    /* Center: Logo */
    .header__center {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: 0 0 auto;
        width: auto;
    }

    /* Right: Cart Icon */
    .header__right {
        order: 3;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .header__logo-text {
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .header__logo-image {
        max-height: 45px;
    }

    .header__icons {
        gap: 10px;
    }

    .header__icon {
        width: 32px;
        height: 32px;
    }

    .header__icon-svg {
        width: 16px;
        height: 16px;
    }

    .header__search-input {
        font-size: 24px;
    }

    .header__search-container {
        padding: 0 20px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .header__container {
        padding: 10px 15px;
        gap: 10px;
    }

    /* Hide desktop icons in mobile */
    .header__icons--desktop {
        display: none !important;
    }

    /* Show mobile icons */
    .header__icons--mobile {
        display: flex !important;
    }

    /* Left: Menu Toggle */
    .header__left {
        order: 1;
        flex: 0 0 auto;
    }

    /* Center: Logo */
    .header__center {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex: 0 0 auto;
        width: auto;
    }

    /* Right: Cart Icon */
    .header__right {
        order: 3;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .header__logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .header__logo-image {
        max-height: 40px;
    }

    .header__icons {
        gap: 8px;
    }

    .header__icon {
        width: 28px;
        height: 28px;
    }

    .header__icon-svg {
        width: 14px;
        height: 14px;
    }

    .header__search-input {
        font-size: 20px;
    }
}

/* Mobile Menu Sidebar */
.header__menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.header__menu-sidebar.header__menu-sidebar--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.header__menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__menu-sidebar--active .header__menu-overlay {
    opacity: 1;
}

.header__menu-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.header__menu-nav::-webkit-scrollbar {
    width: 6px;
}

.header__menu-nav::-webkit-scrollbar-track {
    background: transparent;
}

.header__menu-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.header__menu-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.header__menu-sidebar--active .header__menu-nav {
    transform: translateX(0);
}

.header__menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__menu-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.95;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.header__menu-close {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    opacity: 0.7;
}

.header__menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
    opacity: 1;
}

.header__menu-close:active {
    transform: rotate(90deg) scale(0.95);
    opacity: 0.8;
}

.header__menu-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.header__menu-list {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header__menu-item {
    margin: 0;
    padding: 0 20px;
}

.header__menu-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.header__menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 2px 2px 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__menu-link::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.6);
}

.header__menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    padding-left: 28px;
    color: #ffffff;
    transform: translateX(4px);
}

.header__menu-link:hover::before {
    width: 2px;
}

.header__menu-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

.header__menu-link:active {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.header__menu-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.header__menu-link:hover .header__menu-icon {
    opacity: 1;
}

.header__menu-text {
    flex: 1;
    font-weight: 400;
}

/* Mobile Menu Icons (Search, Language, Account) */
.header__menu-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.header__menu-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}

.header__menu-icon-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    opacity: 1;
    color: #ffffff;
}

.header__menu-icon-item:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.12);
}

.header__menu-icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    transition: all 0.25s ease;
}

.header__menu-icon-item:hover .header__menu-icon-svg {
    stroke-width: 2;
}

.header__menu-icon-item--language .header__menu-icon-svg {
    fill: currentColor;
    stroke: none;
}

/* Responsive Menu Styles */
@media (max-width: 575.98px) {
    .header__menu-nav {
        max-width: 100% !important;
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .header__menu-header {
        padding: 30px 20px !important;
        background: transparent !important;
    }

    .header__menu-title {
        font-size: 16px !important;
        letter-spacing: 2.5px !important;
        color: #ffffff !important;
    }

    .header__menu-close {
        color: #ffffff !important;
        width: 32px !important;
        height: 32px !important;
    }

    .header__menu-icons {
        padding: 25px 20px !important;
        gap: 10px !important;
        background: transparent !important;
    }

    .header__menu-icon-item {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 10px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .header__menu-icon-svg {
        width: 18px !important;
        height: 18px !important;
    }

    .header__menu-list {
        padding: 12px 0 !important;
        gap: 3px !important;
    }

    .header__menu-item {
        padding: 0 15px !important;
    }

    .header__menu-link {
        padding: 14px 18px !important;
        font-size: 14px !important;
        gap: 15px !important;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .header__menu-link:hover {
        padding-left: 24px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        color: #ffffff !important;
        transform: translateX(3px) !important;
    }

    .header__menu-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 16px !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .header__main,
    .header__logo-link,
    .header__icon,
    .header__menu-toggle,
    .header__search-overlay,
    .header__menu-sidebar,
    .header__menu-nav,
    .header__menu-overlay,
    .header__menu-link {
        transition: none;
        animation: none;
    }
}

