
body {
    padding-top: 130px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 110px;
    }
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

 .back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}
/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.border-secondary {
    transition: 0.5s;
}

.btn.border-secondary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/*** Topbar Start ***/
.fixed-top {
    transition: 0.5s;
    background: var(--bs-white);
    border: 0;
    box-shadow: 0 2px 12px rgba(45, 90, 39, 0.08);
}

.topbar {
    padding: 10px 20px;
    border-radius: 0;
    background: linear-gradient(90deg, #1e4620 0%, #2d6b2e 50%, #3a8c3c 100%) !important;
}

.topbar .top-info {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.topbar .top-info small,
.topbar .top-link a small {
    color: rgba(255,255,255,0.95) !important;
}

.topbar .top-link {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.topbar .top-link a {
    letter-spacing: 0.3px;
}

.topbar .top-link a:hover small {
    color: #fff !important;
    text-decoration: underline;
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar {
    min-height: 70px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%) !important;
    border-bottom: 1px solid rgba(45, 90, 39, 0.12);
}

.navbar .navbar-brand h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1e4620 !important;
}

.navbar .navbar-nav {
    gap: 0;
}

.navbar .navbar-nav .nav-link {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #2d4a2f !important;
    transition: color 0.2s, background 0.2s;
    border-radius: 6px;
    white-space: nowrap;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top .navbar .navbar-nav .nav-link:hover,
.fixed-top .navbar .navbar-nav .nav-link.active {
    color: #1e4620 !important;
    background: rgba(45, 90, 39, 0.08);
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .btn-search {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 90, 39, 0.25) !important;
    color: #2d6b2e !important;
}

.navbar .btn-search:hover {
    background: rgba(45, 90, 39, 0.06) !important;
    border-color: #2d6b2e !important;
}

.navbar .btn-search i {
    font-size: 1rem;
}

.navbar .cart-icon {
    color: #2d4a2f;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.navbar .cart-icon:hover {
    color: #1e4620;
}

.navbar .cart-badge {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
}

.navbar .user-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(45, 90, 39, 0.3);
    background: rgba(255,255,255,0.9);
    color: #2d4a2f;
    transition: all 0.2s;
    white-space: nowrap;
}

.navbar .user-btn:hover {
    border-color: #2d6b2e;
    color: #1e4620;
    background: rgba(45, 90, 39, 0.06);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 6px;
    font-size: 11px;
}

.navbar .dropdown-menu {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 6px 0;
}

.navbar .dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(45, 90, 39, 0.08);
    color: #1e4620;
}

/* ==== HOME: Bản đồ đặc sản theo vị trí ==== */
.nv-map-section {
    background: radial-gradient(circle at top left, #e0f2ff 0, #f8fafc 45%, #ffffff 100%);
}

.nv-map-label {
    letter-spacing: 0.16em;
}

.nv-map-shell {
    backdrop-filter: blur(4px);
}

.nv-map-wrap {
    background: #e8f4f8;
}

.nv-map {
    border-radius: 1.5rem 0 0 1.5rem;
    height: 340px;
    min-height: 340px;
}

.nv-region-suggestions {
    overflow-y: visible;
    max-height: none;
}

/* Ẩn hoàn toàn dòng debug dưới bản đồ (vẫn giữ element để JS không lỗi) */
#locationDebug {
    display: none !important;
}

@media (max-width: 991.98px) {
    .nv-map {
        border-radius: 1.5rem 1.5rem 0 0;
        height: 420px;
        min-height: 420px;
    }
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .95);
}
/*** Navbar End ***/

/*** Hero Header ***/
.hero-header {
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .16), transparent 55%),
                radial-gradient(circle at top right, rgba(34, 197, 94, .16), transparent 55%),
                #ffffff;
}

.carousel-item {
    position: relative;
}

.carousel-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    background: linear-gradient(rgba(255, 181, 36, 0.7), rgba(255, 181, 36, 0.7));
}

