/* CSS fixes for the website */

/* Fix for missing images */
.image-loading {
    min-height: 50px;
    position: relative;
}

.bg-loading {
    position: relative;
}

.bg-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.7);
    z-index: 1;
}

/* Ensure visibility of content */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 80px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Fix button visibility */
.btn {
    display: inline-block;
    background-color: #333 !important;
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 10px 0;
}

/* Ensure image containers have minimum height */
.product-image, 
.artist-image, 
.news-image {
    min-height: 200px;
    background-color: #f0f0f0;
    background-position: center;
    background-size: cover;
}

/* Ensure text is visible */
.product-info h3,
.artist-info h3,
.news-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.product-info p,
.artist-info p,
.news-info p {
    color: #666;
}

/* Fix header for mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .hero-content h1 {
        font-size: 24px !important;
    }
    
    .hero-content p {
        font-size: 16px !important;
    }
    
    .section-title h2 {
        font-size: 24px !important;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Fix for missing background images */
[style*="background-image"] {
    background-color: #f0f0f0;
}

/* Fix for the mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
}

/* Fix for visible text on dark backgrounds */
.hero h1, .hero p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Fix for footer display */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Fix for filter buttons */
.filter-btn {
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}

/* Fix for product grid */
.product-grid,
.artist-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .product-grid,
    .artist-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Container padding fix */
.container {
    padding: 0 0px;
}

/* Fix for pagination */
.pagination a {
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background-color: #333;
    color: white;
    border-color: #333;
}

/* Button hover fix */
.btn:hover {
    background-color: #555 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}