/*========== Banner ==========*/
.home-slider {
    width: 100%;
    overflow: hidden;
    background: #f8f6f2;
}

.home-slider .swiper,
.home-slider .swiper-wrapper,
.home-slider .swiper-slide { width: 100%; }

.home-slider .swiper-slide { height: clamp(520px, 70vh, 760px); }

.home-slider .swiper-slide a,
.home-slider .swiper-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next { color: #fff; }

@media (max-width: 767px) {
    .home-slider .swiper-slide {
        height: clamp(520px, 60vh, 680px);
    }
}

/*========== Giới thiệu ==========*/
.home-intro {
    background: linear-gradient(180deg, #f8f6f2 0%, #f1ece4 100%);
    padding: 2.6vw 0;
}

.home-intro-container {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 4.2vw;
}

.home-intro-left { flex: 1; }

.home-intro-left h2 {
    font-size: 2.3vw;
    font-weight: 500;
    letter-spacing: 0.2vw;
    color: var(---dark-gold);
    margin-bottom: 1vw;
}

.home-intro-left p {
    font-size: 0.9vw;
    line-height: 1.9;
    color: #5a5246;
    margin-bottom: 1.3vw;
}

.home-intro-right {
    flex: 1.5;
    width: 100%;
}

.home-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 0.8vw;
    overflow: hidden;
    border: 0.1vw solid rgba(198,167,94,0.5);
    box-shadow: 0 1.6vw 3.1vw rgba(0,0,0,0.08);
    background: #fff;
}

.home-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .home-intro { padding: 8vw 0; }

    .home-intro-container {
        flex-direction: column;
        width: 90%;
        gap: 3vh;
    }

    .home-intro-left h2 {
        font-size: 11.7vw;
        letter-spacing: 0.8vw;
    }

    .home-intro-left p {
        font-size: 4.5vw;
        margin-bottom: 2vh;
    }

    .home-video-wrapper {
        border-radius: unset;
        border: 0.5vw solid rgba(198,167,94,0.5);
        box-shadow: 0 8vw 16vw rgba(0,0,0,0.08);
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-top: 62%;
    }
}

/*========== Danh mục ==========*/
.home-categories {
    background: #f8f6f2;
    padding: 2.6vw 0;
}

.home-cat-container {
    width: 80%;
    margin: auto;
    text-align: center;
}
    
.home-cat-title {
    font-size: 2.1vw;
    letter-spacing: 0.2vw;
    color: var(---dark-gold);
    font-weight: 500;
}

.home-cat-sub {
    display: block;
    font-size: 0.7vw;
    letter-spacing: 0.2vw;
    color: var(---dark-gold);
    margin-bottom: 0.5vw;
}

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6vw;
}

.home-cat-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.8vw;
    display: block;
}

.home-cat-item img {
    width: 100%;
    height: 21.9vw;
    object-fit: cover;
    transition: 0.6s ease;
}

.home-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.1));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2.1vw;
    transition: 0.4s ease;
}

.home-cat-overlay span {
    color: #fff;
    font-size: 1vw;
    letter-spacing: 0.1vw;
}

.home-cat-item:hover img {
    transform: scale(1.1);
}

.home-cat-item:hover .home-cat-overlay {
    background: linear-gradient(to top, rgba(176,138,74,0.85), rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .home-categories { padding: 8vw 0; }

    .home-cat-container { width: 90%; }

    .home-cat-title {
        font-size: 9.6vw;
        letter-spacing: 0.8vw;
		margin-bottom: 1vh !important;
    }

    .home-cat-sub {
        font-size: 3.7vw;
        letter-spacing: 1vw;
        margin-bottom: 2.7vw;
    }

    .home-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
		margin-left: calc(50% - 48vw);
        margin-right: calc(50% - 48vw);
    }

    .home-cat-item { border-radius: 4.3vw; }

    .home-cat-item img { height: 69.3vw; }

    .home-cat-overlay { padding-bottom: 10.7vw; }

    .home-cat-overlay span {
        font-size: 3.7vw;
        letter-spacing: 0.5vw;
    }
}

/*========== Bộ sưu tập ==========*/
.home-collection { padding: 2.6vw 0 }

.home-coll-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1vw;
    width: 80%;
    margin: 0 auto;
}

.home-coll-track {
    display: flex;
    transition: transform 0.6s ease;
    cursor: grab;
    will-change: transform;
    user-select: none;
}

.home-coll-track:active { cursor: grabbing; }

.home-coll-right img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.home-coll-item {
    min-width: 100%;
    display: flex;
    background: #f8f8f8;
    height: 70vh;
}

