/* ==========================================================================
   COLLECTION DETAIL EDITORIAL STYLES - TIỆM MAY ĐỎ
   Quy chuẩn: Tạp chí thời trang cao cấp, Atelier Spec, Editorial Flow,
   Lưới Album 9 cột đều (Desktop) / 3 cột (Mobile) tỉ lệ 2:3, Lightbox & Related Collections
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. KHUNG CHỨA CHÍNH (WRAPPER)
   -------------------------------------------------------------------------- */
.detail-wrapper {
    padding-top: 130px;
    padding-bottom: 120px;
    background-color: var(--bg-cream, #fcfbf9);
}

/* --------------------------------------------------------------------------
   2. THANH ĐIỀU HƯỚNG BREADCRUMB
   -------------------------------------------------------------------------- */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted, #7c746b);
    margin-bottom: 35px;
}

.detail-breadcrumb a {
    color: var(--text-muted, #7c746b);
    text-decoration: none;
    transition: color 0.25s ease;
}

.detail-breadcrumb a:hover {
    color: var(--primary, #8b1d24);
}

.detail-breadcrumb .current {
    color: var(--text-dark, #1c1917);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. TIÊU ĐỀ BÀI VIẾT (EDITORIAL HEADER)
   -------------------------------------------------------------------------- */
.detail-header-editorial {
    max-width: 920px;
    margin: 0 auto 50px;
    text-align: center;
}

.atelier-badge {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--primary, #8b1d24);
    display: inline-block;
    margin-bottom: 18px;
}

.detail-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 3.4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark, #1c1917);
    margin-bottom: 24px;
}

.detail-lead {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 1.25rem;
    line-height: 1.85;
    color: #4a453e;
    font-style: normal;
    max-width: 820px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. BẢNG THÔNG SỐ KỸ THUẬT (ATELIER SPEC SHEET)
   -------------------------------------------------------------------------- */
.atelier-spec-sheet {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--border-color, #e6e2da);
    border-bottom: 1px solid var(--border-color, #e6e2da);
    padding: 24px 0;
    margin-bottom: 70px;
    gap: 20px;
}

.spec-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--border-color, #e6e2da);
    padding-left: 20px;
}

.spec-card:first-child {
    border-left: none;
    padding-left: 0;
}

.spec-kicker {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted, #7c746b);
}

.spec-data {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.95rem;
    color: var(--text-dark, #1c1917);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. BỘ CỤC TRÌNH DIỄN ẢNH NGHỆ THUẬT (EDITORIAL FLOW)
   -------------------------------------------------------------------------- */
.editorial-gallery {
    display: flex;
    flex-direction: column;
    gap: 65px;
}

.ed-row {
    width: 100%;
}

.ed-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    background-color: #161412;
    border-radius: 2px;
}

.ed-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.ed-figure:hover img {
    transform: scale(1.03);
}

.ed-figure figcaption {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    color: var(--text-muted, #7c746b);
    line-height: 1.5;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.ed-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ed-duo .ed-figure {
    aspect-ratio: 3 / 4;
}

.ed-triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ed-triptych .ed-figure {
    aspect-ratio: 2 / 3;
}

.ed-panorama .ed-figure {
    aspect-ratio: 21 / 9;
    width: 100%;
}

.ed-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ed-grid-4 .ed-figure {
    aspect-ratio: 3 / 4;
}

/* --------------------------------------------------------------------------
   6. KHỐI TỰ SỰ KỸ NGHỆ (NARRATIVE BOX)
   -------------------------------------------------------------------------- */
.ed-narrative {
    background: #191614;
    color: #ffffff;
    padding: 75px 60px;
    border-radius: 2px;
    margin: 20px 0;
}

.narrative-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.narrative-tag {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary, #8b1d24);
    display: block;
    margin-bottom: 16px;
}

.narrative-heading {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 2.3rem;
    font-style: normal;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.35;
}

.narrative-inner p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #c4bcb2;
    margin-bottom: 18px;
    font-weight: 300;
}

.narrative-inner p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. LỜI BÌNH NGHỆ NHÂN & TRÍCH DẪN PULL-QUOTE
   -------------------------------------------------------------------------- */
.atelier-commentary-box h3 {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-style: normal;
}

.editorial-pullquote p {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-style: normal;
}

/* --------------------------------------------------------------------------
   8. KHUNG ĐẶT LỊCH HẸN TRẢI NGHIỆM (ATELIER INVITATION)
   -------------------------------------------------------------------------- */
.atelier-invitation {
    margin-top: 90px;
    border-top: 1px solid var(--border-color, #e6e2da);
    padding-top: 70px;
}

.invitation-box {
    background: #f7f4ed;
    border: 1px solid var(--border-color, #e6e2da);
    padding: 60px 40px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.invitation-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary, #8b1d24);
    display: block;
    margin-bottom: 15px;
}

.invitation-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 2.2rem;
    font-style: normal;
    color: var(--text-dark, #1c1917);
    margin-bottom: 15px;
}

.invitation-desc {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-muted, #7c746b);
    max-width: 600px;
    margin: 0 auto 35px;
}

.invitation-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark, #1c1917);
    border: 1px solid var(--text-dark, #1c1917);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-secondary:hover {
    background: var(--text-dark, #1c1917);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. LƯỚI ALBUM TOÀN BỘ ẢNH (9 CỘT ĐỀU ĐẸP DESKTOP / 3 CỘT MOBILE)
   -------------------------------------------------------------------------- */
.archive-matrix-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color, #e6e2da);
}

.archive-matrix-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.archive-matrix-header .matrix-tag {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary, #8b1d24);
    display: block;
    margin-bottom: 12px;
}

.archive-matrix-header .matrix-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 2.2rem;
    font-style: normal;
    color: var(--text-dark, #1c1917);
    margin-bottom: 10px;
}

.archive-matrix-header .matrix-desc {
    font-size: 0.9rem;
    color: var(--text-muted, #7c746b);
    font-weight: 300;
}

/* Lưới đều 9 cột: Tất cả các ô kích thước đều nhau */
.photo-matrix-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
}

/* Ô thumbnail cố định tỉ lệ 2:3 chuẩn nhiếp ảnh */
.matrix-item {
    position: relative;
    overflow: hidden;
    background-color: #161412;
    cursor: pointer;
    border-radius: 2px;
    aspect-ratio: 2 / 3;
    width: 100%;
}

.matrix-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.matrix-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.92);
}

/* Hiệu ứng kính lúp nhẹ nhàng khi hover */
.matrix-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, 0.28);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.matrix-item:hover .matrix-item-overlay {
    opacity: 1;
}

.matrix-zoom-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1715;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(6px);
    transition: transform 0.25s ease;
}

.matrix-item:hover .matrix-zoom-icon {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10. POPUP LIGHTBOX XEM FULL TOÀN MÀN HÌNH (HIỂN THỊ TỈ LỆ THẬT 100%)
   -------------------------------------------------------------------------- */
.editorial-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(10, 9, 8, 0.96);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.editorial-lightbox.is-active {
    display: flex;
    opacity: 1;
}

.lightbox-dialog {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-width: 90vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    user-select: none;
    border-radius: 2px;
}

.lightbox-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev-btn {
    left: 30px;
}

.lightbox-next-btn {
    right: 30px;
}

.lightbox-caption-bar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #c4bcb2;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
}

.lightbox-counter {
    color: var(--primary, #8b1d24);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. KHỐI BỘ ẢNH TƯƠNG ĐỒNG (RELATED COLLECTIONS - CHUẨN XÁC 100%)
   -------------------------------------------------------------------------- */
.related-collections-section {
    margin-top: 100px;
    padding-top: 70px;
    border-top: 1px solid var(--border-color, #e6e2da);
    width: 100%;
}

.related-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.related-header .mosaic-tag {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary, #8b1d24);
    display: inline-block;
    margin-bottom: 8px;
}

.related-header .section-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 2.3rem;
    font-style: normal;
    color: var(--text-dark, #1c1917);
    margin: 0 0 10px;
    line-height: 1.3;
}

.related-desc {
    color: var(--text-muted, #7c746b);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
}

/* Lưới hiển thị 3 Card trên desktop */
.related-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 30px;
    width: 100%;
}

/* Thẻ Card bộ sưu tập trong khối gợi ý */
.related-cards-grid .collection-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.related-cards-grid .collection-card:hover {
    transform: translateY(-6px);
}

.related-cards-grid .card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #1a1816;
    border-radius: 2px;
    margin-bottom: 18px;
}

.related-cards-grid .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.related-cards-grid .collection-card:hover .card-media img {
    transform: scale(1.05);
}

.related-cards-grid .card-chips {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.related-cards-grid .chip-item {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: rgba(18, 17, 15, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.related-cards-grid .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.related-cards-grid .card-category {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary, #8b1d24);
}

.related-cards-grid .card-fabric {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.75rem;
    color: var(--text-muted, #7c746b);
}

.related-cards-grid .card-title {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: 1.4rem;
    font-style: normal;
    color: var(--text-dark, #1c1917);
    margin: 0 0 8px;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.related-cards-grid .collection-card:hover .card-title {
    color: var(--primary, #8b1d24);
}

.related-cards-grid .card-summary {
    font-size: 0.88rem;
    color: var(--text-muted, #7c746b);
    line-height: 1.6;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
}

.related-cards-grid .card-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark, #1c1917);
    transition: gap 0.3s ease, color 0.3s ease;
}

.related-cards-grid .collection-card:hover .card-cta-link {
    color: var(--primary, #8b1d24);
    gap: 10px;
}

/* Responsive cho Tablet & Mobile */
@media (max-width: 1024px) {
    .related-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .related-collections-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    .related-header .section-title {
        font-size: 1.8rem;
    }
    .related-cards-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* --------------------------------------------------------------------------
   12. THIẾT KẾ ĐA THIẾT BỊ (RESPONSIVE)
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
    .photo-matrix-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
    }
}

@media (max-width: 1100px) {
    .detail-title {
        font-size: 2.6rem;
    }
    .atelier-spec-sheet {
        grid-template-columns: repeat(3, 1fr);
    }
    .ed-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ed-panorama .ed-figure {
        aspect-ratio: 16 / 9;
    }
    .photo-matrix-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    .lightbox-prev-btn { left: 15px; }
    .lightbox-next-btn { right: 15px; }
    .related-collections-section .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-wrapper {
        padding-top: 100px;
    }
    .detail-title {
        font-size: 2.1rem;
    }
    .detail-lead {
        font-size: 1.05rem;
    }
    .atelier-spec-sheet {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .spec-card {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border-color, #e6e2da);
        padding-bottom: 12px;
    }
    .ed-duo,
    .ed-triptych,
    .ed-grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .ed-narrative {
        padding: 40px 25px;
    }
    .narrative-heading {
        font-size: 1.7rem;
    }
    .invitation-box {
        padding: 35px 20px;
    }

    /* Lưới Mobile: CHUẨN XÁC 3 CỘT ĐỀU ĐẶN TỈ LỆ 2:3 */
    .photo-matrix-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-close-btn {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }

    .related-collections-section .collections-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}