/* Header Desktop v5 Styles */

/* ===== Header v5 ===== */
.header-v5 {
    border-bottom: 1px solid var(--border);
}

.header-v5__inner {
    height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

/* Left: Menu */
.header-v5__menu-top {
    position: relative;
    top: 10px;
}

.header-v5__menu {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.header-v5__menu-visible {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
    overflow: hidden;
}

.header-v5__menu-link {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-v5__menu-link:hover {
    text-decoration: underline;
}

.header-v5__menu-link--sale {
    color: #810615;
}

/* More button & dropdown */
.header-v5__menu-more {
    position: relative;
    display: none;
}

.header-v5__menu-more-btn {
    appearance: none;
    background: transparent;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-black);
    letter-spacing: 3px;
    transition: color 0.2s ease;
}

.header-v5__menu-more-btn:hover {
    color: var(--color-accent);
}

.header-v5__menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--color-white);
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.header-v5__menu-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 16px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-white);
}

.header-v5__menu-more.is-open .header-v5__menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-v5__dropdown-link {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.header-v5__dropdown-link:hover {
    text-decoration: underline;
}

.header-v5__dropdown-link.header-v5__menu-link--sale {
    color: var(--color-accent);
}

/* Center: Logo */
.header-v5__logo {
    justify-self: center;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-v5__logo-svg {
    width: 158px;
    height: 57.5px;
    display: block;
}

/* Right: Actions */
.header-v5__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-v5__action-btn {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #000;
}

.header-v5__action-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.header-v5__action-btn:hover {
    opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .header-v5__inner {
        gap: 20px;
    }

    .header-v5__menu {
        gap: 20px;
    }
}

/* Hide desktop header on mobile */
@media (max-width: 768px) {
    .header-v5 {
        display: none;
    }
}
