﻿/*=============================================================================
  HEADER & NAVBAR
=============================================================================*/
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex !important;
    align-items: center;
    position: relative;
    width: 100%;
    border-bottom: none;
    box-shadow: none;
    background-color: transparent;
}

.brand-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    width: 150px;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.nav-menu-wrapper {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu .nav-item {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    padding: 9px 26px;
    margin: 0 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    display: inline-block;
    z-index: 1;
}

.nav-menu .nav-item::after {
    content: '';
    background: var(--gradient-primary);
    border-radius: 30px;
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-105%, 0) rotate(10deg);
    transform-origin: top left;
    transition: transform 0.25s ease-out;
    will-change: transform;
    z-index: -1;
}

.nav-menu .nav-item:hover::after {
    transform: translate(0, 0);
}

.nav-menu .nav-item:hover {
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 60px;
    justify-content: flex-end;
}

.cart-icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--color-primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.active .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.lang-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.lang-btn svg { transition: transform 0.2s ease; }
.lang-btn.active svg { transform: rotate(180deg); }

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--color-text-body);
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.lang-option:hover { background: var(--color-bg-muted); }
.lang-option.active { background: var(--color-bg-accent); color: var(--color-primary); }

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .nav-container { padding: 12px 20px; }
    .brand-logo { width: auto; }
    .nav-menu-wrapper { display: none; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        border-bottom: 2px solid var(--color-primary);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        gap: 15px;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        display: flex;
        margin: 0;
    }
    .nav-right { position: static; width: auto; justify-content: flex-end; }
    .nav-toggle { display: flex; }
    .nav-menu.active { padding: 20px 0; max-height: 300px; }
    .nav-menu .nav-item { margin: 0; width: 80%; max-width: 300px; text-align: center; }
    .lang-selector { display: none; }
}

/*=============================================================================
  7. FOOTER
=============================================================================*/
.site-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 40px 20px;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

.footer-left {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.footer-logo {
    height: 34px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: left;
}

.footer-link-highlight {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link-highlight:hover {
    color: var(--color-primary);
}

.footer-right {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    min-width: 320px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: left;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-recaptcha {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-right {
        gap: 40px;
        width: 100%;
    }
    .footer-links-col {
        flex: 1;
        min-width: 140px;
    }
}

