* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: clip;
    width: 100%;
}

/* Utility to cleanly hide scrollbars while maintaining full scroll functionality */
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.scrollbar-none,
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Modern subtle scrollbar across the application */
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Category tab active & hover states */
.category-btn[aria-selected="true"] {
    background-color: #E8391E !important;
    color: #ffffff !important;
}

.category-btn[aria-selected="true"]:hover {
    background-color: #C42D15 !important;
    color: #ffffff !important;
}

/* Product card hover */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-underline {
    width: 48px;
}

.product-underline {
    transition: width 0.3s ease;
}

/* Smart Sticky Reveal Header */
#header {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    will-change: transform;
}

#header.header-hidden {
    transform: translateY(-100%);
}

/* Mobile Slide-Over Drawer from Right */
#mobile-menu-drawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

#mobile-menu-drawer.drawer-open {
    transform: translateX(0) !important;
}

#mobile-menu-backdrop {
    transition: opacity 0.3s ease;
}

#mobile-menu-backdrop.backdrop-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Nav link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #E8391E;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Feature badge */
.feature-badge {
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* CTA button glow */
.btn-primary-glow {
    box-shadow: 0 4px 15px rgba(232, 57, 30, 0.35);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    box-shadow: 0 6px 25px rgba(232, 57, 30, 0.5);
    transform: translateY(-2px);
}

/* Logo icon animation */
.logo-icon {
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.03);
}

/* Gradient overlay for hero */
.hero-gradient-overlay {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 45%,
            rgba(255, 255, 255, 0.88) 75%,
            rgba(255, 255, 255, 0.75) 100%);
}

@media (min-width: 1024px) {
    .hero-gradient-overlay {
        background: linear-gradient(135deg,
                rgba(245, 247, 250, 0.98) 0%,
                rgba(245, 247, 250, 0.96) 45%,
                rgba(245, 247, 250, 0.65) 60%,
                transparent 75%);
    }
}

/* Floating WhatsApp pulse */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Button hover styles */
.btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #E8391E;
    color: white;
    border-color: #E8391E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 57, 30, 0.3);
}

/* Custom heating banner diagonal clip */
@media (min-width: 1024px) {
    .banner-clip-red {
        clip-path: polygon(0 0, 52% 0, 40% 100%, 0 100%);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .banner-clip-red {
        clip-path: polygon(0 0, 60% 0, 48% 100%, 0 100%);
    }
}

@media (max-width: 767px) {
    .banner-clip-red {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}
