/* ==========================================================================
   NHẤT TÂM GROUP - TISOLLA & VIỆT CỐT
   Custom Stylesheet (Kết hợp cùng Tailwind CSS)
   ========================================================================== */

:root {
    --brand-red: #A31D1D;
    --brand-red-dark: #7A1212;
    --brand-red-light: #FDF2F2;
    --brand-gold: #B48D3D;
    --brand-gold-dark: #96732C;
    --brand-gold-light: #FBF5E8;
    --bg-header: #FFFDF5;
    --bg-cream: #FFF8EB;
    --text-primary: #222222;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    color: var(--text-primary);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Thanh cuộn tinh tế */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #c7b299;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Hiệu ứng chuyển trang SPA */
.view-fade-in {
    animation: fadeInView 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Banner Slider */
.hero-slide {
    display: none;
    animation: slideFade 0.55s ease-in-out;
}
.hero-slide.active {
    display: block;
}

@keyframes slideFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Thẻ sản phẩm và bài viết */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(163, 29, 29, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.06);
}

/* Định dạng nội dung chi tiết bài viết (Rich Content) */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.4rem;
    margin-bottom: 0.65rem;
}
.article-content p {
    margin-bottom: 1.15rem;
    line-height: 1.85;
    color: #374151;
    font-size: 1.025rem;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: #374151;
    line-height: 1.8;
}
.article-content ul {
    list-style-type: disc;
}
.article-content ol {
    list-style-type: decimal;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content blockquote {
    border-left: 4px solid var(--brand-gold);
    background-color: var(--bg-cream);
    padding: 1.15rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #4b5563;
}
.article-content img {
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Giới hạn dòng văn bản */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast Notification */
.toast-enter {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
