/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fff5f7;
}
::-webkit-scrollbar-thumb {
    background: #891627;
    border-radius: 5px;
}

/* Floating Hearts Animation Background */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -100px;
    background-color: rgba(184, 31, 61, 0.2);
    display: inline-block;
    height: 30px;
    width: 30px;
    margin: 0 10px;
    transform: rotate(-45deg);
    animation: float 6s linear infinite;
}

.heart:before, .heart:after {
    content: "";
    position: absolute;
    background-color: inherit;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.heart:before { top: -15px; left: 0; }
.heart:after { left: 15px; top: 0; }

@keyframes float {
    0% { transform: translateY(0) rotate(-45deg) scale(0.8); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(-45deg) scale(1.2); opacity: 0; }
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(184, 31, 61, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #891627, #b81f3d);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #721220, #9e1a34);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.4);
}
.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 59, 48, 0.2);
}

/* --- 3D CARD PREVIEW --- */
.perspective-1000 { 
    perspective: 1000px;
}

.card-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: center center;
}

.card-3d-wrapper:active {
    cursor: grabbing;
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6.44%; /* Tỷ lệ chuẩn: 3.48 / 54 * 100% */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
}

.card-face.front {
    transform: rotateY(0deg);
}

.card-face.back {
    transform: rotateY(180deg);
}
