:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --secondary: #F59E0B;
    --accent: #8B5CF6;
}

.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.filter-sidebar {
    transition: transform 0.3s ease;
}

.filter-sidebar .sticky {
    position: sticky;
    top: 4rem; /* Navbar height = h-16 = 4rem */
    z-index: 10; /* Lower than navbar's z-50 */
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.filter-sidebar.mobile-hidden {
    transform: translateX(-100%);
}

.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-range-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.breadcrumb-arrow::after {
    content: '→';
    margin: 0 8px;
    color: #9CA3AF;
}

.active-filter {
    background: var(--primary);
    color: white;
}

.filter-overlay {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.5);
}

.load-more-btn {
    position: relative;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 300% 300%;
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: gradientShift 3s ease-in-out infinite;
    min-width: 200px;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    animation-play-state: paused;
}

.load-more-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.loading .spinner {
    display: block;
}

.loading .btn-text {
    display: none;
}

.icon {
    transition: transform 0.3s ease;
}

.load-more-btn:hover .icon {
    transform: translateY(2px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for extra flair */
.load-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.load-more-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Alternative button styles */
.btn-variant-2 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    animation: none;
}

.btn-variant-2:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-variant-3 {
    background: #1f2937;
    color: #10b981;
    border: 2px solid #10b981;
    animation: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-variant-3:hover {
    background: #10b981;
    color: #1f2937;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.demo-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.variant-label {
    color: white;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}