/* --- CSS ĐÃ CẬP NHẬT TỶ LỆ 2:1 --- */

.section_group_banner .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.section_group_banner .grid .col-right .grid-sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.section_group_banner .grid .col-right .grid-sub .banner_2 {
    aspect-ratio: 880/254;
    grid-column: span 2 / span 2;
}

/* --- THAY ĐỔI CHÍNH Ở ĐÂY --- */
.section_group_banner .grid .banner-box {
    position: relative;
    overflow: hidden;
    /* SỬA LỖI: Áp dụng tỷ lệ khung hình 2:1 cho TẤT CẢ các box */
    aspect-ratio: 2/1;
}

.section_group_banner .grid .banner-box a {
    display: block;
    width: 100%;
    /* height: 100%; */
}

.section_group_banner .grid .banner-box a img {
    width: 100%;
    height: 100%;
    /* 'object-fit: cover' sẽ tự động cắt ảnh (dọc hoặc ngang) để lấp đầy khung 2:1 mà không làm méo ảnh */
    object-fit: cover;
    filter: brightness(0.85);
    transition: all 0.4s ease;
}

/* Các thuộc tính hiệu ứng và tiêu đề giữ nguyên */
.section_group_banner .grid .banner-box a:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.section_group_banner .grid .banner-box .box-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
}

.section_group_banner .grid .banner-box .box-title h3 {
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    color: #fff;
    font-size: 2rem;
    padding-bottom: 8px;
    position: relative;
    transition-duration: .3s;
    margin-bottom: 0px;
}

.section_group_banner .grid .banner-box .box-title h3:before {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: var(--subColor);
    position: absolute;
    bottom: 0px;
    left: 0px;
    transition-duration: .3s;
    clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 0% 100%);
}

