/* Enhanced Product Layout Styles */

/* Hero Section - menggunakan gradient dari elegant-styles.css (luxury-gradient class) */
/* Background gradient sudah diatur di elegant-styles.css dengan:
   background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%); 
   Tidak perlu override di sini */

.hero-title {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.hero-stats {
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 0 1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    margin: 0;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-section .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cta-section .btn-light:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.product-grid {
    padding: 1rem 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img { transform: scale(1.03); }

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-brand {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.product-condition {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem;
}

.condition-baru {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.condition-bekas {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #d35400;
}

.condition-rusak {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #e74c3c;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1rem;
}

.product-stock {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.stock-available {
    color: #27ae60;
    font-weight: 500;
}

.stock-low {
    color: #f39c12;
    font-weight: 500;
}

.stock-out {
    color: #e74c3c;
    font-weight: 500;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Filter Section */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-row {
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
    display: block;
}

.form-check-input:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(189, 195, 199, 0.4);
}

/* Sort Section */
.sort-section {
    text-align: right;
    margin-bottom: 2rem;
}

.sort-select {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d4af37;
    border-radius: 50px;
    margin: 0 0.25rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.page-link:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
    color: white;
    border-color: #d4af37;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #d4af37 0%, #f4e17a 50%, #d4af37 100%);
    border-color: #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .filter-section {
        padding: 1.5rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .sort-section {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}
