/* --- 1. RESET & VARIABLES --- */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    font-size: 13px; /* Size chuẩn web thời trang */
    font-weight: 400;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }

/* Utilities */
.container { 
    max-width: 100%; 
    padding: 0 5%; /* Thay vì 40px cố định, dùng 5% để tự co dãn */
}

/* Button Style */
.btn {
    display: inline-block;
    border: 1px solid var(--black);
    padding: 14px 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 30px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}
.btn:hover { background: var(--black); color: var(--white); }

/* --- 2. HEADER --- */
#dg-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background-color: transparent;
    color: #ffffff; /* Mặc định chữ đen vì nền trắng hoặc ảnh sáng */
    transition: all 0.4s ease;
    padding-bottom: 30px;
}

/* Khi cuộn hoặc hover: Nền trắng */
#dg-header.scrolled, #dg-header:hover {
    background-color: rgba(255, 255, 255, 0.98);
    color: #000000; /* <--- THÊM DÒNG NÀY: Chuyển chữ về ĐEN khi nền trắng */
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    padding-bottom: 70px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px; 
    
    /* Dùng font Montserrat để chữ 'o', 'a' tròn xoe giống ảnh */
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500; /* Hơi đậm nhẹ một chút như ảnh */
    text-transform: none; /* Trong ảnh không viết in hoa hết, chỉ viết hoa chữ đầu */
    letter-spacing: 0.5px;
}

/* 1. Nhóm bên TRÁI (Fashion, Beauty...) */
.nav-left { 
    display: flex; 
    gap: 12px;           /* Khoảng cách giữa các chữ bên trái - Ní tăng giảm tùy ý */
    align-items: center; 
}

/* 2. Nhóm bên PHẢI (Search, Login, Bag...) */
.nav-right { 
    display: flex; 
    gap: 13px;           /* Khoảng cách giữa các mục bên phải - Có thể để khít hơn bên trái */
    align-items: center; 
}

/* 3. Nếu muốn chỉnh cỡ chữ hoặc độ đậm riêng cho từng bên thì dùng cái này: */
.nav-left a {
    font-size: 11px;     /* Cỡ chữ bên trái */
}

/* Tìm và sửa lại phần này trong CSS của bạn */
.nav-right a {
    display: inline-flex;    /* Ép icon và chữ nằm cùng một hàng */
    align-items: center;     /* Căn giữa icon và chữ theo trục dọc */
    font-size: 11px;
    gap: 4px;                /* Khoảng cách giữa icon và chữ */
    line-height: 1;          /* Khử bỏ khoảng cách dòng thừa của chữ */
}

/* Chỉnh riêng cho icon SVG */
.icon-svg {
    width: 15px;
    height: 15px;
    stroke-width: 0.8;       /* Độ mảnh chuẩn Luxury */
    fill: none;
    flex-shrink: 0;          /* Không cho icon bị bóp méo */
    
    /* Nếu túi vẫn lệch 1-2px, dùng lệnh này để nhích thủ công */
    position: relative;
    top: 1px;                /* Tăng giảm số này (ví dụ: -1px hoặc 1px) để khớp hoàn toàn */
}

.bag-icon .icon-svg {
    width: 18px;             /* Chỉnh size túi to hơn kính lúp một chút cho cân thị giác */
    height: 18px;
    position: relative; 
    top: -3px;         
    margin-left: -3;      
}
/* Đảm bảo nét vẽ hiện màu đen khi cuộn trang hoặc hover */
#dg-header.scrolled .icon-svg, 
#dg-header:hover .icon-svg {
    stroke: #000000 !important; /* Đổi màu nét vẽ thay vì màu chữ */
}
.my-dg {
    font-weight: 600;
    border-bottom: 2px solid currentColor;
}

/* LOGO AREA */
.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    transition: margin 0.4s ease;
    padding: 5px 0 5px 0;
}

.logo-full {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size:90px;       /* Tăng size chữ chính lên cho gấu */
    letter-spacing: -7px;  /* Cho chữ DOLCE và GABBANA xếp sát rạt nhau */
    display: block;
    transition: opacity 0.3s;
    line-height: 0.5;        /* Đảm bảo khung chữ không bị quá cao */
    transform: scaleY(1.1);
}

