/* 
==============================================
9.0 - ULTRA-MODERN HEADER (POD FASHION STYLE)
==============================================
*/

/* --- 9.1 Base & Glassmorphism --- */
.modern-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 998;
    background-color: rgba(255, 251, 246, 0.85);
    /* Trong suốt nhẹ */
    backdrop-filter: blur(16px);
    /* Hiệu ứng kính mờ mạnh */
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 59, 41, 0.08);
    /* Viền cực mảnh màu xanh */
    transition: all var(--transition-smooth);
}

.modern-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* 3 cột: Cột giữa tự ôm trọn Logo */
    align-items: center;
    height: 85px;
    /* Chiều cao cố định, tạo không gian thoáng */
}

.header-col {
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
    gap: 24px;
}

/* Khoảng cách icon rộng rãi */

/* --- 9.2 Typography & Menu Desktop --- */
.modern-menu {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.modern-menu li a {
    font-family: var(--font-family-title-small);
    /* Font phá cách của POD */
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Hiệu ứng gạch ngang chữ hiện đại khi Hover (Strikethrough effect) */
.modern-menu li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-hover);
    /* Màu cam nổi bật */
    transition: width 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

.modern-menu li a:hover,
.modern-menu li.current-menu-item a {
    color: var(--color-surface-primary);
}

.modern-menu li a:hover::before,
.modern-menu li.current-menu-item a::before {
    width: 100%;
}

/* --- 9.3 Logo Styling --- */
.logo-img {
    max-height: 50px;
    object-fit: contain;
}

.site-title-text {
    font-family: var(--font-family-title);
    font-size: 36px;
    font-weight: 900;
    color: var(--color-surface-primary);
    /* Xanh lá rêu */
    letter-spacing: -2px;
    text-transform: uppercase;
}

/* --- 9.4 Modern Action Icons --- */
.action-icon {
    position: relative;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-icon .material-icons {
    font-size: 28px;
    /* Icon to, đường nét rõ */
    font-weight: 300;
}

.action-icon:hover {
    color: var(--color-accent-hover);
    transform: scale(1.1);
}

/* Cart Badge hình con nhộng (Pill shape) */
.modern-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--color-surface-primary);
    /* Màu xanh rêu */
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-family: sans-serif;
    padding: 2px 6px;
    border-radius: 20px;
    border: 2px solid var(--color-background);
    line-height: 1;
}

/* --- 9.5 Utils --- */
.hide-on-mobile {
    display: flex;
}

.hide-on-desktop {
    display: none;
}


/* ==========================================================================
   MOBILE RESPONSIVE & OFF-CANVAS MENU (BẢN SỬA LỖI & NÂNG CẤP)
   ========================================================================== */
@media (max-width: 992px) {
    .hide-on-mobile {
        display: none !important;
    }

    .hide-on-desktop {
        display: flex;
    }

    .modern-header__inner {
        height: 70px;
    }

    .header-right {
        gap: 16px;
    }

    /* Nút Hamburger 2 gạch (Minimalist) */
    .hamburger-btn {
        background: transparent;
        border: none;
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        padding: 0;
    }

    .hamburger-btn .line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-dark);
        transition: all 0.3s ease;
    }

    .hamburger-btn .line-2 {
        width: 70%;
        /* Line dưới ngắn hơn tạo style bất đối xứng */
    }

    /* --- MOBILE CANVAS OVERLAY (Lớp phủ làm mờ) --- */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    body.mobile-nav-active .mobile-nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* --- MOBILE CANVAS PANEL (Menu trượt) --- */
    .modern-mobile-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 85vw;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-background);
        /* Nền sáng sạch sẽ */
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        /* Trượt mượt như lụa */
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    body.mobile-nav-active .modern-mobile-canvas {
        transform: translateX(0);
    }

    .canvas-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 30px;
    }

    /* Nút Đóng (X) lớn, rõ ràng */
    .close-canvas-btn {
        background: var(--color-surface-tertiary);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--color-dark);
        margin-left: auto;
        /* Đẩy sang phải */
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .close-canvas-btn:active {
        transform: scale(0.9);
        background: #e0e0e0;
    }

    /* Typography Menu Mobile - Bự, Đậm, Ấn tượng */
    .canvas-body {
        margin-top: 40px;
        flex-grow: 1;
        overflow-y: auto;
    }

    .canvas-menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        list-style: none;
        padding: 0;
    }

    .canvas-menu li a {
        display: block;
        font-family: var(--font-family-title);
        /* Dùng font mập/to */
        font-size: 32px;
        font-weight: 800;
        color: var(--color-surface-primary);
        /* Xanh rêu */
        text-decoration: none;
        line-height: 1.2;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .canvas-menu li a:hover {
        color: var(--color-accent-hover);
        /* Màu cam */
        transform: translateX(10px);
        /* Đẩy nhẹ chữ sang phải khi chạm */
    }

    /* Footer Mobile Menu */
    .canvas-footer {
        padding-top: 30px;
        border-top: 2px solid var(--color-border);
    }

    .canvas-account-link {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: var(--font-family-title-small);
        font-size: 18px;
        color: var(--color-dark);
        font-weight: 600;
    }

    .canvas-account-link .material-icons {
        font-size: 26px;
        color: var(--color-accent-hover);
    }
}

