﻿/* ══════════════════════════════════════════════════════════════
   AREA51 HEADER STYLES
   Standalone header CSS extracted from custom.css
   ══════════════════════════════════════════════════════════════ */

/* ============================================
   HEADER - PREMIUM DESIGN
   ============================================ */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Top Bar */
.header-top {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2d2d2d 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 2rem;
    animation: fadeIn 0.8s ease 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .header-contact span:hover {
        color: var(--primary-red-light);
        transform: translateX(3px);
    }

/* Main Header */
.header-main {
    padding: 1.25rem 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

/* Logo - Animated */
.logo {
    flex-shrink: 0;
    position: relative;
}

    .logo a {
        text-decoration: none;
        display: inline-block;
        position: relative;
    }

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.logo-accent {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

    .logo-accent::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--primary-red);
        transition: width 0.4s ease;
    }

.logo:hover .logo-accent::after {
    width: 100%;
}

.logo:hover .logo-text {
    transform: scale(1.05);
}

/* Navigation - With Dropdown */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-list > li {
        position: relative;
    }

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--primary-red);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    }

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-list > li:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* DROPDOWN MENU - ANIMATED */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.nav-list > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .dropdown-item:hover {
        background: var(--bg-light);
        border-left-color: var(--primary-red);
        padding-left: 2rem;
    }

.dropdown-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #374151;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

    .dropdown-item-icon svg {
        width: 18px;
        height: 18px;
    }

.dropdown-item:hover .dropdown-item-icon {
    background: var(--primary-red);
    color: white;
    transform: scale(1.08);
}

.dropdown-item-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.dropdown-item-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* Search Bar - Animated */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 0.625rem 1.25rem;
    min-width: 280px;
    transition: all 0.3s ease;
}

    .search-bar:focus-within {
        background: white;
        border-color: var(--primary-red);
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
        transform: scale(1.02);
    }

    .search-bar input {
        border: none;
        background: none;
        outline: none;
        width: 100%;
        font-size: 0.95rem;
        color: var(--text-dark);
    }

        .search-bar input::placeholder {
            color: var(--text-light);
        }

    .search-bar button {
        background: none;
        border: none;
        color: var(--text-light);
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }

        .search-bar button:hover {
            color: var(--primary-red);
            transform: scale(1.2) rotate(90deg);
        }

/* Header Actions - Animated */
.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.action-btn {
    background: var(--bg-light);
    border: 2px solid transparent;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
}

    .action-btn:hover {
        background: var(--primary-red);
        color: white;
        border-color: var(--primary-red);
        transform: translateY(-3px) rotate(5deg);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    }

    .action-btn svg {
        width: 22px;
        height: 22px;
        transition: transform 0.3s ease;
    }

    .action-btn:hover svg {
        transform: scale(1.2);
    }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    border: 2px solid white;
    animation: pulse 2s ease infinite;
}

.header {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #efefef;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: none !important;
}

/* Top bar */
.hdr-topbar {
    background: #111;
    font-size: .74rem;
    letter-spacing: .01em;
}

.hdr-topbar-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}

.hdr-topbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hdr-topbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hdr-topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

    .hdr-topbar-link:hover {
        color: #e51c1c;
    }

.hdr-topbar-static {
    pointer-events: none;
}

.hdr-lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255,255,255,.42);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 8px;
    cursor: pointer;
    transition: all .2s;
}

    .hdr-lang-btn:hover {
        color: rgba(255,255,255,.85);
        border-color: rgba(255,255,255,.2);
    }

    .hdr-lang-btn.active {
        color: #e51c1c;
        border-color: #e51c1c;
    }

/* Main row */
.hdr-main {
    background: #fff;
}

.hdr-main-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    gap: 32px;
}

/* Logo */
.hdr-logo {
    text-decoration: none;
    flex-shrink: 0;
}

.hdr-logo-text {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #111;
    font-family: 'Georgia', serif;
}

.hdr-logo-accent {
    color: #e51c1c;
}

/* Nav */
.hdr-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    justify-content: center;
}

.hdr-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 5px;
}

.hdr-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 13px;
    height: 66px;
    font-size: .845rem;
    font-weight: 600;
    color: #2d2d2d;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color .2s;
}

    .hdr-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 13px;
        right: 13px;
        height: 2px;
        background: #e51c1c;
        transform: scaleX(0);
        transition: transform .22s ease;
    }

    .hdr-nav-link:hover,
    .hdr-nav-link.active {
        color: #e51c1c;
    }

        .hdr-nav-link:hover::after,
        .hdr-nav-link.active::after {
            transform: scaleX(1);
        }

.hdr-chevron {
    width: 14px;
    height: 14px;
    transition: transform .22s;
    flex-shrink: 0;
}

.hdr-has-dropdown:hover .hdr-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.hdr-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 2px solid #e51c1c;
    box-shadow: 0 20px 50px rgba(0,0,0,.11);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 999;
}

.hdr-has-dropdown:hover .hdr-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hdr-dropdown-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #999;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.hdr-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #f7f7f7;
    transition: all .17s;
    cursor: pointer;
}

    .hdr-dropdown-item:last-of-type {
        border-bottom: none;
    }

    .hdr-dropdown-item:hover {
        background: #fef7f7;
        padding-left: 22px;
    }

