/* style.css */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* dark-mode.css */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .navbar {
    background-color: #2d2d2d !important;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    border-color: #404040;
}

body.dark-mode .text-muted {
    color: #b0b0b0 !important;
}

body.dark-mode .bg-light {
    background-color: #2d2d2d !important;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.dark-mode .form-control {
    background-color: #404040;
    border-color: #555;
    color: #ffffff;
}

body.dark-mode .form-control:focus {
    background-color: #404040;
    color: #ffffff;
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 0;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #667eea;
}

.section-header .view-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.section-header .view-all:hover {
    transform: translateX(5px);
}

/* Category Card Styles */
.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    color: #667eea;
}

.category-icon {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 15px;
}

.category-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    color: #6c757d;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Sticky Search */
.sticky-search {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sticky-search.scrolled {
    padding: 10px 0;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.search-btn {
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Dark Mode Adjustments */
body.dark-mode .section-header h2 {
    color: #fff;
}

body.dark-mode .category-card {
    background: #2d3748;
    color: #fff;
}

body.dark-mode .category-count {
    color: #a0aec0;
}

body.dark-mode .sticky-search {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .sticky-search.scrolled {
    background: rgba(45, 55, 72, 0.95);
}

body.dark-mode .search-input {
    background: #2d3748;
    color: #fff;
    border: 1px solid #4a5568;
}

body.dark-mode .search-btn {
    background: #4a5568;
    color: #fff;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #667eea !important;
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast-container {
    z-index: 1050;
}

/* Loading Spinner */
#loadingSpinner {
    z-index: 1060;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .category-card {
        padding: 20px;
    }
}

/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 0;
    font-size: 1.8rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #667eea;
    border-radius: 3px;
}

.section-header .view-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.1);
}

.section-header .view-all:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.section-header .view-all i {
    transition: transform 0.3s ease;
}

.section-header .view-all:hover i {
    transform: translateX(3px);
}

/* Category Card Styles */
.categories-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    color: #667eea;
    border-color: #667eea;
}

.category-icon {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 15px;
}

