
                        
/*fn: notes.css*/
/* =========================================================
   THƯ VIỆN NỐT HƯƠNG (FRAGRANCE NOTES HUB) - MC PERFUME
   CHUẨN BRAND THEME: Burgundy #a81e24 | Noto Serif | Montserrat
   ========================================================= */

:root {
    --mc-primary: #a81e24;
    --mc-primary-light: #d5252c;
    --mc-surface-light: #fff0e9;
    --mc-text-dark: #111827;
    --mc-text-muted: #6c757d;
}

/* ================== THƯ VIỆN NỐT HƯƠNG (HUB HERO) ================== */
.notes-hub-hero {
    background: linear-gradient(135deg, #2a080b 0%, #4a1015 55%, #1a1e24 100%);
    border-radius: 16px;
    padding: 36px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(168, 30, 36, 0.25);
}

.notes-hub-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.notes-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fde047;
    margin-bottom: 14px;
    font-family: Montserrat, sans-serif;
}

.notes-hub-title {
    font-family: "Noto Serif", serif !important;
    font-size: clamp(22px, 3.5vw, 32px) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 10px;
    color: #ffffff !important;
}

.notes-hub-subtitle {
    font-family: Montserrat, sans-serif !important;
    font-size: 14.5px;
    color: #f1f5f9;
    max-width: 680px;
    line-height: 1.65;
    margin-bottom: 22px;
    opacity: 0.95;
}

/* Thanh tìm kiếm nhanh nốt hương */
.notes-search-wrapper {
    position: relative;
    max-width: 460px;
}

.notes-search-input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    font-size: 14.5px;
    font-family: Montserrat, sans-serif;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 9999px;
    color: #111827;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notes-search-input:focus {
    background: #ffffff;
    border-color: #a81e24;
    box-shadow: 0 0 0 3px rgba(168, 30, 36, 0.2);
    outline: none;
}

.notes-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* Tabs nhóm hương */
.notes-group-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.notes-group-nav::-webkit-scrollbar {
    height: 4px;
}

.notes-group-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.notes-group-btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-group-btn:hover {
    background: #fff0e9;
    border-color: #fed7aa;
    color: #a81e24;
}

.notes-group-btn.active {
    background: #a81e24 !important;
    border-color: #a81e24 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(168, 30, 36, 0.25);
}

.notes-group-btn .badge-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
}

.notes-group-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Thẻ Nốt Hương (Note Card) */
.note-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 30, 36, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: #fca5a5;
    color: inherit !important;
}

.note-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.note-card-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #fff0e9;
    border-radius: 10px;
    border: 1px solid #ffedd5;
}

.note-card-count {
    font-size: 11.5px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    padding: 3px 9px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.note-card:hover .note-card-count {
    background: #fff0e9;
    border-color: #fed7aa;
    color: #a81e24;
}

.note-card-title {
    font-family: "Noto Serif", serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 2px 0;
    line-height: 1.35;
}

.note-card-en {
    font-family: Montserrat, sans-serif;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 8px;
    font-style: italic;
}

.note-card-desc {
    font-family: Montserrat, sans-serif;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    color: #a81e24;
}

/* ================== TRANG CHI TIẾT NỐT HƯƠNG (SINGLE NOTE) ================== */
.note-detail-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.note-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    background: #fff0e9;
    color: #a81e24;
    border: 1px solid #fed7aa;
}

.note-detail-title {
    font-family: "Noto Serif", serif !important;
    font-size: clamp(24px, 3.2vw, 32px) !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px;
}

.note-detail-en {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 12px;
}

.note-detail-desc {
    font-family: Montserrat, sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    max-width: 840px;
    margin-bottom: 16px;
}

.note-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-family: Montserrat, sans-serif;
}

.note-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #475569;
}

.note-stat-item strong {
    color: #a81e24;
    font-size: 15px;
}

/* Card kết nối bài blog cẩm nang */
.note-blog-card {
    background: linear-gradient(135deg, #fffaf5 0%, #fff0e9 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .note-blog-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.note-blog-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.note-blog-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.note-blog-title {
    font-family: "Noto Serif", serif !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    color: #a81e24 !important;
    margin: 0 0 3px 0;
    line-height: 1.4;
}

.note-blog-desc {
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    color: #475569;
    margin: 0;
}

.note-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #a81e24;
    color: #ffffff !important;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.note-blog-btn:hover {
    background: #8e181d;
    box-shadow: 0 4px 8px rgba(168, 30, 36, 0.25);
    color: #ffffff !important;
}

/* Bộ lọc phân tầng (Tất cả, Hương đầu, Hương giữa, Hương cuối) */
.note-tier-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.note-tier-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
}

.note-tier-btn:hover {
    border-color: #cbd5e1;
    color: #a81e24;
    background: #fff0e9;
}

.note-tier-btn.active {
    background: #a81e24 !important;
    border-color: #a81e24 !important;
    color: #ffffff !important;
}

.note-tier-btn .count {
    font-size: 11.5px;
    opacity: 0.9;
}

