@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ==========================================================
   NICEFOOD.VN - PROFESSIONAL HEADER STYLES (2026 EDITION)
   ========================================================== */

   :root {
    --primary-color: #FF8618;
    --primary-gradient: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%);
    --secondary-color: #00B33F;
    --secondary-gradient: linear-gradient(135deg, #00B33F 0%, #008f31 100%);
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #fdfbf7;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
body
{
    font-family: "Nunito Sans",sans-serif;
}
/* --- 1. TOP BAR STYLING --- */
.top-bar {
    background: var(--secondary-gradient);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-left span, .top-bar-right a {
    transition: var(--transition-smooth);
}

.top-bar a:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(255, 134, 24, 0.4);
}

.top-bar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.top-bar .social-icons a:hover {
    background: #fff;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}


/* --- 2. MAIN HEADER & NAVBAR --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

/* Logo phong cách cao cấp */
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Menu Links */
.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 1.1rem !important;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hiệu ứng gạch chân thông minh (Slide-in underline) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 1.1rem;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2.2rem);
}


/* --- 3. DROPDOWN MENU XỊN XÒ --- */
.dropdown-menu {
    border: none !important;
    border-radius: 12px;
    padding: 0.75rem 0;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block; /* Mở khóa để làm hiệu ứng mượt với jQuery/CSS */
}

/* Kích hoạt dropdown khi hover trên Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.dropdown-item {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    transition: all 0.25s ease;
    position: relative;
}

.dropdown-item i {
    transition: transform 0.25s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 134, 24, 0.06);
    color: var(--primary-color);
    padding-left: 1.6rem;
}

.dropdown-item:hover i {
    transform: translateX(4px);
}


/* --- 4. SEARCH BUTTON & SEARCH BOX --- */
.search-toggle-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 134, 24, 0.08);
    color: var(--primary-color);
    border: none;
    transition: var(--transition-smooth);
}

.search-toggle-btn:hover {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(255, 134, 24, 0.35);
    transform: rotate(15deg) scale(1.05);
}




/* --- TỐI ƯU HÓA HIỆU ỨNG TÌM KIẾM MƯỢT MÀ KHÔNG BỊ KHỰNG --- */
.header-search-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    
    /* Cấu hình trạng thái ẩn ban đầu dùng Opacity & Transform (GPU Accelerated) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

/* Class kích hoạt trạng thái hiển thị mượt mà */
.header-search-box.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-box .form-control {
    border-radius: 30px 0 0 30px;
    padding-left: 1.5rem;
    background-color: var(--bg-light);
    border-color: #e5e5e5;
}

.header-search-box .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 134, 24, 0.1);
}

.header-search-box .btn {
    border-radius: 0 30px 30px 0;
    background: var(--primary-gradient);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.header-search-box .btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(255, 134, 24, 0.3);
}


/* --- 5. HIỆU ỨNG KHI CUỘN TRANG (STICKY HEADER SCROLLED) --- */
.header-scrolled {
/*    padding-top: 4px !important;*/
/*    padding-bottom: 4px !important;*/
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
background-color: rgba(255, 255, 255, 0.96) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

.header-scrolled .navbar-brand {
    font-size: 1.6rem !important;
}


/* --- 6. RESPONSIVE OPTIMIZATION --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: var(--bg-light);
        margin-top: 0.5rem;
    }
    
    .header-search-icon {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 1rem;
        justify-content: flex-start;
    }
}
.dropdown-toggle::after
{
    border:none;
}
.logo_main_custom img
{
    height: 60px;
}
.main-header .dropdown-menu
{
    padding:0;
    margin:0;
}
.main-header .dropdown-item
{
    padding: 0.6rem 1.3rem;
}

/* ==========================================================
   HERO SLIDER - OWL CAROUSEL CUSTOM STYLES (NICEFOOD.VN)
   ========================================================== */

/* Structure Container */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide-item {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Glassmorphism/Gradient Overlay nhẹ tạo chiều sâu cho Banner */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);*/
pointer-events: none;
}


/* --- 1. CUSTOM OWL NAV (MŨI TÊN ĐIỀU HƯỚNG) --- */
#hero-carousel .owl-nav {
    margin-top: 0 !important;
}

#hero-carousel .owl-nav button.owl-prev,
#hero-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #1a1a1a !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    outline: none !important;
    z-index: 10;
}

/* Vị trí ban đầu của 2 nút */
#hero-carousel .owl-nav button.owl-prev {
    left: 25px;
}

#hero-carousel .owl-nav button.owl-next {
    right: 25px;
}

/* Hiệu ứng Hover Nút Nav */
#hero-carousel .owl-nav button.owl-prev:hover,
#hero-carousel .owl-nav button.owl-next:hover {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.45);
    transform: translateY(-50%) scale(1.1);
}