/* 
==============================================
10.0 - MODERN HERO SLIDER (EDITORIAL STYLE)
==============================================
*/

.elephant-hero-section {
    width: 100%;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.elephant-hero-slider {
    width: 100%;
    /* Chiều cao tối thiểu 85vh để tạo sự choáng ngợp, nhưng không quá 900px */
    height: clamp(600px, 85vh, 900px);
}

/* --- 10.1: Bố cục Grid Split Screen --- */
.slide-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Chia đôi màn hình */
    width: 100%;
    height: 100%;
}

/* --- 10.2: Cột Nội Dung (Trái) --- */
.slide-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Đẩy nội dung vào giữa màn hình */
    padding-right: 5%;
}

.slide-content-box {
    width: 100%;
    max-width: 600px;
    /* Khớp với độ rộng container của header */
    padding-left: var(--container-padding-x);
    padding-right: var(--spacing-lg);
}

.slide-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-family-title-small);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent-hover);
    /* Màu cam điểm nhấn */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.slide-subtitle .line {
    width: 40px;
    height: 2px;
    background-color: var(--color-accent-hover);
    display: block;
}

.slide-title {
    font-family: var(--font-family-title);
    font-size: clamp(3rem, 6vw, 5.5rem);
    /* Chữ siêu to */
    font-weight: 900;
    color: var(--color-surface-primary);
    /* Xanh lá rêu sâu */
    line-height: 0.95;
    /* Khoảng cách dòng ép sát nhau */
    letter-spacing: -2px;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
}

.slide-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 85%;
    margin-bottom: var(--spacing-xl);
}

/* --- 10.3: Nút Call-to-Action --- */
.modern-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-surface-primary);
    /* Xanh rêu */
    color: var(--color-white);
    padding: 16px 32px;
    font-family: var(--font-family-title-small);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    /* Hơi vuông vức (Brutalist) */
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    overflow: hidden;
}

