/* 
 * XÁM SNEAKER CLONE - 100% MATCH CSS
 * Theme: Koi Sneaker
 * Based on: xamsneaker.com (Flatsome Theme)
 * Version: 2.0 - Fixed Layout & Responsive
 */

/* ===========================
   RESET & BASE
   =========================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

.product_meta .sku_wrapper {
    display: none !important;
}


.product_meta .wc-block-components-product-details__brand,
.product_meta .brand,
.product_meta .product_brand,
.product_meta .posted_in+span {
    display: none !important;
}


.variations .label label {
    font-size: 16px;
    font-weight: 600;
}


.single_add_to_cart_button {
    margin-top: 18px;
}


.quantity {
    margin-bottom: 12px;
}

.radio-buttons-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}



.radio-buttons-wrapper label:hover {
    border-color: #111;
}


.radio-buttons-wrapper input {
    display: none;
}

.radio-buttons-wrapper input:checked+label {
    background: #222;
    color: #fff;
    border-color: #222;
}

label[for="size"] {
    display: inline-block !important;
    margin-top: 16px !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #000;
}

.footer-widget.footer-about a {
    pointer-events: none;
    cursor: default;
}

.quick-view,
.btn-quickview,
.xem-nhanh {
    display: none !important;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-widget {
    flex: 1;
}

.footer-map {
    flex: 1.3;
}


.footer-about {
    order: 1;
}

.footer-brands {
    order: 2;
}

.footer-contact {
    order: 3;
}

.footer-map {
    order: 4;
}



#wrapper {
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.row-small {
    margin: 0 -5px;
}

.col {
    padding: 0 10px;
    flex: 1;
}

.row-small .col {
    padding: 0 5px;
}

.col-inner {
    width: 100%;
}

/* Flexbox Utilities */
.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.flex-left {
    justify-content: flex-start;
}

.flex-right {
    justify-content: flex-end;
}

.relative {
    position: relative;
}

.fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Visibility Classes */
.hide-for-medium {
    display: flex !important;
}

.show-for-medium {
    display: none !important;
}

@media (max-width: 849px) {
    .hide-for-medium {
        display: none !important;
    }

    .show-for-medium {
        display: flex !important;
    }
}

/* Icon Font */
[class^="icon-"],
[class*=" icon-"] {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

.icon-menu:before {
    content: "\f0c9";
}

.icon-search:before {
    content: "\f002";
}

.icon-shopping-cart:before {
    content: "\f07a";
}

.icon-phone:before {
    content: "\f095";
}

.icon-angle-down:before {
    content: "\f107";
}

/* ===========================
   HEADER - EXACT MATCH XÁM SNEAKER
   =========================== */

/* Header Container */
.header {
    width: 100%;
    background: #fff;
}

.header.has-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header.sticky-jump {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    width: 100%;
    position: relative;
}

/* Main Header */
.header-main {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
}

/* Logo */
#logo {
    flex: 0 0 221px;
    max-width: 221px;
}

#logo a {
    display: block;
}

#logo img {
    max-height: 70px;
    padding: 7px 0;
    width: auto;
    display: block;
}

#logo h1 {
    margin: 0;
    font-size: 22px;
    line-height: 70px;
    color: #000;
}

/* Header Nav */
.header-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-nav li {
    margin: 0;
}

/* Header Block (Search Area) */
.header-block {
    flex: 1;
}

.header-block .row {
    margin: 0;
    width: 100%;
}

.header-block .col.medium-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.header-block .col.medium-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* Search Form */
.searchform-wrapper {
    width: 100%;
}

.searchform {
    width: 100%;
    display: block;
}

.searchform .flex-row {
    display: flex;
    background: #fff;
    border: 2px solid #252a28;
    border-radius: 4px;
    overflow: hidden;
    align-items: center;
}

.searchform .flex-col.flex-grow {
    flex: 1 1 auto;
    min-width: 0;
}

.searchform .flex-col:not(.flex-grow) {
    flex: 0 0 auto;
}

.search-field {
    width: 100%;
    height: 39px;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    box-shadow: none !important;
}

.search-field:focus {
    outline: none;
    box-shadow: none !important;
    border: none;
}

.ux-search-submit {
    width: 71px;
    height: 39px;
    background: #252a28;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ux-search-submit:hover {
    background: #1a1e1c;
}

.ux-search-submit i {
    font-size: 16px;
}

/* Icon Box (Hotline) */
.icon-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-box-img {
    flex-shrink: 0;
}

.icon-box-text {
    flex: 1;
    padding-left: 5px;
}

.icon-box-text p {
    margin: 0;
    line-height: 18px;
    padding-top: 6px;
}