.category-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.category-count {
    color: #6c757d;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 !important;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Product Cards */
.products-section {
    padding: 60px 0;
}

.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card .card-title a {
    color: #333;
    text-decoration: none;
}

.product-card .card-title a:hover {
    color: #667eea;
}

/* Sticky Search */
.sticky-search {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sticky-search.scrolled {
    padding: 10px 0;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.search-btn {
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    background: white;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.search-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background-color: #2d3748 !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
    color: #e2e8f0;
}

body.dark-mode .navbar-light .navbar-brand {
    color: #fff;
}

body.dark-mode .section-header h2 {
    color: #fff;
}

body.dark-mode .category-card {
    background: #2d3748;
    color: #fff;
    border-color: #4a5568;
}

body.dark-mode .category-card:hover {
    background: #374151;
}

body.dark-mode .category-count {
    color: #a0aec0;
}

body.dark-mode .product-card {
    background: #2d3748;
}

body.dark-mode .product-card .card-title a {
    color: #e2e8f0;
}

body.dark-mode .product-card .card-text {
    color: #a0aec0 !important;
}

body.dark-mode .sticky-search {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .sticky-search.scrolled {
    background: rgba(45, 55, 72, 0.95);
}

body.dark-mode .search-input {
    background: #2d3748;
    color: #fff;
    border: 1px solid #4a5568;
}

body.dark-mode .search-btn {
    background: #4a5568;
    color: #fff;
}

body.dark-mode .search-btn:hover {
    background: #2d3748;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-section {
        padding: 60px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .product-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
}
        /* Catalog Styles */
        .catalog-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 0;
            margin-bottom: 30px;
        }
        
        .filter-sidebar {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            position: sticky;
            top: 20px;
        }
        
        .filter-section {
            margin-bottom: 25px;
        }
        
        .filter-section h6 {
            font-weight: 600;
            margin-bottom: 15px;
            color: #495057;
            border-bottom: 2px solid #dee2e6;
            padding-bottom: 8px;
        }
        
        .filter-option {
            margin-bottom: 10px;
        }
        
        .filter-option label {
            margin-left: 8px;
            cursor: pointer;
        }
        
        .price-inputs {
            display: flex;
            gap: 10px;
        }
        
        .price-inputs input {
            width: 50%;
            padding: 8px;
            border: 1px solid #ced4da;
            border-radius: 5px;
        }
        
        .product-card {
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            height: 100%;
            position: relative;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }
        
        .product-card img {
            height: 200px;
            object-fit: cover;
        }
        
        .product-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
        }
        
        .product-badge .badge {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        .product-stats {
            display: flex;
            gap: 15px;
            font-size: 12px;
            color: #6c757d;
            margin: 10px 0;
        }
        
        .product-stats i {
            margin-right: 3px;
        }
        

        
        .sort-bar {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .sort-select {
            border: 1px solid #ced4da;
            border-radius: 5px;
            padding: 8px 15px;
            cursor: pointer;
        }
        
        .view-options {
            display: flex;
            gap: 10px;
        }
        
        .view-btn {
            width: 40px;
            height: 40px;
            border: 1px solid #ced4da;
            background: white;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .view-btn:hover,
        .view-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        
        .tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tag-item {
            padding: 5px 12px;
            background: #e9ecef;
            border-radius: 20px;
            font-size: 13px;
            color: #495057;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .tag-item:hover {
            background: #667eea;
            color: white;
        }
        
        .active-filters {
            background: #e9ecef;
            border-radius: 5px;
            padding: 10px 15px;
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        
        .filter-tag {
            background: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .filter-tag i {
            cursor: pointer;
            color: #dc3545;
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: #f8f9fa;
            border-radius: 10px;
        }
        
        .empty-state i {
            font-size: 60px;
            color: #dee2e6;
            margin-bottom: 20px;
        }
        
        /* Dark mode adjustments */
        body.dark-mode .filter-sidebar {
            background: #2d3748;
        }
        
        body.dark-mode .filter-section h6 {
            color: #e2e8f0;
            border-bottom-color: #4a5568;
        }
        
        body.dark-mode .sort-bar {
            background: #2d3748;
        }
        
        body.dark-mode .sort-select,
        body.dark-mode .view-btn,
        body.dark-mode .price-inputs input {
            background: #374151;
            border-color: #4a5568;
            color: #e2e8f0;
        }
        
        body.dark-mode .tag-item {
            background: #374151;
            color: #e2e8f0;
        }
        
        body.dark-mode .active-filters {
            background: #2d3748;
        }
        
        body.dark-mode .filter-tag {
            background: #374151;
            color: #e2e8f0;
        }
        
        body.dark-mode .empty-state {
            background: #2d3748;
        }
        
        body.dark-mode .empty-state i {
            color: #4a5568;
        }
        
        /* Grid/List view */
        .product-list .product-card {
            display: flex;
            flex-direction: row;
            height: 200px;
        }
        
        .product-list .product-card img {
            width: 200px;
            height: 100%;
            object-fit: cover;
        }
        
        .product-list .product-card .card-body {
            flex: 1;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .product-list .product-card {
                flex-direction: column;
                height: auto;
            }
            
            .product-list .product-card img {
                width: 30px
                height: 30px;
            }
        }
.author-info-small {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.author-info-small img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

/* Untuk tampilan list/grid yang berbeda */
.product-list .author-info-small img {
    width: 40px;
    height: 40px;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Navbar */
body.dark-mode .navbar {
    background-color: #2d3748 !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
    color: #e2e8f0;
}

body.dark-mode .navbar-light .navbar-brand {
    color: #fff !important;
}

/* Section Headers */
body.dark-mode .section-header h2 {
    color: #fff;
}

/* Categories Section */
body.dark-mode .categories-section {
    background-color: #1a202c;
}

body.dark-mode .category-card {
    background: #2d3748;
    color: #fff;
    border-color: #4a5568;
}

body.dark-mode .category-card:hover {
    background: #374151;
}

body.dark-mode .category-count {
    color: #a0aec0;
}

/* Products Section */
body.dark-mode .products-section {
    background-color: #1a202c;
}

body.dark-mode .products-section.bg-light {
    background-color: #1a202c !important;
}

body.dark-mode .product-card {
    background: #2d3748;
}

body.dark-mode .product-card .card-title a {
    color: #e2e8f0;
}

body.dark-mode .product-card .card-text {
    color: #a0aec0 !important;
}

/* Hero Section - sudah didefinisikan tapi perlu dipastikan */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Sticky Search */
body.dark-mode .sticky-search {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .sticky-search.scrolled {
    background: rgba(45, 55, 72, 0.95);
}

body.dark-mode .search-input {
    background: #2d3748;
    color: #fff;
    border: 1px solid #4a5568;
}

body.dark-mode .search-btn {
    background: #4a5568;
    color: #fff;
}

body.dark-mode .search-btn:hover {
    background: #2d3748;
}

/* Search Info */
body.dark-mode .search-info {
    background: transparent;
}

body.dark-mode .clear-search {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .clear-search:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Badge */
body.dark-mode .badge.bg-light {
    background-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

/* Footer */
body.dark-mode footer {
    background: #2d3748 !important;
}

/* CTA Section */
body.dark-mode .py-5 .text-muted {
    color: #a0aec0 !important;
}

/* Responsive untuk dark mode */
@media (max-width: 768px) {
    body.dark-mode .category-card {
        background: #2d3748;
    }
}