@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --front-primary: #1e3a8a;
    --front-primary-dark: #0d2151;
    --front-primary-light: #eff6ff;

    --front-accent: #facc15;
    --front-accent-dark: #eab308;

    --front-text: #1e293b;
    --front-muted: #64748b;

    --front-bg: #f6f7fb;
    --front-white: #ffffff;

    --front-border: #e2e8f0;

    --front-danger: #ef4444;

    --front-container: 1280px;

    --front-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   GLOBAL
========================================================= */

.frontend-layout {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    font-family:
        "Inter",
        sans-serif;

    background:
        var(--front-bg);

    color:
        var(--front-text);

}


.frontend-container {

    width:
        calc(100% - 40px);

    max-width:
        var(--front-container);

    margin:
        0 auto;

}


.frontend-layout a {

    text-decoration: none;

}


.frontend-layout button {

    font-family: inherit;

}


body.frontend-menu-open {

    overflow: hidden;

}


/* =========================================================
   ANNOUNCEMENT
========================================================= */

.frontend-announcement {

    min-height: 35px;

    display: flex;

    align-items: center;

    background:
        var(--front-primary-dark);

    color:
        #dbeafe;

    font-size:
        0.72rem;

}


.frontend-announcement-inner {

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 20px;

}


.frontend-announcement-left {

    display: flex;

    align-items: center;

    gap: 14px;

}


.frontend-announcement-left span {

    display: flex;

    align-items: center;

    gap: 6px;

}


.announcement-divider {

    width: 1px;

    height: 13px;

    background:
        rgba(255, 255, 255, 0.25);

}


.frontend-announcement-right a {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #ffffff;

    font-weight: 600;

}


/* =========================================================
   HEADER
========================================================= */

.frontend-header {

    position: relative;

    z-index: 500;

    background:
        var(--front-white);

    box-shadow:
        0 2px 10px rgba(15, 23, 42, 0.04);

}


.frontend-header-main {

    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 30px;

}


/* =========================================================
   LOGO
========================================================= */

.frontend-logo {

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}


.frontend-logo-icon {

    width: 34px;

    height: 34px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 9px;

    background:
        var(--front-primary-dark);

    color:
        var(--front-accent);

    font-size: 1rem;

}


.frontend-logo-text {

    color:
        var(--front-primary-dark);

    font-size:
        1.35rem;

    font-weight:
        800;

    letter-spacing:
        -0.5px;

}


/* =========================================================
   SEARCH
========================================================= */

.frontend-search {

    height: 44px;

    flex: 1;

    max-width: 650px;

    display: flex;

    margin:
        0 auto;

    overflow: hidden;

    border:
        1px solid #cbd5e1;

    border-radius: 7px;

    background:
        #ffffff;

}


.frontend-search:focus-within {

    border-color:
        var(--front-primary);

    box-shadow:
        0 0 0 3px rgba(30, 58, 138, 0.08);

}


.frontend-search input {

    min-width: 0;

    flex: 1;

    padding:
        0 15px;

    border: 0;

    outline: 0;

    color:
        var(--front-text);

    font-size:
        0.84rem;

}


.frontend-search input::placeholder {

    color:
        #94a3b8;

}


.frontend-search button {

    width: 48px;

    flex-shrink: 0;

    border: 0;

    background:
        var(--front-primary);

    color: #ffffff;

    font-size:
        1rem;

}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.frontend-header-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}


.frontend-account-wrapper {

    position: relative;

}


.frontend-header-action {

    min-height: 44px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        4px 8px;

    border: 0;

    background:
        transparent;

    color:
        var(--front-text);

}


.frontend-action-icon {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius:
        50%;

    background:
        #f1f5f9;

    color:
        var(--front-primary-dark);

    font-size:
        1rem;

}


.frontend-action-text {

    display: flex;

    flex-direction: column;

    align-items:
        flex-start;

}


.frontend-action-text small {

    color:
        var(--front-muted);

    font-size:
        0.65rem;

}


.frontend-action-text strong {

    color:
        var(--front-text);

    font-size:
        0.78rem;

    font-weight:
        600;

}


.frontend-action-chevron {

    color:
        #94a3b8;

    font-size:
        0.55rem;

}


/* =========================================================
   ICON BUTTON
========================================================= */

.frontend-icon-button {

    position: relative;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius:
        50%;

    color:
        var(--front-primary-dark);

    font-size:
        1.12rem;

    transition:
        0.2s;

}