.icon-box-text strong {
    font-size: 13px;
    font-weight: 700;
}

.icon-box-text span {
    font-size: 85%;
}

.icon-box-text a {
    text-decoration: none;
    color: inherit;
}

/* Cart & Account */
.cart-item,
.account-item {
    position: relative;
}

.header-cart-link,
.nav-top-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #252a28;
    transition: color 0.3s ease;
}

.header-cart-link:hover,
.nav-top-link:hover {
    color: #d70018;
}

.header-cart-title,
.nav-top-link span {
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 5px;
}

/* Cart Link */
.header-cart-link {
    position: relative;
}

.image-icon.header-cart-icon {
    position: relative;
    font-size: 24px;
}

/* Show cart icon */
.header-cart-icon i {
    display: block;
}

/* Cart Counter Badge - Small, on top */
.header-cart-link[data-cart-count]:before {
    content: attr(data-cart-count);
    position: absolute;
    top: 5px;
    right: 5px;
    background: #d70018;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.header-cart-link[data-cart-count="0"]:before {
    display: none;
}

.header-cart-icon[data-icon-label="0"]:after {
    display: none;
}

/* Cart Counter Animation */
.header-cart-icon.bounce:after {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Cart Icon with Items */
.header-cart-icon.has-items {
    position: relative;
}

.header-cart-icon.has-items:after {
    display: flex !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    color: #d70018;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header.has-sticky {
    position: sticky;
    top: 0;
}

.header-wrapper {
    width: 100%;
}

.header-main {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-inner.container {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-inner.flex-row {
    display: flex;
    flex-direction: row;
}

/* Logo */
#logo.flex-col {
    flex: 0 0 auto;
    width: 221px;
}

#logo img {
    max-height: 70px;
    padding: 7px 0;
    width: auto;
}

#logo .site-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 70px;
}

/* Mobile Left */
.flex-col.show-for-medium.flex-left {
    display: none;
}

/* Left Elements (Search) */
.flex-col.hide-for-medium.flex-left.flex-grow {
    flex: 1 1 auto;
}

.header-block {
    width: 100%;
}

.header-block .row {
    margin: 0;
}

.header-block .col {
    padding: 0 10px;
}

/* Search Form - Exact Match */
.searchform-wrapper.ux-search-box {
    width: 100%;
    max-width: 61%;
}

.searchform-wrapper .searchform {
    width: 100%;
}

.searchform .flex-row {
    display: flex;
    align-items: center;
    border: 2px solid #252a28;
    border-radius: 4px;
    background: #fff;
}

.search-label-wrapper {
    padding: 0 10px;
}

.search-label-wrapper label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.searchform .flex-col.flex-grow {
    flex: 1;
}

.search-field.mb-0 {
    width: 100%;
    padding: 10px 12px;
    border: none;
    font-size: 13px;
    outline: none;
    background: #fff;
    box-shadow: none !important;
    height: 39px !important;
}

.ux-search-submit.button {
    background: #252a28;
    border: none;
    padding: 0;
    width: 71px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    border-radius: 0 2px 2px 0;
}

.ux-search-submit.button:hover {
    background: #1a1e1c;
}

.ux-search-submit i {
    font-size: 16px;
}

/* Hotline Icon Box */
.icon-box.featured-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-box .icon-box-img {
    flex-shrink: 0;
}

.icon-box .icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box .icon-box-text {
    padding-left: 5px;
}

.icon-box .icon-box-text p {
    line-height: 18px;
    margin: 0;
    padding-top: 6px;
}

.icon-box .icon-box-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
}

.icon-box .icon-box-text span {
    font-size: 85%;
    color: #333333;
}

.icon-box .icon-box-text a {
    color: #333333;
    text-decoration: none;
}

/* Right Elements */
.flex-col.hide-for-medium.flex-right {
    flex: 0 0 auto;
}

.header-nav.nav-right {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.header-nav.nav-right li {
    margin: 0;
    padding: 0;
}

/* Cart */
.cart-item.has-icon {
    position: relative;
}

.header-cart-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #252a28;
}

.header-cart-title {
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #252a28;
    margin-top: 5px;
}

.image-icon.header-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart-icon i {
    font-size: 28px;
    display: none;
}

/* .header-cart-icon:after {
    content: attr(data-icon-label);
    position: absolute;
    top: -5px;
    right: -10px;
    background: #d70018;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
} */

/* Account */
.account-item.has-icon {
    border-right: 0;
}

.nav-top-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #252a28;
}

.nav-top-link span {
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #252a28;
}

/* Mobile Right */
.flex-col.show-for-medium.flex-right {
    display: none;
}

