
#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: hsl(var(--primary-400));
    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

#nprogress .peg {
    display: block;
    position: absolute;
    right: 0px;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px hsl(var(--primary-400)), 0 0 5px hsl(var(--primary-400));
    opacity: 1.0;
    -webkit-transform: rotate(3deg) translate(0px, -4px);
    -ms-transform: rotate(3deg) translate(0px, -4px);
    transform: rotate(3deg) translate(0px, -4px);
}

#nprogress .spinner {
    display: block;
    position: fixed;
    z-index: 1031;
    top: 15px;
    right: 15px;
}

#nprogress .spinner-icon {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: solid 2px transparent;
    border-top-color: hsl(var(--primary-400));
    border-left-color: hsl(var(--primary-400));
    border-radius: 50%;
    -webkit-animation: nprogress-spinner 400ms linear infinite;
    animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
    overflow: hidden;
    position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
    position: absolute;
}

@-webkit-keyframes nprogress-spinner {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes nprogress-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.product-media-slide-thumbnail .swiper-slide {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.product-media-slide-thumbnail .swiper-slide-thumb-active {
    border-color: #0052CC;
}

.js-sort-btn.active {
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.contents-post-list {
    display: contents;
}

.custom-swiper-button-prev.swiper-button-disabled,
.custom-swiper-button-next.swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.custom-swiper-button-prev.swiper-button-disabled,
.custom-swiper-button-next.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.banner.aspect-banner-image-mobile .swiper-button-prev,
.banner.aspect-banner-image-mobile .swiper-button-next {
    display: none !important;
}

.swiper-nav-hidden {
    display: none !important;
}

.bg-white-mt-25 {
    margin-top: -25px !important;
}

.category [data-radix-popper-content-wrapper] {
    display: none;
}

.tv-search-hidden {
    display: none;
}

.tv-search-panel-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
}

.tv-search-panel-inner {
    max-width: 960px;
    margin: 0 auto;
}

.tv-cart-toast {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 99999;
}

.tv-cart-toast-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
}

.tv-cart-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #22c55e;
    font-size: 12px;
    font-weight: 700;
}

.tv-cart-toast-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.custom-swiper-button-prev,
.custom-swiper-button-next {
    z-index: 99 !important;
    position: absolute !important;
}

.custom-swiper-button-prev {
    left: -5px;
}

.custom-swiper-button-next {
    right: -5px;
}

.btn-choose-product {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Đảm bảo modal ẩn khi closed */
#product-modal[data-state="closed"],
#product-modal-mobile[data-state="closed"] {
    opacity: 0;
    pointer-events: none;
}

#product-modal[data-state="open"],
#product-modal-mobile[data-state="open"] {
    opacity: 1;
    pointer-events: auto;
}

#product-modal-mobile {
    transform: translateY(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#product-modal-mobile[data-state="open"] {
    transform: translateY(0);
}

#product-modal-overlay {
    transition: opacity 0.3s ease-out;
}

#product-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#product-modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.home-hero {
    position: relative;
    z-index: 1;
}

.home-hero .custom-swiper-button-prev,
.home-hero .custom-swiper-button-next {
    z-index: 2;
}

.popup-hidden {
    display: none;
}

.article {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    color: #222;
}

.article h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin: 12px 0 10px;
}

.article h3 span {
    font-size: 14px;
    font-weight: normal;
}

.article p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 14px;
}

.article .step {
    padding: 10px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.02);
    margin-bottom: 10px;
}

.border-search-header {
    border: 1px solid rgba(19, 84, 174, 0.25);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(20, 40, 80, 0.06);
    background: #fff;
    transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
    outline: none;
}

.border-search-header:hover,
.border-search-header:focus-within {
    border-color: rgba(25, 84, 170, 0.5);
    box-shadow: 0 6px 18px rgba(20, 40, 80, 0.09);
}

.border-search-header input[type="text"],
.border-search-header .search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
    padding: 6px 8px;
}

.p-icon-1 {
    color: hsl(216.18deg 71.58% 37.25%);
}

.btn-login .p-icon {
    color: #fff;
}


.bg-single {
    background-color: hsl(216.18deg 71.58% 37.25%);
}

#openLogin, #openRegister {
    color: white;
}

.openLogin, .openRegister {
    color: hsl(216.18deg 71.58% 37.25%) !important;
}

.p-icon-header svg,
.p-icon-header svg path {
    fill: hsl(216.18deg 71.58% 37.25%);
}
.flex.h-full.items-center.gap-2.md\:hidden {
    position: relative !important;
}

.logo-mobile-header {
    position: absolute !important;
    left: 65% !important;
    transform: translateX(-50%) !important;
}
#searchResults .search-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .08)
}

#searchResults a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit
}

#searchResults a:hover {
    background: rgba(0, 0, 0, 0.03)
}

#searchResults .thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f4f6;
    display: grid;
    place-items: center
}

#searchResults .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.search-result-name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    font-size: 0.875rem;
    line-height: 1.15rem
}

.search-result-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1
}

.search-result-type {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 2px
}

#searchResults {
    z-index: 99999
}

.search-dropdown {
    max-height: 360px;
    overflow: auto
}

.search-empty {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, .04);
    padding: 10px;
    font-size: 0.925rem;
    color: #6b7280
}
.min-w-\[420px\] {
    min-width: 420px
}
.border-blue-100 {
    border-color: #dbeafe;
}
.h-\[95px\] {
    height: 210px;
}
.brand-video {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 12px;
}

.brand-video-main {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.brand-video-main iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.brand-video-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

.brand-video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.brand-video-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.custom-swiper-button-next,
.custom-swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    z-index: 99 !important;
    position: absolute !important;
}
.partner-swiper-button-next,
.partner-swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    z-index: 99 !important;
    position: absolute !important;
}
@media (max-width: 768px) {
    #searchResults {
        display: none !important;
    }
    #mobile-search-dialog {
        display: none !important;
    }
    .tv-cart-toast {
        bottom: 110px;
    }

    .tv-cart-toast-icon {
        width: 38px;
        height: 18px;
    }

    #mainNav.box-search-fixed-top input[type="search"] {
        width: 265px;
    }

    .button-header .p-icon {
        color: #111;
    }

    .mb-mobile {
        margin-bottom: 6rem;
    }

    button .p-icon {
        color: #fff;
    }

    .bottom-header .p-icon {
        color: white;
    }

    #searchResults {
        display: none;
    }
    .brand-video {
        grid-template-columns: 1fr;
    }

    .brand-video-side {
        display: none;
    }
}
.size-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    padding: 8px;
    font-size: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.size-btn:hover {
    background-color: hsl(216.18deg 71.58% 37.25%);
    border-color: hsl(216.18deg 71.58% 37.25%);
    color: #fff;
}

.size-btn.active {
    background-color: hsl(216.18deg 71.58% 37.25%);
    border-color: hsl(216.18deg 71.58% 37.25%);
    color: #fff;
}
.active-attribute{
    background-color: hsl(216.18deg 71.58% 37.25%);
    border-color: hsl(216.18deg 71.58% 37.25%);
    color: #fff;
}
.active-attribute{
    background-color: hsl(216.18deg 71.58% 37.25%);
    border-color: hsl(216.18deg 71.58% 37.25%);
    color: #fff;
}
.product-content table,
.product-content td,
.product-content th {
    border: 1px solid #d1d5db;
}
.left-\[-15px\] {
    left: -15px
}
.right-\[-15px\] {
    right: -15px
}