/* ============================================================
   YOOVAP — okso-style.css
   Responsive navigation styles for nav-unified.php
   Desktop: 4-layer horizontal nav
   Mobile (≤768px): centered brand bar + hamburger drawer
============================================================ */

/* ── Reset ── */
.yv-ib-topbar,
.yv-ib-brand,
.yv-ib-promo,
.yv-ib-nav,
.yv-ib-mobile {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.yv-ib-topbar *,
.yv-ib-brand *,
.yv-ib-promo *,
.yv-ib-nav *,
.yv-ib-mobile * { box-sizing: border-box; }

/* ── LAYER 1: Top Bar (Warning) ── */
.yv-ib-topbar {
    background: #000000;
    color: #999999;
}
.yv-ib-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yv-ib-topbar-warning span {
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ── LAYER 2: Brand Bar ── */
.yv-ib-brand {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.yv-ib-brand-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.yv-ib-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.yv-ib-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* Search */
.yv-ib-search {
    flex: 0 1 360px;
    min-width: 200px;
}
.yv-ib-search-form {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.yv-ib-search-form:focus-within {
    border-color: rgba(255,255,255,0.25);
}
.yv-ib-search-input {
    flex: 1;
    background: #4A90D9;
    border: none;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    min-width: 0;
}
.yv-ib-search-input::placeholder {
    color: #555555;
}
.yv-ib-search-btn {
    background: #4A90D9;
    border: none;
    padding: 8px 14px;
    color: #999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.yv-ib-search-btn:hover { color: #ffffff; }

/* Action icons */
.yv-ib-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}
.yv-ib-account-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cccccc;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.yv-ib-account-btn:hover { color: #ffffff; }
.yv-ib-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s;
    background: #4A90D9;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}
.yv-ib-cart-btn:hover { color: #ffffff; }
.yv-ib-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #7C3AED;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Hamburger (hidden on desktop) */
.yv-ib-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.yv-ib-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}
.yv-ib-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.yv-ib-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.yv-ib-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── LAYER 3: Promo Bar ── */
.yv-ib-promo {
    background: #7C3AED;
    color: #ffffff;
}
.yv-ib-promo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── LAYER 4: Nav Bar ── */
.yv-ib-nav {
    background: #111111;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.yv-ib-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.yv-ib-nav-inner::-webkit-scrollbar { display: none; }
.yv-ib-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #bbbbbb;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.yv-ib-nav-link:hover { color: #ffffff; }

/* Dropdown */
.yv-ib-nav-dropdown {
    position: relative;
}
.yv-ib-nav-arrow::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #bbbbbb;
    border-bottom: 1.5px solid #bbbbbb;
    margin-left: 6px;
    transform: rotate(45deg) translateY(-2px);
    transition: border-color 0.2s;
}
.yv-ib-nav-arrow:hover::after {
    border-color: #ffffff;
}
.yv-ib-nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    min-width: 180px;
    padding: 6px 0;
    z-index: 50;
}
.yv-ib-nav-dropdown:hover .yv-ib-nav-sub {
    display: block;
}
.yv-ib-nav-sub a {
    display: block;
    padding: 8px 18px;
    color: #bbbbbb;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s, background 0.2s;
}
.yv-ib-nav-sub a:hover {
    color: #ffffff;
    background: rgba(124,58,237,0.12);
}

/* ── Mobile Menu Overlay ── */
.yv-ib-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.yv-ib-mobile.is-open { display: block; }
body.yv-ib-mobile-open { overflow: hidden; }
.yv-ib-mobile-inner {
    padding: 80px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.yv-ib-mobile-link {
    display: block;
    padding: 14px 0;
    color: #cccccc;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.15s;
}
.yv-ib-mobile-link:hover { color: #ffffff; }

/* ============================================================
   MOBILE (≤768px)
============================================================ */
@media (max-width: 768px) {

    /* Top bar: keep compact */
    .yv-ib-topbar-inner { padding: 4px 16px; }
    .yv-ib-topbar-warning span { font-size: 10px; }

    /* Brand bar: logo left, hamburger right */
    .yv-ib-brand-inner {
        padding: 10px 16px;
        gap: 12px;
    }

    /* Hide search on mobile — show hamburger instead */
    .yv-ib-search { display: none; }
    .yv-ib-account-btn { display: none; }

    .yv-ib-hamburger {
        display: flex;
    }

    /* Promo bar: keep visible, compact */
    .yv-ib-promo-inner {
        padding: 7px 16px;
        font-size: 0.75rem;
        text-align: center;
    }

    /* Nav bar: hide (links in mobile drawer) */
    .yv-ib-nav { display: none; }

    /* Cart btn: always show */
    .yv-ib-cart-btn {
        margin-right: 4px;
    }
}

/* ============================================================
   DESKTOP (>768px)
============================================================ */
@media (min-width: 769px) {
    .yv-ib-hamburger { display: none; }
    .yv-ib-mobile { display: none !important; }
    body.yv-ib-mobile-open { overflow: auto; }
}



/* Floating Contact Buttons */
.yv-float-btn {
    position: fixed;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.yv-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.yv-float-wa {
    bottom: 80px;
    background: #4A90D9;
}
.yv-float-wa img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}
.yv-float-email {
    bottom: 148px;
    background: #4A90D9;
}
@media (max-width: 768px) {
    .yv-float-btn { right: 16px; }
    .yv-float-wa { bottom: 72px; }
    .yv-float-email { bottom: 140px; }
}

/* Fix WhatsApp button - clean */
.yv-float-wa,
.yv-float-wa img {
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background: transparent !important;
}

