/* Guest header */

.site-header {
    position: relative;
    background: linear-gradient(180deg, #020617 0%, #111827 52%, #172554 100%);
    color: #e0f2fe;
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.38);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #f97316);
}

.header-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.36) 18%, rgba(59, 130, 246, 0.34) 82%, rgba(249, 115, 22, 0));
}

.header-bottom {
    border-top: 1px solid rgba(125, 211, 252, 0.16);
    border-bottom: 1px solid rgba(125, 211, 252, 0.16);
    background: rgba(15, 23, 42, 0.42);
}

.header-bottom-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-promo {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    color: #dbeafe;
    font-size: 0.9rem;
    /* font-weight: 800; */
}

.header-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    color: #67e8f9;
}

.header-promo-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
    color: #67e8f9;
    text-decoration: none;
    /* font-weight: 900; */
    font-weight: 500;
}

.header-promo-link:hover,
.header-promo-link:focus {
    color: #ffffff;
    text-decoration: none;
}

main {
    min-width: 0;
}

.header-topbar {
    background: rgba(2, 6, 23, 0.78);
    /* border-bottom: 1px solid rgba(125, 211, 252, 0.14); */
    font-size: 0.8rem;
    /* font-weight: 700; */
    color: #bae6fd;
}

.header-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-topbar-left,
.header-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-topbar-right .dropdown {
    display: flex;
    align-items: center;
}

.header-topbar-left span,
.header-topbar-right span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-topbar-right a {
    color: #67e8f9;
    text-decoration: none;
}

.header-topbar-right a:hover {
    text-decoration: underline;
}

.header-topbar-right .dropdown-toggle-language {
    min-height: 0;
    padding: 0.15rem 0.1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    border-radius: 0;
}

.header-topbar-right .dropdown-toggle-language i {
    color: #7dd3fc;
    font-size: 0.9rem;
}

.header-topbar-right .dropdown-toggle-language:hover,
.header-topbar-right .dropdown-toggle-language:focus {
    background: transparent;
    color: #67e8f9;
}

.header-topbar-right .dropdown-toggle-language:hover i,
.header-topbar-right .dropdown-toggle-language:focus i {
    color: #67e8f9;
}

.header-shell {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    position: relative;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: #f8fafc;
    text-decoration: none;
    flex: 0 0 auto;
}

.navbar-logo,
.mobile-sidebar-logo {
    display: block;
    width: 82px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 auto;
}

.header-brand-text {
    display: grid;
    gap: 0.1rem;
    line-height: 1.1;
}

.header-brand-text strong {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.header-brand-text small {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.desktop-nav {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.header-nav-list {
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    width: max-content;
}

.header-cta-area {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 0.35rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.9rem !important;
    border-radius: 999px;
    color: #e0f2fe !important;
    font-size: 0.94rem;
    font-weight: 800;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #67e8f9 !important;
    background: rgba(14, 165, 233, 0.14);
    transform: translateY(-1px);
}

.nav-link.dropdown-toggle::after {
    margin-left: 0.45rem;
    vertical-align: 0.1em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.header-bottom .header-actions {
    width: 100%;
    justify-content: flex-start;
    padding: 0.15rem 0;
}

.header-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.36);
    color: #e0f2fe;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.26);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.header-quick-btn i {
    color: #22d3ee;
    font-size: 1rem;
}

.header-quick-btn:hover {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(34, 211, 238, 0.42);
    color: #67e8f9;
    transform: translateY(-1px);
}

.dropdown-toggle-language {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.36);
    color: #e0f2fe;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.26);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.dropdown-toggle-language:hover,
.dropdown-toggle-language:focus {
    background: rgba(14, 165, 233, 0.16);
    color: #67e8f9;
    transform: translateY(-1px);
}

.language-menu {
    min-width: 210px;
    margin-top: 0.5rem;
    right: 0;
    left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 0.4rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.language-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 9px;
    padding: 0.55rem 0.75rem;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.86rem;
}

.language-menu .lang-flag {
    font-size: 1.3rem;
    line-height: 1;
    flex: 0 0 auto;
}

.language-menu .lang-label {
    min-width: 0;
}

.language-menu li + li {
    margin-top: 0.15rem;
}

.language-menu .dropdown-item:hover,
.language-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
}

.language-menu .dropdown-item.active,
.language-menu .dropdown-item:active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-header-cta,
.btn-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.65rem 1.05rem;
    border: 0;
    border-radius: 999px;
    /* background: linear-gradient(135deg, #0ea5e9, #22d3ee); */
    background: linear-gradient(135deg, #FF9800, #ff5722);
    color: #ffffff;
    /* font-weight: 900; */
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-header-cta:hover,
.btn-mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(34, 211, 238, 0.4);
}

.btn-header-cta i,
.btn-mobile-cta i {
    font-size: 1.2rem;
    line-height: 1;
}

.btn-mobile-menu {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.14);
    color: #bae6fd;
    font-size: 1.5rem;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-mobile-menu:hover {
    background: rgba(14, 165, 233, 0.22);
    transform: translateY(-1px);
}

.mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.55rem 0.65rem 0.7rem;
    background: rgba(2, 6, 23, 0.96);
    border-top: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: 0 -10px 30px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(16px);
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 58px;
    padding: 0.35rem 0.25rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #bae6fd;
    text-decoration: none;
    font-size: 0.72rem;
    /* font-weight: 800; */
    font-weight: 500;
}

