/* Filter Sidebar Styles */
/* transition: all 0.3s ease;
} */

.filter-item:hover {
    background: #f0f0f8 !important;
    color: #2f2f42 !important;
    border-left-color: #2f2f42 !important;
    transform: translateX(5px);
}

.filter-item.active {
    background: #f0f0f8 !important;
    color: #2f2f42 !important;
    border-left-color: #2f2f42 !important;
}

/* Product Action Buttons */
.btn-view,
.btn-,
.btn-cart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view:hover {
    background: #2f2f42 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.3);
}

.btn-:hover:not(:disabled) {
    background: #ff4444 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.btn-.-active {
    background: #ff4444 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.btn-.-active svg path {
    fill: currentColor;
}

/* Disable button saat proses */
.btn-:disabled,
.btn-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Loading state */
.btn-loading {
    pointer-events: none !important;
}

.btn-cart:hover:not(:disabled):not(.btn-loading) {
    background: #1a1a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.4);
}

/* Product Card Hover - Legacy support */
.add-to-cart-btn:hover {
    background: #1a1a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.3);
}

/* Pagination Styles */
.pagination-btn:not(.disabled):not(.active):hover {
    background: #2f2f42 !important;
    color: white !important;
    border-color: #2f2f42 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 47, 66, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.5;
}

/* Animation Keyframes removed */

/* Notification Styles */
.notification {
    pointer-events: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    color: white;
}

.notification.notification-success {
    background: #4caf50;
}

.notification.notification-error {
    background: #f44336;
}

.notification.notification-warning {
    background: #ff9800;
}

.notification.show {
    transform: translateX(0);
}

/* Center products grid within main area and constrain width for tidier layout */
.products-section {
    display: block;
}

.product-grid {
    max-width: 1060px;
    margin: 0 auto;
    grid-auto-rows: auto;
}

@media (max-width: 1400px) {
    .product-grid {
        max-width: 920px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        max-width: 760px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column !important;
    }

    .filter-sidebar {
        width: 100% !important;
        position: static !important;
        margin-bottom: 30px;
    }

    /* Medium screens (~tablet landscape / small laptop):
       Use 2 columns for cleaner layout and reduce image height slightly. */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .product-image {
        height: 260px !important;
    }

    /* Ensure product names align across cards */
    .product-name {
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .filter-sidebar {
        padding: 20px !important;
    }

    .page-header h1 {
        font-size: 32px !important;
    }

    .page-header p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .pagination-container {
        gap: 5px !important;
    }

    .pagination-btn {
        padding: 10px 14px !important;
        min-width: 40px !important;
        font-size: 14px !important;
    }
}
/* Note: Home page specific styles moved to home.css */
/* Note: Hero header now uses .hero-home.hero-page from home.css */