.logo-full .amp {
    /* 1. Dùng font mặc định hệ thống, không chân cho nó "bình thường" */
    font-family: Arial, sans-serif; 
    
    /* 2. Bắt buộc đứng thẳng, không uốn éo */
    font-style: normal !important; 
    
    /* 3. Chỉnh size nhỏ lại so với DOLCE GABBANA */
    font-size: 0.5em; 
    
    /* 4. Độ đậm vừa phải, không quá dày */
    font-weight: 700; 
    
    /* 5. Căn giữa và tạo khoảng cách 2 bên */
    vertical-align: 2px;
    margin: 0 0px;
    display: inline-block;
}
/* Logo DG (Mặc định ẩn) - Trong HTML bạn dùng thẻ img */
.logo-dg {
    display: none;
    width: 50px; /* Kích thước logo nhỏ */
    height: auto;
}

/* === LOGIC ĐỔI LOGO KHI CUỘN === */
/* Khi có class .scrolled: Ẩn full, hiện logo ảnh */
#dg-header.scrolled .logo-full { display: none; }
#dg-header.scrolled .logo-dg { display: block; }
#dg-header.scrolled .logo-area { margin-top: 0; }

.hero {
    position: relative;
    width: 100%;
    height: auto;        /* Đổi từ 150vh sang auto để không bị cắt ảnh */
    min-height: 100vh;   /* Đảm bảo ít nhất vẫn cao bằng 1 màn hình */
    margin-top: 0;
    overflow: visible;   /* Cho phép nội dung dài ra để cuộn */
}

.hero-img {
    width: 100%;
    height: auto;        /* Ảnh tự co dãn theo chiều ngang */
    display: block;
    object-fit: contain; /* Giúp thấy toàn bộ ảnh mà không bị mất góc nào */
}
.hero-overlay {
    position: absolute;
    bottom: 60px; width: 100%;
    display: flex; justify-content: center;
    pointer-events: none;
}
.hero-logo-overlay { width: 400px; filter: invert(1); /* Logo trắng */ }



/* --- 1. PHẦN INTRO (Mẫu - Giày - Chữ) --- */
.intro-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 40px 0 40px; /* Giảm padding top từ 80px xuống 40px hoặc 0 nếu muốn khít hẳn */
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    height: auto;             /* Luôn để auto để không bị cắt khi thu phóng */
}

/* Cột 1: Người Mẫu (Trái) - Ở trên cao nhất */
.col-model {
    width: 42%;
    margin-top: -1; 
}

.col-shoes {
    width: 36%;
    margin-top: 15vw !important;  /* Dùng vw để khoảng cách tự co lại khi web nhỏ */
}

.col-text {
    width: 18%;
    margin-top: 15vw !important;  /* Đồng bộ với cột giày */
    text-align: left;
}

/* Style cho chữ trong cột 3 */
.col-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 40px; 
    text-transform: uppercase;
    color: #000;
}

.col-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Ảnh gạch chéo */
.line-img {
    width: 120px;      /* Độ dài gạch chéo */
    height: auto;
    display: block;
    opacity: 0.7;
}

/* --- 5. SECTIONS PHỤ (Dán đoạn này vào TRƯỚC phần 6. GRID LAYOUT) --- */

/* 1. Phần Logo MY DG to đùng */
.big-logo-section {
    text-align: center;
    width: 100%;
    padding: 0;
    margin-top: -20px; /* Kéo lên sát chân giày */
    position: relative;
    z-index: 10;
}

.big-logo-section img {
    width: 95%;
    max-width: 1440px;
    margin: 0 auto;
    display: block;
}

/* --- PHẦN WHY JOIN (CĂN GIỮA TUYỆT ĐỐI) --- */
.why-join {
    text-align: center;
    padding: 90px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa theo chiều ngang */
}

/* 1. Tiêu đề: your world, our world */
.why-join h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 70px;
    text-transform: lowercase; /* Giữ nguyên kiểu chữ thường như ní gửi */
    color: #222;
    line-height: 1.1;
}

.why-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa khối nội dung */
}

/* 2. Tiêu đề: WHY JOIN */
.why-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* 3. Danh sách 4 dòng nội dung */
.why-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 70px;
}

.why-content ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #444;
    line-height: 2.4;
    /* Giúp nội dung li căn giữa */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dấu gạch chéo đầu dòng */
.why-content ul li::before {
    content: "/ ";
    margin-right: 12px;
    font-weight: 700;
    color: #222;
}

/* 4. Nút SIGN UP */
.why-content .btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #222;
    color: #222;
    padding: 20px 80px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 0; /* Xóa margin top cũ để căn chỉnh theo flexbox */
}

