.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.glass-nav {
    background: rgba(251, 249, 248, 0.9);
    backdrop-filter: blur(12px);
}

.mattress-shadow {
    box-shadow: 0px 10px 30px rgba(61, 122, 87, 0.08);
}

.lift-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lift-hover:hover {
    transform: translateY(-10px);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 3D Flip Card Countdown Styles */
.flip-card-new {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    width: 100px;
    height: 86px; /* Even height to prevent subpixel rendering offset (half is 43px) */
    perspective: 400px;
    background: transparent;
    color: #236140; /* text-primary */
    filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.25));
}

/* Subtle, static central divider line - 100% stable during flips */
.flip-card-new::after {
    content: '';
    position: absolute;
    top: 43px; /* Exactly at 50% height */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(35, 97, 64, 0.12); /* Soft green-gray divider */
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 640px) {
    .flip-card-new {
        width: 55px;
        height: 66px; /* Even height for mobile (half is 33px) */
    }
    .flip-card-new::after {
        top: 33px; /* Exactly at 50% height */
    }
}

/* Static halves */
.flip-card-new .half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 43px; /* Exactly 50% of 86px */
    overflow: hidden;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.flip-card-new .half.top {
    top: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #f7f7f7;
}

.flip-card-new .half.bottom {
    bottom: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: #ffffff;
}

@media (max-width: 640px) {
    .flip-card-new .half {
        height: 33px; /* Exactly 50% of 66px */
    }
}

/* Number text styling - full size matching the clock card */
.flip-card-new .number-text {
    position: absolute;
    width: 100%;
    height: 86px; /* Matches full card height */
    line-height: 86px; /* Centered line height */
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #236140;
    letter-spacing: -0.05em;
}

@media (max-width: 640px) {
    .flip-card-new .number-text {
        height: 66px;
        line-height: 66px;
        font-size: 2.5rem;
    }
}

/* Symmetrical text clipping positions */
.flip-card-new .top .number-text,
.flip-card-new .flipper-face.front .number-text {
    top: 0; /* Align top edge */
}

.flip-card-new .bottom .number-text,
.flip-card-new .flipper-face.back .number-text {
    bottom: 0; /* Align bottom edge */
}

/* Flipper container (sits in the top half) */
.flip-card-new .flipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 43px; /* Matches top half height */
    transform-origin: bottom;
    transform-style: preserve-3d;
    z-index: 5;
    transform: rotateX(0deg);
}

@media (max-width: 640px) {
    .flip-card-new .flipper {
        height: 33px;
    }
}

/* Flipper faces */
.flip-card-new .flipper-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.flip-card-new .flipper-face.front {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #f7f7f7;
    z-index: 2;
}

.flip-card-new .flipper-face.back {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: #ffffff;
    transform: rotateX(180deg);
    z-index: 1;
}

/* Flipping animation class */
.flip-card-new.flip .flipper {
    transform: rotateX(-180deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth zoom transition on hover for product and blog card images */
.group img {
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hero Banner Slider Custom CSS */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Background image Ken Burns effect */
.hero-slide .bg-cover {
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.2s ease-out;
    transform: scale(1.0);
    width: 100%;
    height: 100%;
}

.hero-slide.active .bg-cover {
    transform: scale(1.06); /* Slow continuous zoom */
}

/* Stagger animations for slide contents */
.hero-slide .slide-title {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1), opacity 1s ease-out;
}

.hero-slide .slide-desc {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1) 0.15s, opacity 1s ease-out 0.15s;
}

.hero-slide .slide-btn {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s, opacity 1s ease-out 0.3s;
}

/* Active transitions */
.hero-slide.active .slide-title,
.hero-slide.active .slide-desc,
.hero-slide.active .slide-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Search Overlay Transitions */
#search-overlay.search-active {
    opacity: 1;
    pointer-events: auto;
}

#search-overlay.search-active #search-content {
    opacity: 1;
    transform: scale(1);
}

/* Custom Scrollbar for Search Results */
#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: transparent;
}

#search-results::-webkit-scrollbar-thumb {
    background: rgba(61, 122, 87, 0.2);
    border-radius: 9999px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 122, 87, 0.4);
}

/* Mobile Menu Transitions */
#mobile-menu-backdrop.menu-active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu-drawer.menu-active {
    transform: translateX(0);
}