.carousel-control-next,
.carousel-control-prev {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    border: 1px solid var(--bs-white);
    background: var(--bs-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-next {
    margin-right: 20px;
}

.carousel-control-prev {
    margin-left: 20px;
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/cart-page-header-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header,
    .page-header {
        margin-top: 125px !important;
    }
}

@media (max-width: 991px) {
    .hero-header,
    .page-header {
        margin-top: 95px !important;
    }
}
/*** Hero Header end ***/


/*** Lý do chọn Nguồn Việt (homepage features) ***/
.nv-reasons-section {
    background: #f8fafc;
}

.nv-reason-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.nv-reason-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.nv-reason-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #fff;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

.nv-reason-icon-wrap i {
    font-size: 30px;
}


/*** service Start ***/
.service .service-item .service-content {
    position: relative;
    width: 250px; 
    height: 130px; 
    top: -50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

/*** service End ***/


/*** Fruits Start ***/
.fruite .tab-class .nav-item a.active {
    background: var(--bs-secondary) !important;
}

.fruite .tab-class .nav-item a.active span {
    color: var(--bs-white) !important; 
}

.fruite .fruite-categorie .fruite-name {
    line-height: 40px;
}

.fruite .fruite-categorie .fruite-name a {
    transition: 0.5s;
}

.fruite .fruite-categorie .fruite-name a:hover {
    color: var(--bs-secondary);
}

.fruite .fruite-item {
    height: 100%;
    transition: 0.5s;
}
.fruite .fruite-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: 0.5s;
}

.fruite .fruite-item .fruite-img img:hover {
    transform: scale(1.3);
}
/*** Fruits End ***/


/*** vesitable Start ***/
.vesitable .vesitable-item {
    height: 100%;
    transition: 0.5s;
}

.vesitable .vesitable-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.vesitable .vesitable-item .vesitable-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.vesitable .vesitable-item .vesitable-img img {
    transition: 0.5s;
}

.vesitable .vesitable-item .vesitable-img img:hover {
    transform: scale(1.2);
}

.vesitable .owl-stage {
    margin: 50px 0;
    position: relative;
}

.vesitable .owl-nav .owl-prev {
    position: absolute;
    top: -8px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;

}

.vesitable .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.vesitable .owl-nav .owl-next {
    position: absolute;
    top: -8px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.vesitable .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** vesitable End ***/


/*** Banner Section Start ***/
.banner .banner-btn:hover {
    background: var(--bs-primary);
}
/*** Banner Section End ***/


/*** Facts Start ***/
.counter {
    height: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.counter i {
    font-size: 60px;
    margin-bottom: 25px;
}

.counter h4 {
    color: var(--bs-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter h1 {
    margin-bottom: 0;
}
/*** Facts End ***/


/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}
/*** testimonial End ***/


/*** Single Page Start ***/
.pagination {
    display: inline-block;
}
  
.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}
  
.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}
  
.pagination a:hover:not(.active) {background-color: var(--bs-primary)}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}
/*** Single Page End ***/


/*** Footer Start ***/
.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, .5);
    transition: 0.5s;
}

.footer .footer-item .btn-link:hover {
    color: var(--bs-secondary) !important;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}
/*** Footer End ***/

/*** Sản phẩm nổi bật chạy ngang full màn – custom slider ***/
.nv-featured-strip {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.nv-featured-strip-viewport {
    overflow-x: hidden;
}
.nv-featured-strip-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}
.nv-featured-strip-item {
    flex: 0 0 220px;
}
@media (min-width: 576px) {
    .nv-featured-strip-item {
        flex: 0 0 240px;
    }
}
@media (min-width: 768px) {
    .nv-featured-strip-item {
        flex: 0 0 260px;
    }
}
.nv-featured-strip-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.nv-featured-strip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
}
.nv-featured-strip-img {
    background: #f1f5f9;
    height: 160px;
    overflow: hidden;
}
.nv-featured-strip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nv-featured-strip-title {
    font-size: 0.95rem;
}
.nv-featured-strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.nv-featured-strip-arrow--prev {
    left: -12px;
}
.nv-featured-strip-arrow--next {
    right: -12px;
}