.modern-btn-solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-hover);
    /* Màu nền khi hover (Cam) */
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.modern-btn-solid span,
.modern-btn-solid .material-icons {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.modern-btn-solid:hover::before {
    transform: translateX(0);
}

.modern-btn-solid:hover span {
    transform: translateX(-5px);
}

.modern-btn-solid:hover .material-icons {
    transform: translateX(5px);
}

/* --- 10.4: Cột Hình Ảnh (Phải) --- */
.slide-image-wrapper {
    width: 100%;
    height: 100%;
    padding: var(--spacing-lg) 0 var(--spacing-lg) 0;
    /* Cách trên dưới 1 chút */
}

.image-reveal-mask {
    width: 100%;
    height: 100%;
    border-radius: 40px 0 0 40px;
    /* Bo tròn góc trái, vuông góc phải -> Rất art */
    overflow: hidden;
    position: relative;
    background-color: var(--color-surface-tertiary);
}

.slide-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- 10.5: ANIMATIONS (Hiệu ứng khi chuyển slide) --- */
/* Trạng thái ẩn ban đầu */
.slide-subtitle,
.slide-title,
.slide-desc,
.slide-btn-wrap {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-main-img {
    transform: scale(1.2);
    /* Ảnh to lúc chưa vào */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trạng thái hiện khi slide Active */
.swiper-slide-active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.swiper-slide-active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.swiper-slide-active .slide-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.swiper-slide-active .slide-btn-wrap {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.swiper-slide-active .slide-main-img {
    transform: scale(1);
    /* Ảnh từ từ thu nhỏ lại vừa khung (Ken Burns) */
}


/* --- 10.6: Điều hướng Swiper (Gom chung góc dưới) --- */
.elephant-slider-controls {
    position: absolute;
    bottom: 40px;
    left: max(var(--container-padding-x), calc((100vw - var(--container-max-width)) / 2 + var(--container-padding-x)));
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Mũi tên */
.modern-nav-arrows {
    display: flex;
    gap: 10px;
}

.modern-arrow-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-surface-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    /* Ghi đè class swiper mặc định */
    margin-top: 0;
    left: auto;
    right: auto;
    top: auto;
}

.modern-arrow-btn::after {
    display: none;
    /* Ẩn icon mặc định của swiper */
}

.modern-arrow-btn:hover {
    background: var(--color-surface-primary);
    color: var(--color-white);
    border-color: var(--color-surface-primary);
}

/* Pagination (Dấu chấm) */
.modern-pagination {
    position: relative !important;
    bottom: 0 !important;
    text-align: left !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    width: 30px !important;
    height: 3px !important;
    border-radius: 0 !important;
    background: var(--color-border) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 50px !important;
    background: var(--color-surface-primary) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE CHO SLIDER
   ========================================================================== */
@media (max-width: 992px) {
    .elephant-hero-slider {
        height: auto;
        min-height: 100vh;
        /* Chuyển thành Full màn hình trên Mobile */
    }

    .slide-inner-grid {
        grid-template-columns: 1fr;
        /* Trở thành xếp dọc */
        grid-template-rows: 1fr 1fr;
    }

    /* Đưa cột ảnh lên trên, text xuống dưới cho Mobile */
    .slide-image-wrapper {
        grid-row: 1;
        padding: 0;
    }

    .image-reveal-mask {
        border-radius: 0 0 40px 40px;
        /* Bo tròn góc dưới */
    }

    .slide-content-wrapper {
        grid-row: 2;
        padding: 40px 0;
        justify-content: center;
        text-align: center;
    }

    .slide-content-box {
        padding: 0 var(--container-padding-x);
    }

    .slide-subtitle {
        justify-content: center;
    }

    .slide-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .slide-desc {
        max-width: 100%;
        margin: 0 auto var(--spacing-xl) auto;
    }

    /* Căn giữa cụm nút điều khiển trên mobile */
    .elephant-slider-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        flex-direction: column-reverse;
        /* Đưa dấu chấm lên trên mũi tên */
        gap: 20px;
    }

    .modern-arrow-btn {
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   SỬA LỖI: ẨN MENU MOBILE TRÊN DESKTOP
   ========================================= */
.mobile-nav-overlay,
.modern-mobile-canvas {
    display: none;
    /* Mặc định trên màn hình máy tính là giấu đi 100% */
}

/* Kích hoạt lại khi xuống màn hình điện thoại/tablet */
@media (max-width: 992px) {

    .mobile-nav-overlay,
    .modern-mobile-canvas {
        display: block;
    }

    /* Lớp phủ màn hình mờ */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    /* Panel Menu Trượt */
    .modern-mobile-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 85vw;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-background);
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }
}

/* 
==============================================
11.0 - MODERN SERVICE FEATURES (POD STYLE)
==============================================
*/

.elephant-features-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background);
    /* Nền màu cát/trắng ngà */
    border-top: 1px solid rgba(0, 59, 41, 0.05);
    /* Đường line chia cách cực mỏng */
    border-bottom: 1px solid rgba(0, 59, 41, 0.05);
}

.modern-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cột đều nhau trên Desktop */
    gap: 24px;
}

/* --- Thẻ Card Chứa Nội Dung --- */
.modern-feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-surface-tertiary);
    /* Màu nền nhạt (Kem/Xám nhạt) */
    padding: 24px 20px;
    border-radius: var(--border-radius-lg);
    /* Bo góc 16px giống Header/Slider */
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

/* Hiệu ứng Hover vào thẻ Card */
.modern-feature-card:hover {
    background-color: var(--color-white);
    border-color: var(--color-accent-hover);
    /* Viền màu cam nổi lên */
    transform: translateY(-5px);
    /* Nhấc nhẹ thẻ lên */
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.08);
    /* Bóng đổ màu cam cực nhẹ */
}