/* Hiệu ứng nhích nhẹ khi Hover */
#hero-carousel .owl-nav button.owl-prev:hover {
    left: 20px;
}

#hero-carousel .owl-nav button.owl-next:hover {
    right: 20px;
}


/* --- 2. CUSTOM OWL DOTS (CHẤM ĐIỀU HƯỚNG SANG TRỌNG) --- */
#hero-carousel .owl-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

/* Định dạng từng Dot */
#hero-carousel .owl-dots .owl-dot {
    outline: none !important;
}

#hero-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    display: block;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Hover vào Dot */
#hero-carousel .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Dot đang Active (Chuyển thành viên thuốc dài chuẩn xu hướng 2026) */
#hero-carousel .owl-dots .owl-dot.active span {
    width: 32px;
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    box-shadow: 0 2px 10px rgba(255, 134, 24, 0.5);
}


/* --- 3. RESPONSIVE CUSTOMIZATION --- */
@media (max-width: 768px) {
    #hero-carousel .owl-dots {
        bottom: 12px;
        padding: 5px 12px;
    }

    #hero-carousel .owl-dots .owl-dot span {
        width: 8px;
        height: 8px;
    }

    #hero-carousel .owl-dots .owl-dot.active span {
        width: 24px;
    }
}

/*gioithieu*/
/* ==========================================================
   ABOUT SECTION - NICEFOOD.VN (CUSTOM STYLING)
   ========================================================== */

   .about-section {
    position: relative;
    background-color: #fdfbf7;
}

/* Cấu trúc ảnh tròn chồng nhau bên trái */
.about-image-wrapper {
    position: relative;
    padding-bottom: 30px;
    padding-right: 30px;
}

.about-main-img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #ffffff;
    transition: transform 0.5s ease;
}

.about-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-main-img:hover img {
    transform: scale(1.08);
}

