

/* =====================================================
   GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/* =====================================================
   HEADER
===================================================== */

.main-header {
    width: 100%;
    min-height: 72px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);

    position: relative;
    z-index: 1000;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    font-size: 27px;
    font-weight: 800;

    white-space: nowrap;
}

.logo span {
    color: #111111;
}


/* =====================================================
   NAVIGATION
===================================================== */

.main-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-header nav a {
    color: #222222;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: 0.25s ease;
}

.main-header nav a:hover {
    color: #087f91;
}


/* =====================================================
   HEADER ACTIONS
===================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =====================================================
   SEARCH
===================================================== */

.header-actions form {
    display: flex;
    align-items: center;
}

.header-actions input {
    width: 210px;
    height: 40px;

    padding: 0 13px;

    border: 1px solid #dddddd;
    border-right: none;

    border-radius: 7px 0 0 7px;

    outline: none;

    font-size: 14px;

    background: #ffffff;
}

.header-actions input:focus {
    border-color: #087f91;
}

.header-actions form button {
    height: 40px;

    padding: 0 17px;

    border: none;

    border-radius: 0 7px 7px 0;

    background: #222222;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.header-actions form button:hover {
    background: #087f91;
}


/* =====================================================
   CART
===================================================== */

.header-actions > a {
    color: #222222;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    padding: 10px 5px;

    transition: 0.25s ease;
}

.header-actions > a:hover {
    color: #087f91;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-now-btn {
    height: 42px;

    padding: 0 17px;

    background: #ffffff;

    border: 1.5px solid #222222;

    border-radius: 7px;

    color: #222222;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;

    white-space: nowrap;
}

.login-now-btn:hover {
    background: #087f91;
    border-color: #087f91;
    color: #ffffff;
}


/* =====================================================
   USER MENU
===================================================== */

.user-menu {
    position: relative;
}

.user-dropdown {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 230px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    padding: 8px;

    z-index: 9999;
}

.user-dropdown a {
    display: block;

    padding: 11px 13px;

    color: #222222;

    text-decoration: none;

    font-size: 14px;

    border-radius: 6px;

    font-weight: 500;
}

.user-dropdown a:hover {
    background: #f2f8f9;
    color: #087f91;
}

.user-dropdown .logout-link {
    color: #d62828;

    border-top: 1px solid #eeeeee;

    margin-top: 5px;
}


/* =====================================================
   LOGIN MODAL
===================================================== */

.login-modal {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    z-index: 999999;
}


/* =====================================================
   DARK BACKGROUND
===================================================== */

.login-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.70);

    z-index: 1;

    backdrop-filter: blur(3px);
}


/* =====================================================
   LOGIN POPUP
===================================================== */

.login-popup {
    position: relative;

    z-index: 2;

    width: 420px;
    max-width: calc(100% - 30px);

    padding: 32px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    animation: loginPopup 0.25s ease;
}


/* =====================================================
   POPUP ANIMATION
===================================================== */

@keyframes loginPopup {

    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.login-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: none;

    background: #f5f5f5;

    border-radius: 50%;

    color: #333333;

    font-size: 23px;

    line-height: 30px;

    cursor: pointer;

    transition: 0.25s ease;
}

.login-close:hover {
    background: #087f91;
    color: #ffffff;
}


/* =====================================================
   LOGIN HEADING
===================================================== */

.login-heading {
    text-align: center;

    margin-bottom: 25px;
}

.login-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #087f91;

    color: #ffffff;

    font-size: 30px;

    box-shadow: 0 6px 18px rgba(8, 127, 145, 0.25);
}

.login-heading h2 {
    margin: 0;

    font-size: 29px;

    color: #111111;
}

.login-heading p {
    margin: 7px 0 0;

    color: #777777;

    font-size: 14px;
}


/* =====================================================
   LOGIN FIELD
===================================================== */

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 14px;

    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    outline: none;

    font-size: 14px;

    color: #222222;

    background: #ffffff;

    transition: 0.25s ease;
}

.login-field input:focus {
    border-color: #087f91;

    box-shadow: 0 0 0 3px rgba(8, 127, 145, 0.10);
}


/* =====================================================
   PASSWORD
===================================================== */

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    width: 35px;
    height: 35px;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 17px;

    color: #666666;
}


/* =====================================================
   LOGIN OPTIONS
===================================================== */

.login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 5px 0 20px;

    font-size: 13px;
}

.login-options label {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #555555;
}

.login-options input[type="checkbox"] {
    width: 15px;
    height: 15px;

    accent-color: #087f91;
}

.login-options a {
    color: #087f91;

    text-decoration: none;

    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}