.frontend-icon-button:hover {

    background:
        #f1f5f9;

}


.frontend-action-count {

    position: absolute;

    top: 0;

    right: 0;

    min-width:
        17px;

    height:
        17px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        0 4px;

    border:
        2px solid #ffffff;

    border-radius:
        20px;

    background:
        var(--front-danger);

    color: #ffffff;

    font-size:
        0.54rem;

    font-weight:
        700;

}


/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.frontend-account-dropdown {

    position: absolute;

    top:
        calc(100% + 12px);

    right: 0;

    width: 240px;

    padding:
        14px;

    border:
        1px solid var(--front-border);

    border-radius:
        10px;

    background:
        #ffffff;

    box-shadow:
        var(--front-shadow);

    opacity: 0;

    visibility:
        hidden;

    transform:
        translateY(8px);

    transition:
        0.2s;

}


.frontend-account-dropdown.active {

    opacity: 1;

    visibility:
        visible;

    transform:
        translateY(0);

}


.frontend-account-dropdown-head {

    display: flex;

    flex-direction:
        column;

    margin-bottom:
        12px;

}


.frontend-account-dropdown-head strong {

    font-size:
        0.87rem;

}


.frontend-account-dropdown-head span {

    margin-top: 3px;

    color:
        var(--front-muted);

    font-size:
        0.7rem;

}


.frontend-login-btn {

    display: block;

    padding:
        10px 15px;

    border-radius:
        6px;

    background:
        var(--front-primary);

    color:
        #ffffff !important;

    text-align:
        center;

    font-size:
        0.8rem;

    font-weight:
        700;

}


.frontend-register-link {

    display: block !important;

    padding:
        10px !important;

    color:
        var(--front-primary) !important;

    text-align:
        center;

    font-size:
        0.75rem !important;

    font-weight:
        600;

}


.frontend-dropdown-divider {

    height: 1px;

    margin:
        5px 0;

    background:
        var(--front-border);

}


.frontend-account-dropdown>a:not(.frontend-login-btn,
    .frontend-register-link) {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        9px 8px;

    border-radius:
        5px;

    color:
        var(--front-text);

    font-size:
        0.76rem;

}


.frontend-account-dropdown>a:hover {

    background:
        #f8fafc;

}


/* =========================================================
   NAVBAR
========================================================= */

.frontend-navbar {

    border-top:
        1px solid #f1f5f9;

    border-bottom:
        1px solid var(--front-border);

}


.frontend-navbar-inner {

    height: 48px;

    display: flex;

    align-items: center;

}


/* =========================================================
   CATEGORY BUTTON
========================================================= */

.frontend-category-wrapper {

    position: relative;

    height: 100%;

}


.frontend-category-btn {

    width: 210px;

    height: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0 16px;

    border: 0;

    background:
        var(--front-primary-dark);

    color:
        #ffffff;

    font-size:
        0.8rem;

    font-weight:
        600;

}


.frontend-category-btn .category-chevron {

    margin-left:
        auto;

    font-size:
        0.58rem;

    transition:
        0.2s;

}


.frontend-category-btn.active .category-chevron {

    transform:
        rotate(180deg);

}


/* =========================================================
   CATEGORY DROPDOWN
========================================================= */

.frontend-category-dropdown {

    position: absolute;

    top: 100%;

    left: 0;

    width: 260px;

    padding:
        8px 0;

    border:
        1px solid var(--front-border);

    border-top: 0;

    background:
        #ffffff;

    box-shadow:
        var(--front-shadow);

    opacity: 0;

    visibility:
        hidden;

    transform:
        translateY(5px);

    transition:
        0.2s;

}


.frontend-category-dropdown.active {

    opacity: 1;

    visibility:
        visible;

    transform:
        translateY(0);

}


.frontend-category-dropdown a {

    display: grid;

    grid-template-columns:
        25px 1fr 10px;

    align-items: center;

    gap: 7px;

    min-height:
        43px;

    padding:
        0 15px;

    color:
        #475569;

    font-size:
        0.76rem;

}


.frontend-category-dropdown a:hover {

    background:
        #f8fafc;

    color:
        var(--front-primary);

}


.frontend-category-dropdown a>i:last-child {

    font-size:
        0.55rem;

}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.frontend-main-nav {

    height: 100%;

    display: flex;

    align-items: center;

    margin-left:
        18px;

}