.mobile-bottom-item i {
    font-size: 1.1rem;
    line-height: 1;
}

.mobile-bottom-item:hover,
.mobile-bottom-item:focus,
.mobile-bottom-item.active {
    background: rgba(14, 165, 233, 0.16);
    color: #67e8f9;
}

.mobile-bottom-more {
    cursor: pointer;
}

/* Desktop mega menus */

.app-mega-dropdown {
    position: relative;
}

.app-mega-menu,
.app-category-mega {
    width: min(920px, calc(100vw - 2rem));
    margin-top: 0 !important;
    padding: 1.25rem !important;
    border: 1px solid rgba(125, 211, 252, 0.18) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)) !important;
    box-shadow: 0 28px 72px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(14, 165, 233, 0.08) inset !important;
    backdrop-filter: blur(18px);
}

.app-category-mega {
    width: min(780px, calc(100vw - 2rem));
}

.app-mega-header {
    margin-bottom: 1rem;
    padding: 0 0.25rem;
    color: #7dd3fc;
    font-size: 0.82rem;
    /* font-weight: 900; */
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mega-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.app-mega-item,
.category-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid rgba(125, 211, 252, 0.08);
    border-radius: 14px;
    color: #e0f2fe;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app-mega-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-mega-item:hover,
.category-item:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(34, 211, 238, 0.28);
    transform: translateY(-2px);
}

.app-item-icon,
.category-item-icon,
.mobile-product-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

/* Dark icon chip — mega menu + mobile sidebar item icons */
.app-item-icon,
.category-item-icon,
.mobile-product-icon {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
}

/* White icon glyph */
.app-item-icon i,
.category-item-icon i,
.mobile-product-icon i {
    color: #ffffff;
}

