/* Olmia Header Styling */

/* Variables */
:root {
    --olmia-blue: #053A62;
    --olmia-orange: #ff2323;
    --olmia-green: #4caf50;
    --olmia-light-gray: #f5f5f5;
}

/* Container */
.olmia-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TOP BAR ===== */
.olmia-top-bar {
    background: var(--olmia-blue);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.olmia-top-bar .olmia-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.olmia-top-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.olmia-top-item {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.olmia-top-item i {
    color: var(--olmia-orange);
    font-size: 0.75rem;
}

.olmia-top-divider {
    color: rgba(255,255,255,0.4);
}

.olmia-top-social {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.olmia-top-social:hover {
    color: var(--olmia-orange);
}

.olmia-top-right {
    display: flex;
    align-items: center;
}

.olmia-top-phone {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.olmia-top-phone:hover {
    color: var(--olmia-orange);
}

.olmia-top-phone i {
    color: var(--olmia-orange);
}

/* ===== MIDDLE HEADER ===== */
.olmia-header-middle {
    background: white;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
}

.olmia-header-middle .olmia-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.olmia-logo {
    flex-shrink: 0;
}

.olmia-logo img {
    height: 65px;
    width: auto;
}

/* Search */
.olmia-search {
    flex: 1;
    max-width: 500px;
}

.olmia-search form {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.olmia-search i {
    color: #999;
    font-size: 1rem;
}

.olmia-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
}

.olmia-search input::placeholder {
    color: #999;
}

/* Header Icons */
.olmia-header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.olmia-icon-link {
    color: var(--olmia-blue);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.olmia-icon-link:hover {
    color: var(--olmia-orange);
}

.olmia-cart-link {
    position: relative;
    color: var(--olmia-blue);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.olmia-cart-link:hover {
    color: var(--olmia-orange);
}

.olmia-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--olmia-green);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAVIGATION BAR ===== */
.olmia-nav {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0;
}

.olmia-nav .olmia-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.olmia-nav-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.olmia-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
    color: var(--olmia-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.olmia-nav-link:hover,
.olmia-nav-link.active {
    color: var(--olmia-orange);
}

.olmia-nav-link i {
    font-size: 0.65rem;
    transition: transform 0.2s;
}

/* Dropdown */
.olmia-nav-dropdown {
    position: relative;
}

.olmia-nav-dropdown:hover .olmia-nav-link i {
    transform: rotate(180deg);
}

.olmia-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
}

.olmia-nav-dropdown:hover .olmia-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.olmia-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--olmia-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.olmia-dropdown-menu a:last-child {
    border-bottom: none;
}

.olmia-dropdown-menu a:hover {
    background: #f8f8f8;
    color: var(--olmia-orange);
}

/* CTA Right */
.olmia-nav-right {
    padding: 0.75rem 0;
}

.olmia-cta {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.olmia-cta-title {
    color: var(--olmia-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.olmia-cta-text {
    color: var(--olmia-blue);
    font-size: 0.85rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--olmia-blue);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hide old header styles */
.top-banner,
.main-header {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .olmia-top-left {
        display: none;
    }

    .olmia-top-bar .olmia-container {
        justify-content: flex-end;
    }

    .olmia-search {
        display: none;
    }

    .olmia-nav-left {
        display: none;
    }

    .olmia-nav-right {
        display: none;
    }

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

@media (max-width: 768px) {
    .olmia-header-middle .olmia-container {
        gap: 1rem;
    }

    .olmia-logo img {
        height: 40px;
    }

    .olmia-header-icons {
        gap: 1rem;
    }

    .olmia-icon-link,
    .olmia-cart-link {
        font-size: 1.25rem;
    }
}

/* ===== OLMIA COOKIE CONSENT ===== */
.olmia-cookie {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem;
    max-width: 380px;
    z-index: 9999;
    display: none;
    border-left: 4px solid var(--olmia-orange);
    animation: olmia-cookie-slide 0.4s ease-out;
}

.olmia-cookie.active {
    display: block;
}

@keyframes olmia-cookie-slide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.olmia-cookie-icon {
    width: 120px;
    margin-bottom: 1rem;
}

.olmia-cookie-icon img {
    width: 100%;
    height: auto;
}

.olmia-cookie-content h4 {
    color: var(--olmia-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.olmia-cookie-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.olmia-cookie-content a {
    color: var(--olmia-orange);
    text-decoration: underline;
}

.olmia-cookie-content a:hover {
    color: var(--olmia-blue);
}

.olmia-cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.olmia-cookie-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.olmia-cookie-accept {
    background: var(--olmia-orange);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.olmia-cookie-accept:hover {
    background: #e5850f;
}

.olmia-cookie-decline {
    background: transparent;
    color: var(--olmia-blue);
    border: 1px solid #ddd;
}

.olmia-cookie-decline:hover {
    background: #f5f5f5;
    border-color: var(--olmia-blue);
}

@media (max-width: 480px) {
    .olmia-cookie {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
        border-left: none;
        border-top: 4px solid var(--olmia-orange);
    }

    .olmia-cookie-actions {
        flex-direction: column;
    }

    .olmia-cookie-btn {
        width: 100%;
        justify-content: center;
    }
}