.why-content .btn:hover {
    background-color: #222;
    color: #fff;
}
/* --- 6. GRID LAYOUT (QUAN TRỌNG) --- */
.grid-layout {
    display: grid;
    /* Thay repeat(3, 1fr) bằng dòng dưới đây để tự động nhảy hàng */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
}
.grid-item {
    /* height: 700px; <--- XÓA DÒNG NÀY */
    height: auto !important;     /* Để khung tự dài ra theo nội dung */
    min-height: 500px;           /* Chiều cao tối thiểu để giữ dáng */
    position: relative;
    overflow: hidden;
}
.grid-item img { height: 100%; transition: transform 1s ease; }
.grid-item:hover img { transform: scale(1.05); }

/* Khối bao ngoài cùng */
.black-box {
    background: #000;
    color: #fff;
    padding: 60px 40px; 
    /* height: 700px; <--- XÓA DÒNG NÀY */
    height: auto !important; 	  /* Để chữ không bị tràn ra ngoài khi zoom */
    min-height: 500px;
    display: flex;
    position: relative;
}

/* Thùng chứa chữ */
.box-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: space-between; 
}

/* SỬA TẠI ĐÂY: Trỏ trực tiếp vào h3 bên trong box-text */
.box-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px !important; /* Để 100px sẽ bị tràn ô, nên để 40px-60px là đẹp nhất */
    font-weight: 300;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-align: left;
    align-self: flex-start; 
}

/* SỬA TẠI ĐÂY: Trỏ trực tiếp vào p bên trong box-text */
.box-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important; /* Để 70px sẽ cực kỳ to, nên để 16px-18px là vừa ảnh mẫu */
    font-weight: 400;
    line-height: 1.6;
    color: #fff;
    text-align: left; 
    align-self: center; 
    max-width: 400px; 
    opacity: 0.95;
}
/* --- Style cho 3 ảnh nhỏ nằm ngang --- */
.gallery-bottom {
    display: flex;          /* Bắt buộc xếp ngang */
    justify-content: space-between; /* Căn đều khoảng cách */
    gap: 10px;             /* Khoảng cách giữa các ảnh (tùy chỉnh 5px, 10px...) */
    margin-bottom: 40px;    /* Khoảng cách với phần bên dưới */
    width: 100%;
}

.gallery-col {
    flex: 1;               /* Chia đều không gian cho 3 cột (mỗi cột 1/3) */
    height: 500px;         /* (Tùy chọn) Quy định chiều cao cố định để ảnh bằng nhau */
    overflow: hidden;      /* Ẩn phần thừa nếu ảnh quá dài */
}

.gallery-col img {
    width: 100%;           /* Chiều rộng ảnh full cột */
    height: 100%;          /* Chiều cao full cột */
    object-fit: cover;     /* Cắt ảnh tự động để lấp đầy khung mà không bị méo */
    display: block;
}
/* --- 7. MY DG LARGE BANNER (MỚI THÊM) --- */
.mydg-banner {
    width: 100%;
    margin-top: 40px; /* Tạo khoảng cách với phần trên */
    margin-bottom: 0; /* Để sát với footer */
    overflow: hidden;
}

.mydg-banner img {
    width: 100%;       /* Bắt buộc ảnh rộng 100% màn hình */
    height: auto;      
    display: block;    
    object-fit: cover;
}


footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    max-width: 100%;
    padding: 0 50px; /* Khoảng cách hai bên lề */
}

/* 1. Logo chính giữa */
.footer-brand-center {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

/* 2. Bố cục 2 cột trên */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    margin-bottom: 60px;
}

.split-col {
    width: 30%; /* Độ rộng cột để tạo khoảng trống ở giữa */
}

.split-col h5 {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.split-col p {
    font-size: 11px;
    margin-bottom: 15px;
}

/* 3. Ô nhập liệu đường kẻ mảnh */
.input-line {
    display: flex;
    border-bottom: 1px solid #ffffff; /* Đường kẻ trắng mảnh */
    padding-bottom: 8px;
}

.input-line input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 11px;
}

.input-line input::placeholder {
    color: #888;
}

.input-line button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding-left: 15px;
}

/* 4. Checkbox và Privacy */
.checkbox-row {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 11px;
}

.checkbox-row input {
    margin-right: 10px;
    cursor: pointer;
}

.underline {
    text-decoration: underline;
    cursor: pointer;
}

