/* Placeholder Images CSS */

/* Hero Background Placeholder */
.hero-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Category Image Placeholders */
.category-image img[src*="category-physical.jpg"],
.category-image img[src*="category-digital.jpg"],
.category-image img[src*="category-all.jpg"] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-image img[src*="category-physical.jpg"]::before {
    content: "Produk Fisik";
}

.category-image img[src*="category-digital.jpg"]::before {
    content: "Produk Digital";
}

.category-image img[src*="category-all.jpg"]::before {
    content: "Semua Produk";
}

/* Product Image Placeholders */
.product-image img {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 15px 15px;
    background-position: 0 0, 0 7.5px, 7.5px -7.5px, -7.5px 0px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Hero Background with Pattern */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Category Card Hover Effects */
.category-card:hover .category-image img {
    background: linear-gradient(45deg, #1e3a8a 25%, transparent 25%), 
                linear-gradient(-45deg, #1e3a8a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #1e3a8a 75%), 
                linear-gradient(-45deg, transparent 75%, #1e3a8a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #1e40af;
    color: #ffffff;
}

/* Product Card Hover Effects */
.product-card:hover .product-image img {
    background: linear-gradient(45deg, #1e3a8a 25%, transparent 25%), 
                linear-gradient(-45deg, #1e3a8a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #1e3a8a 75%), 
                linear-gradient(-45deg, transparent 75%, #1e3a8a 75%);
    background-size: 15px 15px;
    background-position: 0 0, 0 7.5px, 7.5px -7.5px, -7.5px 0px;
    background-color: #1e40af;
    color: #ffffff;
}

/* Loading Animation for Images */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Fallback for missing images */
img[src=""],
img:not([src]) {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
}

img[src=""]::before,
img:not([src])::before {
    content: "Gambar tidak tersedia";
}

/* Responsive Image Placeholders */
@media (max-width: 768px) {
    .category-image img[src*="category-physical.jpg"]::before,
    .category-image img[src*="category-digital.jpg"]::before,
    .category-image img[src*="category-all.jpg"]::before {
        font-size: 1rem;
    }
    
    .product-image img {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .category-image img[src*="category-physical.jpg"]::before,
    .category-image img[src*="category-digital.jpg"]::before,
    .category-image img[src*="category-all.jpg"]::before {
        font-size: 0.9rem;
    }
    
    .product-image img {
        font-size: 0.7rem;
    }
}
