/* 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;
}

/* ===== 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;
    }
}