.home-content {

    padding-bottom: 30px;

}



.home_option_grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 5px;

}

.category-box .category-image {
    width: 320px;
    height: 320px;
}


.option_item {

    text-decoration: none;

    color: #000;

}



.option_content h3 {

    margin: 0;

}



.option_content p {

    margin: 5px 0;

}



.category-box {

    width: 25%;

    float: left;

    position: relative;

}



.category-link {

    position: absolute;

    inset: 0;

    z-index: 1;

}



/* cho phần con click được */

.category-content,

.category-children a {

    position: relative;

    z-index: 2;

}



.category-image img {

    width: 100%;

    height: 100%;

}



.category-content h3 {
    text-align: center;
    font-size: 16px;

    margin: 0px 0 5px;

}



.category-content p {

    font-size: 14px;

    color: #666;

    margin: 2px 0;

}



.category-children a {

    font-size: 13px;

    margin-right: 8px;

    color: #000;

    text-decoration: none;

    transition: all 0.3s ease;

}



.category-children a:hover {

    text-decoration: underline;

}



.home_cate_flex {

    display: flex;

    /* flex-wrap: wrap; */

    gap: 10px;

}



.wine-section {

    margin-bottom: 30px;

    background-image: url(../css/images/background.png);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}



/* WRAPPER */

.wine-wrapper {

    display: flex;

    gap: 30px;

}



/* LEFT */

.wine-image {

    width: 50%;

}



.wine-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



/* RIGHT */

.wine-content {

    width: 50%;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}



/* TOP CONTENT */

.wine-top h2 {

    color: #7a1f2b;

    margin-bottom: 15px;

    text-align: center;

    font-weight: 500;

}



.wine-top p {

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 20px;

}



.btn {

    display: inline-block;

    background: #b59b6a;

    color: #fff;

    padding: 10px 20px;

    text-decoration: none;

    border-radius: 4px;

}



/* KNOWLEDGE */

.wine-knowledge {

    margin-top: 40px;

}



.wine-knowledge h3 {

    text-align: center;

    margin-bottom: 0px;

    position: relative;

    font-weight: 400;

    text-transform: uppercase;

}



.wine-title {

    display: flex;

    justify-content: center;

    align-items: end;

    gap: 8px;

}



.wine-title span {

    flex: 1;

    height: 1px;

    width: 100%;

    align-items: end;

    background: radial-gradient(ellipse at center, #fff 25%, rgba(0, 0, 0, 0.25) 100%) !important;



}



.knowledge-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

}



.item {

    text-align: center;

}



.item .icon {

    aspect-ratio: 1 / 1;

    max-width: 90px;

    margin: 0 auto;



}



.item a {

    text-decoration: none;

}



.item span {

    text-transform: uppercase;

    font-weight: 500;

    font-size: 16px;

    color: initial;

}





.home-product {

    background-color: #f8f4ee;

}



/* ====================== QUICK SEARCH SECTION ====================== */

.quick-search-section {
    background: #f8f4ee;
    font-family: icielpacifico;
    padding: 30px;

    border-radius: 8px;

    margin-bottom: 40px;

}



.section-title {

    text-align: center;

    margin-bottom: 25px;

    font-size: 24px;

    color: #333;


}



.filter-row {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    align-items: end;

    justify-content: center;

}



.filter-group {

    min-width: 220px;

}



.filter-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    color: #555;

    font-weight: 500;

}



.filter-group select {

    width: 100%;

    padding: 12px 15px;

    border: 1px solid #ccc;

    border-radius: 4px;

    background: #fff;

    font-size: 15px;

}



.btn-group button {

    background: #222;

    color: #fff;

    border: none;

    padding: 14px 40px;

    font-size: 16px;

    font-weight: 600;

    border-radius: 4px;

    cursor: pointer;

    transition: all 0.3s;

    height: 48px;

}



.btn-group button:hover {

    background: #000;

}



/* ====================== PRODUCT GRID ====================== */

.product-display-section {

    margin-top: 20px;

}



.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}



.product-card {

    display: block;

    background: #fff !important;

    border: 1px solid #eee;

    border-radius: 8px;

    overflow: hidden;

    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    transition: all 0.3s;

}



/* 

    .product-card:hover {

        transform: translateY(-6px);

        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);

    } */



