@import url('https://fonts.googleapis.com/css2?family=Alata&family=Outfit:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #f8fafc;
}

.container {
    width: 95%;
    max-width: 1700px;
    margin: auto;
}

/* ========================= TOP BAR ========================= */
.top-bar {
    background: #4169E1;
    padding: 9px 0;
}
.top-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.top-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
}
.top-offer .arr {
    opacity: 0.6;
    font-size: 10px;
}
.top-brand {
    font-weight: 700;
    opacity: 0.85;
}
.offer-timer {
    font-weight: 700;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
}
.explore-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 12px;
    opacity: 0.9;
}

/* ========================= MAIN HEADER ========================= */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

/* LEFT */
.nav-left {
    display: flex;
    align-items: center;
    gap: 44px;
}
.logo img {
    width: 150px;
    height: auto;
    display: block;
}

/* NAV MENU */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-menu ul li {
    position: relative;
}

/* FIX: anchor tag as flex row so label + badge + arrow all sit on same baseline */
.nav-menu ul li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #111827;
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-menu ul li a:hover { color: #4169E1; }
.highlight-link { color: #4169E1 !important; }

.new-badge {
    background: #ff4d4d;
    color: #ffffff;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    line-height: 1;
    /* stays on same line — no top offset needed anymore */
}

/* FIX: dropdown arrow — inline-flex, perfectly vertically centered */
.dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    color: currentColor;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN MENU */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 230px;
    background: #ffffff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 999;
}

/* little triangle pointer */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #ffffff;
    border-top: none;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.06));
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    padding: 10px 14px !important;
    color: #374151 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
    background: #f0f4ff;
    color: #4169E1 !important;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* RIGHT SECTION */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* CONTACT BOX */
.contact-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-icon {
    width: 36px;
    height: 36px;
    background: #eff3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4169E1;
}
.contact-icon svg {
    stroke: #4169E1;
}
.contact-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.phone-number {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
}
.contact-details small {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
}

/* NAV BUTTONS */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-btn, .login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.chat-btn {
    border: 1.5px solid #4169E1;
    color: #4169E1;
    background: transparent;
}
.chat-btn:hover { background: #4169E1; color: #ffffff; }
.login-btn {
    background: #4169E1;
    color: #ffffff;
    border: 1.5px solid #4169E1;
}
.login-btn:hover { background: #3154c7; border-color: #3154c7; }

/* HAMBURGER */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}
.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========================= OVERLAY ========================= */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1199;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ========================= MOBILE DRAWER ========================= */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100dvh;
    background: #0f172a;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* FIX: logo invert — white logo on dark drawer background */
.drawer-logo img {
    width: 130px;
    height: auto;
    filter: brightness(0) invert(1);
}

.drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
}
.drawer-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }

/* Drawer Nav */
.drawer-nav { flex: 1; padding: 8px 0; }

.drawer-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 13px 20px;
    transition: color 0.2s, background 0.2s;
}
.drawer-nav-item:hover { color: #ffffff; background: rgba(255, 255, 255, 0.04); }

/* Accordion */
.drawer-accordion {
    border-radius: 10px;
    margin: 2px 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}
.drawer-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    padding: 13px 16px;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.drawer-accordion-toggle:hover { color: #ffffff; }

/* FIX: accordion arrow — inline-flex, vertically centered */
.drawer-accordion-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 11px;
    opacity: 0.6;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.drawer-accordion.open .drawer-accordion-arrow { transform: rotate(90deg); }

.drawer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}
.drawer-accordion.open .drawer-accordion-content { max-height: 320px; }

.drawer-accordion-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    padding: 10px 20px;
    transition: color 0.2s;
}
.drawer-accordion-content a::before {
    content: '—';
    font-size: 10px;
    opacity: 0.4;
}
.drawer-accordion-content a:hover { color: #4169E1; }

.drawer-highlight { color: #4169E1 !important; }
.drawer-new-badge {
    background: #ff4d4d;
    color: #ffffff;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 700;
}

/* Drawer Footer */
.drawer-footer {
    padding: 14px 14px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-chat-btn, .drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s, border-color 0.2s;
}
.drawer-chat-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: transparent;
}
.drawer-chat-btn:hover { background: rgba(255, 255, 255, 0.08); }
.drawer-login-btn { background: #4169E1; color: #ffffff; }
.drawer-login-btn:hover { background: #3154c7; }

/* ========================= TABLET ========================= */
@media (max-width: 1400px) {
    .nav-left { gap: 30px; }
    .nav-menu ul { gap: 20px; }
}

/* ========================= MOBILE ========================= */
@media (max-width: 900px) {
    .hamburger-btn { display: flex; }
    .nav-menu, .contact-box, .nav-buttons { display: none; }
    .right-section { gap: 10px; }
    .drawer-overlay { display: block; }

    .top-offer {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
    }
    .top-offer .arr { display: none; }
    .logo img { width: 130px; }
    .navbar { min-height: 60px; }
}