/*** Sản phẩm nổi bật - Grid section ***/
.nv-featured-section {
    background: linear-gradient(135deg, rgba(13,110,253,.03) 0%, rgba(255,193,7,.05) 100%);
}
.nv-featured-label {
    letter-spacing: .15em;
}
.nv-featured-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    border: 1px solid rgba(0,0,0,.06) !important;
}
.nv-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0,0,0,.1) !important;
    border-color: rgba(13,110,253,.25) !important;
}
.nv-featured-card-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
}
.nv-featured-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.nv-featured-card:hover .nv-featured-card-img-wrap img {
    transform: scale(1.06);
}
.nv-featured-region-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.65);
    color: #fff;
    backdrop-filter: blur(6px);
}
.nv-featured-title {
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nv-featured-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.nv-featured-card .btn {
    transition: transform .15s ease;
}
.nv-featured-card .btn:hover {
    transform: translateY(-1px);
}

/*** Map + region suggestions (Nguồn Việt) ***/
.nv-map {
    background: linear-gradient(135deg, rgba(13,110,253,.06), rgba(255,181,36,.10));
    min-height: 320px;
}
/* Đảm bảo container Leaflet hiển thị đúng */
#map.leaflet-container {
    font-family: inherit;
}
#map {
    z-index: 1;
}

.nv-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nv-location-pill {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.9) !important;
}

.nv-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.nv-product-mini {
    border-radius: 18px;
    overflow: hidden;
}

.nv-thumb {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    background: #f8f9fa;
}

.nv-thumb img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    transform: scale(1.02);
}

/* Product listing (chợ đặc sản) */
.nv-filter-sidebar .card {
    border-radius: 18px;
}

.nv-filter-search .form-control:focus {
    box-shadow: none;
}

.nv-chip {
    background: #f8f9fa;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.05);
    font-size: 13px;
    padding-inline: 14px;
    padding-block: 6px;
    color: #495057;
}

.nv-chip-active,
.nv-chip:hover {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.nv-filter-link {
    padding: 4px 0;
    color: #495057;
    text-decoration: none;
}

.nv-filter-link:hover {
    color: var(--bs-primary);
}

.nv-filter-banner-content {
    position: absolute;
    inset: auto 14px 14px 14px;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
    padding: 10px 14px;
    border-radius: 16px;
}

.nv-product-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nv-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
    border-color: rgba(13,110,253,.4);
}

/* Grid product cards – đồng đều chiều cao, không lệch */
.nv-product-card--grid {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nv-product-card--grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,.1);
}
.nv-product-card__img-wrap {
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}
.nv-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nv-product-card__region {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.nv-product-card--grid .card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.nv-product-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.nv-product-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}
.nv-product-card--grid .mt-auto {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

/* Trang chi tiết – Gợi ý đặc sản khác */
.nv-related-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.nv-product-card--related .nv-product-card__img-wrap {
    height: 180px;
}
.nv-product-card--related .nv-product-card__title {
    font-size: 0.95rem;
    min-height: 2.5em;
}
.nv-product-card--related .nv-product-card__desc {
    min-height: 2.5em;
    -webkit-line-clamp: 2;
}

/* Trang chủ – Bán chạy */
.nv-bestseller-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.nv-product-card--bestseller .nv-product-card__img-wrap {
    height: 200px;
}
.nv-product-card--bestseller .card-body {
    border-top: none;
}
.nv-product-card--bestseller .nv-product-card__title {
    -webkit-line-clamp: 2;
    min-height: 2.6em;
}

/* Trang chủ – Khách hàng nói gì */
.nv-testimonial-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fefce8 100%);
}
.nv-testimonial-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.nv-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.nv-testimonial-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}
.nv-testimonial-card__avatar {
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Home hero & regions */
.hero-header {
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .15), transparent 55%),
                radial-gradient(circle at top right, rgba(13, 110, 253, .15), transparent 55%),
                #fff;
}

.hero-search {
    max-width: 580px;
}