.product-image {

    height: 240px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.product-image img {

    max-height: 100%;

    width: auto;

    object-fit: contain;

}



.product-info {

    padding: 16px 10px;

    text-align: center;

}



.product-title {

    margin: 0 0 8px;

    font-size: 16px;

    line-height: 1.4;

    color: #222;

    font-weight: normal;

}



.product-category {

    display: block;

    font-size: 13px;

    color: #777;

    margin: 5px 0;

    text-decoration: none;

}



.product-card:hover .product-title,

.product-card:hover .product-category {

    color: #ee9b00 !important;

}



.product-category:hover {

    text-decoration: underline;

}



.product-price {

    font-size: 18px;

    font-weight: normal;

    color: #222;

}



.no-product {

    grid-column: 1 / -1;

    text-align: center;

    padding: 50px 20px;

    color: #777;

    font-size: 16px;

}



.brand-section {

    /* background: #f5f5f5; */

    padding: 40px 0;

}



.container {

    max-width: 1200px;

    margin: 0 auto;

}



.brand-title {

    text-align: center;

    font-size: 22px;

    margin-bottom: 25px;

    color: #333;

}



/* GRID */

.brand-grid {

    display: grid;

    grid-template-columns: repeat(8, 1fr);

    gap: 20px;

}



/* ITEM */

.brand-item {

    text-align: center;

    font-size: 13px;

    color: #555;

}



/* BOX */

.brand-box {

    background: #fff;

    height: 132px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 8px;

    transition: all 0.3s ease;

    border: 5px solid #f7f7f9;

}



.brand-box img {

    max-height: 120px;

    /* max-width: 80%; */

    object-fit: contain;

}



/* HOVER */

.brand-box:hover {

    border-color: #ccc;

    transform: translateY(-2px);

}



/* ACTIVE (giống ô đang được chọn) */

.brand-box.active {

    background: #0b1e3f;

    border-color: #0b1e3f;

}



/* MORE BOX */

.brand-box.more {

    background: #e9e9e9;

    font-size: 24px;

    color: #666;

}



/* TEXT */

.brand-item p {

    margin: 0;

    font-weight: 500;

    text-transform: uppercase;

}



.blog-section {

    background: #f5f5f5;

    padding: 50px 0;

}



.blog-title {

    text-align: center;

    font-size: 22px;

    margin-bottom: 25px;

}



/* GRID */

.blog-grids {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

}



/* ITEM */

.blog-item {

    background: transparent;

}



/* IMAGE */

.blog-thumb {

    display: block;

    overflow: hidden;

    border-radius: 10px;

}



.blog-thumb img {

    width: 100%;

    height: 300px;

    object-fit: cover;

    transition: 0.3s;

}



.blog-thumb:hover img {

    transform: scale(1.05);

}



/* CONTENT */

.blog-content {

    padding: 0px 5px;

}



.blog-date {

    font-size: 13px;

    color: #888;

    display: block;

    margin-bottom: 6px;

}



/* TITLE */

.blog-title-item {

    font-size: 16px;

    font-weight: 600;

    margin-bottom: 6px;

    margin-top: 0;

}



.blog-title-item a {

    color: #333;

    text-decoration: none;

}



.blog-title-item a:hover {

    color: #c9a96e;

}



/* EXCERPT 2 LINE */

.blog-excerpt {

    font-size: 14px;

    color: #666;

    line-height: 1.5;



    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



/* BUTTON */

.blog-more {

    text-align: center;

    margin-top: 30px;

}



.btn-more {

    display: inline-block;

    padding: 10px 20px;

    background: #c9a96e;

    color: #fff;

    border-radius: 6px;

    text-decoration: none;

    transition: 0.3s;

}



.btn-more:hover {

    background: #b8965c;

}



/* 

.search_doneproduct-card {

    max-width: 20%;

} */



/* RESPONSIVE */

@media (max-width: 1024px) {







    .blog-grid {

        grid-template-columns: repeat(2, 1fr);

    }



    .brand-grid {

        grid-template-columns: repeat(4, 1fr);

    }



    .knowledge-grid {

        grid-template-columns: repeat(4, 1fr);

        margin-top: 25px;

    }





    .wine-wrapper {

        flex-wrap: wrap;

    }



    .wine-image {

        width: 100%;

    }



    .wine-content {

        width: 100%;

    }



    /* 👇 QUAN TRỌNG: ĐẨY XUỐNG DƯỚI */

    .wine-knowledge {

        order: 2;

        width: 100%;

    }



    .wine-top {

        order: 1;

    }



    /* 

    .search_done.product-card {

        max-width: 25%;

    } */



}

.mb {
    display: none;
}


/* Responsive */

@media (max-width: 768px) {
    .lt {
        display: none;
    }

    .mb {
        display: block;
    }

    .category-box .category-image {
        margin: auto;
    }

    /* .search_done.product-card {

        max-width: 32%;

    } */



    .filter-row {

        flex-direction: column;

        align-items: stretch;

    }



    .filter-group {

        min-width: 100%;

    }



    .home_cate_flex {

        flex-wrap: wrap;

    }



    .category-box {

        width: 49%;

    }

}





@media (max-width: 600px) {

    .blog-grid {

        grid-template-columns: 1fr;

    }



    .brand-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 5px;

    }



    .knowledge-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 15px;

    }



    .category-box {

        width: 100%;

    }

}