.section_group_banner .grid .banner-box a:hover .box-title h3:before {
    width: calc(100% - 30px);
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

/* Responsive cho mobile */
@media (max-width: 767px) {
    .section_group_banner .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 14px;
    }
    /* Trên mobile, tỷ lệ 2:1 có thể hơi dẹt, anh có thể đổi thành 16/9 nếu muốn */
    .section_group_banner .grid .banner-box {
        aspect-ratio: 16 / 9;
    }
}
section {
    padding: 60px 0;
    border-top: 1px solid #f0f0f0;
}
section:first-of-type {
    border-top: none;
    padding-top: 30px;
}
section:nth-of-type(even) {
    background-color: #f8f9fa;
}
section#slider {
    padding: 0;
}
.section-index {
    padding: 30px 0;
}
.section-index .section-title.side-left {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-index .section-title h2 {
    font-weight: 700;
    font-size: 2.8rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif; 
    margin: 0;
    padding-bottom: 8px;
    position: relative;
}
.section-index .section-title.side-left h2:before {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--subColor, #d38905); 
    position: absolute;
    bottom: 0;
    left: 0;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.section_category .cate-item {
    display: block;
    text-decoration: none;
}
.section_category .cate-item .bg-thumb {
    background: #ebeced;
    padding: 20px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.section_category .cate-item .thumb {
    padding-bottom: 100%; 
    position: relative;
    overflow: hidden;
}
.section_category .cate-item .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.section_category .cate-item .cate-content {
    text-align: center;
    padding-top: 12px;
}
.section_category .cate-item .cate-content h3 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--textColor, #a14603);
    line-height: 1.4;
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.section_category .cate-item .status {
    position: relative;
    width: 100%;
    height: 27px; 
    overflow: hidden;
}
.section_category .cate-item .status span {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 1rem;
    color: #616161;
    position: absolute;
    top: 0;
    left: 0;
}
.section_category .cate-item .status .view-more {
    opacity: 0;
    transform: translateY(100%);
    color: var(--hoverColor, #f3ce8a);
    text-decoration: underline;
}
.section_category .cate-item .status .total-product {
    opacity: 1;
    transform: translateY(0%);
}
.section-index.section_product .section-title.side-left{
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
@media (min-width: 992px) {
    .section_category .cate-item:hover .thumb img {
        transform: scale(1.05);
    }
    .section_category .cate-item:hover .status .view-more {
        opacity: 1;
        transform: translateY(0%);
    }
    .section_category .cate-item:hover .status .total-product {
        opacity: 0;
        transform: translateY(-100%);
    }
}
.section-index .section-title {
    position: relative;
    margin-bottom: 20px;
}
.section-index .section-title.side-left {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-index .section-title h2 {
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding-bottom: 8px;
    position: relative;
    color: var(--textColor);
}
.section-index .section-title h2 a {
    color: inherit;
    text-decoration: none;
}
.section-index .section-title.side-left h2:before {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--subColor, #d38905);
    position: absolute;
    bottom: 0;
    left: 0;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: var(--mainColor, #d38905);
    max-width: 150px;
    border-color: var(--mainColor);
    border-radius: 0px;
    padding: 8px 20px 6px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: color 0.3s ease;
}
.btn.btn-primary::before {
    content: "";
    width: 100%;
    height: 100%;
    background: var(--subColor, #a14603);
    border: 1px solid var(--subColor);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: 0;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn.btn-primary span,
.btn.btn-primary svg {
    position: relative;
    z-index: 1;
}
a.btn.btn-primary:hover span,
a.btn.btn-primary:hover svg {
    color: #222;
}
@media (min-width: 992px) {
    .btn.btn-primary:hover::before {
        transform: translateX(0);
    }
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--mainColor, #a14603);
    font-weight: 600;
    text-decoration: none;
}
.swiper-button-prev,
.swiper-button-next {
    width: 36px;
    height: 36px;
    margin: 0;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    transition: all .2s ease;
    border-radius: 0; 
}
.swiper-button-prev {
    -webkit-clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}
.swiper-button-next {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%)
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--mainColor, #a14603);
    border-color: var(--mainColor, #a14603);
    color: #fff;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}
.swiper-button-disabled {
    opacity: .5;
    pointer-events: none;
}
.swiper {
    position: relative; 
}
.swiper > .swiper-button-prev,
.swiper > .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.swiper > .swiper-button-prev {
    left: 20px;
}
.swiper > .swiper-button-next {
    right: 20px;
}
.slider-controls {
    display: flex;
    gap: 8px;
}
@media (max-width: 767px) {
    .swiper > .swiper-button-prev,
    .swiper > .swiper-button-next {
        display: none;
    }
}
.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 36px;
    height: 36px;
    margin: 0;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    transition: all .2s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--mainColor, #a14603);
    border-color: var(--mainColor, #a14603);
    color: #fff;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}
.swiper-button-disabled {
    opacity: .5;
    pointer-events: none; 
}
.main-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border: 1px solid var(--subColor, #d38905); 
    border-radius: 0; 
    opacity: 0.8;
    transition: all var(--transition-speed, 0.3s) ease;
}
.main-slider .swiper-pagination-bullet-active {
    background-color: var(--mainColor, #a14603); 
    border-color: var(--mainColor, #a14603); 
    opacity: 1;
}

.section_feedback .bg-section {
    background-color: #111;
    background-image: url(//bizweb.dktcdn.net/100/504/717/themes/933859/assets/section_feedback_bg.jpg?1726547281373);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center;
    padding: 30px 0;
}

.section_feedback .bg-section .section-title h2 {
    color: #fff;
}

.section_feedback .bg-section .desc {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #fff;
}

.section_feedback .swiper-button-prev,
.section_feedback .swiper-button-next {
    /* ... các style cho nút next/prev ... */
}

.section_feedback .swiper_feedback .swiper-slide {
    height: auto;
    padding-bottom: 25px;
}

.section_feedback .feedback-item {
    display: flex;
    padding: 20px 15px;
    background: #fff;
    height: 100%;
    position: relative;
    background-image: url(//bizweb.dktcdn.net/100/504/717/themes/933859/assets/quote-4.svg?1726547281373);
    background-size: 60px 60px;
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) 15px;
}

.section_feedback .feedback-item:before {
    top: 100%;
    right: 30px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-top-color: #FFF;
    border-width: 22px 0px 0px 33px;
    margin-left: 0px;
}

.section_feedback .feedback-item .avatar {
    width: 110px;
    height: 110px;
    overflow: hidden;
    border-radius: 50%;
    flex: none;
}
.section_feedback .feedback-item .avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section_feedback .feedback-item .block-content {
    padding-left: 20px;
    flex-grow: 1;
}

.section_feedback .feedback-item .block-content b {
    font-size: 1.5rem;
    display: block;
    line-height: normal;
}

.section_feedback .feedback-item .block-content span {
    display: block;
    color: #757575;
}

.section_feedback .feedback-item .block-content .feedback-content {
    min-height: 100px;
    margin-top: 8px;
}
.banner_1.banner-box {
    height: 100%;
    width: 100%;
}
/* Responsive */
@media (max-width: 767px) {
    /* ... các style responsive cho mobile ... */
}