.hero-search-btn {
    margin-left: -130px;
}

@media (max-width: 768px) {
    .hero-search-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .hero-search .input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

.nv-region-card {
    background: linear-gradient(135deg, rgba(13,110,253,.05), rgba(255,193,7,.08));
    transition: transform .18s ease, box-shadow .18s ease;
}

.nv-region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.08);
}

.nv-region-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(108,117,125,.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.nv-2line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nv-empty-state {
    border-style: dashed !important;
}

/*** Giỏ hàng ***/
.nv-cart-page {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
}

.nv-cart-empty {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nv-cart-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(45, 90, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-cart-empty-icon i {
    font-size: 2.5rem;
    color: #1e4620;
}

.nv-cart-card {
    transition: box-shadow 0.2s;
}

.nv-cart-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

.nv-cart-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}

.nv-cart-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-cart-desc {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.nv-cart-qty .btn {
    padding: 4px 12px;
}

.nv-cart-summary {
    background: #fff;
}

.nv-cart-voucher .form-control:focus {
    border-color: rgba(45, 90, 39, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.1);
}

.nv-cart-suggested h5 {
    color: #2d4a2f;
}

.nv-cart-suggest-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.nv-cart-suggest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1) !important;
}

.nv-cart-suggest-img {
    background: #f8fafc;
}

@media (max-width: 767px) {
    .nv-cart-card .row > div:first-child {
        padding: 12px 12px 0;
    }
    .nv-cart-card-img {
        border-radius: 12px;
    }
}

/*** Trang thanh toán ***/
.nv-checkout-page {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
}

.nv-checkout-empty {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nv-checkout-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(45, 90, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-checkout-empty-icon i {
    font-size: 2.5rem;
    color: #1e4620;
}

.nv-checkout-summary {
    background: #fff;
}

.nv-checkout-summary .form-control:focus,
.nv-checkout-page .form-control:focus {
    border-color: rgba(45, 90, 39, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.1);
}

.nv-checkout-thumb {
    background: #f1f5f9;
}

/* Trang Hành trình đặc sản */
.journey-region-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.journey-region-done {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.3);
}
.journey-region-todo {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.journey-next-region-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.journey-next-region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
.journey-next-region-card .card-body .text-dark {
    transition: color 0.2s ease;
}
a:hover .journey-next-region-card .card-body .text-dark {
    color: var(--bs-primary) !important;
}

/* Cấp độ hành trình */
.journey-level-card {
    border-left: 4px solid #0d6efd;
}
.journey-level-1 .journey-level-badge { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); color: #fff; }
.journey-level-2 .journey-level-badge { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); color: #fff; }
.journey-level-3 .journey-level-badge { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); color: #fff; }
.journey-level-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.journey-next-goals ul li {
    line-height: 1.6;
}

/* Badge cấp độ trên header */
.journey-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.3);
    text-decoration: none;
}
.journey-header-badge:hover {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}
a.journey-header-badge {
    cursor: pointer;
}

/* Giấy khen hành trình nhỏ trên trang chủ */
.home-journey-card {
    background: linear-gradient(135deg, #fefce8 0%, #ecfdf3 55%, #e0f2fe 100%);
}

/* Unified Nguon Viet visual system */
:root {
    --nv-font: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --nv-primary: #137a45;
    --nv-primary-600: #0f6b3c;
    --nv-primary-700: #0b5130;
    --nv-secondary: #f59e0b;
    --nv-secondary-600: #d97706;
    --nv-ink: #17231f;
    --nv-muted: #61706a;
    --nv-subtle: #f5f8f4;
    --nv-soft: #eef7ee;
    --nv-border: #dce7df;
    --nv-card: #ffffff;
    --nv-danger: #dc2626;
    --nv-radius: 8px;
    --nv-radius-lg: 16px;
    --nv-shadow-sm: 0 6px 18px rgba(23, 35, 31, 0.07);
    --nv-shadow: 0 16px 42px rgba(23, 35, 31, 0.11);
    --bs-primary: var(--nv-primary);
    --bs-secondary: var(--nv-secondary);
    --bs-success: var(--nv-primary);
    --bs-dark: var(--nv-ink);
    --bs-light: var(--nv-subtle);
    --bs-body-font-family: var(--nv-font);
    --bs-body-color: var(--nv-ink);
    --bs-body-bg: #fbfdf9;
    --bs-link-color: var(--nv-primary);
    --bs-link-hover-color: var(--nv-primary-700);
    --bs-border-radius: var(--nv-radius);
}

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--nv-font);
    color: var(--nv-ink);
    background:
        linear-gradient(180deg, rgba(238, 247, 238, 0.65) 0, rgba(251, 253, 249, 0) 320px),
        #fbfdf9;
}