@media (max-width: 500px) {



    .home-content {

        padding-bottom: 20px;

    }



    .home_option_grid {

        grid-template-columns: 1fr;

        gap: 10px;

    }



    .wine-wrapper {

        gap: 10px;

    }



    .quick-search-section {

        padding: 15px;

        margin-bottom: 35px;

    }



    .brand-section {

        padding: 25px 0;

    }



    .blog-grid {

        grid-template-columns: repeat(1, 1fr);

    }



    .blog-section {

        padding: 25px 0;

    }



    .filter-row {

        gap: 10px;

    }



    .filter-group label {

        margin-bottom: 5px;

    }



    .btn-group button {

        padding: 10px 20px;

        font-size: 14px;

        height: auto;

        margin-top: 10px;

    }



    .blog-grid {

        gap: 10px;

    }

}



@media (max-width: 425px) {

    .item span {

        font-size: 13px;

    }



    .section-title {

        margin-bottom: 20px;

        margin-top: 10px;

        font-size: 20px;

    }



    .filter-group select {

        padding: 10px 15px;

        font-size: 13px;

    }



    .product-info {

        padding: 5px 10px 10px;

    }



    .product-title {

        margin: 0 0 5px;

        font-size: 14px;

    }



    .product-price {

        font-size: 14px;

    }



    .product-grid {

        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

        gap: 5px;

    }



    .blog-section .blog-grid {

        grid-template-columns: repeat(1, 1fr);

    }



    .blog-excerpt {

        font-size: 13px;

        margin-top: 5px;

    }



    .blog-title-item {

        font-size: 14px;

        margin-bottom: 0px;

    }



}


/* ==========================================================================
   OCOP Home Enhancements (Trang chu OCOP)
   ========================================================================== */
html, body {
    overflow-x: hidden !important;
}

/* 1. Khoi 4 Cam ket OCOP */
.home-features-ocop {
    padding: 25px 0 10px !important;
}
.home-features-ocop .home_option_grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}
.ocop-feature-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #fff !important;
    padding: 16px 18px !important;
    border-radius: 8px !important;
    border: 1px solid #dbe8d8 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
    min-height: 80px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s !important;
}
.ocop-feature-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.12) !important;
    border-color: #2e7d32 !important;
}
.ocop-feature-card .option_icon {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    background: #eaf5eb !important;
    color: #2e7d32 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
}
.ocop-feature-card .option_icon i {
    color: #2e7d32 !important;
    font-size: 22px !important;
}
.ocop-feature-card .option_icon img {
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
}
.ocop-feature-card .option_content {
    flex: 1 !important;
}
.ocop-feature-card .option_content h3 {
    margin: 0 0 4px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1b5e20 !important;
    line-height: 1.3 !important;
}
.ocop-feature-card .option_content p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.4 !important;
}

/* 2. Khoi 3 Danh muc san pham can giua */
.home-categories-section .inner-content {
    max-width: 1100px !important;
    margin: 0 auto !important;
}
.home-categories-section .home_cate_flex {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin: 0 auto !important;
}
.home-categories-section .category-box {
    flex: 0 0 310px !important;
    width: 310px !important;
    max-width: 310px !important;
    float: none !important;
    position: relative !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.home-categories-section .category-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}
.home-categories-section .category-box .category-image {
    width: 310px !important;
    height: 280px !important;
    overflow: hidden !important;
    margin: 0 !important;
}
.home-categories-section .category-box .category-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.home-categories-section .category-content {
    padding: 12px 10px !important;
    background: #fff !important;
}
.home-categories-section .category-content h3 {
    margin: 0 0 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1b5e20 !important;
    text-align: center !important;
}

