.home-banner {
    padding: 0;
    background: #111111;
    color: #fff;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.banner-text h1 {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 80px;
    margin-top: 0px;
    margin-bottom: 20px;
}

.banner-text h1 span:nth-child(even) {
    color: #ffd600;
}

.banner-text p {
    font-size: 18px;
    font-weight: 400;
    margin-top: 0px;
}

.banner-image {
    max-height: 645px;
}

.banner-image img {
    max-height: 645px;
    height: 100%;
    object-fit: cover;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.banner-btn {
    display: inline-block;
    max-width: 187px;
    width: 100%;
    height: 57px;
    line-height: 57px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.view-all-products {
    background-color: #ff3a00;
    transition: transform 0.3s ease;
}

.view-all-products:hover {
    transform: scale(1.06);
}

.contact {
    background: transparent;
    border: 1px solid #ffffff;
}

.contact:hover {
    color: #dddddddd;
    border: 1px solid #dddddddd;
}

.gallery-image img {
    border-radius: 5px;
}

.gallery-image {
    position: relative;
}

.gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #d9d9d941;
    opacity: 0;
    pointer-events: none;
}

.gallery-card:hover .gallery-image::after {
    animation: gallery-flash 0.6s ease;
}

@keyframes gallery-flash {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 1063px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-image {
        order: -1;
        max-height: 301px;
    }

    .banner-image img {
        max-height: 301px;
        height: 100%;
    }

    .banner-text h1 {
        font-size: 48px;
    }

    .banner-text p {
        font-size: 18px;
    }

    .banner-buttons {
        flex-direction: column;
    }

    .banner-btn {
        max-width: none;
    }
}

.home-highlights {
    background: #f5f4ef;
}

.highlights-list {
    display: grid;
    grid-template-columns: repeat(3, 354px);
    justify-content: start;
    width: fit-content;
    max-width: 100%;
    gap: 1px;
    background: #ddd;
}

@media (max-width: 1063px) {
    .highlights-list {
        grid-template-columns: repeat(2, 354px);
    }
}

@media (max-width: 708px) {
    .highlights-list {
        grid-template-columns: 354px;
    }
}

.highlight-item {
    width: 354px;
    max-width: 100%;
    height: 179px;
    padding: 15px;
    box-sizing: border-box;
    background: #f5f4ef;

    display: flex;
    flex-direction: column;
}

.highlight-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 83px;
}

.highlight-item h3 {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
}

.highlight-item img {
    max-width: 93px;
    max-height: 83px;
}

.highlight-item p {
    margin: auto 0 0;
    font-weight: 400;
    font-size: 18px;
    color: #0a0a0a99;
}

.home-our-products {
    background: #f0efe9;
}

@media (max-width: 1063px) {
    .highlight-item h3 {
        font-size: 20px;
    }

    .highlight-item p {
        font-size: 16px;
    }
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.product-list .product-card {
    max-width: 100%;
    width: 100%;
    text-decoration: none;

    /* hover: การ์ดทั้งใบขยาย + รูปข้างในขยายแยกอีกชั้น */
    transition: transform 0.3s ease;
    will-change: transform;
}

.product-list .product-card:hover {
    transform: scale(1.03);
}

/* กรอบรูปต้องตัดภาพล้น (ตอน img zoom) มุมโค้งตามการ์ดเดิม */
.product-list .product-image {
    position: relative;
    overflow: hidden;
}

.product-list .product-image img {
    transition: transform 0.3s ease;
    will-change: transform;
}

.product-list .product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-card .product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #27272733;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-list .product-card:hover .product-image::after {
    opacity: 1;
}

.request-ex-btn {
    margin: 50px auto 0;
    transition: transform 0.3s ease;
}

.request-ex-btn:hover {
    transform: scale(1.06);
}

.home-our-reviews {
    background: #3f4b5a;
}

.our-reviews-content {
    color: #fff;

    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 305px);
    gap: 20px;
    margin: 0 auto;
}
@media (max-width: 1063px) {
    .reviews-list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 20px;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0 14px;
    }

    .reviews-list .review-card {
        flex: 0 0 305px;
        scroll-snap-align: start;
    }

    /* ตอน JS เปิด auto-swipe อยู่ ให้ปิด scroll-snap ชั่วคราว —
       ถ้าเปิดไว้ browser จะ snap ตำแหน่งที่ JS สั่งกลับมาที่การ์ดใบเดิม
       ทำให้การ์ดท้าย ๆ เลื่อนไปไม่ถึง */
    .reviews-list.is-auto-swiping {
        scroll-snap-type: none;
    }

    .reviews-list::-webkit-scrollbar {
        height: 8px;
    }

    .reviews-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .reviews-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 4px;
    }
}

.review-header-text {
    font-weight: 400;
    font-size: 16px;
}

.review-header-title {
    font-weight: 500;
    font-size: 50px;
}

.review-footer-text {
    font-weight: 500;
    font-size: 30px;
    text-decoration: none;
    color: #fff;
}

.review-footer-text:hover {
    text-decoration: underline;
}

@media (max-width: 1063px) {
    .review-header-title {
        font-size: 40px;
    }

    .review-footer-text {
        font-size: 20px;
    }
}

/* ================= SECTION TITLE (base lives in style.css) ================= */
.home-example-products {
    background-color: #f0efe9;
}

.example-products-content .section-title h1 {
    flex-direction: row;
}

@media (max-width: 1063px) {
    .example-products-content .section-title h1 {
        flex-direction: column;
    }
}

.home-announcement {
    background-color: #f5f4ef;
}

.announcement-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

@media (max-width: 1063px) {
    .announcement-link {
        position: absolute;
        right: 0;
        top: -20px;
    }
}
