.hethanghero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    padding: 0; 
    justify-content: center; 
    width: 100%;
}

.hethanghero-bg { position: absolute; inset: 0; z-index: -1; }

.hethanghero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2; /* Nằm trên ảnh */
    pointer-events: none;
}

.hethanghero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hethanghero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); /* Khóa chặt ở 1650px */
    margin: 0 auto; /* Ép vào giữa màn hình */
    padding: 0 var(--side-padding); /* Trả lại đúng 55px padding để chữ đứng đúng vị trí cũ */
    margin-bottom: 48px;
    z-index: 2;
    text-align: left; /* Đảm bảo chữ vẫn canh trái bên trong cái lồng 1650px */
}

.hethanghero-text h1
 { font-size: 60px; line-height: 1.1; margin-bottom: 40px; font-weight: 400; }
.hethanghero-text p { letter-spacing: 0px; font-size: 15px; margin-bottom: 35px; }
.mobile-only { 
    display: none !important; 
}
.mobile-menu-btn, .mobile-overlay { display: none; }



@media (max-width: 1024px) {
    .hethanghero {
        height: auto !important; 
        min-height: 120vw !important; 
        background-size: cover !important;
        background-position: center !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

   .hethanghero-text {
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        
        /* Đảm bảo căn giữa tuyệt đối */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .hethanghero-text h1 {
        font-size: 28px; 
        font-weight: 500;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hethanghero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 0px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hethanghero {
        min-height: 56vw !important;
    }
}













/*===================================================================
    1. LAYER MẶC ĐỊNH & DESKTOP (> 1200px)
===================================================================*/

/* --- Section & Container --- */
.casa-container.section-space {
    padding-top: 80px;
    padding-bottom: var(--section-gap);
}

.vanthang1st-header {
    margin-bottom: 60px;
    max-width: 670px;
}

/* --- Text & Typography --- */
.vanthang1st-main-title {
    font-size: clamp(38px, 5vw, 50px); /* Đồng bộ Xương cá */
    line-height: 1.4;
    margin-bottom: 30px;
    max-width: 670px;
    color: var(--black);
    font-family: var(--special-font);
}

.vanthang1st-description {
    font-size: 13px;
    line-height: 1.6;
    max-width: 670px;
    color: var(--black);
}

/* Bóp nội dung chữ ở giữa */
.vanthang1st-text-container {
    max-width: 670px;
    margin: 0 auto;
    padding: 40px 0;
    margin-bottom: -20px;
}

.vanthang1st-eyebrow {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 60px; /* Giảm từ 100px xuống cho đỡ loãng */
}

.vanthang1st-title {
    font-size: clamp(28px, 3.5vw, 30px);
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--black);
}

.vanthang1st-text-container p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--black);
}

/* --- Media Elements --- */
.vanthang1st-single-image {
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 60px;
    margin-bottom: 60px;
    overflow: hidden;
    background-color: var(--gray);
}

.vanthang1st-single-image img {
    width: 100%; 
    aspect-ratio: 16 / 8;
    display: block; 
    object-fit: cover; 
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vanthang1st-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Tăng từ 13px lên 20px cho sang */
    width: 100%;
    max-width: 1120px; 
    margin: 60px auto !important; 
}

.vanthang1st-gallery-item {
    aspect-ratio: 1 / 1.2; 
    overflow: hidden;
    background-color: var(--gray);
}

.vanthang1st-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*===================================================================
    2. LAYER TABLET LARGE (992px - 1199px)
===================================================================*/
@media (min-width: 992px) and (max-width: 1199px) {
    .casa-container.section-space {
        padding: 60px 20px !important;
    }

    .vanthang1st-main-title {
        font-size: 40px;
        line-height: 1.2;
    }

    .vanthang1st-description,
    .vanthang1st-text-container {
        font-size: 12px;
        max-width: 680px;
        color: var(--color-black);
        margin: 0 auto; 
    }
    
    .vanthang1st-gallery-grid {
        margin: 40px 0 !important;
        margin-bottom: 60px !important;
    }

}