/* --- Khung chứa Icon --- */
.feature-icon-box {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    /* Chống bị bóp méo hình tròn */
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-surface-primary);
    /* Icon màu Xanh Rêu */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-icon-box .material-icons {
    font-size: 28px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover đổi màu Icon và Xoay nhẹ */
.modern-feature-card:hover .feature-icon-box {
    background-color: var(--color-accent-hover);
    /* Nền icon chuyển Cam */
    color: var(--color-white);
    /* Icon chuyển Trắng */
}

.modern-feature-card:hover .feature-icon-box .material-icons {
    transform: rotate(-10deg) scale(1.1);
    /* Lắc nhẹ và to ra */
}

/* --- Typography (Text) --- */
.feature-text-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-title {
    font-family: var(--font-family-title-small);
    /* Dùng font uốn lượn cá tính của bạn */
    font-size: 16px;
    font-weight: 700;
    color: var(--color-surface-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.feature-desc {
    font-family: var(--font-family-primary);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

/* Tablet (Màn hình vừa) */
@media (max-width: 1024px) {
    .modern-features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Rút xuống 2 cột */
        gap: 20px;
    }
}

/* Mobile (Màn hình điện thoại) */
@media (max-width: 576px) {
    .elephant-features-section {
        padding: var(--spacing-xl) 0;
        /* Thu gọn khoảng cách trên dưới */
    }

    .modern-features-grid {
        /* Vẫn giữ 2 cột trên mobile cho gọn, biến thành dạng khối vuông (Badge) */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modern-feature-card {
        flex-direction: column;
        /* Đẩy icon lên trên, text xuống dưới */
        text-align: center;
        padding: 20px 12px;
        gap: 12px;
    }

    .feature-icon-box {
        width: 48px;
        height: 48px;
    }

    .feature-icon-box .material-icons {
        font-size: 24px;
    }

    .feature-title {
        font-size: 14px;
        /* Giới hạn 2 dòng nếu chữ quá dài */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-desc {
        font-size: 12px;
    }
}

/* 
==============================================
12.0 - MODERN CATEGORY LOOKBOOK (POD STYLE)
==============================================
*/

.elephant-category-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    background-color: var(--color-background);
}

/* --- 12.1 Section Header --- */
.modern-section-header {
    margin-bottom: var(--spacing-xxl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modern-heading {
    font-family: var(--font-family-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-surface-primary);
    /* Xanh Rêu */
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.modern-subheading {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0;
}

/* --- 12.2 Grid Layout --- */
.modern-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Cột Desktop */
    gap: 30px;
}

/* --- 12.3 Category Card (Lookbook Portrait) --- */
.modern-cat-card {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 24px;
    /* Bo góc cực lớn chuẩn 2024 */
    overflow: hidden;
    /* Aspect-ratio 4/5 tạo ra khung hình dọc siêu đẹp cho áo thun/model */
    aspect-ratio: 4 / 5;
    background-color: var(--color-surface-tertiary);
    /* Chống giật khi hover (Hardware acceleration) */
    transform: translateZ(0);
}

/* --- Hình Ảnh & Overlay --- */
.cat-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Overlay gradient từ dưới lên để đảm bảo cái Badge luôn dễ nhìn */
.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 59, 41, 0.4) 0%, rgba(0, 59, 41, 0) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

/* --- Floating Badge (Tên Danh Mục) --- */
.cat-badge-wrapper {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    z-index: 2;
}

/* Nút hình viên thuốc (Pill) cực kỳ trendy */
.cat-pill-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-white);
    padding: 12px 20px 12px 24px;
    border-radius: 50px;
    /* Bo tròn hoàn toàn 2 đầu */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 220px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-name {
    font-family: var(--font-family-title-small);
    font-size: 15px;
    font-weight: 800;
    color: var(--color-surface-primary);
    /* Xanh Rêu */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-tertiary);
    /* Nền xám nhạt cho icon */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-surface-primary);
    transition: all 0.3s ease;
}

.cat-arrow .material-icons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* =========================================
   HIỆU ỨNG HOVER (ANIMATIONS)
   ========================================= */
.modern-cat-card:hover .cat-img {
    transform: scale(1.08);
    /* Zoom nhẹ ảnh mượt mà */
}

.modern-cat-card:hover .cat-overlay {
    opacity: 0.8;
    /* Làm tối nhẹ ảnh để nút nổi hơn */
}

.modern-cat-card:hover .cat-pill-badge {
    background-color: var(--color-surface-primary);
    /* Nút chuyển sang màu Xanh Rêu */
    transform: translateY(-5px);
    /* Nhấc nút lên một chút */
    box-shadow: 0 15px 30px rgba(0, 59, 41, 0.2);
}

.modern-cat-card:hover .cat-name {
    color: var(--color-white);
    /* Chữ chuyển màu Trắng */
}

.modern-cat-card:hover .cat-arrow {
    background-color: var(--color-accent-hover);
    /* Icon chuyển màu Cam */
    color: var(--color-white);
}

.modern-cat-card:hover .cat-arrow .material-icons {
    transform: translateX(3px);
    /* Mũi tên trượt sang phải */
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

/* Tablet (Dưới 1024px) */
@media (max-width: 1024px) {
    .modern-category-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Chuyển thành 2 cột */
        gap: 20px;
    }
}

/* Mobile (Dưới 576px) */
@media (max-width: 576px) {
    .elephant-category-section {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .modern-section-header {
        margin-bottom: var(--spacing-xl);
    }

    /* Trên Mobile vẫn giữ 2 cột, trông sẽ giống Instagram Grid, cực đẹp cho áo thun */
    .modern-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* Thu hẹp khoảng cách để thẻ to hơn */
    }

    .modern-cat-card {
        border-radius: 16px;
        /* Bo góc nhỏ lại cho vừa mobile */
        /* Trên mobile để dạng hơi vuông 1 chút để ảnh to hơn */
        aspect-ratio: 1 / 1.1;
    }

    .cat-badge-wrapper {
        bottom: 12px;
        padding: 0 10px;
    }

    .cat-pill-badge {
        padding: 8px 12px 8px 16px;
        max-width: 100%;
        /* Cho nút ôm hết chiều rộng card trên mobile */
    }

    .cat-name {
        font-size: 13px;
        /* Rút gọn chữ nếu quá dài */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70%;
    }

    .cat-arrow {
        width: 26px;
        height: 26px;
    }

    .cat-arrow .material-icons {
        font-size: 14px;
    }
}

/* 
==============================================
13.0 - MODERN PRODUCT SLIDER (LATEST ARRIVALS)
==============================================
*/

.elephant-latest-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    background-color: var(--color-background);
}

/* Lưu ý: Nếu bạn đã dán CSS của section "Shop By Category" trước đó, 
thì class .modern-section-header, .modern-heading, .modern-subheading đã có. 
Nó sẽ tự động áp dụng hoàn hảo cho phần này! */

/* --- 13.1 Product Card Base --- */
.modern-product-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Khoảng cách giữa Ảnh và Chữ */
    transition: transform 0.3s ease;
}

