/* ==========================================================================
   DS Header Styles
   ========================================================================== */

/* -----------------------------------------------------------------------
 * Header Container
 * ---------------------------------------------------------------------- */
.site-header {
    background: var(--ds-bg-white);
    box-shadow: 0 2px 12px var(--ds-shadow);
    position: static;
    top: 0;
    z-index: 9999;
}

/* WP admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.ds-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--ds-container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.ds-header__menu-toggle-wrapper {
    align-items: center;
    flex-shrink: 0;
    display: none;
}

.ds-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ds-header__search {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 650px;
    margin: 0 15px;
    width: 100%;
    position: relative;
}

.ds-header__right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------
 * Logo
 * ---------------------------------------------------------------------- */
.ds-header__logo {
    flex-shrink: 0;
}

.ds-header__logo .custom-logo-link {
    display: block;
}

.ds-header__logo .custom-logo {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.ds-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ds-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.ds-logo-text:hover,
.ds-logo-text:visited {
    color: var(--ds-primary);
}

/* -----------------------------------------------------------------------
 * Search Bar
 * ---------------------------------------------------------------------- */

.ds-header-search-form {
    display: flex;
    align-items: stretch;
    background: var(--ds-bg);
    border-radius: 10px;
    transition: box-shadow 0.25s;
    width: 100%;
}

.ds-header-search-form:focus-within {
    background: var(--ds-bg-white);
    box-shadow: 0 0 0 3px var(--ds-primary-light);
}

.ds-header-search-input {
    flex: 1;
    border: 1px solid #cdd8e9 !important;
    border-left: none !important;
    background: transparent !important;
    padding: 10px 16px !important;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ds-text);
    outline: none;
    border-radius: 0 !important;
}

.ds-header-search-input::placeholder {
    color: var(--ds-text-muted);
}

/* Search Type Custom Select */
.ds-header-search-type {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ds-header-custom-select {
    cursor: pointer;
    user-select: none;
    outline: none;
    border: 1px solid var(--ds-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.ds-header-custom-select-trigger {
    display: flex;
    align-items: center;
    padding: 10px 30px 10px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--ds-text);
    position: relative;
    min-width: 130px;
}

.ds-header-custom-select .ds-header-search-type-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ds-text-muted);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.ds-header-custom-select.open .ds-header-search-type-icon {
    transform: translateY(-50%) rotate(180deg);
}

.ds-header-custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: var(--ds-bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--ds-shadow);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.ds-header-custom-select.open .ds-header-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ds-header-custom-select-option {
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--ds-text);
    cursor: pointer;
    transition: background 0.2s;
}

.ds-header-custom-select-option:hover {
    background: var(--ds-bg-light);
    color: var(--ds-primary);
}

.ds-header-custom-select-option.selected {
    font-weight: 600;
    color: var(--ds-primary);
}

.ds-header-search-divider {
    width: 1px;
    height: auto;
    background: #cdd8e9;
    flex-shrink: 0;
}

.ds-header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: auto;
    background: #8b1a1a !important;
    border: none !important;
    color: var(--ds-bg-white);
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background 0.2s;
    flex-shrink: 0;
    padding: 0 !important;
}

.ds-header-search-btn:hover {
    background: #6b1414 !important;
}

/* -----------------------------------------------------------------------
 * Live Search Dropdown
 * ---------------------------------------------------------------------- */
.ds-live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ds-bg-white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    max-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ds-live-search-results.ds-live-search-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ds-live-search-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.ds-live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--ds-text);
    transition: background 0.15s;
}

.ds-live-search-item:hover {
    background: var(--ds-bg-light);
}

.ds-live-search-item:visited {
    color: var(--ds-text);
}

.ds-live-search-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ds-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-live-search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ds-live-search-no-img {
    width: 100%;
    height: 100%;
    background: var(--ds-bg-light);
}

.ds-live-search-item-info {
    flex: 1;
    min-width: 0;
}

.ds-live-search-item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-live-search-item-title mark {
    background: rgba(139, 26, 26, 0.12);
    color: #8b1a1a;
    padding: 0 1px;
    border-radius: 2px;
}

.ds-live-search-item-price {
    font-size: 13px;
    color: var(--ds-primary);
    font-weight: 600;
    margin-top: 2px;
}

.ds-live-search-view-all {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-primary);
    text-decoration: none;
    border-top: 1px solid var(--ds-border);
    transition: background 0.15s;
}

.ds-live-search-view-all:hover {
    background: var(--ds-bg-light);
}

.ds-live-search-view-all:visited {
    color: var(--ds-primary);
}

.ds-live-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--ds-text-muted);
    font-size: 14px;
}

.ds-live-search-loading {
    padding: 24px 16px;
    text-align: center;
}

.ds-live-search-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--ds-border);
    border-top-color: var(--ds-primary);
    border-radius: 50%;
    animation: ds-spin 0.6s linear infinite;
}

@keyframes ds-spin {
    to {
        transform: rotate(360deg);
    }
}

/* -----------------------------------------------------------------------
 * Hotline
 * ---------------------------------------------------------------------- */