.frontend-main-nav a {

    height: 100%;

    display: flex;

    align-items: center;

    padding:
        0 15px;

    border-bottom:
        2px solid transparent;

    color:
        #475569;

    font-size:
        0.78rem;

    font-weight:
        500;

    transition:
        0.2s;

}


.frontend-main-nav a:hover,
.frontend-main-nav a.active {

    border-bottom-color:
        var(--front-primary);

    color:
        var(--front-primary);

}


.frontend-nav-seller {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-left: auto;

    color:
        var(--front-primary);

    font-size:
        0.76rem;

    font-weight:
        700;

}


/* =========================================================
   PAGE CONTENT
========================================================= */

.frontend-page-content {

    min-height:
        500px;

    flex: 1;

}


/* =========================================================
   FOOTER
========================================================= */

.frontend-footer {

    margin-top:
        auto;

    background:
        #0b1b3f;

    color:
        #cbd5e1;

}


.frontend-footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 50px;

    padding:
        55px 0 45px;

}


.frontend-footer-logo .frontend-logo-text {

    color: #ffffff;

}


.frontend-footer-brand p {

    max-width:
        360px;

    margin-top:
        18px;

    color:
        #94a3b8;

    font-size:
        0.78rem;

    line-height:
        1.7;

}


.frontend-social-links {

    display: flex;

    gap: 9px;

    margin-top:
        20px;

}


.frontend-social-links a {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius:
        7px;

    color:
        #cbd5e1;

    font-size:
        0.78rem;

    transition:
        0.2s;

}


.frontend-social-links a:hover {

    border-color:
        var(--front-accent);

    background:
        var(--front-accent);

    color:
        #0f172a;

}


.frontend-footer-column {

    display: flex;

    flex-direction:
        column;

    gap: 11px;

}


.frontend-footer-column h3 {

    margin-bottom:
        7px;

    color:
        #ffffff;

    font-size:
        0.88rem;

}


.frontend-footer-column a {

    color:
        #94a3b8;

    font-size:
        0.74rem;

    transition:
        0.2s;

}


.frontend-footer-column a:hover {

    color:
        #ffffff;

    transform:
        translateX(3px);

}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.frontend-footer-bottom {

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

}


.frontend-footer-bottom-inner {

    min-height:
        60px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    color:
        #94a3b8;

    font-size:
        0.72rem;

}


.frontend-footer-bottom strong {

    color:
        var(--front-accent);

}


/* =========================================================
   MOBILE MENU
========================================================= */

.frontend-mobile-menu-btn {

    display: none;

    width: 38px;

    height: 38px;

    align-items: center;

    justify-content: center;

    border: 0;

    background:
        transparent;

    color:
        var(--front-primary-dark);

    font-size:
        1.15rem;

}


.frontend-mobile-overlay {

    position: fixed;

    inset: 0;

    z-index: 1990;

    display: none;

    border: 0;

    background:
        rgba(15, 23, 42, 0.55);

    backdrop-filter:
        blur(2px);

}


.frontend-mobile-overlay.active {

    display: block;

}


.frontend-mobile-sidebar {

    position: fixed;

    top: 0;

    left: 0;

    z-index: 2000;

    width: 310px;

    max-width:
        86vw;

    height: 100vh;

    overflow-y: auto;

    padding-bottom:
        30px;

    background:
        #ffffff;

    transform:
        translateX(-100%);

    transition:
        transform 0.28s ease;

}


.frontend-mobile-sidebar.active {

    transform:
        translateX(0);

}


.frontend-mobile-sidebar-head {

    height: 68px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    padding:
        0 18px;

    border-bottom:
        1px solid var(--front-border);

}


.frontend-mobile-sidebar-head>button {

    width: 35px;

    height: 35px;

    border: 0;

    background:
        transparent;

    color:
        #475569;

    font-size:
        1.2rem;

}


/* =========================================================
   MOBILE SEARCH
========================================================= */

.frontend-mobile-search {

    height: 42px;

    display: flex;

    margin:
        15px;

    overflow: hidden;

    border:
        1px solid var(--front-border);

    border-radius:
        7px;

}


.frontend-mobile-search input {

    min-width: 0;

    flex: 1;

    padding:
        0 12px;

    border: 0;

    outline: none;

    font-size:
        0.76rem;

}


.frontend-mobile-search button {

    width: 43px;

    border: 0;

    background:
        var(--front-primary);

    color:
        #ffffff;

}


/* =========================================================
   MOBILE NAV
========================================================= */

.frontend-mobile-nav {

    padding:
        3px 0;

}


