﻿/* =========================
   Winsun Top Bar
========================= */

.ws-topbar {
    width: 100%;
    height: 39px;
    background: #0b1739;
    color: #fff;
    font-size: 13px;
}

.ws-topbar-inner {
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ws-topbar-welcome {
    white-space: nowrap;
    color: #fff;
}

.ws-topbar-right {
    height: 100%;
    display: flex;
    align-items: center;
}

.ws-topbar-user {
    display: flex;
    align-items: center;
}

.ws-topbar-signin,
.ws-topbar-register {
    display: inline-flex;
    align-items: center;
}

.ws-topbar-signin a,
.ws-topbar-register a {
    color: #fff;
    text-decoration: none;
    line-height: 39px;
}

.ws-topbar-signin a:hover,
.ws-topbar-register a:hover {
    color: #0000ff;
}

.ws-topbar-line {
    display: inline-block;
    width: 1px;
    height: 14px;
    margin: 0 14px;
    background: rgba(255, 255, 255, 0.35);
}

.ws-topbar-phone {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #fff;
}

.ws-topbar-phone i {
    margin-right: 9px;
    font-size: 14px;
}

.ws-topbar-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ws-topbar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 39px;
}

.ws-topbar-social a:hover {
    color: #0000ff;
}


/* =========================
   Tablet
========================= */

@media screen and (max-width: 1024px) {

    .ws-topbar-line {
        margin-left: 9px;
        margin-right: 9px;
    }

    .ws-topbar-social {
        gap: 14px;
    }

    .ws-topbar-welcome {
        font-size: 12px;
    }

    .ws-topbar {
        font-size: 12px;
    }
}


/* =========================
   Mobile
========================= */

@media screen and (max-width: 767px) {

    .ws-topbar {
        height: auto;
        min-height: 42px;
    }

    .ws-topbar-inner {
        height: auto;
        min-height: 42px;
        justify-content: center;
    }

    .ws-topbar-welcome {
        display: none;
    }

    .ws-topbar-right {
        width: 100%;
        height: auto;
        min-height: 42px;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0;
    }

    .ws-topbar-signin a,
    .ws-topbar-register a {
        line-height: 42px;
    }

    .ws-topbar-phone {
        line-height: 42px;
    }

    .ws-topbar-social a {
        line-height: 42px;
    }

    .ws-topbar-social {
        gap: 16px;
    }
}


/* =========================
   Small Mobile
========================= */

@media screen and (max-width: 480px) {

    .ws-topbar-right {
        justify-content: space-between;
    }

    .ws-topbar-phone {
        display: none;
    }

    .ws-topbar-right > .ws-topbar-line {
        display: none;
    }

    .ws-topbar-user .ws-topbar-line {
        display: inline-block;
        margin-left: 9px;
        margin-right: 9px;
    }

    .ws-topbar-social {
        gap: 15px;
    }

    .ws-topbar-social a {
        font-size: 15px;
    }
}


/* =========================
   Main Header
========================= */

.ws-header {
    width: 100%;
    background: #fff;
}

.ws-header-inner {
    height: 102px;
    display: flex;
    align-items: center;
}

/* Logo */
.ws-header-logo {
    width: 270px;
    flex-shrink: 0;
}

.ws-header-logo a {
    display: inline-block;
}

.ws-header-logo img {
    display: block;
    width: auto;
    height: 88px;
    max-width: 100%;
}

/* Search */
.ws-header-search {
    position: relative;
    z-index: 1001;
    flex: 1;
    max-width: 700px;
    height: 40px;
    margin-left: 55px;
    display: flex;
    align-items: center;
    border: 2px solid #0000ff;
    border-radius: 22px;
    overflow: visible;
    background: #fff;
}

.ws-header-search input {
    flex: 1;
    width: 100%;
    height: 36px;
    padding: 0 20px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 13px;
    border-radius: 20px 0 0 20px;
}

.ws-header-search input::placeholder {
    color: #888;
}

.ws-header-search-btn {
    width: 56px;
    height: 40px;
    margin-right: -1px;
    margin-top: -2px;
    margin-bottom: -2px;
    border: none;
    background: #0000ff;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
}


/* =========================
   Header Quick Search
========================= */