.ds-header__hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ds-hotline-icon {
    color: var(--ds-primary);
    flex-shrink: 0;
}

.ds-hotline-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ds-hotline-label {
    font-size: 11px;
    color: var(--ds-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-hotline-number {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #8b1a1a !important;
    text-decoration: none;
    white-space: nowrap;
}

.ds-hotline-number:hover {
    color: #6b1414 !important;
}

.ds-hotline-number:visited {
    color: #8b1a1a !important;
}

/* -----------------------------------------------------------------------
 * Account Icon
 * ---------------------------------------------------------------------- */
.ds-header__account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ds-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ds-header__account:hover {
    background: var(--ds-bg-light);
    color: var(--ds-primary);
}

.ds-header__account:visited {
    color: var(--ds-text-muted);
}

/* -----------------------------------------------------------------------
 * Cart Icon
 * ---------------------------------------------------------------------- */
.ds-header__cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ds-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
}

.ds-header__cart:hover {
    background: var(--ds-bg-light);
    color: var(--ds-primary);
}

.ds-header__cart:visited {
    color: var(--ds-text-muted);
}

.ds-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--ds-danger);
    color: var(--ds-bg-white);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    pointer-events: none;
}

.ds-cart-count:empty,
.ds-cart-count[data-count="0"] {
    display: none;
}

/* -----------------------------------------------------------------------
 * Cart Wrapper & Mini Cart Dropdown
 * ---------------------------------------------------------------------- */
.ds-header__cart-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ds-mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;

    /* New merged styles from deleted inner div */
    width: 400px;
    max-height: 460px;
    background: var(--ds-bg-white);
    border-radius: 12px;
    box-shadow: var(--ds-shadow-lg);
    display: flex;
    flex-direction: column;
}

/* Hover bridge to keep dropdown open */
.ds-mini-cart::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Upward pointing arrow */
.ds-mini-cart::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 13px;
    /* Center with the 42px wide cart icon (21px from right edge - 8px border-width = 13px offset) */
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--ds-bg-white) transparent;
    z-index: 2;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
    transition: opacity 0.2s ease;
}

.ds-header__cart-wrapper:hover .ds-mini-cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* -----------------------------------------------------------------------
 * Custom Mini Cart Dropdown Styles
 * ---------------------------------------------------------------------- */
.widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.ds-mini-cart-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--ds-text-muted);
    font-size: 14px;
}

.ds-mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--ds-border);
}

.ds-mini-cart-subtotal-info {
    font-size: 14px;
    color: var(--ds-text-muted);
}

.ds-mini-cart-subtotal-amount {
    color: var(--ds-text);
    font-size: 14px;
    font-weight: 700;
    margin: 0 4px;
}

.ds-mini-cart-count-text {
    font-size: 14px;
}

.ds-mini-cart-view-all {
    color: var(--ds-secondary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.ds-mini-cart-view-all:hover {
    color: var(--ds-secondary-hover);
    text-decoration: underline;
}

.ds-mini-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.ds-mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--ds-border);
    position: relative;
}

.ds-mini-cart-item:last-child {
    border-bottom: none;
}

.ds-mini-cart-item-image {
    flex-shrink: 0;
    width: 90px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ds-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mix-blend-mode: multiply;
}

.ds-mini-cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ds-mini-cart-item-title {
    color: var(--ds-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 20px;
}

.ds-mini-cart-item-title:hover {
    color: #8b1a1a !important;
}

.ds-mini-cart-item-title:visited {
    color: var(--ds-text);
}

.ds-mini-cart-remove {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ds-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ds-mini-cart-remove:hover {
    color: var(--ds-text);
}

/* Format WooCommerce variations output */
.ds-mini-cart-item-details dl.variation {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ds-text-muted);
    gap: 4px;
}

.ds-mini-cart-item-details dl.variation dt {
    font-weight: normal;
    float: none;
    clear: none;
    margin: 0;
    padding: 0;
}

.ds-mini-cart-item-details dl.variation dd {
    float: none;
    clear: none;
    margin: 0;
    padding: 0;
}

.ds-mini-cart-item-details dl.variation dt:after {
    content: ": ";
}

.ds-mini-cart-item-details dl.variation p {
    margin: 0;
}

.ds-mini-cart-item-price {
    color: var(--ds-primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 2px;
}

.ds-mini-cart-item-qty {
    color: var(--ds-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.ds-mini-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--ds-text-muted);
    font-size: 14px;
}

/* -----------------------------------------------------------------------
 * Mobile Menu Toggle (hamburger)
 * ---------------------------------------------------------------------- */
.ds-header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 8px;
    transition: background 0.2s;
}

.ds-header__menu-toggle:hover {
    background: #f5f5f5 !important;
}

.ds-header__menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ds-text);
    border-radius: 1px;
    transition: all 0.3s;
}

/* -----------------------------------------------------------------------
 * Navigation Bar
 * ---------------------------------------------------------------------- */
.ds-header-nav {
    background: var(--ds-primary);
}