/*===================================================================
    3. LAYER TABLET SMALL (768px - 991px)
===================================================================*/
@media (min-width: 768px) and (max-width: 991px) {
    .casa-container.section-space {
        padding: 40px 20px !important;
    }

    .vanthang1st-header {
        margin-bottom: 80px;
    }

    .vanthang1st-main-title {
        font-size: 40px !important; 
        line-height: 1.2 !important; 
        color: var(--black) !important; 
        margin-bottom: 25px !important; 
        font-weight: 400;
    }


    .vanthang1st-description, 
    .vanthang1st-text-container p {
        font-size: 12px; 
        line-height: 1.6;
        max-width: 100%;
        color: var(--black);
    }

    .vanthang1st-text-container {
        max-width: 480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 20px 0 !important;
    }

    .vanthang1st-gallery-grid {
        grid-template-columns: 1fr 1fr; /* Giữ 2 cột cho tablet */
        gap: 15px;
        margin: 40px 0 !important;
        margin-bottom: 20px !important;
    }

    .vanthang1st-gallery-item {
        width: calc((100vw - 40px - 15px) / 2) !important;
        flex: 0 0 calc((100vw - 40px - 15px) / 2) !important;
        aspect-ratio: 1 / 1.1 !important; 
        overflow: hidden !important;
        display: block !important;
        margin-bottom: 20px;
    }

    .vanthang1st-gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .vanthang1st-single-image {
        width: 100vw !important; /* Ép lấy toàn bộ chiều ngang màn hình */
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important; /* Kéo nó về lại chính giữa từ tâm */
        margin-right: -50vw !important;
        
        margin-top: 40px !important;
        margin-bottom: 40px !important;
        display: block !important;
        overflow: hidden !important;
    }

    .vanthang1st-single-image img {
        aspect-ratio: 16 / 9;
    }
}



/*===================================================================
    4. LAYER MOBILE (< 767px)
===================================================================*/
@media (max-width: 767px) {
    .casa-container.section-space {
        padding: 40px 20px !important;
    }

    .vanthang1st-header {
        margin-top: 10px;
        margin-bottom: 80px;
    }

    .vanthang1st-main-title {
        font-size: 28px !important; 
        line-height: 1.2;
        margin-bottom: 25px;
        max-width: 90%;
        font-weight: 400;
    }

    .vanthang1st-text-container {
        padding: 0;
    }

    .vanthang1st-description,
    .vanthang1st-text-container p {
        font-size: 12px; 
        line-height: 1.6;
        max-width: 100%;
        color: var(--color-black);
    }

    .vanthang1st-title {
        font-size: 20px;
        line-height: 1.6;
        margin-top: 80px !important;
        margin: 20px auto;
        max-width: 480px;
        align-items: center;
        text-align: center;
    }
    

    .vanthang1st-eyebrow {
        font-size: 12px !important; 
        line-height: 1.6 !important; 
        color: var(--black) !important; 
        margin-bottom: -20px;
        margin-top: -20px;
    }

    .vanthang1st-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important; /* Gap nhỏ cho tinh tế trên mobile */
        
        /* CHIÊU THỨC TRÀN VIỀN */
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        margin-left: -50vw !important;
        
        margin-top: 80px !important;
        margin-bottom: 60px !important;
        padding: 0 !important; 
    }
    
    .vanthang1st-gallery-item {
        aspect-ratio: 1 / 1.8 !important; /* Giữ tỉ lệ cao gầy mày thích */
        width: 100% !important;
    }

    .vanthang1st-gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .vanthang1st-single-image {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        margin-top: 80px;
        margin-bottom: 60px;
    }

    .vanthang1st-single-image img {
        width: 100% !important; 
        height: auto !important; 
        display: block !important;
        object-fit: cover !important; 
        aspect-ratio: 16 / 12 !important; 
    }
}







/*===================================================================
   1. LAYER DESKTOP (> 1200px)
===================================================================*/

/* --- SECTION SHARED --- */
.normalline-specifications {
    max-width: var(--container-max); 
    margin: 40px auto; 
    padding: 0;
    box-sizing: border-box;
}