.home-coll-left {
    width: 55%;
    padding: 3.1vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-coll-left h2 {
    font-size: 2.1vw;
    letter-spacing: 0.2vw;
    color: var(---dark-gold);
    font-weight: 500;
    margin-bottom: 0.8vw;
}

.home-coll-left p {
    color: #666;
    margin-bottom: 1.3vw;
    line-height: 1.6;
}

.home-coll-right { width: 45%; }

.home-coll-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 1.6vw;
    padding: 0.3vw 0.5vw;
    cursor: pointer;
}

.prev { left: 0.8vw; }
.next { right: 0.8vw; }

@media (max-width: 768px) {
    .home-collection { padding: 8vw 0 }

    .home-coll-slider {
        border-radius: 5.3vw;
        width: 95%;
        height: 75vh;
    }

    .home-coll-left {
        width: 100%;
        padding: 6.7vw;
        order: 2;
    }

    .home-coll-left h2 {
        font-size: 5.9vw;
        line-height: 1.3;
        letter-spacing: 0.2vw;
        margin-bottom: 4vw;
    }

    .home-coll-left p {
        font-size: 3.7vw;
        margin-bottom: 6.7vw;
        line-height: 1.6;
    }

    .home-coll-right {
        width: 100%;
        height: 280px;
        order: 1;
    }

    .home-coll-right img { height: 100%; }

    .home-coll-item {
        flex-direction: column;
        height: auto;
        border-radius: 5.3vw;
    }

    .nav {
		display: none;
        /*font-size: 5.9vw;
        padding: 1.6vw 2.7vw;*/
    }

    .prev { left: 4vw; }
    .next { right: 4vw; }
}

/*========== Sản phẩm ==========*/
.home-product-slider {
    background: #f8f6f2;
    padding: 2.6vw 0;
}
.home-prod-block {
    width: 80%;
    margin: 0 auto;
}

@media (max-width:768px){
    .home-product-slider { padding: 8vw 0; }
    .home-prod-block { width: 90%; }
}

/*========== Showroom ==========*/
.home-showroom { padding: 2.6vw 0; }

.home-showroom-block {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f8f8;
    width: 80%;
    height: 50vh;
    margin: 0 auto;
}

.home-showroom-left {
    width: 35%;
    padding: 60px;
    background: linear-gradient(145deg, #ffffff, #f3f3f3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-showroom-left h2 {
    font-size: 2.1vw;
    letter-spacing: 0.2vw;
    color: var(---dark-gold);
    font-weight: 500;
}

.home-showroom-left p {
    margin: 12px 0 30px;
    color: #666;
}

.home-showroom-right {
    width: 65%;
    position: relative;
}

.home-showroom-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-showroom-media img,
.home-showroom-media iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: all 0.7s ease;
    border: none;
}

.home-showroom-media iframe {
    opacity: 0;
    transform: scale(1.05);
}

.home-showroom-right:hover img {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(2px);
}

.home-showroom-right:hover iframe {
    opacity: 1;
    transform: scale(1);
}

.home-showroom-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(198,161,91,0.2), transparent);
    pointer-events: none;
}

@media (max-width: 768px) {
    .home-showroom { padding: 3vw 0; }

    .home-showroom-block {
        flex-direction: column;
        width: 95%;
        height: 80vh;
    }

    .home-showroom-left,
    .home-showroom-right { width: 100%; }

    .home-showroom-left { padding: 30px; }
    .home-showroom-right { height: 300px; }

    .home-showroom-left h2 {
        font-size: 10.67vw;
        margin-bottom: 0.5vh;
    }
}

/*========== FAQs ==========*/
.home-faqs { padding: 2.6vw 0 }

.home-faq-block {
    max-width: 80%;
    margin: 0 auto;
}

.home-faq-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #111;
}

.home-faq-question {
    width: 100%;
    text-align: left;
    border: none;
    font-size: 17px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 20px;
}

.home-faq-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
    color: #c6a15b;
}

.home-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 10px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    border-radius: 20px;
    margin-bottom: 10px;
}

.home-faq-answer p {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.home-faq-item.active .home-faq-answer { max-height: 200px; }
.home-faq-item.active .home-faq-icon { transform: rotate(45deg); }

@media (max-width: 768px) {
    .home-faqs { padding: 8vw 0; }
    .home-faq-block { max-width: 90%; }
}

.home-intro,
.home-categories,
.home-collection,
.home-product-slider,
.home-showroom,
.home-faqs {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.home-slider { content-visibility: visible; }