/* Desktop mega menu — original hue, deep/dark shade */
.app-item-icon.bg-primary-subtle,
.category-item-icon.bg-primary-subtle {
    background: linear-gradient(135deg, #0a458f, #052c65) !important;
}

.app-item-icon.bg-success-subtle,
.category-item-icon.bg-success-subtle {
    background: linear-gradient(135deg, #0f5132, #0a3622) !important;
}

.app-item-icon.bg-info-subtle,
.category-item-icon.bg-info-subtle {
    background: linear-gradient(135deg, #055160, #032830) !important;
}

.app-item-icon.bg-warning-subtle,
.category-item-icon.bg-warning-subtle {
    background: linear-gradient(135deg, #664d03, #4d3a02) !important;
}

.app-item-icon.bg-danger-subtle,
.category-item-icon.bg-danger-subtle {
    background: linear-gradient(135deg, #842029, #58151c) !important;
}

.app-item-icon.bg-secondary-subtle,
.category-item-icon.bg-secondary-subtle {
    background: linear-gradient(135deg, #343a40, #212529) !important;
}

/* Mobile sidebar — original hue, bright/vivid shade */
.mobile-product-icon.bg-primary-subtle {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.mobile-product-icon.bg-success-subtle {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.mobile-product-icon.bg-info-subtle {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.mobile-product-icon.bg-warning-subtle {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.mobile-product-icon.bg-danger-subtle {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
}

.mobile-product-icon.bg-secondary-subtle {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.app-item-title,
.category-item-title,
.mobile-product-title {
    color: #f8fafc;
    font-size: 0.94rem;
    /* font-weight: 900; */
    font-weight: 500;
}

.app-item-desc,
.category-item-desc,
.mobile-product-desc {
    color: #93c5fd;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Mobile sidebar text — readable blue/orange tones on the light sidebar */
.mobile-product-title {
    color: #075985;
    font-weight: 700;
}

.mobile-product-desc {
    color: #c2410c;
}

.category-mega-container {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.category-section {
    margin-bottom: 1rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section.category-hidden {
    display: none;
}

.category-section.category-show-animation {
    animation: slideDown 0.25s ease-out;
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.12);
    background: rgba(2, 6, 23, 0.34);
    color: #bae6fd;
    font-size: 0.88rem;
    /* font-weight: 900; */
    font-weight: 600;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.category-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.btn-load-more,
.btn-view-all {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    border: 0;
    border-radius: 12px;
    font-size: 0.88rem;
    /* font-weight: 900; */
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-load-more {
    background: rgba(15, 23, 42, 0.62);
    color: #bae6fd;
    border: 1px solid rgba(125, 211, 252, 0.16);
}

.btn-view-all {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    color: #ffffff;
}

.btn-load-more:hover,
.btn-view-all:hover {
    transform: translateY(-1px);
}

.btn-load-more:hover {
    background: rgba(14, 165, 233, 0.18);
    color: #67e8f9;
}

.btn-view-all:hover {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #ffffff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .app-mega-menu,
    .app-category-mega {
        display: block;
        left: 50% !important;
        top: calc(100% - 2px) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(10px);
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

    .app-mega-dropdown:hover .app-mega-menu,
    .app-mega-dropdown:hover .app-category-mega,
    .app-mega-menu.show,
    .app-category-mega.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile sidebar */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -20px 0 50px rgba(15, 23, 42, 0.22);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.btn-close-sidebar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.15rem;
}

.mobile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-menu-section {
    display: grid;
    gap: 0.35rem;
}

.mobile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #0f172a;
    /* font-weight: 900; */
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: #e0f2fe;
    color: #075985;
}

.mobile-menu-item i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    padding-left: 0.25rem;
    transition: max-height 0.28s ease;
}

.mobile-dropdown-content.active {
    /* max-height: 1200px; */
    max-height: 100%;
}

.mobile-category-group {
    margin: 0.5rem 0;
    padding: 0.75rem 0 0.75rem 0.6rem;
    border-left: 2px solid #38bdf8;
}

.mobile-category-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
}

.mobile-product-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

.mobile-product-item:hover {
    background: #f8fafc;
}

.mobile-sidebar-footer {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.btn-mobile-cta {
    width: 100%;
}

.mobile-language-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mobile-language-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-language-list a.active {
    border-color: #0ea5e9;
    color: #075985;
    background: #e0f2fe;
}

.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1199.98px) {
    .header-brand-text {
        display: none;
    }

    .mega-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    main {
        padding-bottom: 88px;
    }

    .header-shell {
        min-height: 76px;
    }

    .navbar-logo {
        width: 74px;
        height: 50px;
    }

    .header-brand-text {
        display: none;
    }
}

@media (max-width: 575.98px) {
    main {
        padding-bottom: 86px;
    }

    .header-shell {
        min-height: 70px;
    }

    .navbar-logo {
        width: 68px;
        height: 46px;
    }

    .mobile-sidebar {
        width: 100%;
        max-width: 92vw;
    }

    .mobile-bottom-bar {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .mobile-bottom-item {
        min-height: 54px;
        font-size: 0.68rem;
    }
}