/* --- 13.2 Image Wrapper (Khung ảnh 4:5) --- */
.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    /* Chuẩn tỷ lệ Lookbook / Áo thun */
    background-color: var(--color-surface-tertiary);
    /* Xám/Kem nhạt làm nền */
    border-radius: 16px;
    /* Bo góc hiện đại */
    overflow: hidden;
    /* Hardware acceleration chống giật khi hover */
    transform: translateZ(0);
}

.card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Đảm bảo ảnh lấp đầy khung mà không méo */
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom nhẹ ảnh khi hover thẻ Card */
.modern-product-card:hover .product-img {
    transform: scale(1.08);
}

/* --- 13.3 Badges & Floating Actions --- */

/* Badge Sale (-%) */
.badge-sale {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-accent-hover);
    /* Màu Cam rực rỡ */
    color: var(--color-white);
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    /* Hình viên thuốc */
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 85, 0, 0.2);
}

/* Nút Quick View (Dạng Tròn) */
.btn-quick-view {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    color: var(--color-surface-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 10;

    /* Animation ẩn đi và trượt từ phải sang */
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-quick-view .material-icons {
    font-size: 20px;
}

.btn-quick-view:hover {
    background-color: var(--color-surface-primary);
    color: var(--color-white);
}

/* Nút Add to Cart (Trượt từ dưới lên phủ kín đáy ảnh) */
.btn-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: rgba(255, 251, 246, 0.95);
    /* Màu nền sáng kính mờ */
    backdrop-filter: blur(5px);
    color: var(--color-surface-primary);
    font-family: var(--font-family-title-small);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;

    /* Animation ẩn đi và trượt từ dưới lên */
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-add-to-cart:hover {
    background-color: var(--color-surface-primary);
    color: var(--color-white);
}

/* Kích hoạt Animation khi Hover vào Card */
.modern-product-card:hover .btn-quick-view {
    opacity: 1;
    transform: translateX(0);
}

.modern-product-card:hover .btn-add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

/* --- 13.4 Product Info (Text Bên Dưới) --- */
.card-info-wrapper {
    padding: 0 8px;
    /* Lùi vào một xíu cho cân đối với độ bo góc của ảnh */
}

/* Hàng Category & Rating */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sửa màu sao Rating thành Cam */
.star-rating-box .star-rating {
    font-size: 13px;
    color: var(--color-rating);
    /* Màu Vàng/Cam từ root */
}

/* Tên Sản Phẩm */
.product-title {
    font-family: var(--font-family-title-small);
    /* Font uốn lượn cá tính */
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;

    /* Giới hạn 1 dòng, dài quá hiện "..." */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    color: var(--color-surface-primary);
    /* Xanh Rêu */
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--color-accent-hover);
    /* Hover ra màu Cam */
}

/* Giá Tiền */
.product-price {
    font-family: var(--font-family-primary);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent-hover);
    /* Màu Cam nổi bật */
}