.ws-search-window {
    position: absolute;
    left: -2px;
    top: calc(100% + 8px);
    z-index: 10030;
    width: calc(100% + 4px);
    display: none;
    overflow: hidden;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(4, 40, 88, .16);
}

.ws-search-rst {
    max-height: 390px;
    margin: 0;
    padding: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #b8c4d6 #f3f5f8;
}

.ws-search-rst::-webkit-scrollbar {
    width: 6px;
}

.ws-search-rst::-webkit-scrollbar-track {
    background: #f3f5f8;
}

.ws-search-rst::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #b8c4d6;
}

.ws-search-rst > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ws-search-rst > li + li {
    border-top: 1px solid #edf0f5;
}

.ws-search-rst > li > a {
    width: 100%;
    min-height: 56px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 6px;
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.ws-search-rst > li > a:hover {
    background: #f5f7ff;
    color: #0000ff;
}

.ws-search-rst > li > a img,
.ws-search-rst img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    border: 1px solid #edf0f5;
    border-radius: 5px;
    background: #fff;
}

.ws-search-rst > li > a span,
.ws-search-rst > li > a strong,
.ws-search-rst > li > a b,
.ws-search-rst > li > a em {
    min-width: 0;
}

.ws-search-rst > li > a strong,
.ws-search-rst > li > a b {
    color: #172033;
}

.ws-search-rst > li > a:hover strong,
.ws-search-rst > li > a:hover b {
    color: #0000ff;
}

.ws-search-rst .search-loading,
.ws-search-rst .search-empty,
.ws-search-rst .search-error {
    min-height: 54px;
    padding: 0 14px !important;
    display: flex;
    align-items: center;
    color: #667085;
    font-size: 13px;
    line-height: 20px;
}

.ws-search-rst .search-loading:before {
    content: "";
    width: 15px;
    height: 15px;
    margin-right: 9px;
    flex-shrink: 0;
    border: 2px solid #dfe3ff;
    border-top-color: #0000ff;
    border-radius: 50%;
    animation: wsSearchLoading .7s linear infinite;
}

.ws-search-rst .search-error {
    color: #c0392b;
}

@keyframes wsSearchLoading {
    to {
        transform: rotate(360deg);
    }
}

