/* Custom CSS and Tailwind overwrites for Galaxy Smart */

/* Base font setup to ensure it loads early if possible */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Custom Image Hover Effects for Product Cards */
.img-zoom-hover {
    overflow: hidden;
}

.img-zoom-hover img {
    transition: transform 0.5s ease;
}

.img-zoom-hover:hover img {
    transform: scale(1.08);
}

/* Hide scrollbar for category filters */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Swiper Slider Customizations */
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.25rem !important;
    font-weight: bold;
}
.swiper-button-next, .swiper-button-prev {
    color: #111827 !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #1E3A8A;
    color: white !important;
}
.swiper-pagination-bullet-active {
    background: #1E3A8A !important;
}
/* Mega Menu Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Fix tailwind group hover so the dropdown stays open when sliding mouse down */
.group:hover .absolute {
    display: flex;
}
