html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    overflow-x: hidden;
}

.top-bar-layout {
    display: flex;
    align-items: center;
    width: 100%;
}

.top-bar-logo {
    flex: 0 0 auto;
}

.top-bar-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.top-bar-nav .nav-list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
    align-items: center;
}

.top-bar-nav .nav-list li {
    position: relative;
}

.top-bar-right {
    flex: 0 0 auto;
}

.top-bar-nav .nav-list li a {
    color: #fff;
    font-weight: 500;
    font-size: clamp(0.82rem, 1vw, 1rem);
    padding: 8px clamp(6px, 1vw, 12px);
    background: none;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.top-bar-nav .nav-list li a:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.top-bar-nav .nav-list li .nav-dropdown-item,
.top-bar-nav .nav-list li a.nav-dropdown-item {
    color: #334155 !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 12px 16px;
    background: none;
    white-space: nowrap;
}

.top-bar-nav .nav-list li .nav-dropdown-item:hover,
.top-bar-nav .nav-list li a.nav-dropdown-item:hover {
    color: #003f7d !important;
    background: #f0f6ff;
    transform: translateX(3px);
}

.top-bar-search {
    margin-left: 0;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.top-bar-search:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.top-bar-search:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.top-bar-search input[type="text"] {
    height: 28px;
    font-size: 0.82rem;
    border-radius: 0;
    border: none;
    padding: 0 6px 0 0;
    width: 110px;
    background: transparent !important;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.top-bar-search input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

.top-bar-search input[type="text"]:focus {
    background: transparent !important;
    color: #fff;
    outline: none;
    width: 160px;
}

.top-bar-search input[type="text"]:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar-search button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 2px;
}

.top-bar-search button:hover {
    color: white;
}

.mobile-header {
    display: none;
    background: #003f7d;
    padding: 8px 0;
    position: relative;
}

@media (max-width: 991.98px) {
    .top-bar {
        display: none !important;
    }

    .mobile-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
        min-height: 50px;
    }

    body {
        padding-top: 50px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .top-bar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-bar-search {
        margin-left: 0;
        margin-top: 8px;
    }
}

.mobile-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-header .logo-container {
    flex-grow: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.mobile-header .logo img {
    height: 32px;
}

.mobile-header .mobile-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-header .mobile-btn {
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.mobile-header .mobile-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-header .mobile-btn .cart-count {
    position: absolute;
    top: 0;
    right: -5px;
    background: #f44336;
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 50px);
    max-height: calc(100dvh - 50px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-header .mobile-menu.show {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
}

.mobile-header .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-header .mobile-menu ul li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.mobile-header .mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-header .mobile-menu ul li a {
    color: #003f7d;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.mobile-header .mobile-menu ul li a:hover {
    color: var(--accent-color);
}

.mobile-search-container {
    display: none;
    padding: 15px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.mobile-search-container.show {
    display: block;
}

.mobile-search-container form {
    width: 100%;
    position: relative;
}

.mobile-search-container input[type="text"] {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 1rem;
}

.mobile-search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #003f7d;
}

.megamenu-parent {
    position: relative;
}

@media (min-width: 992px) {

    .megamenu-parent:hover .megamenu,
    .megamenu-parent:focus-within .megamenu {
        display: block !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.megamenu .col-md-4 a:hover {
    background: #f0f6ff;
    border-radius: 8px;
    color: #003f7d;
}

.megamenu .col-md-4 a img {
    border: 1px solid #e1e1e1;
}



.megamenu-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 63, 125, 0.15), 0 0 0 1px rgba(0, 63, 125, 0.05);
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.megamenu-header {
    background: linear-gradient(135deg, #003f7d 0%, #0052b3 100%);
    color: white;
    padding: 14px 30px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.megamenu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.megamenu-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.megamenu-header h3 i {
    margin-right: 12px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.megamenu-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
    position: relative;
    z-index: 2;
}

.categories-grid-wide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 30px 10px;
}

.modern-category-item {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 63, 125, 0.08);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
    margin-bottom: 8px;
}

.modern-category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 63, 125, 0.12);
    border-color: rgba(0, 63, 125, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header-modern {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
}

.modern-category-item .category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #003f7d 0%, #0052b3 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modern-category-item:hover .category-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 63, 125, 0.3);
}

.category-content {
    flex: 1;
}

.category-title {
    display: block;
    color: #003f7d !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    margin-bottom: 3px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.category-title:hover {
    color: #0052b3 !important;
    text-decoration: none !important;
}

.category-count {
    color: #003f7d;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.expand-btn {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003f7d;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expand-btn:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.expand-btn.expanded {
    transform: rotate(180deg);
    background: #003f7d;
    color: white;
}

.subcategories-modern {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 16px;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.subcategories-modern.expanded {
    max-height: 300px;
    padding: 12px 16px 16px;
}

.subcategory-link {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: #003f7d !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    gap: 8px;
}

.subcategory-link:hover {
    background: white;
    color: #0052b3 !important;
    text-decoration: none !important;
    transform: translateX(6px);
    box-shadow: 0 3px 12px rgba(0, 63, 125, 0.1);
}

.subcategory-link i {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.subcategory-link:hover i {
    opacity: 1;
    transform: translateX(3px);
}

.megamenu-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(0, 63, 125, 0.08);
    border-radius: 0 0 16px 16px;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    gap: 16px;
}

.cta-content h4 {
    margin: 0 0 4px 0;
    color: #003f7d;
    font-size: 1rem;
    font-weight: 700;
}

.cta-content h4 i {
    margin-right: 8px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.cta-content p {
    margin: 0;
    color: #003f7d;
    font-size: 0.85rem;
    opacity: 0.8;
}

.cta-button {
    background: linear-gradient(135deg, #003f7d 0%, #0052b3 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 6px 20px rgba(0, 63, 125, 0.25);
    flex-shrink: 0;
    white-space: nowrap;
    border: 2px solid transparent;
}

.cta-button:hover {
    text-decoration: none !important;
    color: white !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 63, 125, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}