/* Bottom Navigation */
.header-bottom.wide-nav {
    background: #252a28;
    min-height: 50px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.header-bottom .container {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0;
}

.header-bottom .flex-row {
    display: flex;
}

.header-bottom .flex-col {
    flex: 1;
}

/* Menu Navigation */
.header-bottom-nav.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-bottom-nav.nav-left {
    justify-content: flex-start;
}

.header-bottom-nav.nav-uppercase {
    text-transform: uppercase;
}

.header-bottom-nav>li {
    margin: 0;
    position: relative;
}

.header-bottom-nav>li>a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 16px;
}

.header-bottom-nav>li>a:hover,
.header-bottom-nav>li.active>a,
.header-bottom-nav>li.current-menu-item>a {
    background: #000000;
    color: #ffffff;
}

/* Menu Icons */
.header-bottom-nav .ux-menu-icon {
    margin-right: 5px;
    vertical-align: middle;
}

/* Dropdown Menu */
.header-bottom-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    margin: 0;
    padding: 0;
    border-top: 2px solid #252a28;
}

.header-bottom-nav>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-bottom-nav .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-bottom-nav .sub-menu li:last-child {
    border-bottom: none;
}

.header-bottom-nav .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    transition: all 0.2s ease;
}

.header-bottom-nav .sub-menu a:hover {
    background: #f8f8f8;
    color: #d70018;
    padding-left: 22px;
}

/* Dropdown Arrow */
.header-bottom-nav .icon-angle-down {
    margin-left: 5px;
    font-size: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .searchform-wrapper.ux-search-box {
        width: 100%;
        max-width: 100%;
    }

    .searchform-wrapper.ux-search-box.relative.is-normal {
        width: 100%;
        max-width: 100%;
    }

    .header-block .col.medium-4 {
        flex-basis: 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .header-main {
        height: 70px;
    }

    #logo img {
        max-height: 70px;
    }

    .flex-col.show-for-medium {
        display: flex;
    }

    .flex-col.hide-for-medium {
        display: none !important;
    }

    .header-bottom .flex-col.show-for-medium {
        width: 330px;
        flex: 0 0 330px;
    }

    .header-bottom-nav.mobile-nav {
        width: 100%;
    }
}

/* Utility Classes - Match Flatsome */
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    flex: 0 0 auto;
}

.relative {
    position: relative;
}

.mb-0 {
    margin-bottom: 0;
}

.show-for-medium {
    display: none;
}

.hide-for-medium {
    display: block;
}

@media (max-width: 849px) {
    .show-for-medium {
        display: block;
    }

    .hide-for-medium {
        display: none;
    }
}

/* Icon Styles */
.fas,
.fa {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Additional Header Styles */
.header-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.header-bg-color.fill {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Bottom Navigation */
.header-bottom {
    background: #252a28;
    min-height: 40px;
    border-bottom: 1px solid #eee;
}

.header-bottom .container {
    padding: 0;
}

.header-bottom .flex-row {
    display: flex;
    justify-content: center;
}

.header-bottom .flex-col {
    flex: 0 0 auto;
}

.header-bottom-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-bottom-nav>li {
    margin: 0;
    position: relative;
}

.header-bottom-nav>li>a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 16px;
}

.header-bottom-nav>li:hover>a,
.header-bottom-nav>li.current-menu-item>a {
    background: #000000;
    color: #ffffff;
}

/* Dropdown Menu */
.header-bottom-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    min-width: 220px;
    margin: 0;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 2px solid #252a28;
}

.header-bottom-nav>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-bottom-nav .sub-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-bottom-nav .sub-menu li:last-child {
    border-bottom: none;
}

.header-bottom-nav .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    white-space: nowrap;
}

.header-bottom-nav .sub-menu a:hover {
    background: #f8f8f8;
    color: #d70018;
}

/* Menu Icons */
.ux-menu-icon {
    margin-right: 5px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

/* Sticky Header */
.header.show-on-scroll,
.stuck .header-main {
    height: 73px !important;
}

.stuck #logo img {
    max-height: 73px !important;
}

/* Header Background */
.header-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.header-bg-color {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===========================
   MOBILE SIDEBAR MENU
   =========================== */

#main-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

#main-menu.active {
    left: 0;
}

.sidebar-menu {
    padding: 60px 0 20px 0;
    width: 100%;
    position: relative;
}

/* Close Button - Góc Phải Màn Hình */
.mobile-menu-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background-color: #d70018;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.mobile-menu-close.active {
    display: flex !important;
}

.mobile-menu-close:hover {
    background-color: #a00012;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mobile-menu-close i {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.icon-close:before {
    content: "\f00d";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
}