.hdr-dd-index {
    font-family: monospace;
    font-size: .65rem;
    font-weight: 700;
    color: rgba(229,28,28,.5);
    flex-shrink: 0;
    width: 22px;
    transition: color .17s;
}

.hdr-dropdown-item:hover .hdr-dd-index {
    color: #e51c1c;
}

.hdr-dd-body {
    flex: 1;
    min-width: 0;
}

.hdr-dd-name {
    display: block;
    font-size: .855rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

.hdr-dd-desc {
    display: block;
    font-size: .74rem;
    color: #aaa;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .17s;
}

.hdr-dropdown-item:hover .hdr-dd-desc {
    color: rgba(229,28,28,.6);
}

.hdr-dd-arrow {
    opacity: 0;
    color: #e51c1c;
    flex-shrink: 0;
    transform: translateX(-4px);
    transition: all .17s;
}

.hdr-dropdown-item:hover .hdr-dd-arrow {
    opacity: 1;
    transform: translateX(0);
}

.hdr-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #e51c1c;
    background: #fef7f7;
    border-top: 1px solid #f0e8e8;
    transition: background .17s;
}

    .hdr-dropdown-footer:hover {
        background: #fde8e8;
        color: #e51c1c;
    }

/* Action buttons */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.hdr-action-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    border-radius: 4px;
}

    .hdr-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .hdr-action-btn:hover {
        background: #f5f5f5;
        color: #e51c1c;
    }

    .hdr-action-btn.active {
        background: #fef2f2;
        color: #e51c1c;
    }

.hdr-cart-btn {
    position: relative;
}

.hdr-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e51c1c;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Search panel */
.hdr-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #e51c1c;
    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 998;
}

    .hdr-search-panel.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.hdr-search-form {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    transition: border-color .2s;
}

    .hdr-search-form:focus-within {
        border-color: #e51c1c;
    }

.hdr-search-icon {
    padding: 0 14px;
    color: #bbb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hdr-search-input {
    flex: 1;
    padding: 13px 0;
    border: none;
    outline: none;
    font-size: .95rem;
    background: transparent;
    color: #1a1a1a;
}

    .hdr-search-input::placeholder {
        color: #bbb;
    }

.hdr-search-submit {
    background: #e51c1c;
    border: none;
    color: #fff;
    padding: 0 24px;
    height: 48px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .hdr-search-submit:hover {
        background: #b91010;
    }

.hdr-search-close {
    background: transparent;
    border: none;
    border-left: 1px solid #eee;
    color: #bbb;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s;
    flex-shrink: 0;
}

    .hdr-search-close:hover {
        color: #e51c1c;
    }

/* Hamburger */
.hdr-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

    .hdr-hamburger span {
        display: block;
        height: 2px;
        background: #333;
        border-radius: 1px;
        transition: all .28s ease;
    }

    .hdr-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hdr-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hdr-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Mobile nav */
.hdr-mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 2px solid #e51c1c;
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

    .hdr-mobile-nav.open {
        display: flex;
    }

.hdr-mobile-divider {
    padding: 10px 20px 6px;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #bbb;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.hdr-mobile-link {
    padding: 13px 20px;
    font-size: .88rem;
    font-weight: 600;
    color: #2d2d2d;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all .18s;
}

    .hdr-mobile-link:hover {
        color: #e51c1c;
        background: #fef7f7;
    }

.hdr-mobile-sub {
    padding-left: 32px;
    font-weight: 500;
    color: #555;
    font-size: .84rem;
}

    .hdr-mobile-sub::before {
        content: '— ';
        color: rgba(229,28,28,.5);
    }

/* Responsive */
@media (max-width: 960px) {
    .hdr-nav {
        display: none;
    }

    .hdr-hamburger {
        display: flex;
    }
}

@media (max-width: 680px) {
    .hdr-topbar-left .hdr-topbar-link:not(:first-child) {
        display: none;
    }
}

@media (max-width: 520px) {
    .hdr-topbar {
        display: none;
    }

    .hdr-main-inner {
        padding: 0 16px;
    }

    .hdr-search-form {
        padding: 0 16px;
    }
}



/* ══════════════════════════════════════════════════════════════
   RESPONSIVE STYLES (from custom.css media queries)
   ══════════════════════════════════════════════════════════════ */
opacity: 0;
transition: all .75s ease .2s;
}

.hero-slide.active .hero-text {
    transform: translateX(0);
    opacity: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e51c1c;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 6px 14px;
    margin-bottom: 22px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.hero-title {
    font-family: 'Georgia', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 18px;
    .mega-root-link:hover, .mega-root-item.sub-open > .mega-root-link

{
    background: #fef2f2;
    color: #dc2626;
}

.mega-root-name {
    font-size: .88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.mega-root-arrow {
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform .15s, color .13s;
}

.mega-root-item.sub-open > .mega-root-link .mega-root-arrow,
.mega-root-link:hover .mega-root-arrow {
    color: #dc2626;
    transform: rotate(0deg);
}

/* Sub-panel — absolutely positioned to the right */
}

.nav-categories-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
