.gradient-bg {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sticky header helper styles */
.sticky-header-offset {
    scroll-margin-top: 100px;
}

/* Floating sticky header wrapper */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px 0 24px;
    pointer-events: none;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-wrapper.scrolled {
    padding-top: 10px;
}

/* The actual header bar */
#stickyHeader {
    pointer-events: auto;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.92) 0%, rgba(128, 90, 213, 0.92) 100%);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 8px 32px rgba(107, 70, 193, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#stickyHeader:hover {
    box-shadow: 0 12px 40px rgba(107, 70, 193, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-wrapper.scrolled #stickyHeader {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.85) 0%, rgba(128, 90, 213, 0.85) 100%);
    box-shadow: 0 10px 40px rgba(107, 70, 193, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-placeholder {
    height: 100px;
    display: block;
}

/* Mobile menu fixes */
@media (max-width: 768px) {
    .header-wrapper {
        padding: 10px 12px 0 12px;
    }

    .header-wrapper.scrolled {
        padding-top: 6px;
    }

    #stickyHeader {
        border-radius: 14px;
    }

    .mobile-menu-open {
        max-height: 300px;
        transition: max-height 0.3s ease-in-out;
    }

    .mobile-menu-closed {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
}

@media (min-width: 1400px) {
    .header-wrapper {
        padding: 18px 48px 0 48px;
    }
}

/* Main content alignment to match header */
.main-container {
    margin-left: 24px;
    margin-right: 24px;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .main-container {
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 14px;
    }
}

@media (min-width: 1400px) {
    .main-container {
        margin-left: 48px;
        margin-right: 48px;
    }
}