/* =====================================================
   LOGIN SUBMIT
===================================================== */

.login-submit {
    width: 100%;
    height: 48px;

    border: none;

    border-radius: 8px;

    background: #087f91;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;
}

.login-submit:hover {
    background: #066b7a;

    transform: translateY(-1px);

    box-shadow: 0 7px 18px rgba(8, 127, 145, 0.25);
}


/* =====================================================
   REGISTER
===================================================== */

.login-register {
    text-align: center;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #eeeeee;

    color: #777777;

    font-size: 14px;
}

.login-register a {
    color: #087f91;

    text-decoration: none;

    font-weight: 700;

    margin-left: 5px;
}

.login-register a:hover {
    text-decoration: underline;
}


/* =====================================================
   LOGIN ERROR
===================================================== */

.login-error {
    padding: 11px 13px;

    margin-bottom: 16px;

    border-radius: 7px;

    background: #fff0f0;

    border: 1px solid #ffcaca;

    color: #c62828;

    font-size: 13px;
}



/* ===== M O G L I X STYLE CATEGORY MENU ===== */

.category-navigation {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #e5e7eb;
}

.category-nav-links {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    min-height: 58px;
    padding: 0 10px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav-links::-webkit-scrollbar {
    display: none;
}

.category-nav-links > a,
.category-nav-links > .category-tab {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 10px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #383838;
    text-decoration: none;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.category-nav-links > a:hover,
.category-nav-links > .category-tab:hover,
.category-nav-links > .category-tab.active {
    color: #111;
    border-bottom-color: #ed1c24;
}

/* FULL-WIDTH DROPDOWN */

.category-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 78vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .13);
    border-top: 1px solid #eee;
}

.category-mega-menu.is-open {
    display: block;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

/* FIVE COLUMNS LIKE REFERENCE */

.mega-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.mega-columns section {
    min-width: 0;
    padding: 20px 15px;
    background: #fff;
}

.mega-columns section:nth-child(even) {
    background: #f7f8f9;
}

.mega-columns h4 {
    margin: 0 0 7px;
    color: #383838;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
}

.mega-columns a {
    display: block;
    margin: 0;
    padding: 4px 0;
    color: #444;
    text-decoration: none;
    font-size: 12px;
    line-height: 16px;
    overflow-wrap: anywhere;
}

.mega-columns a:hover {
    color: #ed1c24;
}


/* Hover-based mega menu */
.category-navigation {
    position: relative;
    z-index: 1000;
}

.category-nav-links {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
}

.category-tab {
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

/* Menu hidden by default */
.category-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

/* Show menu on hover or keyboard focus */
.category-navigation:has(.category-tab:hover)
.category-mega-menu,
.category-navigation:has(.category-tab:focus-visible)
.category-mega-menu,
.category-mega-menu:hover {
    display: block;
}

.mega-panel {
    display: none;
}

.category-tab:hover ~ .category-mega-menu .mega-panel {
    display: none;
}

/* Use JavaScript-selected panel */
.mega-panel.active {
    display: block;
}

.mega-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mega-columns section {
    padding: 20px 15px;
}

.mega-columns section:nth-child(even) {
    background: #f7f8fa;
}

.mega-columns h4 {
    font-size: 13px;
    margin-bottom: 12px;
}

.mega-columns a {
    display: block;
    padding: 5px 0;
    color: #555;
    text-decoration: none;
    font-size: 12px;
}

.mega-columns a:hover {
    color: #ed1c24;
}

@media (max-width: 800px) {
    .mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* TABLET */

@media (max-width: 900px) {
    .category-nav-links {
        justify-content: flex-start;
    }

    .mega-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 560px) {
    .category-nav-links > a,
    .category-nav-links > .category-tab {
        font-size: 12px;
        padding: 0 9px;
    }

    .mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mega-columns section {
        padding: 15px 12px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .main-header {
        padding: 12px 20px;

        flex-wrap: wrap;

        gap: 15px;
    }

    .main-header nav {
        order: 3;

        width: 100%;

        justify-content: center;
    }

    .header-actions {
        margin-left: auto;
    }

}


@media (max-width: 650px) {

    .main-header {
        justify-content: center;

        padding: 15px;
    }

    .logo {
        width: 100%;

        text-align: center;
    }

    .main-header nav {
        gap: 15px;
    }

    .main-header nav a {
        font-size: 13px;
    }

    .header-actions {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }

    .header-actions form {
        width: 100%;
    }

    .header-actions input {
        flex: 1;

        width: auto;
    }

    .login-popup {
        width: 95%;

        padding: 25px 20px;
    }

}