﻿.bg-green-primary {
    background-color: #3b6e22 !important;
}

:root {
    --text-main-bg: #d35400;
    --text-main: #3e6807;
    --bg-main: #3e6807;
    --color-button: #e67e22;
}

a, .nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

    a:hover {
        color: var(--color-button);
    }

.wrapper {
    font-family: "Noto Sans", sans-serif;
}

.b-12-r {
    border-radius: 12px;
}

.text-primary {
    color: var(--text-main) !important;
}

.text-price {
    color: var(--text-main-bg);
}

.product-card, .card.h-100 {
    padding: 0 12px;
}

.object-fit-cover {
    object-fit: cover;
}

.header-bg-image {
    /*    background-image: url('../images/bg-header.webp');*/
    background-color: #5a8e1f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

    /* Style for sticky header when scrolled */
    .header-bg-image.scrolled {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

.badge-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
}

    .search-box .form-control {
        border-radius: 50px;
        padding-right: 40px;
        height: 40px;
        border: none;
    }

    .search-box .search-btn {
        position: absolute;
        right: 5px;
        top: 0;
        bottom: 0;
        background: transparent;
        border: none;
        color: #555;
        cursor: pointer;
    }

.header-icons {
    align-items: center;
}

    .header-icons a {
        color: white;
        text-decoration: none;
        margin-left: 15px;
        display: flex;
        align-items: center;
        flex-direction: column;
        font-size: 0.8rem;
    }

        .header-icons a i {
            font-size: 1.3rem;
            margin-bottom: 2px;
        }

    .header-icons .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ff7700;
    }

.main-nav {
    padding: 0;
}

    .main-nav .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 16px;
        color: white;
        position: relative;
        transition: all 0.3s ease;
        text-transform: capitalize;
    }

        /* Hiệu ứng thanh trắng khi hover */
        .main-nav .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 15%;
            width: 70%;
            height: 2px;
            background-color: white;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .main-nav .navbar-nav .nav-link:hover::after {
            transform: scaleX(1);
        }
/* Icons right header - ẩn trên mobile */
.icons-right-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #3E6931;
    padding: 10px 0;
}

@media (max-width: 767px) {
    .icons-right-container {
        display: none;
    }
}

/* Estilos para las categorías destacadas */
.section_cate .slick-slide {
    margin: 0 10px;
}

.section_cate .slick-prev,
.section_cate .slick-next {
    background: #3E6931;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    z-index: 1;
}

    .section_cate .slick-prev:before,
    .section_cate .slick-next:before {
        font-size: 20px;
        opacity: 1;
    }

.section_cate .slick-prev {
    left: 10px;
}

.section_cate .slick-next {
    right: 10px;
}

.section_cate .icon-box-img {
    width: 100px;
    margin: 0 auto;
}

.section_cate h3 {
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}

.section-title-main-link {
    display: flex;
    align-items: center;
}

    .section-title-main-link img {
        margin-right: 10px;
        width: 24px;
        height: 24px;
    }

/* Responsive styles */
@media (max-width: 767px) {
    .section_cate .icon-box-img {
        width: 80px;
    }
}

/* CSS cho section sản phẩm mới */
.section-title-main-link img {
    margin-right: 10px;
    vertical-align: middle;
}