button,
input,
select,
textarea {
    font-family: var(--nv-font);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--nv-font);
    color: var(--nv-ink);
    font-weight: 700;
    letter-spacing: 0;
}

p,
li,
td,
th,
label,
.form-control,
.form-select,
.dropdown-item,
.small,
small {
    color: inherit;
}

.text-primary {
    color: var(--nv-primary) !important;
}

.text-secondary {
    color: var(--nv-secondary) !important;
}

.text-dark {
    color: var(--nv-ink) !important;
}

.text-muted,
.text-black-50 {
    color: var(--nv-muted) !important;
}

.bg-primary {
    background-color: var(--nv-primary) !important;
}

.bg-secondary {
    background-color: var(--nv-secondary) !important;
}

.bg-light {
    background-color: var(--nv-subtle) !important;
}

a {
    color: var(--nv-primary);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a:hover {
    color: var(--nv-primary-700);
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn {
    border-radius: var(--nv-radius);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--nv-primary), var(--nv-primary-600));
    border-color: var(--nv-primary);
    color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus,
.btn-success:focus {
    background: linear-gradient(135deg, var(--nv-primary-600), var(--nv-primary-700));
    border-color: var(--nv-primary-700);
    color: #fff !important;
    box-shadow: 0 0 0 .2rem rgba(19, 122, 69, .16);
}

.btn-secondary,
.btn-warning {
    background: linear-gradient(135deg, var(--nv-secondary), var(--nv-secondary-600));
    border-color: var(--nv-secondary);
    color: #231a05 !important;
}

.btn-outline-primary,
.btn-outline-success {
    border-color: rgba(19, 122, 69, .45);
    color: var(--nv-primary);
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    background: var(--nv-primary);
    border-color: var(--nv-primary);
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: var(--nv-border);
    color: var(--nv-muted);
}

.btn-outline-secondary:hover {
    background: var(--nv-soft);
    border-color: rgba(19, 122, 69, .25);
    color: var(--nv-primary);
}

.form-control,
.form-select {
    border-color: var(--nv-border);
    border-radius: var(--nv-radius);
    color: var(--nv-ink);
    background-color: #fff;
}

.form-control::placeholder {
    color: #8a9891;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(19, 122, 69, .55);
    box-shadow: 0 0 0 .2rem rgba(19, 122, 69, .12);
}

.card,
.modal-content,
.dropdown-menu,
.toast,
.popover {
    border-color: var(--nv-border);
    border-radius: var(--nv-radius-lg);
    box-shadow: var(--nv-shadow-sm);
}

.card {
    background: var(--nv-card);
}

.shadow,
.shadow-sm {
    box-shadow: var(--nv-shadow-sm) !important;
}

.rounded,
.rounded-2,
.rounded-3,
.rounded-4 {
    border-radius: var(--nv-radius) !important;
}

.rounded-pill {
    border-radius: 999px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.badge {
    font-weight: 600;
    letter-spacing: 0;
}

.table {
    color: var(--nv-ink);
    border-color: var(--nv-border);
}

.table thead th {
    background: var(--nv-soft);
    color: var(--nv-primary-700);
    font-weight: 700;
    border-bottom-color: var(--nv-border);
}

.table tbody tr:hover {
    background: rgba(19, 122, 69, .04);
}

.fixed-top {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(150%) blur(14px);
    box-shadow: 0 8px 28px rgba(23, 35, 31, .08);
}

.topbar {
    background: linear-gradient(90deg, var(--nv-primary-700), var(--nv-primary), #1c8f53) !important;
    border-radius: 0 0 var(--nv-radius) var(--nv-radius);
}

.navbar {
    min-height: 72px;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid rgba(220, 231, 223, .9);
}

.navbar .navbar-brand h1 {
    color: var(--nv-primary-700) !important;
    font-weight: 800;
}

.navbar .navbar-nav .nav-link {
    color: #31433b !important;
    border-radius: var(--nv-radius);
    font-weight: 600;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--nv-primary-700) !important;
    background: var(--nv-soft);
}

.navbar .user-btn,
.navbar .btn-search {
    border-color: rgba(19, 122, 69, .25) !important;
    background: #fff;
    color: var(--nv-primary-700);
}

.navbar .user-btn:hover,
.navbar .btn-search:hover {
    background: var(--nv-soft) !important;
    border-color: rgba(19, 122, 69, .45) !important;
}

.navbar .fa-shopping-bag {
    color: var(--nv-primary-700);
}

.dropdown-menu .dropdown-item {
    color: var(--nv-ink);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--nv-soft);
    color: var(--nv-primary-700);
}

.hero-header {
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 158, 11, .18), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(19, 122, 69, .16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f8f4 100%);
}