/* Right Buttons */
.ws-header-tools {
    margin-left: auto;
    padding-left: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ws-header-tool-btn {
    position: relative;
    min-width: 88px;
    height: 34px;
    padding: 0 15px;
    border-radius: 4px;
    background: #00c6bc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
}

.ws-header-tool-btn:hover {
    background: #042858;
    color: #fff;
}

.ws-header-tool-btn i {
    font-size: 13px;
}

/* Cart number */
.ws-header-cart-num {
    position: absolute;
    right: -6px;
    top: -8px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 50%;
    background: #f5222d;
    color: #fff;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
}


/* =========================
   Tablet
========================= */

@media screen and (max-width: 1024px) {

    .ws-header-logo {
        width: 200px;
    }

    .ws-header-search {
        margin-left: 25px;
    }

    .ws-header-tools {
        padding-left: 25px;
        gap: 12px;
    }

    .ws-header-tool-btn {
        min-width: 76px;
        padding: 0 12px;
    }
}


/* =========================
   Mobile
========================= */

@media screen and (max-width: 767px) {

    .ws-header {
        padding: 12px 0;
    }

    .ws-header-inner {
        height: auto;
        flex-wrap: wrap;
    }

    .ws-header-logo {
        width: 50%;
    }

    .ws-header-logo img {
        height: 65px;
    }

    .ws-header-tools {
        width: 50%;
        padding-left: 0;
        justify-content: flex-end;
        gap: 8px;
    }

    .ws-header-tool-btn {
        min-width: auto;
        height: 32px;
        padding: 0 10px;
    }

    .ws-header-search {
        order: 3;
        width: 100%;
        max-width: none;
        flex-basis: 100%;
        height: 40px;
        margin: 12px 0 0;
    }

    .ws-search-window {
        top: calc(100% + 7px);
        border-radius: 8px;
    }

    .ws-search-rst {
        max-height: 280px;
        padding: 5px;
    }

    .ws-search-rst > li > a {
        min-height: 54px;
        padding: 7px 9px;
        gap: 9px;
        font-size: 13px;
    }

    .ws-search-rst > li > a img,
    .ws-search-rst img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}


/* =========================
   Small Mobile
========================= */

@media screen and (max-width: 480px) {

    .ws-header-logo {
        width: 45%;
    }

    .ws-header-tools {
        width: 55%;
    }

    .ws-header-logo img {
        height: 58px;
    }

    .ws-header-tool-btn span {
        display: none;
    }

    .ws-header-tool-btn {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    .ws-header-tool-btn i {
        font-size: 15px;
    }
}


/* Main navigation */

.ws-nav {
    position: relative;
    z-index: 900;
    width: 100%;
    height: 56px;
    background: #000087;
}

.ws-nav-inner {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
}


/* All categories */

.ws-nav-categories {
    position: relative;
    width: 307px;
    height: 56px;
    flex-shrink: 0;
}

.ws-nav-categories-btn {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2525ff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.ws-nav-categories-btn i {
    font-size: 20px;
}


/* Main links */

.ws-nav-links {
    flex: 1;
    height: 56px;
    display: flex;
    align-items: stretch;
}

.ws-nav-link {
    position: relative;
    height: 56px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
}

.ws-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.ws-nav-link:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #fff;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.ws-nav-link:hover:after,
.ws-nav-link.active:after {
    width: 38%;
}


/* Category panel */

.ws-nav-category-panel {
    position: absolute;
    left: 0;
    top: 56px;
    width: 100%;
    background: #042858;
    z-index: 910;
}

.ws-nav-category-list {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding:20px 0;
}

/* Dynamic category states */

.ws-nav-category-loading,
.ws-nav-category-empty,
.ws-nav-category-error {
    min-height: 48px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 22px;
}

.ws-nav-category-loading:before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 9px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wsCategoryLoading .7s linear infinite;
}

.ws-nav-category-error {
    color: #ffd6d6;
}

@keyframes wsCategoryLoading {
    to {
        transform: rotate(360deg);
    }
}

.ws-nav-category-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

.ws-nav-category-list::-webkit-scrollbar {
    width: 5px;
}

.ws-nav-category-list::-webkit-scrollbar-track {
    background: transparent;
}

.ws-nav-category-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-radius: 5px;
}

/* Category item */

.ws-nav-category-item {
    position: static;
}

.ws-nav-category-item > a {
    width: 100%;
    min-height: 38px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}

.ws-nav-category-item > a i {
    margin-left: 15px;
    flex-shrink: 0;
    font-size: 16px;
}

.ws-nav-category-item:hover > a {
    background: #2525ff;
    color: #fff;
}

/* Mega menu */

.ws-nav-mega {
    position: absolute;
    left: 100%;
    top: 0;
    width: 1053px;
    min-height: 100%;
    max-height: 500px;
    padding: 22px 32px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e1e6ef;
    box-shadow: 12px 14px 35px rgba(4, 40, 88, .13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(8px);
    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
    z-index: 920;
}

.ws-nav-category-item:hover > .ws-nav-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}


/* Mega menu top */

.ws-nav-mega-top {
    min-height: 0;
    padding: 0 0 18px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 4px;
    border-bottom: 1px solid #e0e6ef;
}

.ws-nav-mega-top a {
    position: relative;
    min-width: 0;
    padding: 6px 0 6px 14px;
    color: #27364f;
    font-size: 14px;
    line-height: 21px;
    white-space: normal;
    word-break: break-word;
}

.ws-nav-mega-top a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9eb1ce;
}

.ws-nav-mega-top a:hover {
    color: #2525ff;
}

.ws-nav-mega-top a:hover:before {
    background: #2525ff;
}

.ws-nav-mega-top > i {
    display: none;
}


/* Mega menu grid */

.ws-nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 42px;
    row-gap: 24px;
}

.ws-nav-mega-col {
    min-width: 0;
}

.ws-nav-mega-col h3 {
    position: relative;
    margin: 0 0 8px;
    padding: 0 0 9px 14px;
    border-bottom: 1px solid #dfe5ee;
    font-size: 16px;
    line-height: 22px;
}