.product-card, .card.h-100 {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .product-card:hover, .card.h-100:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .product-card .card-title, .card.h-100 .product-title {
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.product-actions {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions, .card.h-100:hover .product-actions {
    opacity: 1;
}

.products-slider .slick-prev,
.products-slider .slick-next {
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    z-index: 10;
}

    .products-slider .slick-prev:hover,
    .products-slider .slick-next:hover {
        background: rgba(0,0,0,0.5);
    }

    .products-slider .slick-prev:before,
    .products-slider .slick-next:before {
        font-size: 20px;
    }

.products-slider .slick-prev {
    left: -10px;
}

.products-slider .slick-next {
    right: -10px;
}

@media (max-width: 767px) {
    .product-card .card-title, .card.h-100 .product-title {
        height: 46px;
    }
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: white;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.product-card:hover .wishlist-btn,
.card.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-btn:hover {
    background-color: #dc3545;
    color: white;
}

.wishlist-text {
    position: absolute;
    top: 0;
    right: 45px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wishlist-btn:hover .wishlist-text {
    opacity: 1;
    visibility: visible;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.mega-menu {
    position: absolute;
    left: 40%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: 90%;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    display: none;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    border-top: 3px solid #3E6931;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* News mega menu specific styles */
.mega-menu-news {
    position: absolute;
    left: 40%;
    transform: translateX(-50%);
    width: 200px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    overflow: hidden;
}

.nav-item.has-mega-menu {
    position: static;
}

    .nav-item.has-mega-menu:hover .mega-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-item.has-mega-menu:hover .mega-menu-news {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

.mega-menu-column {
    width: 20%;
    float: left;
    padding: 0 15px;
}



.mega-menu-title {
    color: #3E6931;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* News menu header styles */
.news-menu-header {
    background: #28a745;
    padding: 0;
}

.news-header-item {
    display: inline-block;
    width: 100%;
}

.news-header-link {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

    .news-header-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        text-decoration: none;
    }

/* News menu content styles */
.news-menu-content {
    padding: 15px 20px;
}

.news-category-link {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

    .news-category-link:hover {
        color: #28a745;
        text-decoration: none;
        padding-left: 5px;
    }

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

    .mega-menu-list li {
        margin-bottom: 8px;
    }

    .mega-menu-list a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s ease;
        position: relative;
        padding-left: 15px;
    }

        .mega-menu-list a:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #3E6931;
        }

        .mega-menu-list a:hover {
            color: #3E6931;
            padding-left: 18px;
        }

.promo-banner {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

    .promo-banner img {
        transition: transform 0.3s ease;
    }

    .promo-banner:hover img {
        transform: scale(1.05);
    }

.section-promotions {
    padding: 30px 0;
    background-color: var(--bg-main) !important;
    color: white;
    border-radius: 12px;
}

/* Countdown timer styles */
.countdown-timer {
    display: flex;
    align-items: center;
}

.countdown-block {
    text-align: center;
    margin: 0 5px;
}

.countdown-number {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    min-width: 40px;
}

.countdown-label {
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

.countdown-separator {
    font-size: 20px;
    font-weight: bold;
    margin: 0 2px;
}

/* Promotions carousel navigation */
#promotionsCarousel .carousel-control-prev,
#promotionsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#promotionsCarousel .carousel-control-prev {
    left: 10px;
}

#promotionsCarousel .carousel-control-next {
    right: 10px;
}

    #promotionsCarousel .carousel-control-prev:hover,
    #promotionsCarousel .carousel-control-next:hover {
        opacity: 1;
    }

#promotionsCarousel .carousel-control-prev-icon,
#promotionsCarousel .carousel-control-next-icon {
    filter: invert(1);
}

@media (max-width: 767px) {
    .countdown-block {
        margin: 0 3px;
    }

    .countdown-number {
        font-size: 16px;
        padding: 3px 6px;
        min-width: 30px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .countdown-separator {
        font-size: 16px;
    }

    .mega-menu-news {
        left: 0;
        right: 0;
        transform: none;
        margin: 0 10px;
        border-radius: 0 0 8px 8px;
        width: auto;
    }



    .news-category-link {
        text-align: center;
        border-bottom: 1px solid #e9ecef;
    }
}

/* Sticky bottom bar */
.sticky-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #3e6807 !important;
    color: white !important;
    padding: 10px 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
}

    .sticky-bottom-bar a {
        color: white !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        transition: opacity 0.2s !important;
    }

        .sticky-bottom-bar a:hover {
            opacity: 0.85 !important;
            text-decoration: none !important;
        }

    .sticky-bottom-bar .col-auto {
        position: relative !important;
        padding: 0 15px !important;
    }

        .sticky-bottom-bar .col-auto:not(:last-child):after {
            content: "" !important;
            position: absolute !important;
            right: 0 !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            height: 20px !important;
            width: 1px !important;
            background-color: rgba(255, 255, 255, 0.5) !important;
        }

/* Hide on mobile */
@media (max-width: 767px) {
    .sticky-bottom-bar {
        display: none !important;
    }
}

/* Floating Contact Widget Styles */
.floating-contact-widget {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    z-index: 1050 !important;
}

.contact-options {
    position: absolute !important;
    bottom: 70px !important;
    right: 0 !important;
    width: 280px !important;
    background-color: #fff !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    display: block !important;
}

.floating-contact-widget.active .contact-options {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.contact-option {
    margin-bottom: 12px !important;
    transition: transform 0.2s !important;
}

    .contact-option:last-child {
        margin-bottom: 0 !important;
    }

    .contact-option:hover {
        transform: translateX(-5px) !important;
    }

.contact-btn {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #333 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    transition: background-color 0.3s !important;
}

    .contact-btn:hover {
        background-color: #f5f5f5 !important;
    }

.icon-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
}

.option-text {
    font-weight: 500 !important;
    font-size: 14px !important;
}

.contact-toggle {
    position: relative !important;
    text-align: right !important;
}

.toggle-btn {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}

    .toggle-btn:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    }

    .toggle-btn i {
        font-size: 24px !important;
        color: white !important;
    }

/* Fixed Mobile Navigation Bar */
.fixed-bottom.bg-white {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1010 !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    padding: 5px 0 !important;
}

    .fixed-bottom.bg-white a {
        font-size: 12px !important;
        padding: 5px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #333 !important;
    }

        .fixed-bottom.bg-white a i {
            font-size: 18px !important;
            margin-bottom: 2px !important;
            color: #28a745 !important;
        }

        .fixed-bottom.bg-white a.active {
            color: #28a745 !important;
        }

        .fixed-bottom.bg-white a:hover {
            color: #28a745 !important;
        }

@media (max-width: 767px) {
    .floating-contact-widget {
        bottom: 70px !important;
    }

    .contact-options {
        width: 250px !important;
        right: 0 !important;
    }

    .icon-circle {
        width: 35px !important;
        height: 35px !important;
    }

    .option-text {
        font-size: 13px !important;
    }

    .toggle-btn {
        width: 50px !important;
        height: 50px !important;
    }

    body {
        padding-bottom: 55px !important;
    }

    .wrapper > div[style="height: 50px;"] {
        display: none !important;
    }
}

/* Styles for remaining inline elements */
.logo-img {
    max-height: 50px;
}

.card-title-height {
    height: 38px;
    overflow: hidden;
}

.product-title-height {
    height: 38px;
    overflow: hidden;
}

.banner-img-cover {
    object-fit: cover;
}

.icon-circle-50 {
    width: 50px;
    height: 50px;
}

.email-input-width {
    width: 300px;
}

.spacer-50 {
    height: 50px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2em;
    right: 4em;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

.back-to-top-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--bg-main), var(--bg-main));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .back-to-top-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

    .back-to-top-btn i {
        font-size: 24px;
        color: white;
    }

@media (max-width: 767px) {
    .back-to-top {
        bottom: 140px;
        right: 15px;
        z-index: 1020;
    }

    .flex-column-mobile {
        flex-direction: column !important;
    }
}

.cart-empty {
    color: #000;
}

/* Mobile Menu Dropdown Styles */
#mobileProductsMenu .nav-link {
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

    #mobileProductsMenu .nav-link:hover {
        border-left-color: #28a745;
        background-color: #f8f9fa;
        padding-left: 20px;
    }

#mobileNewsMenu .nav-link {
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

    #mobileNewsMenu .nav-link:hover {
        border-left-color: #dc3545;
        background-color: #f8f9fa;
        padding-left: 20px;
    }

.btn[data-bs-toggle="collapse"] i {
    transition: transform 0.3s ease;
}

.btn[data-bs-toggle="collapse"][aria-expanded="true"] i {
    transform: rotate(180deg);
}

.btn[data-bs-toggle="collapse"] {
    border: none !important;
    box-shadow: none !important;
}

    .btn[data-bs-toggle="collapse"]:focus {
        box-shadow: none !important;
    }

#mobileProductsMenu {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    #mobileProductsMenu .text-success {
        background-color: #e8f5e8;
        border-radius: 6px;
        margin: 5px 0;
    }

#mobileNewsMenu {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    #mobileNewsMenu .text-danger {
        background-color: #f8d7da;
        border-radius: 6px;
        margin: 5px 0;
    }

.text-line-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.text-line-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.main-blog img {
    min-height: 200px;
    object-fit: cover;
    max-height: 200px;
}

.blog-right .blog-title-main, .blog-right .short-description {
    font-size: 16px;
}

.list-blog-page .blog-content {
    padding-top: 0;
}

    .list-blog-page .blog-content .blog-title {
        margin-top: 0;
    }
.list-blog-page .blog-date {
    padding: 12px 0;
}