/* Ảnh phụ nhỏ bo tròn góc trái dưới */
.about-sub-img {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.about-sub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-sub-img:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Badge số năm kinh nghiệm đè lên ảnh phụ (tùy chọn) */
.about-image-wrapper .badge-experience {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary-gradient, linear-gradient(135deg, #00B33F 0%, #008f31 100%));
    padding: 8px 12px;
    border-radius: 50px;
}

/* Nút bấm Về chúng tôi tùy chỉnh */
.btn-about-custom {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
}

.btn-about-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.4) !important;
    background: linear-gradient(135deg, #ff6a00 0%, #e07412 100%);
}

.btn-about-custom i {
    transition: transform 0.3s ease;
}

.btn-about-custom:hover i {
    transform: translateX(5px);
}

/* Khối thẻ màu bên phải (Feature Cards) */
.feature-box-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.feature-box-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Icon mờ chìm làm hiệu ứng trang trí nền trong khối màu */
.feature-box-card .card-bg-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.feature-box-card:hover .card-bg-icon {
    transform: scale(1.1) rotate(-10deg);
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 991.98px) {
    .about-main-img {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    .about-sub-img {
        width: 120px;
        height: 120px;
        left: 30px;
    }
    .about-image-wrapper {
        padding-right: 0;
    }
}

/*san pham noi bat*/


/* ==========================================================
   FEATURED PRODUCTS SECTION - NICEFOOD.VN
   ========================================================== */

/* Tabs danh mục cấp 1 */
.product-category-tabs .nav-link {
    color: var(--text-dark, #1a1a1a);
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.95rem;
}

.product-category-tabs .nav-link:hover {
    color: #FF8618;
    background-color: rgba(255, 134, 24, 0.08);
    border-color: #FF8618;
}

.product-category-tabs .nav-link.active {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(255, 134, 24, 0.35);
}

/* Thẻ sản phẩm (Product Card) */
.product-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    border: 1px solid #f0f0f0 !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 134, 24, 0.3) !important;
}

/* Hình ảnh sản phẩm và hiệu ứng zoom */
.product-img-wrapper {
    height: 220px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* Overlay action buttons khi hover ảnh sản phẩm */
.product-action-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    transition: bottom 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
}

.product-card:hover .product-action-overlay {
    bottom: 0;
}

.product-action-overlay .btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.product-action-overlay .btn:hover {
    transform: scale(1.1);
    background-color: #ffffff !important;
}

/* Tiêu đề sản phẩm */
.product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.6em;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #FF8618 !important;
}

/* Nút liên hệ sản phẩm */
.btn-contact-product {
    border-color: #FF8618;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-contact-product:hover {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 15px rgba(255, 134, 24, 0.3);
}

.btn-contact-product:hover i {
    color: #ffffff !important;
}

/* Nút Xem tất cả danh mục phía dưới */
.btn-all-products {
    background: linear-gradient(135deg, #00B33F 0%, #008f31 100%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-all-products:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 179, 63, 0.4) !important;
    background: linear-gradient(135deg, #008f31 0%, #006c24 100%);
}

.btn-all-products i {
    transition: transform 0.3s ease;
}

.btn-all-products:hover i {
    transform: translateX(5px);
}
/* ==========================================================
   FEATURED PRODUCTS - PATTERNS & AJAX LOADING STYLES
   ========================================================== */

   .featured-products-section {
    background-color: #faf8f5; /* Nền kem nhẹ tôn sản phẩm */
}

/* Họa tiết hoa văn nền chìm trang trí */
.bg-pattern-decoration {
    position: absolute;
    width: 320px;
    height: 320px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05; /* Mờ nhẹ sang trọng */
    pointer-events: none;
    z-index: 1;
}

.bg-pattern-decoration.pattern-left {
    top: 5%;
    left: -80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2 #FF8618' d='M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.3-208-208S141.3 48 256 48s208 93.3 208 208-93.3 208-208 208z'/%3E%3C/svg%3E");
    transform: rotate(-15deg);
}

.bg-pattern-decoration.pattern-right {
    bottom: 2%;
    right: -80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2300B33F' d='M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 464c-114.7 0-208-93.3-208-208S141.3 48 256 48s208 93.3 208 208-93.3 208-208 208z'/%3E%3C/svg%3E");
    transform: rotate(25deg);
}

/* Khối Loading Ajax Overlay */
.product-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

/* Hiệu ứng Fade-in mượt cho sản phẩm sau khi load Ajax xong */
.ajax-fade-in {
    animation: ajaxFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes ajaxFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*slide_banner*/
/* ==========================================================
   NF-HERO BANNER SLIDER STYLES (UNIQUE PREFIX)
   ========================================================== */

   .nf-hero-slider-section {
    width: 100%;
    position: relative;
    background-color: #1a1a1a;
}

.nf-hero-item {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.nf-hero-img {
    width: 100%;
    height: 380px; /* Chiều cao banner, tùy chỉnh theo ý muốn */
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hiệu ứng Zoom-in nhẹ (Ken Burns Effect) khi banner đang hiển thị */
.owl-item.active .nf-hero-img {
    transform: scale(1.05);
}

/* Lớp phủ gradient nghệ thuật tăng chiều sâu */
.nf-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* Responsive tối ưu trên các thiết bị */
@media (max-width: 991.98px) {
    .nf-hero-img {
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    .nf-hero-img {
        height: 250px;
    }
}

/*danh giá*/
/* ==========================================================
   TESTIMONIAL SECTION - NICEFOOD.VN (PARALLAX & FIXED BG)
   ========================================================== */

   .nf-testimonial-section {
    position: relative;
    /* Hiệu ứng background fixed attachment với hình nền banner */
    /* Thay đường dẫn ảnh nền của bạn ở đây */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Lớp phủ màu tối sang trọng để làm nổi bật khung đánh giá */
.nf-testimonial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(30, 30, 30, 0.8) 100%);
    pointer-events: none;
}

/* Thẻ card đánh giá khách hàng (Glassmorphism & Bo góc cao cấp) */
.nf-testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 15px 5px; /* Tạo khoảng cách an toàn cho bóng đổ (shadow) */
}

.nf-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    background: #ffffff;
}

/* Tùy chỉnh Owl Dots cho phần Testimonial bên dưới */
#nfTestimonialCarousel .owl-dots {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

#nfTestimonialCarousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4) !important;
    border-radius: 20px !important;
    display: block;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#nfTestimonialCarousel .owl-dots .owl-dot:hover span {
    background: rgba(255, 255, 255, 0.8) !important;
}

#nfTestimonialCarousel .owl-dots .owl-dot.active span {
    width: 32px;
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    box-shadow: 0 2px 10px rgba(255, 134, 24, 0.5);
}

/*danh gia khach hang*/
/* ==========================================================
   QUOTE FORM SECTION - EXPANDED & PREMIUM BOUTIQUE STYLE
   ========================================================== */

/* 1. Mở rộng khung container & bổ sung khoảng thở padding */
.nf-quote-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    background: linear-gradient(135deg, #fdfbf7 0%, #f4ede2 100%);
}

/* Biến khung bảng thành dạng Card rộng, nổi khối 3D nhẹ */
.nf-quote-wrapper {
    background: #ffffff;
    border-radius: 24px !important;
    padding: 3.5rem 3rem !important; /* Tăng padding toàn bộ form */
    border: 1px solid rgba(255, 134, 24, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(255, 134, 24, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nf-quote-wrapper:hover {
    box-shadow: 0 35px 70px rgba(255, 134, 24, 0.15) !important;
    transform: translateY(-3px);
}

/* Dải màu thương hiệu phía trên dày dặn hơn */
.nf-quote-badge-top {
    height: 8px !important;
}

/* 2. Tăng kích thước tiêu đề & các nội dung giới thiệu */
.nf-quote-wrapper h3 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px;
}

.nf-quote-wrapper p {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}

/* 3. Mở rộng kích thước Ô Nhập Liệu (Input / Select) */
.nf-quote-section .form-floating {
    margin-bottom: 0.5rem;
}

.nf-quote-section .form-control,
.nf-quote-section .form-select {
    height: 68px !important; /* Tăng chiều cao của ô nhập dữ liệu */
    font-size: 1.05rem !important;
    font-weight: 500;
    padding-left: 1.25rem !important;
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0;
    background-color: #fafbfc;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Tùy chỉnh nhãn floating text to rõ hơn */
.nf-quote-section .form-floating > label {
    padding-left: 1.25rem !important;
    font-size: 0.95rem;
    color: #64748b;
}

/* Hiệu ứng khi Click vào ô Input (Focus Effect) */
.nf-quote-section .form-control:focus,
.nf-quote-section .form-select:focus {
    background-color: #ffffff !important;
    border-color: #FF8618 !important;
    box-shadow: 0 0 0 5px rgba(255, 134, 24, 0.15) !important;
}

/* 4. Tùy chỉnh Nút Gửi Báo Giá to hoành tráng & hiệu ứng thu hút */
.nf-btn-submit {
    height: 65px;
    font-size: 1.15rem !important;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.35) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.nf-btn-submit:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #e07412 100%) !important;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(255, 134, 24, 0.45) !important;
}

.nf-btn-submit i {
    transition: transform 0.3s ease;
}

.nf-btn-submit:hover i {
    transform: translateX(6px);
}

/* 5. Responsive tối ưu cho các thiết bị di động */
@media (max-width: 991.98px) {
    .nf-quote-wrapper {
        padding: 2.5rem 1.5rem !important;
    }
    .nf-quote-wrapper h3 {
        font-size: 1.75rem !important;
    }
    .nf-quote-section .form-control,
    .nf-quote-section .form-select {
        height: 60px !important;
    }
}
/* Custom CSS riêng cho ô Textarea trong Quote Form */
.nf-quote-section textarea.form-control {
    height: 130px !important; /* Độ cao phù hợp để nhập nội dung dài */
    padding-top: 1.625rem !important; /* Cân chỉnh lại vị trí chữ khi gõ */
    line-height: 1.6 !important;
    border-radius: 16px !important;
    resize: none; /* Khóa không cho kéo giãn khung làm vỡ giao diện */
}

/* Đảm bảo Label của Textarea nằm chuẩn trên cùng */
.nf-quote-section .form-floating > textarea:focus ~ label,
.nf-quote-section .form-floating > textarea:not(:placeholder-shown) ~ label {
    opacity: 0.85;
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/*tin tức*/
/* ==========================================================
   FEATURED NEWS SECTION - NICEFOOD.VN (MODERN GRID STYLING)
   ========================================================== */

/* Thẻ tin tức chính */
.nf-news-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-news-card {
    min-height: 440px;
    border: none;
}

.sub-news-card {
    border: 1px solid #f0f0f0 !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sub-news-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 134, 24, 0.3) !important;
}

/* Hiệu ứng Zoom ảnh mượt mà */
.nf-news-img-wrapper {
    position: relative;
    overflow: hidden;
}

.nf-news-img {
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nf-news-card:hover .nf-news-img {
    transform: scale(1.08);
}

/* Lớp phủ Gradient mờ đè lên bài viết tiêu điểm */
.nf-news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.hero-news-content {
    z-index: 2;
}

/* Badge Ngày Tháng kính mờ (Glassmorphism) */
.nf-news-date-badge {
    background: rgba(255, 134, 24, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 15px rgba(255, 134, 24, 0.3);
    z-index: 2;
    min-width: 60px;
}

.leading-none {
    line-height: 1;
}

/* Hiệu ứng đổi màu Tiêu đề khi hover */
.nf-news-title {
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-news-card:hover .nf-news-title,
.sub-news-card:hover .nf-news-title {
    color: #FF8618 !important;
}

/* Link Đọc tiếp */
.read-more-link i {
    transition: transform 0.3s ease;
}

.sub-news-card:hover .read-more-link i {
    transform: translateX(5px);
}

/* Nút Xem tất cả bài viết */
.nf-btn-view-all {
    color: #FF8618;
    border-color: #FF8618;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nf-btn-view-all:hover {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 134, 24, 0.35);
    transform: translateY(-2px);
}

.nf-btn-view-all i {
    transition: transform 0.3s ease;
}

.nf-btn-view-all:hover i {
    transform: translateX(4px);
}

/* Cắt dòng văn bản ngắn gọn */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/*tin tức*/

/*footer*/
/* ==========================================================
   FIX FOOTER - HIỂN THỊ CHỮ RÕ NÉT & BẬT ẢNH NỀN
   ========================================================== */

   .nf-footer-light {
    position: relative;
    border-top: 4px solid #FF8618;
    background-color: #f8f5f0; /* Màu nền kem ấm */
    /* Ảnh nền thớt gỗ / thực phẩm chìm */
    background-image: url('images/bg-footer-light.jpg'); 
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: #2b2b2b; /* Chữ màu tối đầm nét */

    background-attachment: fixed;
    background-position: center;

}

/* Lớp phủ mờ nhẹ giúp ảnh nền lắng xuống nhưng KHÔNG đè đục chữ */
.nf-footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 251, 247, 0.6); /* Chỉ mờ 82% màu kem */
    pointer-events: none;
    z-index: 1; /* Nằm dưới nội dung chữ */
}

/* ÉP CONTAINER BẬT LÊN TRÊN LỚP OVERLAY (QUAN TRỌNG) */
.nf-footer-light .container,
.nf-footer-copyright {
    position: relative !important;
    z-index: 2 !important; /* Đưa toàn bộ nội dung lên trên lớp mờ */
}

/* ----------------------------------------------------------
   ĐỊNH DẠNG MÀU CHỮ SẮC NÉT (ĐỘ TƯƠNG PHẢN CAO)
   ---------------------------------------------------------- */

/* Tiêu đề các cột Footer */
.widget-title-light {
    color: #FF8618 !important; /* Cam thương hiệu nổi bật */
    font-size: 1.15rem;
    font-weight: 700;
}

.widget-title-light::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 3px;
    background: #00B33F;
    border-radius: 2px;
}

/* Chữ mô tả giới thiệu */
.nf-footer-light p,
.nf-contact-info span {
    color: #4a5568 !important; /* Màu xám đậm rất dễ đọc */
    font-weight: 500;
}

/* Các đường link chính sách & sản phẩm */
.nf-footer-links-light li {
    margin-bottom: 0.6rem;
}

.nf-footer-links-light li a {
    color: #2d3748 !important; /* Chữ xám đen đậm nét */
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.nf-footer-links-light li a .icon-dot {
    font-size: 0.45rem;
    color: #FF8618;
    transition: transform 0.3s ease;
}

.nf-footer-links-light li a:hover {
    color: #FF8618 !important; /* Đổi sang màu cam khi hover */
    transform: translateX(5px);
}

.nf-footer-links-light li a:hover .icon-dot {
    color: #00B33F;
    transform: scale(1.4);
}

/* Nút mạng xã hội (Nền cam chữ trắng rõ ràng) */
.btn-social-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF8618 !important;
    color: #ffffff !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 134, 24, 0.3);
}

.btn-social-icon:hover {
    background: #00B33F !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 179, 63, 0.4);
}

/* Dòng Copyright dưới cùng */
.nf-footer-copyright {
    background-color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
    color: #4a5568 !important;
    font-weight: 500;
}

.logo_fter img
{
    height: 50px;
}
.nf-social-buttons img {
    height: 30px;
    border-radius: 25px;
}
/* ==========================================================
   BACK TO TOP BUTTON - NICEFOOD.VN
   ========================================================== */

   .nf-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.4);
}

/* Hiệu ứng khi hiển thị (được thêm class 'show' qua JS) */
.nf-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hiệu ứng Hover xịn xò */
.nf-back-to-top:hover {
    background: linear-gradient(135deg, #00B33F 0%, #008f31 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 179, 63, 0.45);
    color: #ffffff;
}

.nf-back-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

/* Mũi tên nhích nhẹ khi hover */
.nf-back-to-top i {
    transition: transform 0.3s ease;
}

.nf-back-to-top:hover i {
    transform: translateY(-3px);
}
/*footer*/
/*Trang Gioi thieu*/
/* ==========================================================
   BREADCRUMB SECTION STYLING (CHUYÊN NGHIỆP & XỊN XÒ)
   ========================================================== */

   .nf-breadcrumb-section {
    position: relative;
    /* Ảnh nền banner trang giới thiệu (thay đường dẫn ảnh của bạn vào đây) */
    background-image: url('images/bg-breadcrumb-about.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-bottom: 4px solid #FF8618;
}

/* Lớp phủ tối màu nghệ thuật cho Breadcrumb */
.nf-breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85) 0%, rgba(30, 30, 30, 0.75) 100%);
    pointer-events: none;
}

/* Tùy chỉnh định dạng Breadcrumb Links */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Hiệu ứng tương tác thẻ Card giới thiệu */
.nf-about-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nf-about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Hiệu ứng ô cam kết giá trị vàng */
.nf-feature-box {
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.nf-feature-box:hover {
    background-color: #ffffff !important;
    border-color: rgba(255, 134, 24, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

/*list danh sách*/
/* ==========================================================
   1. BANNER TRANG CON & BREADCRUMB
   ========================================================== */

   .box-bg-top.products_index {
    position: relative;
    background-color: #1a1a1a;
    border-bottom: 4px solid #FF8618;
    overflow: hidden;
}

.box-bg-top .box-bg-title {
    position: relative;
    padding: 85px 0 65px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Lớp phủ Gradient tối màu giúp chữ nổi bật */
.box-bg-top .box-bg-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(15 15 15 / 0%) 100%);
    pointer-events: none;
}

.box-bg-top .title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.box-bg-top .header {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Hộp Breadcrumb phong cách kính mờ (Glassmorphism) */
.breadcrumb-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-group.btn-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-group.btn-breadcrumb a.btn {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-group.btn-breadcrumb a.btn:hover {
    color: #FF8618 !important;
}

.btn-group.btn-breadcrumb .btn-next {
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0 4px !important;
}





/* ==========================================================
   3. PHÂN TRANG (PAGING STYLING)
   ========================================================== */

   .paging_chung {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.paging_chung a, 
.paging_chung span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: #ffffff;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.paging_chung a:hover {
    background: #FF8618;
    color: #ffffff;
    border-color: #FF8618;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 134, 24, 0.3);
}

/* Trang hiện tại (Active Page) */
.paging_chung span.active,
.paging_chung .current {
    background: linear-gradient(135deg, #00B33F 0%, #008f31 100%);
    color: #ffffff !important;
    border-color: #00B33F;
    box-shadow: 0 6px 15px rgba(0, 179, 63, 0.3);
}


/* ==========================================================
   4. RESPONSIVE CHO DI ĐỘNG
   ========================================================== */

   @media (max-width: 767.98px) {
    .box-bg-top .box-bg-title {
        padding: 55px 0 45px;
    }
    .box-bg-top .header {
        font-size: 1.8rem;
    }
    .product-item .title {
        padding: 15px 12px;
    }
    .product-item .heading {
        font-size: 0.95rem;
    }
}
/*list danh sách*/
/*css chi tiêt*/
/* ==========================================================
   PRODUCT DETAIL PAGE STYLING - NICEFOOD.VN
   ========================================================== */

/* Khung bọc toàn bộ trang chi tiết sản phẩm */
.products-detail {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    margin-bottom: 50px;
}

/* 1. Slider Ảnh & Gallery */
.box-image-featured {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fcfcfc;
    margin-bottom: 15px;
    position: relative;
}

.product-image-feature {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-box-slider {
    position: relative;
}

#list-product-thumb .product-thumb {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
    background: #f8f8f8;
}

#list-product-thumb .product-thumb img {
    width: 100%;
    height: 75px;
    object-fit: cover;
}

#list-product-thumb .product-thumb.zoomGalleryActive,
#list-product-thumb .product-thumb:hover {
    border-color: #FF8618;
    box-shadow: 0 4px 12px rgba(255, 134, 24, 0.25);
}


/* 2. Tiêu đề & Cụm Giá / Flash Sale */
.product-detail__sticky .title-head {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Flash Sale Box */
.flash_sale_detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 20px;
    gap: 10px;
}

.flash_sale_detail_title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.price_discount {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-detail-price-hidden {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.price_fs {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

/* Khung giá thông thường */
.price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #fdfbf7;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #00B33F;
}

.price-detail .price span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #00B33F;
}

.price-detail .price-sale del {
    font-size: 1.05rem;
    color: #a0aec0;
}

.price-percent span {
    background: rgba(255, 134, 24, 0.15);
    color: #FF8618;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}


/* 3. Tùy chọn Dung lượng & Màu sắc (Swatches) */
.product-cart-options {
    margin-bottom: 20px;
}

.product-cart-options .title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-cart-options .options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-cart-options label {
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    padding: 8px 14px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.product-cart-options label.active,
.product-cart-options label:hover {
    border-color: #FF8618;
    background: rgba(255, 134, 24, 0.03);
    box-shadow: 0 4px 12px rgba(255, 134, 24, 0.15);
}

.product-cart-options label img.hidden {
    display: none;
}

.name_color span {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}


/* 4. Bộ chọn số lượng & Nút Thêm vào giỏ / Mua ngay */
.product-detail-cart {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.addtocart_quantity {
    margin-bottom: 15px;
    display: inline-block;
}

.spinner {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    width: 130px;
    height: 44px;
}

.quantity-selector {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
}

.quantity-btn {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #e2e8f0;
}

.quantity-btn.minus::after {
    content: "-";
    font-size: 1.1rem;
}

.quantity-btn.plus::after {
    content: "+";
    font-size: 1.1rem;
}

/* Nút bấm giỏ hàng xịn xò */
.addtocart_button {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button_cart {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    transition: all 0.35s ease !important;
    box-shadow: 0 6px 18px rgba(255, 134, 24, 0.3) !important;
}

.button_cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.45) !important;
}

.button_cart_now {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, #00B33F 0%, #008f31 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    transition: all 0.35s ease !important;
    box-shadow: 0 6px 18px rgba(0, 179, 63, 0.3) !important;
}

.button_cart_now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 179, 63, 0.45) !important;
}

.button_cart__heading {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.button_cart__desc {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Đoạn mô tả ngắn */
.description {
    margin-top: 20px;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    background: #fdfbf7;
    padding: 15px;
    border-radius: 10px;
}


/* 5. Tab Nội dung Chi Tiết */
.tab-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.nav-tabs.nav-pills .nav-link {
    background: #f1f3f5;
    color: #4a5568;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.nav-tabs.nav-pills .nav-link.active {
    background: #FF8618 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 134, 24, 0.3);
}

.tab-content {
    padding-top: 20px;
    color: #2d3748;
    line-height: 1.8;
}


/* 6. Sidebar Sản Phẩm Liên Quan */
.sidebar .widget_product {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    position: sticky;
    z-index: 99;
    top: 105px;
}

.header-title-style-5 .header {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF8618;
}

.product-slider-vertical .item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eaeaea;
    transition: transform 0.3s ease;
}

.product-slider-vertical .item:last-child {
    border-bottom: none;
}

.product-slider-vertical .item:hover {
    transform: translateX(4px);
}

.product-slider-vertical .img {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: #f8f8f8;
}

.product-slider-vertical .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-slider-vertical .item:hover .img img {
    transform: scale(1.1);
}

.product-slider-vertical .info h3 {
    font-size: 0.95rem;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.product-slider-vertical .info h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-slider-vertical .item:hover .info h3 a {
    color: #FF8618;
}

.product-slider-vertical .price.view_price {
    margin: 0;
    font-size: 0.9rem;
}

.product-slider-vertical .price-new {
    color: #00B33F;
    font-weight: 700;
    margin-right: 8px;
}

.product-slider-vertical .price-old {
    color: #a0aec0;
    font-size: 0.85srem;
}
/* Tối ưu riêng tiêu đề sản phẩm ở banner chi tiết nếu tên dài */
.box-bg-top .header {
    font-size: 2.1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .box-bg-top .header {
        font-size: 1.6rem;
    }
}
.product-detail-slider-horizontal {
    margin-bottom: 20px;
}

/* ==========================================================
   NÚT LIÊN HỆ NGAY - TRANG CHI TIẾT SẢN PHẨM
   ========================================================== */

   .btn-contact-now {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FF8618 0%, #00B33F 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    color: #ffffff !important;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 6px 20px rgba(255, 134, 24, 0.3) !important;
}

.btn-contact-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 179, 63, 0.45) !important;
    color: #ffffff !important;
}

.btn-contact-now .button_cart__heading {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-contact-now .button_cart__desc {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}


/*css chi tiêt*/
/*tintuc*/
/* ==========================================================
   CSS CHO LƯỚI DANH SÁCH TIN TỨC - NICEFOOD.VN
   ========================================================== */

   .khungtintuc1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
/*    margin-top: 10px;*/
}

/* Thẻ bài viết tin tức */
.itemtintuc {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.itemtintuc:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 134, 24, 0.15) !important;
    border-color: rgba(255, 134, 24, 0.3);
}

/* Khung hình ảnh tin tức cố định tỉ lệ 4:3 đồng đều */
.hinhtintuc {
    position: relative;
    width: 100%;
    padding-top: 68%; /* Tỉ lệ hiển thị ảnh */
    overflow: hidden;
    background-color: #f8f8f8;
}

.hinhtintuc img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.itemtintuc:hover .hinhtintuc img {
    transform: scale(1.08); /* Hiệu ứng zoom ảnh mượt mà khi hover */
}

/* Nội dung mô tả bài viết */
.motatintuc {
    padding: 20px 18px 10px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.motatintuc h3 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.motatintuc h3 a {
    color: #2c3e50;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn tối đa 2 dòng tiêu đề */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.itemtintuc:hover .motatintuc h3 a {
    color: #FF8618;
}

.mota-ngan {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn mô tả ngắn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Nút chi tiết bài viết */
.xemthemtintuc {
    padding: 0 18px 22px 18px;
}

.xemthemtintuc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00B33F; /* Xanh lá thương hiệu */
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.xemthemtintuc a i {
    transition: transform 0.3s ease;
}

.itemtintuc:hover .xemthemtintuc a {
    color: #FF8618; /* Đổi sang màu cam khi hover */
}

.itemtintuc:hover .xemthemtintuc a i {
    transform: translateX(5px);
}

/* Khung phân trang */
.khung_ptrangs {
    margin-top: 45px;
}


/* ==========================================================
   RESPONSIVE CHO DI ĐỘNG & MÁY TÍNH BẢNG
   ========================================================== */

   @media (max-width: 991.98px) {
    .khungtintuc1 {
        grid-template-columns: repeat(2, 1fr); /* Máy tính bảng hiển thị 2 cột */
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .khungtintuc1 {
        grid-template-columns: 1fr; /* Điện thoại hiển thị 1 cột */
        gap: 15px;
    }
}
/* ==========================================================
   ĐỒNG BỘ BO TRÒN GÓC CHO TRANG CHI TIẾT BÀI VIẾT
   ========================================================== */

/* Khung chứa nội dung chính bài viết (Bo tròn 20px như chi tiết sản phẩm) */
.news-detail-content-box {
    background: #ffffff;
    border-radius: 20px !important;
    padding: 35px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

/* Khung Sidebar tin tức liên quan bên phải */
.sidebar-news {
    background: #ffffff;
    border-radius: 20px !important;
    padding: 25px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    position: sticky;
    top: 100px;
    z-index: 99;

}

/* Bo tròn các hình ảnh thumb nhỏ trong danh sách liên quan */
.related-item .related-img {
    border-radius: 12px !important;
    overflow: hidden;
}


/*tintuc*/
/*chinhsach*/
/* ==========================================================
   TRANG CHÍNH SÁCH - GIAO DIỆN CHUYÊN NGHIỆP
   ========================================================== */

.policy-content-box {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.sidebar-policy {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    position: sticky;
    top: 90px;
}

/* Danh sách menu chính sách bên cạnh */
.nf-policy-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nf-policy-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fdfbf7;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.policy-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 134, 24, 0.1);
    color: #FF8618;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.policy-text {
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Hiệu ứng tương tác Hover */
.nf-policy-links li a:hover {
    background: #ffffff;
    border-color: rgba(255, 134, 24, 0.3);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 134, 24, 0.1);
}

.nf-policy-links li a:hover .policy-icon {
    background: linear-gradient(135deg, #FF8618 0%, #00B33F 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(5deg);
}

.nf-policy-links li a:hover .policy-text {
    color: #FF8618;
}

/* Định dạng nội dung chi tiết chính sách bên trong */
.policy-main-editor {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
}

.policy-main-editor img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 15px auto;
}

/*chinhsach*/
/*footer*/  
/* ==========================================================
   TRANG LIÊN HỆ (CONTACT PAGE) - NICEFOOD.VN
   ========================================================== */

/* Thẻ thông tin công ty bên trái */
.contact-info-card {
    background: #ffffff;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 134, 24, 0.1);
    color: #FF8618;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.35s ease;
}

.contact-item:hover .contact-icon-box {
    background: linear-gradient(135deg, #FF8618 0%, #00B33F 100%);
    color: #ffffff !important;
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 15px rgba(255, 134, 24, 0.25);
}

/* Thẻ Form gửi thông tin bên phải */
.contact-form-card {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

.contact-form-card .form-control {
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: #FF8618;
    box-shadow: 0 0 0 4px rgba(255, 134, 24, 0.12);
}

.contact-form-card .form-floating label {
    font-size: 0.9rem;
    color: #718096;
}

/* Nút Gửi liên hệ */
.btn-send-contact {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 6px 20px rgba(255, 134, 24, 0.3) !important;
}

.btn-send-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.45) !important;
    color: #ffffff !important;
}

/* Khung bản đồ Google Maps */
.map-container-box {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #ffffff;
}

.map-iframe-wrapper iframe {
    width: 100% !important;
    height: 420px !important;
    display: block;
    border: none;
}
/*footer*/
.paging_chung span {
    background: #ff7c0f;
    color: #fff;
    border-color: #ff7c0f;
}  

/*trang tim kiem*/
/* ==========================================================
   TRANG KẾT QUẢ TÌM KIẾM - NICEFOOD.VN
   ========================================================== */

.search-result-bar {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Lưới sản phẩm tương thích chuẩn */
.khungsanpham {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.itemsanpham {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.itemsanpham:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(255, 134, 24, 0.15) !important;
    border-color: rgba(255, 134, 24, 0.3) !important;
}

/* Giới hạn tiêu đề sản phẩm tối đa 2 dòng */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Khung không tìm thấy kết quả */
.no-result-box {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Responsive cho thiết bị di động & máy tính bảng */
@media (max-width: 1199.98px) {
    .khungsanpham {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .khungsanpham {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 575.98px) {
    .khungsanpham {
        grid-template-columns: 1fr;
    }
}
.hinhanhsanpham  img {
    object-fit: cover;
}

/*trang tim kiem*/

/*bo ssung bbang bao gia*/
/* Tùy chỉnh nút gửi yêu cầu báo giá */
.nf-btn-submit {
    background: linear-gradient(135deg, #FF8618 0%, #ff6a00 100%) !important;
    border: none !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 6px 20px rgba(255, 134, 24, 0.3) !important;
}

.nf-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 134, 24, 0.45) !important;
}
/*bo ssung bbang bao gia*/