/* ================== THẺ LINK NỐT HƯƠNG TRÊN TRANG SẢN PHẨM ================== */
.note-pill-link {
    display: inline-block;
    padding: 1px 8px;
    margin: 2px 2px;
    background: #fff0e9;
    color: #a81e24 !important;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.note-pill-link:hover {
    background: #a81e24;
    color: #ffffff !important;
    border-color: #a81e24;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(168, 30, 36, 0.2);
}

/* ================== BỘ LỌC GU MÙI & MÙA (VIBE / SEASON QUICK PILLS) ================== */
.notes-vibe-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.notes-vibe-label {
    font-size: 12.5px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.notes-vibe-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-vibe-btn:hover, .notes-vibe-btn.active {
    background: #ffffff;
    color: #a81e24;
    border-color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================== THANH TRA CỨU CHỮ CÁI (A-Z DIRECTORY) ================== */
.notes-alphabet-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.notes-alphabet-label {
    font-size: 12px;
    font-weight: 700;
    font-family: Montserrat, sans-serif;
    color: #94a3b8;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Container: Enables horizontal scrolling and hides scrollbars */
#notesAlphabetNav,
.notes-alphabet-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 6px 0;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
}

#notesAlphabetNav::-webkit-scrollbar,
.notes-alphabet-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Buttons: Prevents shrinking and ensures consistent touch targets */
.notes-alphabet-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notes-alphabet-btn:hover {
    background-color: #fff0e9;
    color: #a81e24;
}

/* Active State: Distinct visual feedback */
.notes-alphabet-btn.active {
    background-color: #a81e24;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(168, 30, 36, 0.25);
}

/* ================== TOP NỐT HƯƠNG XU HƯỚNG (TRENDING SHOWCASE) ================== */
.notes-trending-section {
    margin-bottom: 28px;
}

.notes-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.notes-trending-card {
    background: linear-gradient(145deg, #ffffff 0%, #fffbf9 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notes-trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a81e24, #f59e0b);
}

.notes-trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 30, 36, 0.12);
    border-color: #fca5a5;
    color: inherit !important;
}

.notes-trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notes-trending-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0e9;
    border-radius: 8px;
}

.notes-trending-badge {
    font-size: 10.5px;
    font-weight: 700;
    font-family: Montserrat, sans-serif;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #fef3c7;
    color: #b45309;
    letter-spacing: 0.3px;
}

.notes-trending-name {
    font-family: "Noto Serif", serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 2px 0;
}

.notes-trending-meta {
    font-size: 11.5px;
    color: #64748b;
    font-family: Montserrat, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.notes-trending-meta .count {
    color: #a81e24;
    font-weight: 600;
}

/* Banner trạng thái bộ lọc */
.notes-filter-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff0e9;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-family: Montserrat, sans-serif;
    color: #9a1c22;
}

.notes-filter-status-text {
    font-weight: 600;
}

.notes-filter-reset-btn {
    background: #ffffff;
    border: 1px solid #fca5a5;
    color: #a81e24;
    border-radius: 9999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.notes-filter-reset-btn:hover {
    background: #a81e24;
    color: #ffffff;
    border-color: #a81e24;
}

/* ================== SEARCH AUTOCOMPLETE DROPDOWN ================== */
.notes-search-wrapper {
    position: relative;
    max-width: 480px;
    margin-bottom: 16px;
}

.notes-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
    border: 1px solid #e2e8f0;
    z-index: 1050;
    max-height: 340px;
    overflow-y: auto;
    color: #1e293b;
    padding: 6px 0;
    scrollbar-width: thin;
}

.notes-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    text-decoration: none !important;
    color: #1e293b;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s ease;
    cursor: pointer;
}

.notes-search-item:last-child {
    border-bottom: none;
}

.notes-search-item:hover,
.notes-search-item:active {
    background: #fff0e9;
    color: #a81e24;
}

.notes-search-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.notes-search-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notes-search-item-info {
    min-width: 0;
}

.notes-search-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-search-item-en {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.2;
}

.notes-search-item-count {
    font-size: 11px;
    font-weight: 600;
    color: #a81e24;
    background: #fee2e2;
    padding: 3px 8px;
    border-radius: 9999px;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.notes-search-dropdown-footer {
    padding: 11px 16px;
    background: #fff0e9;
    border-top: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 600;
    color: #a81e24;
    text-align: center;
    cursor: pointer;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    transition: background 0.15s ease;
}

.notes-search-dropdown-footer:hover {
    background: #fbd5c8;
}

.notes-search-empty {
    padding: 20px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* ================== NỐT HƯƠNG CÙNG NHÓM (RELATED NOTES IN SAME GROUP) ================== */
.note-related-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.note-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.note-related-card:hover {
    transform: translateY(-2px);
    border-color: #fca5a5;
    background: #fffafa;
    box-shadow: 0 4px 12px rgba(168, 30, 36, 0.08);
}

.note-related-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.note-related-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    font-family: Montserrat, sans-serif;
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.note-related-card:hover .note-related-name {
    color: #a81e24;
}

.note-related-count {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