.ws-nav-mega-col h3 + ul {
    margin-bottom: 22px;
}

.ws-nav-mega-col h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2525ff;
}

.ws-nav-mega-col h3 a {
    color: #2525ff;
}

.ws-nav-mega-col li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
}

.ws-nav-mega-col li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9eb1ce;
}

.ws-nav-mega-col li a {
    display: block;
    color: #27364f;
    font-size: 14px;
    line-height: 20px;
}

.ws-nav-mega-col li a:hover {
    color: #2525ff;
}


/* Home state */

#home .ws-nav-category-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* Inner page state */

body:not(#home) .ws-nav-category-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

body:not(#home) .ws-nav-categories:hover .ws-nav-category-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* Fixed navigation */

.ws-nav.current {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 70, .18);
    animation: wsNavCurrent .3s ease;
}

@keyframes wsNavCurrent {

    from {
        opacity: .4;
        transform: translateY(-100%);
    }

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

}


/* Mobile controls */

.ws-nav-mobile-all,
.ws-nav-mobile-btn {
    display: none;
}


/* Medium desktop */

@media screen and (max-width: 1360px) {

    .ws-nav-categories {
        width: 270px;
    }

    .ws-nav-mega {
        width: calc(100vw - 270px);
        max-width: none;
    }

    .ws-nav-link {
        padding-left: 21px;
        padding-right: 21px;
    }

}


/* Medium desktop */

@media screen and (max-width: 1200px) {

    .ws-nav-categories {
        width: 240px;
    }

    .ws-nav-mega {
        width: calc(100vw - 240px);
        max-width: none;
    }

}


/* Tablet */

@media screen and (max-width: 1024px) {

    .ws-nav-categories {
        width: 230px;
    }

    .ws-nav-mega {
        width: calc(100vw - 230px);
        max-width: none;
        padding: 20px 22px 24px;
    }

    .ws-nav-mega-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 24px;
    }

    .ws-nav-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }

    .ws-nav-link {
        padding-left: 11px;
        padding-right: 11px;
        font-size: 14px;
    }

}


/* Mobile */

@media screen and (max-width: 767px) {

    .ws-nav {
        height: 48px;
    }

    .ws-nav-inner {
        height: 48px;
        max-width: none;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ws-nav-categories {
        display: none !important;
    }

    .ws-nav-category-panel,
    .ws-nav-mega {
        display: none !important;
    }

    .ws-nav-mobile-all {
        width: auto;
        height: 48px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        background: #2525ff;
        color: #fff;
        font-size: 14px;
    }

    .ws-nav-mobile-all:hover {
        color: #fff;
        background: #2525ff;
    }

    .ws-nav-mobile-all i {
        font-size: 14px;
    }

    .ws-nav-mobile-btn {
        width: 50px;
        height: 48px;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
    }

    .ws-nav-mobile-btn:hover {
        color: #fff;
    }

    .ws-nav-links {
        display: none;
        position: absolute;
        left: 0;
        top: 48px;
        width: 100%;
        height: auto;
        background: #000087;
        box-shadow: 0 8px 20px rgba(0, 0, 70, .18);
    }

    .ws-nav.mobile-open .ws-nav-links {
        display: block;
    }

    .ws-nav-link {
        width: 100%;
        height: 46px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255,255,255,.12);
        color: #fff;
        font-size: 14px;
    }

    .ws-nav-link:last-child {
        border-bottom: none;
    }

    .ws-nav-link:after {
        display: none;
    }

    .ws-nav-link:hover {
        background: #2525ff;
        color: #fff;
    }

    .ws-nav.mobile-open .ws-nav-mobile-btn i:before {
        content: "\f00d";
    }

    .ws-nav.current {
        height: 48px;
    }

}


/* Fixed home category state */

#home .ws-nav.current .ws-nav-categories > .ws-nav-category-panel {
    top: 56px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

#home .ws-nav.current .ws-nav-categories:hover > .ws-nav-category-panel,
#home .ws-nav.current .ws-nav-categories.ws-fixed-category-open > .ws-nav-category-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media screen and (max-width: 767px) {

    #home .ws-nav.current .ws-nav-categories > .ws-nav-category-panel {
        display: none !important;
    }

}