/* 5. Thanh Menu Giữa */
.footer-middle-bar {
    /* 1. Tạo 2 đường kẻ */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;

    /* 2. Ép đường kẻ tràn hết màn hình */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    /* 3. Nội dung bên trong vẫn phải thụt vào cho đều với phần trên */
    padding: 25px 50px; /* 50px này phải bằng với padding của container bạn đang dùng */
    box-sizing: border-box; 
    
    /* 4. Dàn hàng ngang */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.plus-icon {
    font-size: 14px;
    margin-left: 5px;
    font-weight: 300;
}

/* 6. Country Selector */
.country-selector {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.country-selector .white {
    font-weight: 400;
    margin: 0 10px;
}

.arrow-down {
    font-size: 10px;
}

.footer-copyright {
    color: #f1efef;           /* Sửa lại thành màu xám trầm để không bị át Menu */
    font-size: 8px;
    line-height: 1;
    text-align: left;
    letter-spacing: 0px;
    margin-top: 25px;      /* Khoảng cách vừa phải với đường kẻ trên */
    max-width: 700px;      /* Bóp hẹp lại chút để chữ tự xuống dòng giống ảnh mẫu */
    padding-left: 40px;    /* Độ thụt lề từ mép trái */
    text-transform: none;  /* Giữ chữ thường cho tinh tế */
}

/* --- 8. PHẦN MỚI THÊM: BOTTOM CTA --- */
.bottom-cta {
    width: 100%;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;    /* Đây là dòng quan trọng để căn giữa */
    justify-content: center;
    text-align: center;
    background-color: #fff;
}

.bottom-cta h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.bottom-cta .btn {
    display: inline-block;
    padding: 18px 60px;
    border: 1px solid #000;
    /* ... các thuộc tính còn lại ... */
}
.split-col-2 .input-line{
    padding-top: 38px;

}

.split-col-2{
    width: 30%;
}
/* --- PHẦN FIX LỖI VỊ TRÍ --- */

/* 1. Đảm bảo Header là gốc tọa độ */
.top-nav {
    position: relative !important; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 2. Thiết lập nút Toggle "Tàng hình" với Flexbox */
.menu-toggle {
    display: none; /* Máy tính không thấy */
    position: absolute; /* Bay tự do, không đẩy các thẻ <a> */
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 15px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: currentColor; /* Tự đổi màu theo Header */
    transition: 0.3s;
}

/* --- PHẦN GỘP LẠI ĐỂ DÁN VÀO CUỐI FILE STYLES.CSS --- */

@media (max-width: 1024px) {
    /* 1. Hiện nút menu 3 gạch */
    .menu-toggle {
        display: flex !important;
    }

    /* 2. Ẩn TOÀN BỘ chữ bên trái (Xóa bỏ :not(.my-dg) để ẩn luôn MY DG) */
    .nav-left a {
        display: none !important;
    }

    /* 3. Giữ cho MY DG ẩn đi nhưng khối nav-left vẫn tồn tại để chứa nút toggle nếu cần */
    .nav-left {
        display: block !important; /* Đảm bảo khối cha không mất */
        padding-left: 0 !important;
    }

    /* 4. Thu nhỏ Logo trung tâm */
    .logo-full {
        font-size: 28px !important;
        letter-spacing: -1.5px !important;
    }

    /* 5. Ẩn bớt bên phải cho đỡ chật */
    .nav-right a:not(.bag-icon):not(.search-item) {
        display: none !important;
    }
}
@media (max-width: 768px) {
    /* 3. Ép Intro Section (Người mẫu & Giày) xếp chồng dọc */
    .intro-section {
        flex-direction: column !important;
        padding: 40px 20px !important;
    }

    .col-model, .col-shoes, .col-text {
        width: 100% !important;
        margin-top: 30px !important; /* Thay thế cho vw để không bị lệch */
        padding-top: 0 !important;
        text-align: center;
    }

    /* 4. Đưa Grid Layout (các ô đen) về 1 cột duy nhất */
    .grid-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .grid-item, .black-box {
        width: 100% !important;
        aspect-ratio: auto !important; /* Tránh bị bóp méo trên điện thoại */
        min-height: 350px;
    }

    /* 5. Chỉnh lại Footer cho điện thoại */
    .footer-top-row, .footer-middle-bar {
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
    }
    
    .split-col, .split-col-2 {
        width: 100% !important;
    }
}
/* Khi JavaScript thêm class .menu-open vào header */
#dg-header.menu-open .nav-left {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#dg-header.menu-open .nav-left a {
    display: block !important; /* Hiện lại chữ khi menu mở */
    color: #000 !important;
    font-size: 22px;
    margin: 15px 0;
}