.page-header {
    box-shadow: inset 0 0 0 999px rgba(11, 81, 48, .56);
}

.nv-reasons-section,
.nv-featured-strip,
.nv-related-section,
.nv-bestseller-section,
.nv-cart-page,
.nv-checkout-page,
.nv-featured-section {
    background: linear-gradient(180deg, #fbfdf9 0%, var(--nv-subtle) 100%);
}

.nv-map-section {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .12), transparent 38%),
        linear-gradient(180deg, #fbfdf9 0%, #eef7ee 100%);
}

.nv-testimonial-section,
.home-journey-card {
    background: linear-gradient(135deg, #fff8e6 0%, #eef7ee 55%, #eff8ff 100%);
}

.nv-product-card,
.nv-featured-card,
.nv-featured-strip-card,
.nv-reason-card,
.nv-testimonial-card,
.nv-cart-card,
.nv-cart-summary,
.nv-checkout-summary,
.journey-next-region-card,
.nv-region-card,
.nv-product-mini {
    border: 1px solid var(--nv-border) !important;
    border-radius: var(--nv-radius-lg) !important;
    box-shadow: var(--nv-shadow-sm) !important;
    background: #fff;
}

.nv-product-card:hover,
.nv-featured-card:hover,
.nv-featured-strip-card:hover,
.nv-reason-card:hover,
.nv-testimonial-card:hover,
.nv-cart-card:hover,
.nv-cart-suggest-card:hover,
.journey-next-region-card:hover,
.nv-region-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nv-shadow) !important;
    border-color: rgba(19, 122, 69, .32) !important;
}

.nv-product-card__title,
.nv-featured-title,
.nv-featured-strip-title,
.nv-cart-suggested h5,
.nv-testimonial-card__text {
    color: var(--nv-ink);
}

.nv-product-card__desc,
.nv-featured-desc,
.nv-cart-desc {
    color: var(--nv-muted);
}

.nv-product-card__region,
.nv-featured-region-badge,
.nv-region-pill {
    background: rgba(11, 81, 48, .88);
    color: #fff;
}

.nv-chip {
    background: #fff;
    border-color: var(--nv-border);
    color: var(--nv-muted);
}

.nv-chip-active,
.nv-chip:hover {
    background: var(--nv-primary);
    border-color: var(--nv-primary);
    color: #fff;
}

.nv-filter-link {
    color: var(--nv-muted);
}

.nv-filter-link:hover {
    color: var(--nv-primary);
}