.nav-sidebar {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-sidebar>li {
    border-bottom: 1px solid #f0f0f0;
}

.nav-sidebar>li>a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.nav-sidebar>li:hover>a {
    background: #f8f8f8;
    color: #d70018;
}

.nav-sidebar .children,
.nav-sidebar .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    display: none;
}

.nav-sidebar li.menu-item-has-children>a:after {
    content: "\f107";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s ease;
}

.nav-sidebar li.menu-item-has-children.open>a:after {
    transform: rotate(180deg);
}

.nav-sidebar li.menu-item-has-children.open>.children,
.nav-sidebar li.menu-item-has-children.open>.sub-menu {
    display: block;
}

.nav-sidebar .children li a,
.nav-sidebar .sub-menu li a {
    padding: 10px 20px 10px 35px;
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

.nav-sidebar .children li a:hover,
.nav-sidebar .sub-menu li a:hover {
    background: #f0f0f0;
    color: #d70018;
}

/* Mobile Sidebar Search - Fixed Layout */
#main-menu .header-search-form {
    padding: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 10px;
}

.header-search-form-wrapper {
    width: 100%;
}

#main-menu .header-search-form-wrapper {
    width: 100%;
}

#main-menu .searchform .flex-row {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

#main-menu .searchform .flex-col.flex-grow {
    flex: 1 1 auto;
    min-width: 0;
}

#main-menu .search-field {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 13px;
}

#main-menu .searchform .flex-col:last-child {
    flex: 0 0 auto;
}

#main-menu .ux-search-submit {
    width: 50px;
    height: 38px;
    background: #252a28;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-menu .ux-search-submit:hover {
    background: #1a1e1c;
}

/* Mobile Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* No Scrollbar */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet & Below (849px) */
@media (max-width: 849px) {
    .header-main {
        height: 70px;
    }

    /* Logo center on mobile */
    .header-inner.medium-logo-center #logo {
        flex: 1;
        max-width: none;
        display: flex;
        justify-content: center;
        order: 2;
    }

    /* Hamburger left */
    .header-inner .show-for-medium.flex-left {
        order: 1;
        flex: 0 0 auto;
    }

    /* Cart right */
    .header-inner .show-for-medium.flex-right {
        order: 3;
        flex: 0 0 auto;
    }

    #logo img {
        max-height: 60px;
    }

    #logo h1 {
        font-size: 20px;
        line-height: 70px;
    }

    .header-cart-title,
    .nav-top-link span {
        display: none;
    }

    /* Hiển thị chữ "Giỏ hàng" trên mobile */
    .show-for-medium .header-cart-title.mobile-cart-label {
        display: inline-block !important;
        font-size: 14px;
        margin-top: 2px;
    }

    .header-cart-link,
    .nav-top-link {
        padding: 10px;
    }

    .image-icon.header-cart-icon {
        font-size: 24px;
    }

    /* Search form full width */
    .searchform-wrapper.ux-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .searchform-wrapper.ux-search-box.relative.is-normal {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Make column full width */
    .header-block .col.medium-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .header-block .col.medium-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Mobile (549px & Below) */
@media (max-width: 549px) {
    .header-main {
        height: 70px;
    }

    #logo {
        flex: 0 0 120px;
        max-width: 120px;
    }

    #logo img {
        max-height: 70px;
    }

    #logo h1 {
        font-size: 18px;
    }

    .mobile-nav.nav-right {
        gap: 5px;
    }

    .mobile-menu-toggle {
        padding: 5px;
        font-size: 20px;
    }

    .image-icon.header-cart-icon {
        font-size: 20px;
    }

    .header-bottom-nav.nav-center {
        width: 100%;
        padding: 10px 15px;
    }

    .header-bottom-nav .searchform .flex-row {
        border: 1px solid #ddd;
    }
}

/* Desktop Only */
@media (min-width: 850px) {
    #main-menu {
        display: none !important;
    }

    .mobile-sidebar-overlay {
        display: none !important;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.mb-0 {
    margin-bottom: 0 !important;
}

.is-small {
    font-size: 0.9em;
}

.text-left {
    text-align: left;
}

.text-uppercase,
.nav-uppercase {
    text-transform: uppercase;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Body when mobile menu open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ===========================
   ADDITIONAL FIXES
   =========================== */

/* Fix image rendering */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix button */
button {
    cursor: pointer;
}

/* Fix links */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #d70018;
}

/* Fix list */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Clearfix */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ===========================
   PERFORMANCE OPTIMIZATIONS
   =========================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hardware acceleration */
.header-main,
#main-menu,
.mobile-sidebar-overlay {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Prevent FOUC */
.loading-site .header {
    opacity: 0;
}

.loading-site.loaded .header {
    opacity: 1;
    transition: opacity 0.3s ease;
}