/* Xử lý hiển thị Giá Gốc (Bị gạch chéo) khi có Giảm giá */
.product-price del {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 13px;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: var(--color-accent-hover);
}

/* --- Phân trang Slider (Dots) --- */
.modern-product-pagination {
    margin-top: 40px !important;
    position: relative !important;
}

.modern-product-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--color-text-secondary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.modern-product-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-surface-primary);
    opacity: 1;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {

    /* Màn hình cảm ứng không có hover, cần cho nút Add to Cart & Quick View hiện sẵn */
    .btn-quick-view {
        opacity: 1;
        transform: translateX(0);
        width: 32px;
        height: 32px;
        /* Thu nhỏ icon lại trên mobile */
        top: 10px;
        right: 10px;
    }

    .btn-quick-view .material-icons {
        font-size: 16px;
    }

    .btn-add-to-cart {
        /* Trên Mobile, ta hiển thị sẵn thanh Add to cart ở đáy ảnh */
        opacity: 1;
        transform: translateY(0);
        height: 40px;
        font-size: 12px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }
}

/* 
==============================================
14.0 - MODERN BESTSELLING (TABBED SECTION)
==============================================
*/

.elephant-bestselling-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    background-color: var(--color-background);
    /* Nền màu cát */
}

/* --- 14.1 Tabs Navigation --- */
.modern-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 30px;
}

.modern-tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-family-title-small);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-secondary);
    /* Màu chữ xám nhạt khi chưa chọn */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

/* Hiệu ứng gạch dưới khi Hover hoặc Active (Rất xịn) */
.modern-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-surface-primary);
    /* Xanh Rêu */
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-tab-btn:hover,
.modern-tab-btn.active {
    color: var(--color-surface-primary);
    /* Đậm lên khi chọn */
}

.modern-tab-btn:hover::after,
.modern-tab-btn.active::after {
    width: 100%;
}

/* --- 14.2 Tabs Content Area --- */
.modern-tabs-content-wrapper {
    position: relative;
    width: 100%;
    min-height: 450px;
    /* Giữ khung để lúc chuyển Tab không bị giật/nhảy trang */
}

/* Ẩn mặc định các Tab */
.modern-tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

/* Chỉ hiện Tab được chọn */
.modern-tab-pane.active-tab {
    display: block;
}

/* Hiệu ứng mờ dần khi chuyển Tab */
@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 14.3 Empty State (Khi danh mục không có SP) --- */
.empty-tab-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
    text-align: center;
}

.empty-tab-message .material-icons {
    font-size: 48px;
    color: var(--color-border);
    margin-bottom: 16px;
}