.nv-reason-icon-wrap,
.nv-cart-empty-icon,
.nv-checkout-empty-icon {
    background: linear-gradient(135deg, var(--nv-primary), #2da566);
    color: #fff;
    box-shadow: 0 10px 26px rgba(19, 122, 69, .28);
}

.nv-cart-empty-icon i,
.nv-checkout-empty-icon i {
    color: #fff;
}

.pagination a {
    border-color: var(--nv-border);
    color: var(--nv-ink);
    border-radius: var(--nv-radius);
}

.pagination a.active,
.pagination a:hover:not(.active) {
    background: var(--nv-primary);
    border-color: var(--nv-primary);
    color: #fff;
}

.journey-region-done,
.journey-header-badge {
    background: rgba(19, 122, 69, .1);
    color: var(--nv-primary);
    border-color: rgba(19, 122, 69, .28);
}

.journey-level-card {
    border-left-color: var(--nv-primary);
}

.footer,
.copyright {
    background: #13221c !important;
}

.footer .footer-item .btn-link,
.footer p,
.copyright,
.copyright span,
.copyright a {
    color: rgba(255, 255, 255, .72) !important;
}

.footer h1,
.footer h4,
.footer .text-light {
    color: #fff !important;
}

.footer .footer-item .btn-link:hover,
.copyright a:hover {
    color: #fbbf24 !important;
}

.back-to-top {
    background: var(--nv-primary) !important;
    border-color: var(--nv-primary) !important;
    color: #fff;
    box-shadow: 0 10px 24px rgba(19, 122, 69, .28);
}

.admin-shell,
.staff-shell {
    font-family: var(--nv-font);
    color: var(--nv-ink);
    background: #f5f8f4;
}

.admin-sidebar,
.staff-sidebar,
.admin-topbar {
    border-color: var(--nv-border);
    box-shadow: var(--nv-shadow-sm);
}

.admin-sidebar .brand h3 {
    color: var(--nv-primary-700);
    font-weight: 800;
}

.admin-sidebar .brand small,
.admin-topbar-sub,
.staff-sidebar .nav-title,
.admin-nav .nav-section {
    color: var(--nv-muted);
}

.admin-nav a,
.staff-sidebar a {
    color: var(--nv-ink);
    border-radius: var(--nv-radius);
    font-weight: 600;
}

.admin-nav a.active,
.admin-nav a:hover,
.staff-sidebar a.active,
.staff-sidebar a:hover {
    background: var(--nv-soft);
    color: var(--nv-primary-700);
}

.admin-nav a.active i,
.admin-nav a:hover i,
.staff-sidebar a.active i,
.staff-sidebar a:hover i {
    color: var(--nv-primary);
}

.staff-topbar {
    background: linear-gradient(135deg, var(--nv-primary-700), var(--nv-primary)) !important;
    color: #fff;
}

.admin-content .card,
.staff-content .card,
.admin-content .bg-white,
.staff-content .bg-white {
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-lg);
    box-shadow: var(--nv-shadow-sm);
}

.chatbox {
    font-family: var(--nv-font);
    border-radius: var(--nv-radius-lg);
}

.chatbox .chat-header,
.chatbox .msg.user .bubble,
.chatbox #chatSend.btn {
    background: linear-gradient(135deg, var(--nv-primary), var(--nv-primary-600));
}

.chatbox .msg.bot .bubble {
    color: var(--nv-ink);
    border-color: var(--nv-border);
}

@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        border-top: 1px solid var(--nv-border);
        padding: .75rem 0 1rem;
    }

    .navbar .nav-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: .5rem;
    }

    .admin-topbar,
    .staff-topbar {
        height: auto;
        min-height: 60px;
        gap: .75rem;
        flex-wrap: wrap;
        padding: .85rem 1rem;
    }

    .staff-main {
        grid-template-columns: 1fr;
    }

    .staff-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
        padding: .75rem;
        border-right: 0;
        border-bottom: 1px solid var(--nv-border);
    }

    .staff-sidebar .nav-title {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 96px;
    }

    .display-4,
    .display-5,
    .display-6 {
        font-size: 1.75rem;
        line-height: 1.22;
    }

    .btn {
        white-space: normal;
    }
}
