
@import url("search-popup.css");

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-banner {
    background: #ff660000;
    border-bottom: 1px solid #e5e7eb;
    max-height: 48px;
    overflow: hidden;
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        border-color 0.3s ease;
}

.top-banner__inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 13px;
}

.top-banner__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-left: auto;
}

.top-banner__links a {
    color: #475467;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-banner__links a:hover {
    color: #111827;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.theme-switch__track {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #f1f5f9;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switch__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.theme-switch__icon--sun {
    left: 7px;
}

.theme-switch__icon--moon {
    right: 7px;
    opacity: 0.45;
}

.theme-switch[aria-pressed="true"] .theme-switch__track {
    background: #1e293b;
    border-color: #334155;
}

.theme-switch[aria-pressed="true"] .theme-switch__thumb {
    transform: translateX(24px);
}

.theme-switch[aria-pressed="true"] .theme-switch__icon--sun {
    opacity: 0.45;
}

.theme-switch[aria-pressed="true"] .theme-switch__icon--moon {
    opacity: 1;
}

.theme-switch:hover .theme-switch__track {
    border-color: #c7d3e0;
}

.theme-switch:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 999px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 15000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f0f2f5;
    box-shadow: 0 1px 2px rgba(26, 29, 33, 0.04);
}

.header__inner--desktop {
    display: flex;
    align-items: center;
    gap: 20px;
    max-height: 100px;
}

.header__mobile {
    display: none;
}

.mobile-app-banner {
    display: none;
}

.header__icon-btn--plain {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1a1d21;
}

.header__icon-btn--plain:hover {
    background: #f3f4f6;
}

.logo {
    position: relative;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 350px;
    height: auto;
    display: block;
}

.header__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.header__desktop-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e8eaed;
    border-radius: 50%;
    background: #fff;
    color: #1a1d21;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header__icon-btn:hover {
    background: #0080ff;
    border-color: #fcfcfc;
}

.header__icon-svg {
    display: block;
    flex-shrink: 0;
}

.header__mobile-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn--ghost {
    background: transparent;
    border-color: #e5e7eb;
    color: #1f2937;
}

.btn--ghost:hover {
    background: #f8fafc;
}

.btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.header__auth-slot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header__profile-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.header__profile-btn:hover {
    background: #ff7300;
    border-color: #ff99004b;
}

header__profile-btn svg {
    transition: 0.3s ease;
}

.header__profile-btn:hover svg {
    color: #ffffff;
}

.header__profile-btn:hover svg {
    stroke: #ffffff;
}

.header__auth-slot[hidden] {
    display: none !important;
}

.cart-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cart-btn:hover {
    background: #ff7300;
    border-color: #ff99004b;
}

.cart-btn svg {
    transition: 0.3s ease;
}

.cart-btn:hover svg {
    stroke: #ffffff;
}

.cart-btn__icon {
    display: block;
    flex-shrink: 0;
}

.cart-btn__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.cart-btn__fav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #db2777;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.cart-btn__fav-badge[hidden] {
    display: none !important;
}

.header__user-menu {
    position: relative;
}

.header__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #ffa600;
    font: inherit;
    cursor: pointer;
}

.header__user-trigger:hover {
    border-color: #e5e7eb;
    background: #fff;
    color: #111827;
}

.header__user-name {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

.header__user-chevron {
    flex-shrink: 0;
}

.header__user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 29, 33, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: 0.18s ease;
    z-index: 100;
}

.header__user-menu:hover .header__user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__user-dropdown__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
}

.header__user-dropdown__link:hover {
    background: #f3f4f6;
}

.header__user-dropdown__btn {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: none;
    border-top: 1px solid #eef2f7;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    color: #111827;
}

.header__user-dropdown__btn:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* BOTTOM NAV */
.bottom-nav {
    display: none;
}

/* MOBILE SHEET */
.header__sheet[hidden] {
    display: none !important;
}

.header__sheet {
    position: fixed;
    inset: 0;
    z-index: 20000;
}

.header__sheet-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}

.header__sheet-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    animation: sheet-in 0.22s ease;
}

@keyframes sheet-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.header__sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.header__sheet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.header__sheet-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.header__sheet-inner {
    padding: 12px 10px 24px;
    overflow-y: auto;
}

.header__sheet-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__sheet-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.header__sheet-links a:hover {
    background: #f3f4f6;
}

.header__sheet-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 14px 0;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

