:root {
    --font-heading: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}
@font-face {
    font-family: 'svn-gothambold'; /* Đặt tên tùy ý cho font để gọi sau này */
    src: url('/fonts/SVN-Gotham\ Bold.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}
body {
    font-family: "svn-gothambold', serif";
    background-color: #0f0b09;
    color: #f3f4f6;
    overflow-x: hidden;
}
h1, h2, h3, .font-serif {
    font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0b09;
}
::-webkit-scrollbar-thumb {
    background: #3d271d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* Advanced Glassmorphism */
.glass-card {
    background: rgba(32, 23, 20, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.glass-nav {
    background: rgba(15, 11, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Morphing Animation Styles */
@keyframes morphShape {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
.morph-box {
    animation: morphShape 8s ease-in-out infinite;
    transition: all 0.5s ease;
}

/* Animations & Glows */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.08); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-pulse-glow {
    animation: pulseGlow 8s ease-in-out infinite;
}
.shimmer-text {
    background: linear-gradient(90deg, #d97706 0%, #fde68a 50%, #d97706 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* 3D Tilt Card Hover */
.card-container {
    perspective: 1000px;
}
.product-card {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s ease;
    transform-style: preserve-3d;
}
.product-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 50px -12px rgba(217, 119, 6, 0.25);
    border-color: rgba(253, 230, 138, 0.5);
}

/* Modal Animation */
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-animate {
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hiệu ứng ấn nút (Click Effect & Ripple Animation) */
.btn-click {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: transform 0.15s ease, background-color 0.3s ease;
}
.btn-click:active {
    transform: scale(0.92) !important;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}
@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hiệu ứng cuộn cầu kỳ Morph Flow Fade (Kéo xuống hiện bồng bềnh, kéo lên biến mất) */
.scroll-morph-fade {
    opacity: 0;
    transform: translateY(80px) scale(0.94) skewX(2deg);
    filter: blur(8px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.scroll-morph-fade.active {
    opacity: 1;
    transform: translateY(0) scale(1) skewX(0deg);
    filter: blur(0px);
}

/* Hiệu ứng Fade khi click chuyển tab sản phẩm */
.grid-fade-transition {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.grid-fade-transition.fade-out {
    opacity: 0;
    transform: translateY(15px);
}