/* 3. San pham OCOP - 4 cot tren Desktop */
.product-display-section {
    text-align: center !important;
}
.home-product .product-grid,
.product-display-section .product-grid,
#product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff !important;
    border: 1px solid #e2ebd0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    text-decoration: none !important;
}
.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.12) !important;
    border-color: #2e7d32 !important;
}
.product-card .product-image {
    height: 240px !important;
    background: #fbfbfb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    overflow: hidden !important;
}
.product-card .product-image img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}
.product-card:hover .product-image img {
    transform: scale(1.04) !important;
}
.product-card .product-info {
    padding: 15px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    text-align: center !important;
}
.product-card .product-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 6px 0 !important;
    line-height: 1.4 !important;
}
.product-card .product-category {
    color: #2e7d32 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}
.product-card .product-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #d32f2f !important;
    margin-top: 4px !important;
}

.product-more, .blog-more {
    text-align: center !important;
    width: 100% !important;
    margin: 35px auto 10px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.product-more .btn-more, .blog-more .btn-more {
    background: #2e7d32 !important;
    color: #fff !important;
    padding: 12px 32px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
}
.product-more .btn-more:hover, .blog-more .btn-more:hover {
    background: #1b5e20 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* 4. Khoi Tin tuc chia deu 3 cot */
.blog-section .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}
.blog-item {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
    display: flex !important;
    flex-direction: column !important;
}
.blog-thumb img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
}
.blog-content {
    padding: 15px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
.blog-title-item a {
    color: #1b5e20 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}
.blog-title-item a:hover {
    color: #2e7d32 !important;
}

/* 5. Khoi Gioi Thieu OCOP responsive */
.home-intro-ocop img {
    max-width: 100% !important;
    height: auto !important;
}

/* 6. RESPONSIVE TABLET & MOBILE */
@media (max-width: 1024px) {
    .home-features-ocop .home_option_grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .home-product .product-grid,
    .product-display-section .product-grid,
    #product-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    .blog-section .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .inner-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
    .home-features-ocop {
        padding: 15px 0 !important;
    }
    .home-features-ocop .home_option_grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .ocop-feature-card {
        padding: 12px 14px !important;
        gap: 12px !important;
        min-height: auto !important;
    }
    .ocop-feature-card .option_icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }
    .ocop-feature-card .option_content h3 {
        font-size: 14px !important;
    }
    .ocop-feature-card .option_content p {
        font-size: 12px !important;
    }

    /* Categories: 1 card full width per row on mobile */
    .home-categories-section .home_cate_flex {
        gap: 15px !important;
    }
    .home-categories-section .category-box {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .home-categories-section .category-box .category-image {
        width: 100% !important;
        height: 230px !important;
    }

    /* Products: 2 columns on mobile */
    .home-product .product-grid,
    .product-display-section .product-grid,
    #product-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card .product-image {
        height: 160px !important;
        padding: 8px !important;
    }
    .product-card .product-info {
        padding: 10px 8px !important;
    }
    .product-card .product-title {
        font-size: 13px !important;
        margin: 4px 0 !important;
        line-height: 1.3 !important;
    }
    .product-card .product-category {
        font-size: 11px !important;
    }
    .product-card .product-price {
        font-size: 13px !important;
    }

    /* Process section on mobile */
    .ocop-process-section .wine-wrapper {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .ocop-process-section .wine-image,
    .ocop-process-section .wine-content {
        width: 100% !important;
    }
    .ocop-process-section .wine-top h2 {
        font-size: 20px !important;
    }
    .ocop-process-section .wine-top p {
        font-size: 14px !important;
    }

    /* Blog: 1 column on mobile */
    .blog-section .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .blog-thumb img {
        height: 180px !important;
    }
    .section-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    .section-subtitle {
        font-size: 13px !important;
        margin: -10px 0 18px !important;
    }
}

@media (max-width: 480px) {
    .home-product .product-grid,
    .product-display-section .product-grid,
    #product-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .product-card .product-image {
        height: 145px !important;
        padding: 6px !important;
    }
    .product-card .product-title {
        font-size: 12px !important;
    }
    .product-card .product-price {
        font-size: 12px !important;
    }
}
