/* cache-bust: 2026-06-04 header-search ship-badge */
:root {
    --nail-rose: #e6336e;
    --nail-rose-deep: #c01e58;
    --nail-rose-soft: #ff5c8a;
    --nail-header-shadow: rgba(192, 30, 88, 0.24);
}

#masthead,
#masthead.header-main,
#header .header-main {
    /* Khớp màu nền banner logo (magenta) để không lộ seam 2 màu */
    background: linear-gradient(180deg, #ef1a6b 0%, #e7156a 45%, #d80d56 100%) !important;
    box-shadow: 0 12px 30px var(--nail-header-shadow);
}

#masthead .header-inner {
    align-items: center;
}

#masthead .header-inner > .flex-col {
    align-items: center;
}

#logo {
    width: 214px;
    flex: 0 0 auto;
}

/* Header: căn đều, thanh tìm kiếm kéo dài giữa Danh mục và Cửa hàng */
@media (min-width: 850px) {
    #masthead .header-inner.flex-row {
        gap: 14px;
    }

    #masthead .flex-col.flex-left.flex-grow {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    #masthead .flex-col.flex-right {
        flex: 0 0 auto;
    }

    #masthead .flex-left.flex-grow > .header-nav {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    #masthead .flex-left.flex-grow > .header-nav > li {
        flex: 0 0 auto;
    }

    #masthead .flex-left.flex-grow > .header-nav > li.html.custom.html_topbar_left,
    #masthead .flex-left.flex-grow > .header-nav > li:has(.dc-hs-wrap) {
        flex: 1 1 320px;
        min-width: 200px;
        max-width: none;
    }

    #masthead .dc-hs-wrap {
        width: 100% !important;
        max-width: none !important;
    }

    #masthead .dc-hs-form {
        width: 100% !important;
        max-width: none !important;
    }

    #masthead .flex-right .header-nav {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

/* Badge sản phẩm — chữ dài hơn */
.fc-product-badge span {
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
}


.footer-sec ul {
    padding: 0;
}

.footer-sec > .section-content > .row > .col:first-child .col-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-sec > .section-content > .row > .col:first-child .ux-logo-link {
    justify-content: flex-start;
    width: 100%;
}

/* ===== Lưới danh mục sản phẩm trang chủ (pill ngang nhỏ gọn, icon đen trắng trong vòng hồng) ===== */
.fastcare-product-brand {
    margin: 6px 0 12px;
}
/* Tất cả trên 1 hàng (desktop 6 ô; mobile cuộn ngang) */
body .fastcare-product-brand .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
}
body .fastcare-product-brand .row::-webkit-scrollbar { display: none; }
body .fastcare-product-brand .row > .col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}
body .fastcare-product-brand a.fastcare-brand-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    height: 100%;
    padding: 9px 10px !important;
    background: #fff;
    border: 1px solid #f1e3e9 !important;
    border-radius: 12px !important;
    text-align: left;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body .fastcare-product-brand a.fastcare-brand-item:hover {
    border-color: var(--nail-rose) !important;
    box-shadow: 0 8px 20px rgba(230, 51, 110, .14);
    transform: translateY(-2px);
}
body .fastcare-product-brand .fastcare-brand-image {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe1ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
body .fastcare-product-brand .fastcare-brand-image img {
    width: 21px !important;
    height: 21px !important;
    border-radius: 0 !important;
    object-fit: contain;
}
body .fastcare-product-brand .fastcare-brand-name {
    flex: 1 !important;
    display: block !important;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #1f2937;
}
body .fastcare-product-brand a.fastcare-brand-item:hover .fastcare-brand-name {
    color: var(--nail-rose);
}
@media (max-width: 849px) {
    body .fastcare-product-brand .row > .col {
        flex: 0 0 46% !important;
        max-width: 46% !important;
    }
}

/* ===== Hàng danh mục con: marquee tự cuộn vòng lặp ===== */
.cat-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.cat-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: catMarquee 28s linear infinite;
    will-change: transform;
}
.cat-marquee:hover .cat-marquee-track {
    animation-play-state: paused;
}
.cat-marquee .cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 8px;
    padding: 7px 14px;
    background: #f4f5f7;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.cat-marquee .cat-pill:hover {
    background: var(--nail-rose);
    color: #fff;
}
@keyframes catMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .cat-marquee-track { animation: none; }
    .cat-marquee { overflow-x: auto; }
}

/* ===== Nút "Xem thêm" mỗi danh mục ===== */
.main-btn.button,
a.button.main-btn {
    border-radius: 999px !important;
    border: 1px solid var(--nail-rose) !important;
    color: var(--nail-rose) !important;
    font-weight: 600 !important;
    padding: 0 26px !important;
    background: #fff !important;
    transition: all .2s ease !important;
}
.main-btn.button:hover,
a.button.main-btn:hover {
    background: var(--nail-rose) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(230, 51, 110, .22) !important;
}
.main-btn.button::after {
    content: " →";
}

/* ===== Mega menu: đổi tông cam -> hồng, bỏ chiều cao cố định ===== */
.dc-catmega-panel {
    height: auto !important;
    min-height: 340px;
    max-height: 80vh;
    border-top-color: var(--nail-rose) !important;
}
.dc-catmega-inner {
    min-height: 340px;
}
.dc-catmega-group-title:hover,
.dc-catmega-links a:hover,
.dc-hs-tag:hover {
    color: var(--nail-rose) !important;
}
/* Menu trái (tab/sidecat): active & hover sang hồng, icon giữ đen trắng */
.dc-tab-menu-item:hover a,
.dc-tab-menu-item.active a,
.dc-sidecat-mega-item:hover a,
.dc-sidecat-mega-item.active a {
    border-color: var(--nail-rose) !important;
    color: var(--nail-rose) !important;
    background: #fff0f5 !important;
}
.dc-tab-menu-item:hover img,
.dc-tab-menu-item.active img,
.dc-sidecat-mega-item:hover .dc-sidecat-mega-icon img,
.dc-sidecat-mega-item.active .dc-sidecat-mega-icon img {
    filter: none !important;
}

