/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    color: #64748b;
    font-size: 1rem;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    color: #94a3b8;
}

.search-box {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.search-box:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #475569;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.search-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

#productCount {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.9rem;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ===== PRODUCT CARD (Tanpa Gambar) ===== */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.product-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-emoji {
    font-size: 28px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.product-sku {
    font-size: 0.7rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: monospace;
}

.product-stock {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.stock-available {
    background: #d1fae5;
    color: #065f46;
}

.stock-out {
    background: #fee2e2;
    color: #991b1b;
}

.stock-preorder {
    background: #fed7aa;
    color: #9a3412;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #059669;
    margin: 0.6rem 0 0.8rem 0;
}

.btn-detail {
    width: 100%;
    padding: 0.6rem;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.btn-detail:hover {
    background: #0f172a;
    color: white;
}

/* ===== NO RESULT ===== */
.no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.no-result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-result h3 {
    color: #334155;
    margin-bottom: 0.5rem;
}

.no-result p {
    color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .product-grid {
        gap: 1rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-icon {
        width: 48px;
        height: 48px;
    }
    
    .icon-emoji {
        font-size: 24px;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}