.ds-header-nav-inner {
    max-width: var(--ds-container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.ds-header-nav ul.menu,
.ds-header-nav .menu,
.ds-header-nav .menu>ul,
.ds-header-nav ul.nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    gap: 0;
    overflow-y: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.ds-header-nav .menu li,
.ds-header-nav .nav-menu li {
    position: relative;
    list-style: none !important;
}

.ds-header-nav .menu li a {
    display: block;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.ds-header-nav .menu li a:hover,
.ds-header-nav .menu li.current-menu-item a {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ds-bg-white);
}

/* Submenu */
.ds-header-nav .menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ds-bg-white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.ds-header-nav .menu li:hover>.sub-menu {
    display: block;
}

.ds-header-nav .menu .sub-menu a {
    color: var(--ds-text);
    padding: 10px 20px;
    font-size: 13px;
}

.ds-header-nav .menu .sub-menu a:hover {
    background: var(--ds-bg-light);
    color: var(--ds-primary);
}

/* -----------------------------------------------------------------------
 * Mobile Drawer Overlay
 * ---------------------------------------------------------------------- */
.ds-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ds-mobile-overlay.ds-overlay-open {
    opacity: 1;
    visibility: visible;
}

/* -----------------------------------------------------------------------
 * Mobile Drawer (Menu chính) – slide from left
 * ---------------------------------------------------------------------- */
.ds-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--ds-bg-white);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    /* box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15); */
}

.ds-mobile-drawer.ds-nav-open {
    transform: translateX(0);
}

/* Drawer Header */
.ds-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ds-border);
    flex-shrink: 0;
}

.ds-mobile-drawer-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-text);
}

.ds-mobile-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none !important;
    border: none !important;
    font-size: 28px;
    color: var(--ds-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    padding: 0 !important;
    line-height: 1;
}

.ds-mobile-drawer-close:hover {
    background: var(--ds-bg-light) !important;
    color: var(--ds-text);
}

/* Drawer Content (scrollable) */
.ds-mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
}

.ds-mobile-drawer ul.menu,
.ds-mobile-drawer .menu,
.ds-mobile-drawer .menu>ul,
.ds-mobile-drawer ul.nav-menu {
    display: flex !important;
    flex-direction: column;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0;
}

.ds-mobile-drawer .menu li {
    position: relative;
    list-style: none !important;
}

.ds-mobile-drawer .menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--ds-text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--ds-border);
}

.ds-mobile-drawer .menu li a:hover,
.ds-mobile-drawer .menu li.current-menu-item a {
    background: var(--ds-bg-light);
    color: var(--ds-primary);
}

.ds-mobile-drawer .menu .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    background: var(--ds-bg);
    border-radius: 0;
    padding: 0;
    list-style: none;
    margin: 0;
}

.ds-mobile-drawer .menu li:hover>.sub-menu,
.ds-mobile-drawer .menu li.focus>.sub-menu {
    display: block;
}

.ds-mobile-drawer .menu .sub-menu a {
    color: var(--ds-text-muted);
    padding-left: 40px;
    font-size: 14px;
}

.ds-mobile-drawer .menu .sub-menu a:hover {
    color: var(--ds-primary);
}


/* -----------------------------------------------------------------------
 * Responsive – Tablet & Mobile
 * ---------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
    .ds-header__hotline {
        display: none;
    }

    .ds-header__search {
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .ds-mini-cart {
        width: 320px;
    }

    .ds-header-inner {
        gap: 0;
        padding: 0 15px 10px;
    }

    .ds-header__menu-toggle-wrapper {
        display: flex;
        width: 30%;
    }

    .ds-header__logo .custom-logo {
        height: 50px;
    }

    .ds-header-inner {
        flex-wrap: wrap;
    }

    .ds-header__menu-toggle {
        display: flex;
        order: 1;
    }

    .ds-header__logo {
        width: 40%;
    }

    .ds-header__right {
        width: 30%;
    }

    .ds-header__account {
        order: 3;
        margin-left: auto;
    }

    .ds-header__cart-wrapper {
        order: 4;
    }

    .ds-header__search {
        order: 5;
        flex-basis: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .ds-header-search-input {
        line-height: 1.2 !important;
        padding: 8px 15px !important;
        width: 100%;
    }

    .ds-header-custom-select-trigger {
        padding: 8px 30px 8px 16px;
        min-width: 100px;
    }

    /* Site-navigation (Menu phụ) stays visible on mobile */
    .ds-header-nav-inner {
        padding: 0;
    }

    .ds-header-nav .menu li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ds-header-nav .menu .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 0;
        padding: 0;
    }

    .ds-header-nav .menu .sub-menu a {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 40px;
    }

    /* Small tweaks for custom select on mobile */
    .ds-header-custom-select-trigger {
        padding-left: 10px;
        padding-right: 24px;
        font-size: 13px;
    }

    .ds-header-custom-select .ds-header-search-type-icon {
        right: 8px;
    }

    /* Hide text title, keep only logo on small screens */
    .ds-logo-text {
        font-size: 18px;
    }
}