.frontend-mobile-nav a {

    min-height:
        46px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0 20px;

    border-left:
        3px solid transparent;

    color:
        #475569;

    font-size:
        0.8rem;

}


.frontend-mobile-nav a i {

    width:
        20px;

    color:
        #64748b;

}


.frontend-mobile-nav a:hover,
.frontend-mobile-nav a.active {

    border-left-color:
        var(--front-primary);

    background:
        var(--front-primary-light);

    color:
        var(--front-primary);

}


/* =========================================================
   MOBILE SELLER BOX
========================================================= */

.frontend-mobile-seller-box {

    margin:
        20px 15px 0;

    padding:
        17px;

    border:
        1px solid #dbeafe;

    border-radius:
        10px;

    background:
        #f8fbff;

}


.frontend-mobile-seller-box>i {

    margin-bottom:
        10px;

    color:
        var(--front-primary);

    font-size:
        1.3rem;

}


.frontend-mobile-seller-box div {

    display: flex;

    flex-direction:
        column;

}


.frontend-mobile-seller-box strong {

    font-size:
        0.82rem;

}


.frontend-mobile-seller-box span {

    margin-top:
        3px;

    color:
        var(--front-muted);

    font-size:
        0.68rem;

}


.frontend-mobile-seller-box a {

    display: inline-block;

    margin-top:
        12px;

    color:
        var(--front-primary);

    font-size:
        0.74rem;

    font-weight:
        700;

}


/* =========================================================
   MOBILE BOTTOM NAV
========================================================= */

.frontend-mobile-bottom-nav {

    display: none;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .frontend-main-nav a {

        padding:
            0 10px;

    }


    .frontend-header-main {

        gap: 18px;

    }


    .frontend-action-text,
    .frontend-action-chevron {

        display: none;

    }

}


@media (max-width: 900px) {

    .frontend-announcement {

        display: none;

    }


    .frontend-navbar {

        display: none;

    }


    .frontend-header {

        position: sticky;

        top: 0;

    }


    .frontend-header-main {

        min-height:
            64px;

        gap:
            10px;

    }


    .frontend-mobile-menu-btn {

        display: flex;

    }


    .frontend-search {

        display: none;

    }


    .frontend-logo {

        margin-right:
            auto;

    }


    .desktop-header-icon {

        display: none;

    }


    .frontend-account-wrapper {

        display: none;

    }


    .frontend-footer-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            35px;

    }


    .frontend-page-content {

        padding-bottom:
            65px;

    }


    .frontend-mobile-bottom-nav {

        position: fixed;

        left: 0;

        right: 0;

        bottom: 0;

        z-index: 1000;

        height: 61px;

        display: grid;

        grid-template-columns:
            repeat(5, 1fr);

        border-top:
            1px solid var(--front-border);

        background:
            #ffffff;

        box-shadow:
            0 -5px 20px rgba(15, 23, 42, 0.08);

    }


    .frontend-mobile-bottom-nav a {

        display: flex;

        flex-direction:
            column;

        justify-content: center;

        align-items: center;

        gap: 4px;

        color:
            #64748b;

        font-size:
            0.61rem;

    }


    .frontend-mobile-bottom-nav a>i {

        font-size:
            1rem;

    }


    .frontend-mobile-bottom-nav a.active {

        color:
            var(--front-primary);

    }


    .mobile-cart-icon {

        position: relative;

    }


    .mobile-cart-icon small {

        position: absolute;

        top: -9px;

        right: -12px;

        min-width:
            16px;

        height:
            16px;

        display: flex;

        align-items: center;

        justify-content: center;

        border-radius:
            10px;

        background:
            var(--front-danger);

        color:
            #ffffff;

        font-size:
            0.5rem;

    }

}


@media (max-width: 600px) {

    .frontend-container {

        width:
            calc(100% - 28px);

    }


    .frontend-header-main {

        width:
            calc(100% - 20px);

    }


    .frontend-logo-icon {

        width: 31px;

        height: 31px;

    }


    .frontend-logo-text {

        font-size:
            1.14rem;

    }


    .frontend-icon-button {

        width: 37px;

        height: 37px;

    }


    .frontend-footer-grid {

        grid-template-columns:
            1fr;

        gap:
            30px;

        padding:
            40px 0 30px;

    }


    .frontend-footer-bottom-inner {

        min-height:
            78px;

        flex-direction:
            column;

        justify-content:
            center;

        gap: 6px;

        text-align:
            center;

    }

}