.empty-tab-message p {
    font-family: var(--font-family-primary);
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE CHO TABS
   ========================================================================== */
@media (max-width: 768px) {
    .modern-tabs-nav {
        gap: 20px;
        margin-top: 20px;
        /* Cho phép vuốt ngang trên mobile nếu có quá nhiều tab */
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        scrollbar-width: none;
        /* Ẩn thanh cuộn Firefox */
    }

    .modern-tabs-nav::-webkit-scrollbar {
        display: none;
        /* Ẩn thanh cuộn Chrome/Safari */
    }

    .modern-tab-btn {
        white-space: nowrap;
        /* Chống rớt dòng chữ trên nút */
        font-size: 14px;
    }
}

/* 
==============================================
15.0 - MODERN BLOG CARDS (EDITORIAL STYLE)
==============================================
*/

.elephant-blog-section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    background-color: var(--color-background);
    /* Nền Cát/Trắng ngà */
}

/* --- 15.1 Base Card Structure --- */
.modern-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Border mỏng tạo cảm giác tinh tế như một trang báo giấy */
    border: 1px solid rgba(0, 59, 41, 0.08);
    border-radius: 12px;
    background-color: var(--color-white);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hiệu ứng nổi bồng bềnh nhẹ khi di chuột */
.modern-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 59, 41, 0.06);
}

/* --- 15.2 Image & Date Badge --- */
.blog-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    /* Khung hình ngang chuẩn màn ảnh (1.6:1) */
    overflow: hidden;
    background-color: var(--color-surface-tertiary);
    /* Nền chờ load ảnh */
}

.blog-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-blog-card:hover .blog-thumbnail {
    transform: scale(1.05);
    /* Zoom nhẹ hình */
}

/* Ô Ngày Tháng (Typography điểm nhấn) */
.blog-date-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-white);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* Cắt góc vuông vức giống Layout Tạp chí thay vì bo tròn */
    border-top-left-radius: 12px;
    z-index: 2;
}

.date-day {
    font-family: var(--font-family-title);
    font-size: 24px;
    font-weight: 900;
    color: var(--color-surface-primary);
    /* Xanh Rêu */
    letter-spacing: -1px;
}

.date-month {
    font-family: var(--font-family-title-small);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    /* Cam */
    margin-top: 4px;
    letter-spacing: 1px;
}

/* --- 15.3 Content Area --- */
.blog-info-wrapper {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Để thẻ cân bằng chiều cao trên Slider */
}

.blog-category {
    font-family: var(--font-family-title-small);
    font-size: 11px;
    font-weight: 800;
    color: var(--color-accent-hover);
    /* Nhấn bằng màu Cam */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-title {
    font-family: var(--font-family-title);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px 0;
    /* Giới hạn 2 dòng để tiêu đề dài không phá layout */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: var(--color-surface-primary);
    /* Xanh rêu đậm */
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-blog-card:hover .blog-title a {
    color: var(--color-accent-hover);
    /* Cam khi di chuột vào thẻ */
}

.blog-excerpt {
    font-family: var(--font-family-primary);
    font-size: 14px;
    color: var(--color-text-secondary);
    /* Xám nhạt */
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex-grow: 1;
    /* Đẩy nút Read More xuống đáy */
}

/* --- 15.4 Nút Read More --- */
.blog-readmore-link {
    align-self: flex-start;
    /* Không cho nó rộng hết thẻ */
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-title-small);
    font-size: 13px;
    font-weight: 800;
    color: var(--color-surface-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

/* Đường gạch ngang tịnh tiến */
.blog-readmore-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-hover);
    /* Màu cam */
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-readmore-link .material-icons {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Hiệu ứng khi lướt thẻ */
.modern-blog-card:hover .blog-readmore-link {
    color: var(--color-accent-hover);
    /* Chữ Cam */
}

.modern-blog-card:hover .blog-readmore-link::after {
    width: 100%;
    /* Dòng gạch chân phiền ra hết nút */
}

.modern-blog-card:hover .blog-readmore-link .material-icons {
    transform: translateX(4px);
    /* Mũi tên phi lên trước */
}

/* --- 15.5 Pagination Slider --- */
.modern-blog-pagination {
    margin-top: 40px !important;
    position: relative !important;
}

.modern-blog-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--color-text-secondary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.modern-blog-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-surface-primary);
    opacity: 1;
}

/* ==========================================================================
   MOBILE RESPONSIVE CHO BLOG
   ========================================================================== */
@media (max-width: 576px) {
    .elephant-blog-section {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .blog-img-wrapper {
        aspect-ratio: 4 / 3;
        /* Vuông hơn một chút trên mobile */
    }

    .blog-info-wrapper {
        padding: 24px 20px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-excerpt {
        font-size: 13px;
        margin-bottom: 20px;
    }
}