@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #1d252c;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.headerContainer {
    background-color: #3B8AC6;
    color: white;
    padding: 0 16px;
}

.upperToolbar {
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navList {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 20px;
    padding: 8px 0;
}

.navList a {
    color: white;
    text-decoration: none;
    font-size: 12px;
}

.navList a:hover {
    text-decoration: underline;
}

/* Main Header */
.mainHeader {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
    position: relative; /* Đảm bảo relative để suggest box căn theo */
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.searchBar {
    flex: 1;
    max-width: 600px;
}

.searchBar form {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.searchBar input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.searchBar button {
    background: white;
    border: none;
    padding: 0 16px;
    color: #0046be;
    cursor: pointer;
    font-size: 16px;
}

.userActions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.cartLink {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    position: relative;
}

.cartCount {
    background: #fff200;
    color: #1d252c;
    font-weight: bold;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 6px;
}

.categoryNav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 0 16px 0;
    overflow: visible;
}

.categoryNav::-webkit-scrollbar {
    display: none;
}

.categoryNav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

.categoryNav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* Category Submenu Hover Dropdown */
.navItemWithSub {
    position: relative;
}

.navItemWithSub .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 99999;
    list-style: none;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    margin-top: 5px;
}

.navItemWithSub:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    color: #1d252c !important;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500 !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #f0f4f8;
    color: #0046be !important;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.siteFooter { width: 100%; background-color: #f4f6f8; font-size: 12px; }
.footerValueProps { background-color: #ffffff; border-top: 1px solid #e0e6ef; border-bottom: 1px solid #e0e6ef; padding: 20px 16px; }
.valuePropsWrapper { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.propItem { display: flex; align-items: center; gap: 12px; }
.propIcon { font-size: 24px; color: #3B8AC6; }
.propText { font-size: 13px; font-weight: 700; color: #3B8AC6; line-height: 1.2; }

.footerMain { padding: 40px 16px 20px 16px; }
.footerMainWrapper { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; }
.footerLinksGrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; padding-right: 40px; }
.colTitle { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.mtSection { margin-top: 24px; }
.colList { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.colList a { color: #1d252c; text-decoration: none; font-size: 11px; }

.footerNewsletterCol { width: 300px; flex-shrink: 0; padding-left: 32px; border-left: 1px solid #e0e6ef; }
.newsTitle { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.newsDesc { font-size: 11px; margin-bottom: 8px; }
.subscribeForm { display: flex; margin-bottom: 16px; }
.emailInput { flex: 1; height: 36px; padding: 0 10px; border: 1px solid #c5cbd5; border-radius: 4px 0 0 4px; font-size: 11px; }
.btnSignUp { height: 36px; padding: 0 16px; background-color: #3B8AC6; color: #ffffff; border: none; border-radius: 0 4px 4px 0; font-weight: 700; cursor: pointer; }
.socialIcons { display: flex; gap: 16px; font-size: 16px; }
.socialIcons a { color: #1d252c; text-decoration: none; }

.footerBottom { max-width: 1180px; margin: 28px auto 0 auto; padding-top: 16px; border-top: 1px solid #e0e6ef; }
.copyrightText { font-size: 10px; color: #55606a; margin-bottom: 6px; }
.legalLinks { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.legalLinks li a { font-size: 10px; color: #1d252c; text-decoration: none; }

/* =========================================
   RESPONSIVE MEDIA QUERIES FOR MAIN LAYOUT
   ========================================= */

@media (max-width: 1200px) {
    .valuePropsWrapper,
    .footerMainWrapper,
    .footerBottom {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 992px) {
    .mainHeader {
        flex-wrap: wrap;
    }

    .categoryNav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .categoryNav ul::-webkit-scrollbar {
        display: none;
    }

    .categoryNav li {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .searchBar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    .footerMainWrapper {
        flex-direction: column;
        gap: 32px;
    }

    .footerLinksGrid {
        padding-right: 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .footerNewsletterCol {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e0e6ef;
        padding-top: 24px;
    }

    .valuePropsWrapper {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
    }

    .propItem {
        flex: 1 1 40%;
    }
}

@media (max-width: 768px) {
    .upperToolbar {
        display: none;
    }

    .footerLinksGrid {
        grid-template-columns: 1fr;
    }

    .valuePropsWrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .propItem {
        flex: 1 1 100%;
    }

    .legalLinks {
        flex-direction: column;
        gap: 6px;
    }
}