/* MOBILE */
@media (max-width: 900px) {
    :root {
        --bottom-nav-h: 62px;
        --mobile-header-h: 48px;
        --mobile-search-h: 46px;
        --mobile-cat-tabs-h: 40px;
    }

    body {
        padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    }

    .container {
        padding: 0 14px;
    }

    .top-banner {
        display: none !important;
    }

    #site-header {
        position: sticky;
        top: 0;
        z-index: 15000;
    }

    .header {
        background: #fff;
        border-bottom: 1px solid #eceff3;
        box-shadow: none;
        backdrop-filter: none;
    }

    .header__inner--desktop {
        display: none;
    }

    .header__mobile {
        display: block;
    }

    .header__mobile-bar {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: var(--mobile-header-h);
        padding-top: env(safe-area-inset-top, 0px);
    }

    .logo--mobile {
        position: static;
        transform: none;
        bottom: auto;
        margin-right: auto;
    }

    .logo--mobile img {
        display: none;
    }

    .logo--mobile::after {
        content: "bizdevar";
        display: block;
        color: #202124;
        font-family: Arial, sans-serif;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1;
    }

    .header__mobile-end {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .header__mobile-bar .header__icon-btn--plain,
    .header__mobile-link {
        width: 24px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: #111827;
        position: relative;
    }

    .header__mobile-bar .header__icon-btn--plain:hover,
    .header__mobile-link:hover {
        background: transparent;
        color: #f97316;
    }

    .header__mobile-bar .header__icon-btn--plain svg,
    .header__mobile-link svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.9;
    }

    .header__mobile-search-row {
        display: block;
        padding-top: 4px;
        padding-bottom: 6px;
    }

    .header__mobile-search {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        min-width: 0;
        max-width: none;
        height: 34px;
        padding: 0 14px;
        border: none;
        border-radius: 999px;
        background: #f3f4f6;
        color: #5f6673;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 600;
        overflow: hidden;
        cursor: pointer;
    }

    .header__mobile-search span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header__mobile-search svg {
        flex-shrink: 0;
        color: #ff6b00;
        width: 20px;
        height: 20px;
        margin: 10px;
    }

    .mobile-cat-tabs {
        border-top: none;
        border-bottom: 1px solid #eceff3;
        background: #fff;
    }

    .mobile-cat-tabs__scroll {
        display: flex;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px;
    }

    .mobile-cat-tabs__scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-tabs__item {
        flex: 0 0 auto;
        min-height: var(--mobile-cat-tabs-h);
        padding: 9px 13px 8px;
        border: none;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: #374151;
        font: inherit;
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.15s ease, border-color 0.15s ease;
    }

    .mobile-cat-tabs__item.is-active {
        color: #f97316;
        border-bottom-color: #f97316;
    }

    .header__mobile-link .cart-btn__badge,
    .header__mobile-link .cart-btn__fav-badge {
        top: 0;
        right: -6px;
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        font-size: 10px;
        line-height: 15px;
        border: 2px solid #fff;
    }

    .mobile-app-banner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        margin-bottom: 8px;
        border: 1px solid #edf0f4;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
        animation: mobile-app-banner-in 0.22s ease both;
    }

    .mobile-app-banner.is-hidden {
        display: none;
    }

    .mobile-app-banner__icon {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: #f3f6ff;
        overflow: hidden;
        margin: 9px 0 9px 12px;
    }

    .mobile-app-banner__icon img {
        width: 74px;
        height: 74px;
        object-fit: contain;
    }

    .mobile-app-banner__text {
        min-width: 0;
        display: grid;
        gap: 1px;
    }

    .mobile-app-banner__text strong {
        color: #111827;
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .mobile-app-banner__text span {
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .mobile-app-banner__action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 6px 12px;
        border-radius: 999px;
        background: #ff6b00;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-app-banner__close {
        width: 30px;
        height: 30px;
        display: inline-grid;
        place-items: center;
        margin-right: 8px;
        border: none;
        border-radius: 50%;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }

    @keyframes mobile-app-banner-in {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 14000;
        height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        border-top: 1px solid #e8eaed;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
    }

    .bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 4px;
        color: #6b7280;
        text-decoration: none;
        font-size: 0.62rem;
        font-weight: 600;
        line-height: 1.1;
        position: relative;
    }

    .bottom-nav__item svg {
        flex-shrink: 0;
    }

    .bottom-nav__item.is-active {
        color: var(--mega-accent, #ff9100);
    }

    .bottom-nav__item.is-active svg {
        stroke: var(--mega-accent, #ff9100);
    }

    .bottom-nav__badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 22px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #2563eb;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    .bottom-nav__badge[hidden] {
        display: none !important;
    }

    .header__user-menu.is-open .header__user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


.bizdesat-btn {
    border-radius: 25px;
}

.bizdesat-button a{
    position: relative;
     color: #002fff;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.bizdesat-button { 
    width: 80px;
    background-color: #ff6b00;
    border-radius: 25px;
    text-align: center;
    transition: all 0.5s ease;
    cursor: pointer;
}

.bizdesat-button:hover {
    background-color: #2563eb;
    color: #ff6b00;
}

.bizdesat-button:hover a {
    color: #ffae00;
}