/* --- SPECIFICATION LAYOUT --- */ 
.normalline-spec-inner {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.spec-visual { 
    flex: 1.2; 
    display: flex; 
}

.normalline-technical-collage {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

/* --- COLLAGE ITEMS --- */
.collage-item { overflow: hidden; background: transparent; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-item-large { grid-column: 1 / 2; grid-row: 1 / 3; }
.collage-item-square-top { grid-column: 2 / 3; grid-row: 1 / 2; }
.collage-item-square-bottom { grid-column: 2 / 3; grid-row: 2 / 3; }
.collage-item-square img { object-fit: contain; padding: 0; }

/* --- SPEC TEXT CONTENT --- */
.spec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.spec-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.spec-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-black);
    margin-bottom: 30px;
}

/* --- SPEC LIST & LINES --- */
.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #eee; }
.spec-list li { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #eee; }
.spec-label { font-family: var(--special-font); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.spec-value { font-family: var(--special-font); font-size: 15px; font-weight: 500; color: #1a1a1a; }


/*===================================================================
   2. LAYER TABLET LARGE (992px - 1199px)
===================================================================*/
@media (min-width: 992px) and (max-width: 1199px) {
    .normalline-specifications {
        padding: 0 0px;
    }

    .normalline-spec-inner {
        flex-direction: column;
        gap: 30px;
    }


}

/*===================================================================
   3. LAYER TABLET SMALL (768px - 991px)
===================================================================*/
@media (min-width: 768px) and (max-width: 991px) {
    .normalline-specifications {
        margin:  0 auto;
        padding: 60px 0 60px  !important;
    }

    .normalline-spec-inner {
        flex-direction: column;
        gap: 30px;
    }

  

    
    .spec-visual { 
        height: auto; 
        aspect-ratio: 4/3; 
    }

    .spec-content { 
        padding: 0; 
    }

    .spec-title {
        font-size: 12px !important; 
        line-height: 1.2;
        color: #888;
        margin-bottom: 20px;
        max-width: 100%;
        font-weight: 500;
    }

    .spec-desc { 
        font-size: 12px; 
        line-height: 1.6; 
        padding: 0; 
    }

    .collage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
}




/*===================================================================
   4. LAYER MOBILE (< 767px)
===================================================================*/
@media (max-width: 767px) {
    .normalline-specifications {
        margin:  0 auto;
        padding: 60px 0 0  !important;
    }
    

    .normalline-spec-inner {
        flex-direction: column;
        gap: 10px;
        margin-bottom: -20px;

    }


    .spec-visual { 
        height: auto; 
        aspect-ratio: 4/3; 
    }
    
    .spec-title {
        font-size: 12px !important; 
        line-height: 1.2;
        color: #888;
        margin-bottom: 20px;
        max-width: 100%;
        font-weight: 500;
    }

    .spec-desc { 
        font-size: 12px; 
        line-height: 1.6; 
        padding: 0; 
    }

    .spec-value { 
        font-size: 13px;
        font-weight: 600; 
        color: #1a1a1a; 
    }

    .collage-item-square img { width: 100%; height: 100%; object-fit: cover; display: block; }
}




























@media (min-width: 769px) {
    .sanpham-gallery {
       
        padding: 80px 55px; 
        background-color: #fff;
        overflow: hidden;
        
        
        display: block; 
        margin: 0 auto !important;
        max-width: 1650px; 
    }

    
    body {
        background-color: #fff;
    }

    
    .luot-header {
        padding: 0; 
        margin-bottom: 27px; 
    }

    .luot-header .sub-title {
        display: block;
        word-spacing: 3px;
        font-size: 14px !important;
        font-weight: 200;
        color: #2b2929;
        letter-spacing: -0.01em;
        text-transform: uppercase;
        margin-bottom: 40px !important;
    }

    .luot-header .main-title {
        font-size: 29px;
        font-weight: 400;
        color: #1a1a1a;
        margin: 0;
        line-height: 1.2;
    }

    .container-luot {
        max-width: 100% !important;
        padding: 0; 
        margin: 0 auto;
    }
    
    .luot-viewport {
        margin-left: -60px; 
        padding-left: 60px; 
        
        overflow: visible;
        margin-right: -10px; 
    }
    
    .luot-track { 
        display: flex; 
        gap: 25px; 
        transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); 
    }
    .sanpham-card { flex: 0 0 calc(33.333% - 20px); }

    .sanpham-image { 
        position: relative; background-color: #f8f8f8; aspect-ratio: 7/8; 
        overflow: hidden; cursor: pointer;
    }
    .sanpham-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
    
    .quick-add-btn {
        position: absolute; bottom: 20px; left: 50%; transform: translate(-50%, 20px);
        background: #fff; padding: 12px 25px; border-radius: 50px;
        font-weight: 600; font-size: 13px; opacity: 0; transition: all 0.3s ease;
    }
    .sanpham-card:hover .quick-add-btn { opacity: 1; transform: translate(-50%, 0); }
    .sanpham-card:hover img { transform: scale(1.05); }

    .sanpham-info { padding: 7px 0; }
   
    .sanpham-info .name { font-family: var(--special-font); font-size: 28px !important; margin: 10px 0; font-weight: 500; color: #1a1a1a; }
    .sanpham-info .desc { font-size: 13px !important; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 15px; }

   .luot-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: -20px;
        padding: 0 !important; 
    }

    .luot-progress-container {
        flex-grow: 1;
        height: 1px;
        background-color: #e5e5e5 !important;
        margin-right: 60px;
        position: relative;
    }

    .luot-progress-bar {
        position: absolute;
        top: 0;
        left: 0;
        height: 3px;
        background-color: #000 !important;
        width: 50%; 
        transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .luot-nav {
        display: flex !important;
        gap: 15px !important;
        flex-shrink: 0; 
    }

    .nav-btn {
        border: 2px solid #eee !important;
        background: none;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }
}